Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Branch Name
main
Commit ID
55398ca (the relevant workflow behavior was introduced by 7cb78aa)
Other Environment Information
- Hardware parameters: GitHub-hosted Ubuntu runner
- OS type: Ubuntu 22.04
- Others: MatrixOne ALL CI, pull_request_target run 30707381514 attempt 1
Actual Behavior
A superseded/cancelled PR workflow reports Matrixone Utils CI / Coverage as a failure after its required producer jobs have been cancelled.
In run https://github.com/matrixorigin/matrixone/actions/runs/30707381514, the UT coverage and BVT producer jobs were cancelled while a replacement run was triggered for PR #26567. The coverage merge job still ran because matrixone-coverage-merge uses if: ${{ always() ... }}. It received prerequisites_ready: false and failed deliberately during Verify coverage prerequisites:
coverage merge skipped because at least one required producer was skipped or failed
The PR changes only pkg/common/morpc/backend.go and pkg/common/morpc/backend_test.go; no test, build, or coverage parsing failure occurred before the prerequisite gate.
Expected Behavior
When a workflow is superseded and required coverage producers are cancelled, the coverage merge job should be cancelled or skipped without adding a failed check to the PR. Genuine producer failures should remain visible as failures.
Steps to Reproduce
- Open a PR that triggers
.github/workflows/entrypoint.yamland its coverage producers. - While the workflow is running, trigger a replacement run for the same PR, for example by changing the PR from Draft to Ready for Review.
- Observe the older run's producer jobs become cancelled.
- Observe
matrixone-coverage-mergestill start because its job condition usesalways(). - Observe
coverage-merge.yamlreceiveprerequisites_ready: falseand fail the prerequisite verification step.
Additional information
Relevant caller logic is .github/workflows/entrypoint.yaml: matrixone-coverage-merge depends on the producer jobs, runs under always(), and computes prerequisites_ready from producer success. The failure is CI orchestration behavior, not a failure in PR #26567's MORPC change.
Activity
gouhongshen commentedon Aug 1, 2026
Additional reproduction from the required one-time rerun:
prerequisites_ready: false/coverage merge skipped because at least one required producer was skipped or failed.This confirms the failure follows workflow supersession/cancellation rather than MORPC execution. Attempt 2 of run 30707381514 is now executing the cancelled/failed jobs once; no PR code change was made.
gouhongshen commentedon Aug 1, 2026
Repeated-failure evidence from run 30707381514 attempt 2:
2(no further rerun performed)prerequisites_ready: falseand failed inVerify coverage prerequisiteswithcoverage merge skipped because at least one required producer was skipped or failed.This is the same workflow-concurrency/prerequisite behavior. No MORPC test or coverage parser ran in the failed job, and PR #26567 was not changed.
gouhongshen commentedon Aug 1, 2026
Draft fix: #26572
The caller now uses
!cancelled()for the coverage merge job. This separates workflow cancellation from ordinary producer failure without changing the reusable merge workflow's prerequisite failure gate.BVT and Go unit tests cannot exercise GitHub Actions' server-side job scheduling. The remaining hosted regression cases are:
main, wait until UT coverage and both BVT producers are running, then send anothersynchronizeorready_for_reviewevent for the same PR and concurrency group.cancelled; its coverage merge job is skipped or cancelled and does not create a failedMatrixone Utils CI / Coveragecheck.failurewhile the workflow itself remains active and the PR validation output istrue.prerequisites_ready: false, and failsVerify coverage prerequisites, preserving the producer failure signal.prerequisites_ready: true, validates the generation artifacts, and reports its normal coverage result.Local validation completed:
actionlint v1.7.12 -verbose .github/workflows/entrypoint.yamlandgit diff --check origin/main...HEADboth exited 0. Becausepull_request_targetloads the workflow from the base branch, this PR's own run cannot validate the changed head-branch condition before deployment.ci: skip coverage merge for cancelled workflows (#26572)
ci: skip coverage merge for cancelled workflows (matrixorigin#26572)
ci: skip coverage merge for cancelled workflows (matrixorigin#26572)
ci: skip coverage merge for cancelled workflows (matrixorigin#26572)