Repository navigation
ci: a superseded Tier 2 runtime delta pin installs from the Ubuntu snapshot before its supersession (Fixes #5578) - #5580
Merged
Conversation
|
ai-rebase: skipped skipped: worker active |
…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]>
…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]>
vpacher
force-pushed
the
fix/5578-superseded-pin-snapshot
branch
from
November 25, 2026 12:30
8fde92a to
6cfddef
Compare
|
Claim conflict: keep this PR out of the merge queue until resolved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5578
On 11-24 every Rust Tier 2 Linux job that installs the prepared-runtime delta failed (master push run 45400822340, PR run 45288247556). The build pinned
pipewire-pulse=1.6.2-1ubuntu1.2from the restored apt archive cache and a mirror that had not synced yet (analysis by rdoupe in #5579). That version leftresolute-updatesat 11:07:08 UTC, so the test container's index no longer listed it.#5581 (rdoupe, merged) fixed master: it installs the cached
.debof the same version from the archive mount. This PR adds a second fallback for when the cache has no such.deb, for example when the build fetched the package fresh from a mirror that had not synced yet and the archive cache was not restored.Change
install_prepared_delta(rust/tools/linux-validate/ci-runtime.py) keeps its order: update, install, refresh once, install, then the cached.debof #5581. If apt still reportsE: Version '…' for '…' was not foundand no cached.debof that exact version exists:missing_pinsparses the missing pins from the apt output (it reuses ci: install the cached .deb when a Tier 2 test mirror has superseded a pinned version (Fixes #5579) #5581'sMISSING_PIN).snapshot_before_supersessionasks Launchpad (getPublishedBinaries, exact version) when each pin was superseded on its architecture, and takes the snapshot ID one second before the earliest one.apt-get --snapshot <ID>.At that ID every pin was published: the build resolved each pin against an index that still listed it, and the missing ones had not been replaced yet. apt checks the snapshot's signed
InRelease. No newer version is ever substituted.If Launchpad cannot be reached or has no supersession for a pin, the job fails with apt's own error, as before. Any other failure behaves as before, and so does a pin that is missing from the snapshot too.
RED → GREEN
Rebased onto master after #5581 and #5614; the two commits were re-applied by hand on top of #5581.
0e91d6ec6: tests inci/test_tier2_runtime_delta.py: snapshot install when there is no cached.deb; the cached.debis still tried first (no Launchpad lookup); a failed or empty Launchpad lookup fails with the apt output; the snapshot ID from a Launchpad reply; a pin that was never superseded. They fail withmodule 'ci_runtime' has no attribute 'snapshot_before_supersession'.6cfddef6e: all 23 tests inci/test_tier2_runtime_delta.pypass in a Linux container (ghcr.io/astral-sh/uv:python3.14-trixie). On macOS,test_the_mirror_switch_keeps_an_unknown_sources_layoutfails on master too (BSDsed), so that failure is unrelated.Checked by hand
ubuntu:26.04(amd64) with the Azure mirror,apt-get install pipewire-pulse=1.6.2-1ubuntu1.2fails as on CI. With--snapshot 20261124T110707Z,pipewire-pulse=1.6.2-1ubuntu1.2andlibc6=2.43-2ubuntu2.7both resolve.snapshot_before_supersession([('pipewire-pulse', '1.6.2-1ubuntu1.2', 'amd64')])→20261124T110707Z.ca-certificates, which the HTTPS snapshot server needs.CI-only change; no features-ledger line. Master is green again, so this PR's own Tier 2 jobs no longer reach the new path; the unit tests and the hand check above cover it.
🤖 Generated with Claude Code