Repository navigation
fix(ci): cancel obsolete PR runs and avoid post-merge main checks - #31934
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? |
|
mo-bot review · Commit: "interrupted" |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 4fb8feb490fb3b8c1c08edb930d95c4affadbe1b
Assessment: request_changes
The trigger changes leave stale native-contract assertions that deterministically fail CI. No additional actionable defect was found.
Model: gpt-6-astra / xhigh
Session: 01a1869d-999c-7481-b340-ae4a63e8cee4 · slot 1 · generation 2
- P2
.github/workflows/native-dependency-check.yml:22: Removing the push block reduces four path-filter entries from two occurrences to one, but mo-native-build-contract-test still requires two at lines 340–341 and 452–457.
Impact: The native-contract jobs invoke this script and fail even when native build behavior is correct. Update the existing assertions to validate the retained pull_request filters and intended absence of push.
Evidence: The owner script reproduced exactly two failures, exit 1: native-contract.log and checks/1793373344295306133-2.json. Base/head comparison confirms counts changed from 2 to 1 while the script remained unchanged.
Validation:
-
All 44 Node helper tests passed; node-tests.log and checks/1793373344190260877-2.json.
-
Native contract script reproduced the reported defect; native-contract.log and checks/1793373344295306133-2.json.
-
JavaScript syntax, diff checks, frozen-source identity and discussion coverage passed; review-audit.log and checks/1793373487727090969-2.json.
-
Review plan, discussion assessment and validation evidence retained; source unchanged.
Limitations:
-
Hosted close/merge events and external reusable workflows were not exercised.
-
Actionlint success is author-reported, not independently reproduced.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 89089a100d562a9842ab1c83bea14b009a1cf652
Assessment: approve
The prior native-contract finding is resolved. Review of the complete delta, consumers, discussion and installer/cache changes found no remaining actionable defects.
Model: gpt-6-astra / xhigh
Session: 01a1869d-999c-7481-b340-ae4a63e8cee4 · slot 1 · generation 2
Validation:
-
All 45 helper tests passed without skips; native contract script passed.
-
Pinned Linux/amd64 linter archive passed SHA256 verification; its binary passed a clean fixture and detected the unchecked-error control.
-
Frozen CI reports successful Linux/macOS native-contract and downloader checks.
-
Source identity, syntax, whitespace, discussion coverage and command/exit/log reconciliation passed. Evidence is retained in validation-evidence.json; source remains unchanged.
Limitations:
-
Hosted cancellation and cache-hit behavior were not exercised locally.
-
Real-binary execution covered Linux/amd64 only; full cold tool installation and project lint were not run.
-
Broader CI remained pending in the supplied snapshot.
What type of PR is this?
Which issue(s) this PR fixes:
Refs #29249
What this PR does / why we need it:
Cancel obsolete ALL CI runs when a PR closes, using the existing controller and two minutes of cleanup grace before force cancellation. Revalidate PR closure and run attempts; protect reopened PRs, post-close reruns, other forks and branches still needed by another open PR.
Avoid repeating tests after merges to main: retain pre-merge checks and release-branch check-in regression, with daily/manual SCA and Maven warming. The lightweight close-event cancellation controller still releases stale work. Align native-contract assertions with the retained PR path filters.
Reduce cold SCA setup by installing pinned, SHA256-verified golangci-lint 2.14.0 release binaries on supported Go 1.27 hosts through the existing downloader. Bound the download to 60 seconds and retain source fallback. Publish the tool cache before native/analysis work can fail. Other tool versions and source installation remain pinned.
Validation: 45 Node helper tests, native build contracts, 16 GPU/toolchain tests, downloader failure/atomicity tests, actionlint for eight workflows, syntax and diff checks pass. Real Linux/macOS arm64 release binaries were verified and executed; the macOS binary passed a focused project lint check. Full local tool installation remains blocked by existing molint revision resolution and Go-proxy TLS errors. Hosted close/merge behavior, cache hits and total CI setup time await validation after merge.