Skip to content

ci: cancel superseded test runs with concurrency groups - #98

Open
Wuodan wants to merge 1 commit into
bats-core:mainfrom
bats-hardened:upstream-PR/03-add-concurrency-group-to-tests
Open

Wuodan wants to merge 1 commit into
bats-core:mainfrom
bats-hardened:upstream-PR/03-add-concurrency-group-to-tests

Conversation

@Wuodan

@Wuodan Wuodan commented Sep 6, 2026 •

Copy link
Copy Markdown

Use concurrency groups based on the workflow and PR number or Git ref.
Cancel an in-progress run when a newer run uses the same group, freeing CI capacity from outdated tests.

Release events use a separate suffix to keep them distinct where applicable.

Use concurrency groups based on the workflow and PR number or Git ref.
Cancel an in-progress run when a newer run uses the same group, freeing CI capacity from outdated tests.

Release events use a separate suffix to keep them distinct where applicable.
@Wuodan
Wuodan force-pushed the upstream-PR/03-add-concurrency-group-to-tests branch from 44ff0b9 to 4d31990 Compare September 10, 2026 17:54
@Wuodan Wuodan changed the title ci: add concurrency group to tests ci: cancel superseded test runs with concurrency groups Sep 10, 2026
@Wuodan

Wuodan commented Sep 10, 2026

Copy link
Copy Markdown
Author

Update:
This now gives release-triggered runs a separate suffix in the group name.

This workflow is not release-triggered, but I use these concurrency settings in many repos and workflows and will suggest these in other bats-repos too.
And then it's just nice to have the same lines everywhere without having to think about the details.

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