Stop asserting shared-action SHAs in the Polonius contract test - #541
Stop asserting shared-action SHAs in the Polonius contract test#541leynos wants to merge 2 commits into
Conversation
Commit 525a0b6 bumped every workflow's shared-actions pin for the MSI pre-release fix but left the Polonius contract test expecting the old 2f90d10 SHA, so the test suite fails on main and on every branch rebased onto it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdate Polonius contract tests to expect the new shared-actions GitHub SHA so they match the workflow pins and stop failing. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Summary
WalkthroughUpdate the pinned commit for the shared ChangesShared Rust action pins
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 20✅ Passed checks (20 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
The contract test asserted each workflow's shared-action reference down to the pinned revision. Dependabot owns those pins and cannot update tests, so every routine bump broke main — 525a0b6 moving the pins to 8add2d9 while the test expected 2f90d10 being the live case. Match the action path alone and keep everything the test genuinely guards: the rustflags values, the env.RUSTFLAGS prohibition, and the toolchain-pinning policy. A revision lacking the rustflags input still fails the same run as a borrow-check error. Rewrite the guide's Dependabot section to make shape-only the rule with no exception. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Superseded by #540, which requires all shared-action SHAs to agree rather than dropping the assertion — a stronger contract that Dependabot bumps still satisfy. |
The Polonius contract test asserted each workflow's shared-action reference by path and pinned revision. Those revisions are owned by Dependabot, which bumps workflow pins but cannot update tests, so every routine bump breaks main — exactly what happened when 525a0b6 moved the pins to
8add2d9and the test kept expecting2f90d10.The action references are now matched by path alone (
SETUP_RUST_ACTIONandRUST_BUILD_RELEASE_ACTIONend at the@). Everything the test genuinely guards is unchanged: thewith.rustflagsvalues, the absence ofenv.RUSTFLAGSoverrides, and theNETSUKE_RUST_TOOLCHAINpinning policy. A revision that lost therustflagsinput would still surface as a Polonius borrow-check failure in the same run. The developers guide's "Workflow pins and Dependabot" section is rewritten to make shape-only the universal rule with no exception.All 21 contract tests pass locally.
🤖 Generated with Claude Code