Skip to content

ci: skip coverage merge for cancelled workflows - #26572

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
gouhongshen:agent/issue-26569
Aug 1, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
gouhongshen:agent/issue-26569

Conversation

@gouhongshen

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

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 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.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH
XuPeng-SH merged commit c0dd903 into matrixorigin:main Aug 1, 2026
21 of 25 checks passed
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

1 inactive deployment
ci — 5f77731f Deployed Aug 1, 2026 by XuPeng-SH via Matrixone Utils CI / Coverage #44043
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working kind/test-ci size/XS Denotes a PR that changes [1, 9] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: superseded PR workflow reports failed coverage merge after producers are cancelled

3 participants