Skip to content

Add concurrency controls to all GitHub Actions workflows - #435

Merged
shannah merged 2 commits into
masterfrom
claude/fix-duplicate-workflows-Rocie
Mar 13, 2026
Merged

shannah merged 2 commits into
masterfrom
claude/fix-duplicate-workflows-Rocie

Conversation

@shannah

@shannah shannah commented Mar 13, 2026

Copy link
Copy Markdown
Owner

Summary

This PR adds concurrency configuration to all GitHub Actions workflows to prevent multiple runs of the same workflow from executing simultaneously. This improves CI/CD efficiency by canceling in-progress runs when new commits are pushed to the same pull request or branch.

Key Changes

  • Added concurrency configuration block to 5 workflow files:

    • e2e-installation-tests.yml
    • e2e-local-tests.yml
    • integration_tests.yml
    • mock-network-tests.yml
    • test-action-scripts.yml
  • Each workflow now includes:

    • Concurrency group based on workflow name and either PR number (for pull requests) or git ref (for other events)
    • cancel-in-progress: true to automatically cancel previous runs when a new run is triggered

Benefits

  • Reduces unnecessary CI resource consumption by preventing duplicate workflow runs
  • Provides faster feedback on the latest changes by canceling stale runs
  • Maintains consistency across all workflows with a unified concurrency strategy

https://claude.ai/code/session_01TaE7GXKKdM4ro7rLTzTxKF

claude added 2 commits March 13, 2026 01:50
When a push to a branch with an open PR triggers both the push and
pull_request events, workflows run twice. Adding concurrency groups
keyed on PR number (or ref for non-PR pushes) ensures only one run
per workflow per PR, cancelling the redundant run.

https://claude.ai/code/session_01TaE7GXKKdM4ro7rLTzTxKF
Replace push+pull_request triggers with pull_request only, so
workflows run once per PR instead of twice (once for push, once for PR).
Keeps workflow_dispatch where it existed for manual runs.

https://claude.ai/code/session_01TaE7GXKKdM4ro7rLTzTxKF
@shannah
shannah merged commit dfa885c into master Mar 13, 2026
18 checks passed
@shannah
shannah deleted the claude/fix-duplicate-workflows-Rocie branch March 13, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants