Repository navigation
fix(ci): align fleet-rust-tests contract with main-only CI policy (#9531) - #9543
Conversation
) The contract checker still required a pull_request trigger that the main-only CI policy (2026-11-13) removed, and ci-policy.md had no tier row for fleet-rust-tests, so the contract step failed on main (run 43392267205). The checker now requires push + workflow_dispatch and forbids PR triggers; its tests gain pr-trigger and no-push mutations. ci-policy.md gains the fleet-rust-tests agreement-registry row (main push, path gated). Also fixes a third leg of the same contract found on current origin/main: pkgs/fleet/rust-toolchain.toml pins 1.99.1 while the workflow installed and tested with 1.99.0; the workflow now uses the pinned 1.99.1.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 57 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Fixes #9531.
Problem
Main run 43392267205 failed the
Contract — wiring matches registry, policy, and toolchain pin (#8941)step ofbasic: fleet Rust workspace testswith:fleet-rust-tests contract: workflow does not declare the pull_request triggerci-policy.md names no tier row for fleet-rust-testsThe main-only CI policy (.github/ci-policy.md, owner ruling 2026-11-13) removed PR triggers; the #8941 contract checker still required one, and the policy's agreement registry had no fleet-rust-tests row. Per #9531, the fix aligns the checker and the policy row with the main-only policy — no PR trigger is re-added.
Changes
.github/scripts/check-fleet-rust-tests.sh: trigger leg now requirespush+workflow_dispatchand fails ifpull_request/pull_request_target/merge_groupis declared; header contract updated to match..github/scripts/check-fleet-rust-tests.test.sh: two new mutations — a workflow with apull_requesttrigger fails, and a workflow without thepushtrigger fails..github/ci-policy.md: agreement-registry row| fleet-rust-tests | main push, path gated | yes |..github/workflows/fleet-rust-tests.yml: stale concurrency comment updated (no PR runs exist under the main-only policy).Third leg found during verification (same contract, current origin/main)
On current origin/main the contract step had a third disagreement not present at run 43392267205's head:
pkgs/fleet/rust-toolchain.tomlpins channel 1.99.1 while the workflow installed and tested with 1.99.0. The workflow now installs and tests with the pinned 1.99.1 (the pin stays the source of truth). Recorded on #9531.Verification (on this branch, laptop)
bash .github/scripts/check-fleet-rust-tests.sh→fleet-rust-tests contract: OKbash .github/scripts/check-fleet-rust-tests.test.sh→ all 7 cases ok,check-fleet-rust-tests.test: OKbash .github/scripts/check-ci-policy-agreement.sh→ci-policy-agreement: OKQueue task 16074, lane code-b.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.