ci(regression): add concurrency group to cancel superseded runs#425
Merged
jrusso1020 merged 1 commit intomainfrom Apr 22, 2026
Merged
ci(regression): add concurrency group to cancel superseded runs#425jrusso1020 merged 1 commit intomainfrom
jrusso1020 merged 1 commit intomainfrom
Conversation
Matches the pattern already in place on ci.yml, docs.yml, windows-render.yml, and catalog-previews.yml. The regression workflow was the only one without it. Without this, rapid pushes to a PR leave prior regression runs still executing their full matrix (~10 parallel shards across styles-a..g, fast, render-compat, hdr) even though they'll be thrown away. On a busy day this alone can eat a double-digit share of the GitHub hosted runner pool and stretch queues for every open PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
concurrency:block to.github/workflows/regression.ymlthat cancels any in-progress regression run when a new commit is pushed to the same ref.Why
Matches the pattern already in place on every other workflow in the repo:
ci.ymldocs.ymlcatalog-previews.ymlwindows-render.ymlpublish.ymlregression.ymlregression.ymlis also the biggest matrix workflow (styles-athroughstyles-g,fast,render-compat,hdr— ~10 parallel shards plus setup/detect jobs per run). Without a concurrency group, rapid pushes to a PR leave prior regression runs consuming the full matrix even though their outputs will be thrown away.Triggered by the queue state from earlier this afternoon — 34 queued vs 7 in-progress jobs across the repo, much of it regression shards on superseded commits. Fixing this alone should noticeably reduce queue depth under normal push cadence.
How
Using the exact same pattern as
ci.ymland the others —group: regression-${{ github.ref }}withcancel-in-progress: true. Forpull_requestevents,github.refisrefs/pull/<number>/merge(unique per PR), so only pushes to the same PR cancel the prior run. For pushes tomain, all workflows in the repo use the same cancel-in-progress semantics, so regression stays consistent.Test plan
Once this merges, push a second commit to any PR with a touched
packages/producer/**file and confirm the first regression run gets cancelled.