Repository navigation
test(scripts): fail when rust-toolchain.toml and the pkgs rust drift - #3642
Draft
norrietaylor wants to merge 2 commits into
Draft
norrietaylor wants to merge 2 commits into
norrietaylor wants to merge 2 commits into
Conversation
Sessions and tasks have no rustup: their rustc is the rust package of the pkgs [upstream] at .minimal/minimal.toml's locked_commit, while CI builds with the toolchain rust-toolchain.toml pins. When the two drift, clippy in the sandbox reports lints CI cannot reproduce. check-rust-pin.sh fetches packages/rust/build.ncl at the locked commit and compares its version with the toolchain channel. Its harness, check-rust-pin_test.sh, covers the cases against file:// fixtures and then checks this tree, so the workspace suite runs it through crates/common/tests/shell_harnesses.rs with no workflow change.
…kgs is unreachable
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remaining work from gominimal/agent-runtime#419.
Sessions and tasks, including the agent runtime's verify box, have no rustup. Their rustc is the
rustpackage of the pkgs[upstream]at.minimal/minimal.toml'slocked_commit, while CI uses the toolchainrust-toolchain.tomlpins. When the two drift, clippy in the sandbox reports lints CI cannot reproduce. The decision on #419 was to keep the no-rustup image, align the pins, and add a drift check.Alignment: already done in #3250.
rust-toolchain.tomlpins 1.99.1, and pkgs@981dbe7a builds rust 1.99.1..minimal/minimal.tomlis unchanged here.Drift check:
scripts/check-rust-pin.shfetchespackages/rust/build.nclat the locked commit and compares its version with the toolchain channel.scripts/check-rust-pin_test.shtests it offline againstfile://fixtures, then checks this tree. The workspace suite runs it throughcrates/common/tests/shell_harnesses.rs, so no workflow changes.The live case needs raw.githubusercontent.com. It fails on a fetch error only on GitHub Actions (
GITHUB_ACTIONSset); anywhere else, such as a sandbox with no network, it skips.Evidence: passes on this tree (5 passed). Fails on a copy with the channel set to 1.97.0. Fails on the pre-#3250
locked_commit(pkgs rust 1.99.0 vs pinned 1.99.1).shellcheckclean.