Repository navigation
Name the Rust toolchain in each verify-cargo.sh call - #650
Merged
Merged
Conversation
rust-cache lists the toolchains a runner has installed, which does not say which one built. verify-cargo.sh now prints rustc --version and cargo --version on stderr once it accepts its arguments, so a job's log is the evidence that the pinned version ran; stdout stays the cargo output metadata mode hands to ci-plan.py.
yansfil
added a commit
that referenced
this pull request
Oct 6, 2026
Related: #646 (the pin this moves), #650 (prints the toolchain each job runs) ## Summary `rust-toolchain.toml` moves from 1.98.0 to 1.99.0, the stable the runner images carry since 2026-10-06, with the changes 1.99 asks of the code. These are the findings that failed `-D warnings` on every Rust pull request before the toolchain was pinned ([run 37498297429](https://github.com/modakbul-gongbang/hide/actions/runs/37498297429)): - `AtomicUsize::fetch_update` is deprecated in 1.99, renamed `try_update` with the same arguments and result: `herdr-core/src/remote.rs` (the forward-connection cap) and `herdr-core/src/labels/tests.rs` (the fake provider's timeout budget). - Clippy's `needless_borrows_for_generic_args`: `herdr-core/src/changes.rs` passed `&relative` to `Option::and_then`; the closure borrows only `request`, so it is `Copy`, and passing it by value leaves the later call working. No finding is silenced with `allow`. ## Review - **조심해서 볼 파일**: `herdr-core/src/remote.rs` - the cap on concurrent forwarded connections; `try_update` is the same compare-and-swap loop under a new name. ## Evidence - **확인한 것**: [verify run 37507575187](https://github.com/modakbul-gongbang/hide/actions/runs/37507575187), full plan, 17 jobs pass, Clippy `-D warnings` over the whole workspace included. Every job that built Rust (Linux, Windows MSVC, macOS) had 1.99.0 installed beside the image's 1.98.1; only this file installs 1.99.0, and rustup installs a toolchain only when a call resolves to it. This run does not print the toolchain that ran; with #650 merged, a rerun's log names it on every `verify-cargo.sh` call. - **확인한 것**: `test_rust_toolchain_pin.py` writes its whole-token probe inside its own temporary folder; 4 tests pass locally with this pin. - **확인한 것**: rustfmt (1.98.0) accepts the three changed files. - **확인하지 못한 것**: nothing was built, linted or tested locally on 1.99.0: it is not installed on the workstation, and installing it would add a second toolchain copy for every session there. Clippy and the tests on 1.99.0 in this pull request's CI are the proof.
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.
Related: #646 (the pin whose use this makes visible)
Summary
#646's evidence that every CI job built with the pinned Rust was indirect:
rust-cacheprints the toolchains a runner has installed, and the pinned one appearing there next to the image's own does not say which one ran.scripts/verify-cargo.sh, the only Rust entrypoint every workflow calls, now printsrustc --versionandcargo --versiononce it has accepted its arguments and before it runs cargo, so each job's log names the toolchain that built.verify-cargo.sh metadatahands its stdout toscripts/ci-plan.pyas JSON.test_invalid_cargo_mode_or_artifact_redirection_never_calls_cargorequires.docs/BUILD.md, "One toolchain version", says where to read it.Review
scripts/verify-cargo.sh- every Rust job and the PRD harness's sealedtestandlintcommands go through it; the added calls write only to stderr and change no argument cargo receives.Evidence
test_the_toolchain_is_named_on_stderr_before_cargo_runs(fakerustcandcargo): the calls arerustc --version,cargo --version, thencargo metadata, the two version lines open stderr, stdout has neither. Againstmain's script it fails with[['cargo', 'metadata', ...]] != [['rustc', '--version'], ...].verify-cargo.sh metadata --format-version 1 --no-depsin this checkout: stdout parses as JSON (11 packages), stderr opens withrustc 1.98.0andcargo 1.98.0.verify-cargo.shcall in the nine jobs that build Rust printedrustc 1.98.0andcargo 1.98.0(windows check14 calls,os contract3 on each of Linux, Windows and macOS,rust workspaceandremote mailbox2,desktop e2e,build hided linuxandwindows e2e1), andplanstill read the crate graph frommetadata.package.yml,release.ymlandherdr-update.ymldid not run here; they call the same script.