Skip to content

fix(ci): scope concurrency cancel-in-progress to PR events only#39

Merged
saurabhjain1592 merged 1 commit into
mainfrom
cost/ci-sweep
May 10, 2026
Merged

fix(ci): scope concurrency cancel-in-progress to PR events only#39
saurabhjain1592 merged 1 commit into
mainfrom
cost/ci-sweep

Conversation

@saurabhjain1592
Copy link
Copy Markdown
Member

Correctness fix: test.yml + integration.yml shipped with cancel-in-progress: true keyed on github.ref. Two consecutive pushes to main share the same ref, so the second push cancels the first — main runs get killed mid-flight. Reshapes to the same PR-only-cancel pattern as the other SDK repos. audit.yml + release.yml have no PR triggers — concurrency would be cosmetic, left alone.

test.yml + integration.yml shipped with `cancel-in-progress: true` and
`group: <name>-${{ github.ref }}`. Two consecutive pushes to main share
the same `github.ref` (refs/heads/main), so the second push CANCELS the
first — main runs that haven't finished get killed by the next merge.

Reshape to the same pattern shipped on the other SDK repos
(sdk-{java,python,typescript,go}#176/#194/#225/#167):

  group: <name>-\${{ github.event.pull_request.number || github.sha }}
  cancel-in-progress: \${{ github.event_name == 'pull_request' }}

PR rebases cancel orphans by PR#. Push-to-main runs each get a unique
SHA group so they never queue or cancel each other.

audit.yml + release.yml don't have PR triggers, so concurrency would be
cosmetic — left as-is.

Signed-off-by: Saurabh Jain <dev@getaxonflow.com>
@saurabhjain1592 saurabhjain1592 merged commit 4367ea9 into main May 10, 2026
9 checks passed
@saurabhjain1592 saurabhjain1592 deleted the cost/ci-sweep branch May 12, 2026 13:38
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.

1 participant