Skip to content

Commit ff479d3

Browse files
committed
[ci] Cancel superseded test runs after scope detection (#230)
1 parent 321fb1f commit ff479d3

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ permissions:
3535

3636
concurrency:
3737
group: ${{ github.event_name == 'pull_request' && format('tests-pr-{0}', github.event.pull_request.number) || format('tests-{0}', github.ref) }}
38-
cancel-in-progress: false
38+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3939

4040
env:
4141
FORCE_COLOR: '1'

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12-
- Keep required PHPUnit matrix checks reporting after workflow-managed `.github/wiki` pointer commits by moving PR test-skip decisions inside the tests workflow, queueing same-PR test runs, and aligning the packaged consumer test wrapper (#230)
12+
- Keep required PHPUnit matrix checks reporting after workflow-managed `.github/wiki` pointer commits by moving PR test-skip decisions inside the tests workflow and aligning the packaged consumer test wrapper (#230)
1313

1414
## [1.21.0] - 2026-04-24
1515

docs/advanced/branch-protection-and-bot-commits.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ intentional skip message instead of leaving branch protection waiting for
106106
missing checks. If the pull request does include test-sensitive changes, the
107107
matrix runs even when the newest commit is only the generated wiki pointer.
108108

109-
Test workflow concurrency queues runs for the same pull request instead of
110-
canceling in-progress jobs. This prevents the wiki-pointer run from canceling a
111-
source-change run and then completing with a lightweight skip before the real
112-
validation has reported.
109+
Test workflow concurrency cancels older in-progress runs for the same pull
110+
request. Because the skip decision uses the effective pull request diff instead
111+
of only the latest commit, a generated wiki-pointer commit still runs the matrix
112+
when the pull request contains source, test, Composer, test-workflow, packaged
113+
test-wrapper, or local-action changes.
113114

114115
At a high level, the workflows need permission to read repository contents,
115116
write generated preview commits, update pull request comments, and publish Pages

0 commit comments

Comments
 (0)