Repository navigation
ci: skip coverage merge for cancelled workflows - #26572
Merged
Merged
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
1 task done
1 task done
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#26569 Fixes matrixorigin#26569 ## What this PR does / why we need it: ### Root cause The coverage merge job used `always()` so it was still eligible while GitHub cancelled a superseded workflow. Its required producers then concluded `cancelled`, the caller reduced those results to `prerequisites_ready: false`, and the reusable coverage workflow deliberately failed its prerequisite gate. This turned cancellation of stale work into a failed PR check. ### Change Replace the merge job's `always()` status check with GitHub's cancellation-aware `!cancelled()` status check. A superseded workflow now skips or cancels its merge job, while a non-cancelled run with a genuine producer failure still invokes the merge workflow with `prerequisites_ready: false` and retains the existing failure signal. ### Validation - Reproduced the pre-change behavior in workflow run 30707381514 attempt 1: the UT and BVT coverage producers concluded `cancelled`, then `Matrixone Utils CI / Coverage` ran with `prerequisites_ready: false` and failed its prerequisite verification. - `actionlint v1.7.12 -verbose .github/workflows/entrypoint.yaml` - `git diff --check origin/main...HEAD` - Reviewed the complete state matrix for successful producers, genuine producer failure, workflow cancellation, invalid PR metadata, and the 3.0 branch path. BVT and Go unit tests are not applicable because this change only affects GitHub Actions' server-side job scheduling. The linked issue records the hosted regression scenarios and their expected conclusions. ### Residual risk Local tooling validates the workflow syntax and expression shape but cannot emulate GitHub's server-side cancellation reevaluation. Hosted Actions must confirm the cancellation, failure, and success cases documented on the issue. Co-authored-by: XuPeng-SH <[email protected]>
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#26569 Fixes matrixorigin#26569 ## What this PR does / why we need it: ### Root cause The coverage merge job used `always()` so it was still eligible while GitHub cancelled a superseded workflow. Its required producers then concluded `cancelled`, the caller reduced those results to `prerequisites_ready: false`, and the reusable coverage workflow deliberately failed its prerequisite gate. This turned cancellation of stale work into a failed PR check. ### Change Replace the merge job's `always()` status check with GitHub's cancellation-aware `!cancelled()` status check. A superseded workflow now skips or cancels its merge job, while a non-cancelled run with a genuine producer failure still invokes the merge workflow with `prerequisites_ready: false` and retains the existing failure signal. ### Validation - Reproduced the pre-change behavior in workflow run 30707381514 attempt 1: the UT and BVT coverage producers concluded `cancelled`, then `Matrixone Utils CI / Coverage` ran with `prerequisites_ready: false` and failed its prerequisite verification. - `actionlint v1.7.12 -verbose .github/workflows/entrypoint.yaml` - `git diff --check origin/main...HEAD` - Reviewed the complete state matrix for successful producers, genuine producer failure, workflow cancellation, invalid PR metadata, and the 3.0 branch path. BVT and Go unit tests are not applicable because this change only affects GitHub Actions' server-side job scheduling. The linked issue records the hosted regression scenarios and their expected conclusions. ### Residual risk Local tooling validates the workflow syntax and expression shape but cannot emulate GitHub's server-side cancellation reevaluation. Hosted Actions must confirm the cancellation, failure, and success cases documented on the issue. Co-authored-by: XuPeng-SH <[email protected]>
VioletQwQ-0
pushed a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#26569 Fixes matrixorigin#26569 ## What this PR does / why we need it: ### Root cause The coverage merge job used `always()` so it was still eligible while GitHub cancelled a superseded workflow. Its required producers then concluded `cancelled`, the caller reduced those results to `prerequisites_ready: false`, and the reusable coverage workflow deliberately failed its prerequisite gate. This turned cancellation of stale work into a failed PR check. ### Change Replace the merge job's `always()` status check with GitHub's cancellation-aware `!cancelled()` status check. A superseded workflow now skips or cancels its merge job, while a non-cancelled run with a genuine producer failure still invokes the merge workflow with `prerequisites_ready: false` and retains the existing failure signal. ### Validation - Reproduced the pre-change behavior in workflow run 30707381514 attempt 1: the UT and BVT coverage producers concluded `cancelled`, then `Matrixone Utils CI / Coverage` ran with `prerequisites_ready: false` and failed its prerequisite verification. - `actionlint v1.7.12 -verbose .github/workflows/entrypoint.yaml` - `git diff --check origin/main...HEAD` - Reviewed the complete state matrix for successful producers, genuine producer failure, workflow cancellation, invalid PR metadata, and the 3.0 branch path. BVT and Go unit tests are not applicable because this change only affects GitHub Actions' server-side job scheduling. The linked issue records the hosted regression scenarios and their expected conclusions. ### Residual risk Local tooling validates the workflow syntax and expression shape but cannot emulate GitHub's server-side cancellation reevaluation. Hosted Actions must confirm the cancellation, failure, and success cases documented on the issue. Co-authored-by: XuPeng-SH <[email protected]>
This branch was previously deployed
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 type of PR is this?
Which issue(s) this PR fixes:
issue #26569
Fixes #26569
What this PR does / why we need it:
Root cause
The coverage merge job used
always()so it was still eligible while GitHub cancelled a superseded workflow. Its required producers then concludedcancelled, the caller reduced those results toprerequisites_ready: false, and the reusable coverage workflow deliberately failed its prerequisite gate. This turned cancellation of stale work into a failed PR check.Change
Replace the merge job's
always()status check with GitHub's cancellation-aware!cancelled()status check. A superseded workflow now skips or cancels its merge job, while a non-cancelled run with a genuine producer failure still invokes the merge workflow withprerequisites_ready: falseand retains the existing failure signal.Validation
cancelled, thenMatrixone Utils CI / Coverageran withprerequisites_ready: falseand failed its prerequisite verification.actionlint v1.7.12 -verbose .github/workflows/entrypoint.yamlgit diff --check origin/main...HEADBVT and Go unit tests are not applicable because this change only affects GitHub Actions' server-side job scheduling. The linked issue records the hosted regression scenarios and their expected conclusions.
Residual risk
Local tooling validates the workflow syntax and expression shape but cannot emulate GitHub's server-side cancellation reevaluation. Hosted Actions must confirm the cancellation, failure, and success cases documented on the issue.