From eb34446ffdf198f90acd19f3b77dc59fa6cc3822 Mon Sep 17 00:00:00 2001 From: Jonathan Gangi Date: Tue, 1 Dec 2026 15:12:18 -0300 Subject: [PATCH 1/5] LWLP-4934: Upgrade builder Rust toolchain from 1.98.1 to 1.100.1 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 Signed-off-by: Jonathan Gangi --- Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index f5a2cfc..4b59bae 100644 --- a/Containerfile +++ b/Containerfile @@ -216,7 +216,7 @@ COPY build_scripts/build-rust.sh /opt/_internal/build_scripts/ # version is pinned in the URL. Per-arch rustup-init sha256 digests live in # build-rust.sh (matched to this RUSTUP_VERSION). RUN --mount=type=bind,from=static_clang,target=/tmp/cross-compiler,ro \ - export RUST_VERSION=1.98.1 && \ + export RUST_VERSION=1.100.1 && \ export RUSTUP_VERSION=1.29.1 && \ export RUSTUP_DOWNLOAD_URL=https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION} && \ /tmp/cross-compiler/entrypoint /opt/_internal/build_scripts/build-rust.sh From ade341ba5a0f6215685e069a5ea8185340785437 Mon Sep 17 00:00:00 2001 From: Jonathan Gangi Date: Tue, 1 Dec 2026 16:39:38 -0300 Subject: [PATCH 2/5] LWLP-4934: Revert group-writable RUSTUP_HOME paths (e2e test of Rust 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 Signed-off-by: Jonathan Gangi --- build_scripts/build-rust.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/build_scripts/build-rust.sh b/build_scripts/build-rust.sh index 4e2b350..835e48e 100755 --- a/build_scripts/build-rust.sh +++ b/build_scripts/build-rust.sh @@ -74,16 +74,6 @@ cp -r "${RUSTUP_HOME}" /manylinux-rootfs"${PREFIX}"/ mkdir -p /manylinux-rootfs"${PREFIX}"/cargo/{registry,git} chmod -R g+w /manylinux-rootfs"${PREFIX}"/cargo/{registry,git}/ -# A crate can pin a different toolchain via rust-toolchain.toml, which makes -# rustup install it at build time. That writes to tmp, downloads, toolchains and -# update-hashes, and updates settings.toml. Not recursive: toolchains/ only needs -# to be writable so a new toolchain directory can be created, and -R here would -# make already-installed toolchain binaries writable too. -mkdir -p /manylinux-rootfs"${PREFIX}"/rustup/{tmp,downloads,toolchains,update-hashes} -chmod g+w /manylinux-rootfs"${PREFIX}"/rustup \ - /manylinux-rootfs"${PREFIX}"/rustup/{tmp,downloads,toolchains,update-hashes} -chmod g+w /manylinux-rootfs"${PREFIX}"/rustup/settings.toml - # Create wrapper scripts that set environment variables mkdir -p /manylinux-rootfs/usr/local/bin cat > /manylinux-rootfs/usr/local/bin/rustc < Date: Wed, 2 Dec 2026 19:19:15 -0300 Subject: [PATCH 3/5] TEST ONLY LWLP-4934: Build CLI image on the PR base image (drop before 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 Signed-off-by: Jonathan Gangi --- Containerfile.cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containerfile.cli b/Containerfile.cli index b563280..7374f53 100644 --- a/Containerfile.cli +++ b/Containerfile.cli @@ -1,4 +1,4 @@ -ARG BUILDER_IMAGE=quay.io/light-factory/python-builder:latest@sha256:f3dad8bef2ba0af575cd30c153c342f0e5ae4b6aeec92856d0b5e3a19172963f +ARG BUILDER_IMAGE=quay.io/redhat-user-workloads/lightwell-catalog-tenant/python-builder/python-builder:on-pr-ade341ba5a0f6215685e069a5ea8185340785437@sha256:c2b9ab14189884517f307e006dd7b2cd64096aa05df45dda7d121f3e31d6a776 FROM quay.io/konflux-ci/oras:latest@sha256:1beeecce012c99794568f74265c065839f9703d28306a8430b667f639343a98b AS oras-bin FROM ghcr.io/sigstore/cosign/cosign:v3.1.4@sha256:0f06154836d2de34f887a5c273506d52ca43edaa1d9e53e6510fa78a48f69c2d AS cosign-bin From 27ac967884d891a135b1e966db34b10818f4a54f Mon Sep 17 00:00:00 2001 From: Jonathan Gangi Date: Thu, 3 Dec 2026 15:23:45 -0300 Subject: [PATCH 4/5] Revert "LWLP-4934: Revert group-writable RUSTUP_HOME paths (e2e test of Rust bump alone)" This reverts commit ade341ba5a0f6215685e069a5ea8185340785437. --- build_scripts/build-rust.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build_scripts/build-rust.sh b/build_scripts/build-rust.sh index 835e48e..4e2b350 100755 --- a/build_scripts/build-rust.sh +++ b/build_scripts/build-rust.sh @@ -74,6 +74,16 @@ cp -r "${RUSTUP_HOME}" /manylinux-rootfs"${PREFIX}"/ mkdir -p /manylinux-rootfs"${PREFIX}"/cargo/{registry,git} chmod -R g+w /manylinux-rootfs"${PREFIX}"/cargo/{registry,git}/ +# A crate can pin a different toolchain via rust-toolchain.toml, which makes +# rustup install it at build time. That writes to tmp, downloads, toolchains and +# update-hashes, and updates settings.toml. Not recursive: toolchains/ only needs +# to be writable so a new toolchain directory can be created, and -R here would +# make already-installed toolchain binaries writable too. +mkdir -p /manylinux-rootfs"${PREFIX}"/rustup/{tmp,downloads,toolchains,update-hashes} +chmod g+w /manylinux-rootfs"${PREFIX}"/rustup \ + /manylinux-rootfs"${PREFIX}"/rustup/{tmp,downloads,toolchains,update-hashes} +chmod g+w /manylinux-rootfs"${PREFIX}"/rustup/settings.toml + # Create wrapper scripts that set environment variables mkdir -p /manylinux-rootfs/usr/local/bin cat > /manylinux-rootfs/usr/local/bin/rustc < Date: Thu, 3 Dec 2026 17:30:44 -0300 Subject: [PATCH 5/5] TEST ONLY LWLP-4934: Re-pin CLI image to base built from 27ac967 (drop 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 Signed-off-by: Jonathan Gangi --- Containerfile.cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containerfile.cli b/Containerfile.cli index 7374f53..ce545ac 100644 --- a/Containerfile.cli +++ b/Containerfile.cli @@ -1,4 +1,4 @@ -ARG BUILDER_IMAGE=quay.io/redhat-user-workloads/lightwell-catalog-tenant/python-builder/python-builder:on-pr-ade341ba5a0f6215685e069a5ea8185340785437@sha256:c2b9ab14189884517f307e006dd7b2cd64096aa05df45dda7d121f3e31d6a776 +ARG BUILDER_IMAGE=quay.io/redhat-user-workloads/lightwell-catalog-tenant/python-builder/python-builder:on-pr-27ac967884d891a135b1e966db34b10818f4a54f@sha256:b4fc8dc44c3f2dcbb8069fe1ff0d5fcbe3307d82fe672f580caa83764bf69c05 FROM quay.io/konflux-ci/oras:latest@sha256:1beeecce012c99794568f74265c065839f9703d28306a8430b667f639343a98b AS oras-bin FROM ghcr.io/sigstore/cosign/cosign:v3.1.4@sha256:0f06154836d2de34f887a5c273506d52ca43edaa1d9e53e6510fa78a48f69c2d AS cosign-bin