From 32ec78c79e69949a7245f4829ba76cd47c298f6b Mon Sep 17 00:00:00 2001 From: Tianyi Cui <53024+tianyicui@users.noreply.github.com> Date: Sat, 19 Sep 2026 11:39:05 +0800 Subject: [PATCH] fix(ci): pin a compatible bubblewrap 0.12.0 build Ubuntu removed the superseded 0.9.0-1ubuntu0.1 payload from its live archive pool, so the shared Linux CI preparation step fails with HTTP 404 before tests start. Address Ubuntu's recorded Launchpad build so future pool pruning does not invalidate the pinned download location. Select upstream's 0.12.0 security release for CVE-2026-87766 instead of Ubuntu's isolated 0.9.0 backport, whose regressions and support limits are documented by upstream in Launchpad bug 2166359. Keep checksum verification, direct extraction, and the existing namespace probe. Verify build 33546835 against its published SHA256 and archive SHA512. Its amd64 ELF requires at most GLIBC_2.38 and x86-64 baseline; its packaging requires Linux 5.10. Ubuntu 24.04 provides glibc 2.39, Linux 6.8, and the required libcap2/libselinux1 versions. This changes only the CI helper's pinned payload, not product sandbox configuration. --- scripts/prepare-ci-bubblewrap.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/prepare-ci-bubblewrap.sh b/scripts/prepare-ci-bubblewrap.sh index 1efaee200a..5b19d8ad6f 100755 --- a/scripts/prepare-ci-bubblewrap.sh +++ b/scripts/prepare-ci-bubblewrap.sh @@ -4,9 +4,11 @@ set -euo pipefail # Ubuntu's package transaction scans the hosted image's full dpkg database and # runs post-install hooks. CI needs only the signed-archive payload, so pin and # verify that payload before extracting it into the ephemeral runner directory. -readonly BUBBLEWRAP_VERSION='0.9.0-1ubuntu0.1' -readonly BUBBLEWRAP_SHA256='1b506492bd9c7fd0cdb4f02ac822f1d3e336b0aead5113c1239baf8db5db562a' -readonly BUBBLEWRAP_URL="https://archive.ubuntu.com/ubuntu/pool/main/b/bubblewrap/bubblewrap_${BUBBLEWRAP_VERSION}_amd64.deb" +# This amd64 build needs glibc 2.38+ and Linux 5.10+; Ubuntu 24.04 satisfies both. +readonly BUBBLEWRAP_VERSION='0.12.0-1' +readonly BUBBLEWRAP_SHA256='db4d572a7927bfd34cc9b8e24b56983efa8e0483d03da6c810f6caae081dcc36' +# The recorded build remains addressable after Ubuntu prunes its live package pool. +readonly BUBBLEWRAP_URL="https://launchpad.net/ubuntu/+source/bubblewrap/${BUBBLEWRAP_VERSION}/+build/33546835/+files/bubblewrap_${BUBBLEWRAP_VERSION}_amd64.deb" : "${RUNNER_TEMP:?prepare-ci-bubblewrap requires RUNNER_TEMP}" : "${GITHUB_PATH:?prepare-ci-bubblewrap requires GITHUB_PATH}"