Skip to content

ci: install the cached .deb when a Tier 2 test mirror has superseded a pinned version (Fixes #5579) - #5581

Merged
rdoupe merged 2 commits into
masterfrom
fix/tier2-cached-pin
Nov 24, 2026
Merged

rdoupe merged 2 commits into
masterfrom
fix/tier2-cached-pin

Conversation

@rdoupe

@rdoupe rdoupe commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #5579

What broke

Every Rust Tier 2 Linux test lane fails before any test runs, on master (push run 45405030842, all six test jobs; 45400822340 before it) and on PRs (#5577, run 45403737893):

Runtime delta pin unavailable; refreshing package indexes once
E: Version '1.6.2-1ubuntu1.2' for 'pipewire-pulse' was not found

Ubuntu published pipewire 1.6.2-1ubuntu1.3 to resolute-updates at 11:04 UTC as a phased update, which removes 1.2 from every index. The build job still installed 1.2 from the restored apt archive cache, using an index from a runner mirror that had not synced yet, so runtime-packages.py pinned 1.2. The test container's index has no 1.2, the single refresh (#5249) can't help, and the lane fails.

Fix

The test container mounts that same restored archive cache at /var/cache/apt/archives. When the refresh still misses a pin, ci-runtime.py swaps each missing pin for the single cached .deb of that exact version (<name>_<version, ':' as %3a>_<arch>.deb) and installs again. It never substitutes a newer version, the inventory check against the whole closure still runs afterwards, and a missing pin with no cached .deb of its version fails exactly as before. apt reports the pin without its arch (for 'pipewire-pulse'), so the match is on the bare package name.

Evidence

RED (commit a1edc83, test only; GREEN is fab108b): uv run --no-project -m unittest ci/test_tier2_runtime_delta.py

ERROR: test_a_cached_deb_does_not_stand_in_for_other_failures
ERROR: test_a_lost_pin_without_its_cached_deb_still_fails
ERROR: test_a_pin_the_index_lost_installs_the_cached_deb_of_that_version
Ran 20 tests ... FAILED (errors=3)

GREEN: uv run --no-project -m unittest ci/test_tier2_runtime_delta.py ci/test_tier2_ci_runtime.py ci/test_tier2_runtime_selection.py → Ran 46 tests ... OK.

End to end, with real apt: the Tier 2 base image (ubuntu@sha256:f144425f…) with the prepared image's pipewire 1.2 set installed and pipewire-pulse_1.6.2-1ubuntu1.2_amd64.deb in the mounted archive, driven through install_packages(..., 'prepared', ...):

Runtime selection: prepared plus pipewire-pulse:amd64=1.6.2-1ubuntu1.2
Runtime delta pin unavailable; refreshing package indexes once
Runtime delta pin still unavailable; installing the cached .deb of that exact version: /var/cache/apt/archives/pipewire-pulse_1.6.2-1ubuntu1.2_amd64.deb
pipewire-pulse	1.6.2-1ubuntu1.2

The same container on master's code fails with E: Version '1.6.2-1ubuntu1.2' for 'pipewire-pulse' was not found, as in the CI runs above.

Trust: the cached .deb comes from the job's own restored actions/cache entry, which only master, the seed workflow and the same PR's branch can write, and the test container already runs that PR's code. ./lint passes.

🤖 Generated with Claude Code

rdoupe and others added 2 commits November 24, 2026 08:59
…hed .deb (Refs #5579)

The build read a mirror that still listed pipewire-pulse 1.6.2-1ubuntu1.2
and took the .deb from the restored apt cache; the test container's mirror
lists only the phased 1.3, so the exact pin fails every Tier 2 Linux lane
(master push run 45405030842). The same cache is mounted in the test
container. These cases fail until the delta install falls back to the
cached .deb of the same version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Fixes #5579)

When the one index refresh still misses an exact pin, swap each missing
pin for the single cached .deb of that same version in the archive mount
and install again. Nothing newer is ever substituted, the inventory check
against the whole closure still runs, and a pin with no cached .deb of its
version fails as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ci-Attestation: {"at":1795528880,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":61,"stamp":"d20526e30fc0588e1cf0dbbab8107742","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528880,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":61,"stamp":"5a57edf8e58cbe9784443a4cf5d20bed","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528880,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":61,"stamp":"ec42176e9cd97cf499a4eea7738d7780","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528880,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":61,"stamp":"62ce325b58d0b0b11ad80ad14b7d252f","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"general/all/client-lint","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"a663a3c9a42932b0ca2924852b67d6b4","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528880,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":61,"stamp":"9f9d5013c3ae0e607d20a63613cc4db3","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"6ddbc2a3eb54fd2148fb655d797c90e6","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"11434b72774a1d1b250b1813354f1b6f","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"410209e2980bf07874c25b8ed074ab40","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"66bdce572f4818b4157dc34c2472683f","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"1c550c9925ed4053b824b818c29e4646","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"763ef9ae09bdd0d5088731b2bf871725","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"7a1fb50dfdba94c99d4c2ac1c9de16ab","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"ffd9413c3c78af637ba51813b94933b9","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"e58c7e6258c993347d6161d66a07c632","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"3ce37a82182cd23aa105cbad9893e147","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"ef28f3f3228d36020fa10a55c5ffdf94","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795528818,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"e60cb473528acd42509753409097df5e88026152d314b5fc77359001f46c66b3","lane":"client-lint","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":8,"stamp":"f822bc5f31aafefea5daf17da46bd1e2","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}
Ci-Attestation: {"at":1795529143,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"82fc8d0bfaa50f0ffe2c5560393b5c9c7610b757ef13ab16005b1739fed3bc27","lane":"client-test-x86_64-unknown-linux-gnu","parents":["a1edc83dd14500100dc30f38f11156a94306ae51"],"secs":263,"stamp":"b601bed5cef7139eee96f1abf4296e2b","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"57a4d1610378fb3741253c9a8db4b2c263b0f7bc","coverage":"all-tracked-applicable-files","diff":["ci/test_tier2_runtime_delta.py","rust/tools/linux-validate/ci-runtime.py"],"head":"e018ffec1b206b15ac0955dced6fbc3f63f4c67d","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504-GITv2.15.4\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"340f5472aaf300a0b593d5c59f2ec30cbeca6d51a28024c4beb49e4152eae424","tree":"0abc58f8df99cedfe67521d22b5bd0daaf1baebc"}}
@rdoupe
rdoupe requested a review from zackees as a code owner November 24, 2026 14:05
@rdoupe rdoupe changed the title ci: GREEN: install the cached .deb of a Tier 2 pin the index has lost (Fixes #5579) ci: install the cached .deb when a Tier 2 test mirror has superseded a pinned version (Fixes #5579) Nov 24, 2026
@rdoupe

rdoupe commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

CI is green (run 45410336663). Its build read a mirror that had synced by then and pinned pipewire 1.6.2-1ubuntu1.3, so these lanes didn't need the fallback, and master's next push should recover by itself. The fallback is shown by the unit cases and the real-apt container run in the body; it covers the next phased update that lands between a build and its test lanes.

@rdoupe
rdoupe added this pull request to the merge queue Nov 24, 2026
Merged via the queue into master with commit ca15d92 Nov 24, 2026
45 checks passed
@rdoupe
rdoupe deleted the fix/tier2-cached-pin branch November 24, 2026 14:54
vpacher added a commit that referenced this pull request Nov 25, 2026
…m the snapshot before its supersession (RED, Refs #5578)

Master push run 45400822340 failed every Tier 2 Linux job that installs
the prepared-runtime delta. Ubuntu superseded pipewire-pulse
1.6.2-1ubuntu1.2 in resolute-updates at 11:07:08 UTC, while the build
had resolved it against an index that had not synced yet (#5579). #5581
installs the cached .deb of that version from the restored apt cache.
When the cache has no such .deb, these tests expect the delta to install
the same exact pins with apt-get --snapshot one second before the
earliest Launchpad supersession of the missing pins. The cached .deb is
still tried first, and a failed Launchpad lookup fails with apt's error.

Fails now: ci-runtime.py has no snapshot_before_supersession.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 25, 2026
…s from the Ubuntu snapshot before its supersession (Fixes #5578)

When a pin is still missing after the refresh and #5581 finds no cached
.deb of its exact version (for example, the build fetched it from a
mirror that had not synced yet, and the archive cache was not restored),
install_prepared_delta asks Launchpad when the missing pins were
superseded and installs the same exact pins with apt-get --snapshot one
second before the earliest one. apt checks the snapshot's signed
InRelease; nothing newer is ever substituted. If Launchpad cannot be
reached or has no supersession, the job fails with apt's own error.

Checked by hand in ubuntu:26.04 (amd64) on the Azure mirror: --snapshot
20261124T110707Z (the ID Launchpad gives for the 11-24 supersession)
resolves pipewire-pulse=1.6.2-1ubuntu1.2 and libc6=2.43-2ubuntu2.7.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
zackees pushed a commit to wesleyhawes/obs-studio that referenced this pull request Nov 26, 2026
…apshot before its supersession (Fixes obs-rust#5578) (obs-rust#5580)

* test: a superseded runtime delta pin with no cached .deb installs from the snapshot before its supersession (RED, Refs obs-rust#5578)

Master push run 45400822340 failed every Tier 2 Linux job that installs
the prepared-runtime delta. Ubuntu superseded pipewire-pulse
1.6.2-1ubuntu1.2 in resolute-updates at 11:07:08 UTC, while the build
had resolved it against an index that had not synced yet (obs-rust#5579). obs-rust#5581
installs the cached .deb of that version from the restored apt cache.
When the cache has no such .deb, these tests expect the delta to install
the same exact pins with apt-get --snapshot one second before the
earliest Launchpad supersession of the missing pins. The cached .deb is
still tried first, and a failed Launchpad lookup fails with apt's error.

Fails now: ci-runtime.py has no snapshot_before_supersession.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci: a superseded Tier 2 runtime delta pin with no cached .deb installs from the Ubuntu snapshot before its supersession (Fixes obs-rust#5578)

When a pin is still missing after the refresh and obs-rust#5581 finds no cached
.deb of its exact version (for example, the build fetched it from a
mirror that had not synced yet, and the archive cache was not restored),
install_prepared_delta asks Launchpad when the missing pins were
superseded and installs the same exact pins with apt-get --snapshot one
second before the earliest one. apt checks the snapshot's signed
InRelease; nothing newer is ever substituted. If Launchpad cannot be
reached or has no supersession, the job fails with apt's own error.

Checked by hand in ubuntu:26.04 (amd64) on the Azure mirror: --snapshot
20261124T110707Z (the ID Launchpad gives for the 11-24 supersession)
resolves pipewire-pulse=1.6.2-1ubuntu1.2 and libc6=2.43-2ubuntu2.7.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: Tier 2 Linux test lanes fail when the build pinned a version the test mirror has already superseded (pipewire-pulse 1.6.2-1ubuntu1.2)

1 participant