Repository navigation
LWLP-4934: Upgrade builder Rust toolchain from 1.98.1 to 1.100.1 - #168
Jonathan Gangi (JAVGan) wants to merge 5 commits into
Conversation
|
/retest python-builder-cli-on-pull-request |
Moves the builder's bundled Rust to the current stable release so crates that pin a recent toolchain via rust-toolchain.toml (e.g. uv main pins 1.100.0) resolve to an already-installed toolchain instead of making rustup install one at build time. The group-writable RUSTUP_HOME paths added in #140 are intentionally left in place; whether to remove them is a separate decision. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
…bump alone) Temporarily reverts 2355ba9 (#140) on top of the Rust 1.100.1 bump so the branch image can be used to check, end to end, whether the Rust upgrade alone avoids the rustup permission failure. This is a separate commit so it can be dropped from the PR if the workaround should stay. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
c522b26 to
ade341b
Compare
…e merge) Points Containerfile.cli at the PR base image built from ade341b (Rust 1.100.1, RUSTUP_HOME workaround reverted) so the CLI image carries the new toolchain for an end-to-end PipelineRun. Not for merge. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
E2E result: the Rust bump alone does not fix LWLP-4934Tracked in LWLP-4934. This PR carries two test-only commits that must not be merged: Test: built the base and CLI images from this branch, then ran a SCRATCH PipelineRun in
Result: failed in
A first run with the wheel server enabled passed, but only because every dependency, including Consequence: the upgrade is fine to keep as hygiene, but it does not replace the #140 workaround. Details and caveats are in the Jira ticket. |
…of Rust bump alone)" This reverts commit ade341b.
…p before merge) Base now has Rust 1.100.1 and the RUSTUP_HOME workaround restored, to test whether rustup can install a crate-pinned toolchain under netguard. Not for merge. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
|
Closing: the Rust upgrade alone does not fix LWLP-4934 (rustup honours an exact toolchain pin, and a runtime install cannot download under netguard). The fix is being taken forward in #174 (pin the cargo/rustc wrappers to the image toolchain). The branch is kept in case the Rust bump is wanted separately. |
Jira: LWLP-4934
Summary
Bumps
RUST_VERSIONin thebuild_ruststage of theContainerfilefrom 1.98.1 to 1.100.1 (current stable, released 2026-11-27). One-line change;RUSTUP_VERSIONand the per-arch rustup-init hashes are unaffected.Per the discussion on LWLP-4934, the long-term answer to crate-pinned toolchains is keeping the builder's Rust current rather than relying on runtime toolchain installs.
What this does NOT do
RUSTUP_HOMEpaths from build-rust: make rustup's install paths group-writable for crate-pinned toolchains #140 (build-rust.sh) are intentionally left in place. Whether to remove them is a separate decision.uv_build0.11.33 pins 1.97.1, and rustup honours arust-toolchain.tomlpin as an exact version, so 1.97.1 is still not installed even though the image's Rust is newer. This bump only helps crates whose pin matches the image: for example uv main pins 1.100.0, which 1.100.1 does not match exactly either, so a pin-matching toolchain would still need installing or a version choice that aligns with upstream.Verification
rustc-1.100.1-x86_64-unknown-linux-gnuexists on static.rust-lang.org (dist 2026-11-27).rustc --version/cargo --version(covered bytests/check_runtime.py) and confirmrustup toolchain listshows 1.100.1 as default.🤖 Generated with Claude Code