ci: cancel in-progress E2E matrix runs on the same PR branch - #1091
Merged
Conversation
Add a concurrency group keyed by the target branch so rapid pushes to a pull request cancel the previous matrix run instead of spawning parallel 30-job suites. Scheduled and manual runs on main are unaffected (cancel-in-progress is PR-only).
Contributor
Author
Test Healer — PR #1091 validation resultsRun: E2E tests Matrix #29782815602 CI summary (30 matrix jobs)
All green. The concurrency change does not break the E2E matrix workflow. Change under testconcurrency:
group: e2e-tests-${{ github.event_name == 'pull_request' && github.head_ref || (github.event.inputs.pmm_qa_branch || github.ref_name) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
Cross-check vs #1092 (same CI run window)Jobs that failed on #1092 passed here on unmodified
Confirms those #1092 failures were flakes, not caused by dependency changes. Recommendation✅ Ready to merge. Low-risk CI-only change; full matrix validated green. |
cursor
Bot
force-pushed
the
cursor/workflow-concurrency
branch
from
July 20, 2026 23:48
e4b16b1 to
cdb4ab9
Compare
Contributor
Author
Concurrency test resultsTested by pushing two commits in quick succession to Test procedure
Results
At no point were two matrix runs active on the same branch — each new push cancelled the previous one within ~20s. Verified behaviour
✅ Concurrency feature confirmed working. |
yurkovychv
approved these changes
Jul 21, 2026
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.
Why
Every push to a PR branch triggers the full 30-job E2E tests matrix (~30 min). Rapid iteration (e.g. dependency fix attempts) spawns parallel matrix runs with no cancellation, wasting CI minutes.
How
Add a
concurrencygroup toe2e-tests-matrix.ymlkeyed by the target branch name.cancel-in-progressis enabled only forpull_requestevents, so: