8000 test(scripts): fail when rust-toolchain.toml and the pkgs rust drift by norrietaylor · Pull Request #3642 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

test(scripts): fail when rust-toolchain.toml and the pkgs rust drift - #3642

Draft
norrietaylor wants to merge 2 commits into
mainfrom
fix/rust-pin-drift-check
Draft

norrietaylor wants to merge 2 commits into
mainfrom
fix/rust-pin-drift-check

Conversation

@norrietaylor
Copy link
Copy Markdown
Member

Remaining work from gominimal/agent-runtime#419.

Sessions and tasks, including the agent runtime's verify box, have no rustup. Their rustc is the rust package of the pkgs [upstream] at .minimal/minimal.toml's locked_commit, while CI uses the toolchain rust-toolchain.toml pins. 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.toml pins 1.99.1, and pkgs@981dbe7a builds rust 1.99.1. .minimal/minimal.toml is unchanged here.

Drift check: scripts/check-rust-pin.sh fetches packages/rust/build.ncl at the locked commit and compares its version with the toolchain channel. scripts/check-rust-pin_test.sh tests it offline against file:// fixtures, then checks this tree. The workspace suite runs it through crates/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_ACTIONS set); 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). shellcheck clean.

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.
@coderabbitai
coderabbitai Bot commented Nov 19, 2026
Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0