Skip to content

LWLP-4934: Upgrade builder Rust toolchain from 1.98.1 to 1.100.1 - #168

Closed
Jonathan Gangi (JAVGan) wants to merge 5 commits into
mainfrom
fix/LWLP-4934-upgrade-builder-rust
Closed

Jonathan Gangi (JAVGan) wants to merge 5 commits into
mainfrom
fix/LWLP-4934-upgrade-builder-rust

Conversation

@JAVGan

@JAVGan Jonathan Gangi (JAVGan) commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Jira: LWLP-4934

Summary

Bumps RUST_VERSION in the build_rust stage of the Containerfile from 1.98.1 to 1.100.1 (current stable, released 2026-11-27). One-line change; RUSTUP_VERSION and 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

Verification

  • Confirmed rustc-1.100.1-x86_64-unknown-linux-gnu exists on static.rust-lang.org (dist 2026-11-27).
  • Not yet built. Suggested check: build the image, then run rustc --version / cargo --version (covered by tests/check_runtime.py) and confirm rustup toolchain list shows 1.100.1 as default.

🤖 Generated with Claude Code

@JAVGan

Copy link
Copy Markdown
Member Author

/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>
@JAVGan
Jonathan Gangi (JAVGan) force-pushed the fix/LWLP-4934-upgrade-builder-rust branch from c522b26 to ade341b Compare December 2, 2026 20:33
…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>
@JAVGan

Copy link
Copy Markdown
Member Author

E2E result: the Rust bump alone does not fix LWLP-4934

Tracked in LWLP-4934.

This PR carries two test-only commits that must not be merged: ade341b (reverts the #140 RUSTUP_HOME chmod block) and 9e987c8 (pins Containerfile.cli to the PR base image).

Test: built the base and CLI images from this branch, then ran a SCRATCH PipelineRun in lightwell-python-tenant for python-socketio==5.16.2 with the wheel server disabled so uv_build is built from source.

  • CLI image: python-builder-cli@sha256:938f52c55d08cb8e293aba78b9f0f185fc92c1f2a3f28b4ac9e608f158c6017e
  • Run: python-build-nv974

Result: failed in fromager-build-wheels building uv_build 0.11.33 with the original error, now naming the new Rust path:

info: syncing channel updates for 1.97.1-x86_64-unknown-linux-gnu
error: could not create temp file /opt/_internal/rust-1.100.1/rustup/tmp/...: Permission denied (os error 13)

uv_build pins 1.97.1 (older than the image's 1.100.1), and rustup treats a rust-toolchain.toml pin as exact, so it still tries to install it and still needs a writable RUSTUP_HOME. maturin built from source on 1.100.1 without problems.

A first run with the wheel server enabled passed, but only because every dependency, including uv_build, came pre-built from the validated index, so the Rust path never ran.

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.

…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>
@JAVGan
Jonathan Gangi (JAVGan) marked this pull request as draft December 3, 2026 21:06
@JAVGan

Copy link
Copy Markdown
Member Author

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.

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