Skip to content

fix(ci): cancel obsolete PR runs and avoid post-merge main checks - #31934

Merged
XuPeng-SH merged 4 commits into
mainfrom
codex/ci-cancel-closed-pr
Oct 30, 2026
Merged

XuPeng-SH merged 4 commits into
mainfrom
codex/ci-cancel-closed-pr

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Oct 30, 2026 •

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:

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.

@XuPeng-SH
XuPeng-SH requested a review from fengttt as a code owner October 30, 2026 15:03
@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 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · superseded

Commit: 88039d911292da211d76565e151e92c4c9f762c0

"interrupted"

@XuPeng-SH XuPeng-SH changed the title fix(ci): cancel obsolete checks when pull requests close fix(ci): cancel obsolete PR runs and avoid post-merge main checks Oct 30, 2026
@XuPeng-SH

XuPeng-SH commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 4fb8feb490fb3b8c1c08edb930d95c4affadbe1b

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@XuPeng-SH

XuPeng-SH commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 89089a100d562a9842ab1c83bea14b009a1cf652

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@XuPeng-SH
XuPeng-SH merged commit d159489 into main Oct 30, 2026
20 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/ci-cancel-closed-pr branch October 30, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants