Skip to content

ci: a superseded Tier 2 runtime delta pin installs from the Ubuntu snapshot before its supersession (Fixes #5578) - #5580

Merged
vpacher merged 2 commits into
masterfrom
fix/5578-superseded-pin-snapshot
Nov 25, 2026
Merged

vpacher merged 2 commits into
masterfrom
fix/5578-superseded-pin-snapshot

Conversation

@vpacher

@vpacher vpacher commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

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.2 from the restored apt archive cache and a mirror that had not synced yet (analysis by rdoupe in #5579). That version left resolute-updates at 11:07:08 UTC, so the test container's index no longer listed it.

#5581 (rdoupe, merged) fixed master: it installs the cached .deb of 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 .deb of #5581. If apt still reports E: Version '…' for '…' was not found and no cached .deb of that exact version exists:

  1. missing_pins parses 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's MISSING_PIN).
  2. snapshot_before_supersession asks Launchpad (getPublishedBinaries, exact version) when each pin was superseded on its architecture, and takes the snapshot ID one second before the earliest one.
  3. It installs the same exact pins with 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.

  • RED 0e91d6ec6: tests in ci/test_tier2_runtime_delta.py: snapshot install when there is no cached .deb; the cached .deb is 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 with module 'ci_runtime' has no attribute 'snapshot_before_supersession'.
  • GREEN 6cfddef6e: all 23 tests in ci/test_tier2_runtime_delta.py pass in a Linux container (ghcr.io/astral-sh/uv:python3.14-trixie). On macOS, test_the_mirror_switch_keeps_an_unknown_sources_layout fails on master too (BSD sed), so that failure is unrelated.

Checked by hand

  • In ubuntu:26.04 (amd64) with the Azure mirror, apt-get install pipewire-pulse=1.6.2-1ubuntu1.2 fails as on CI. With --snapshot 20261124T110707Z, pipewire-pulse=1.6.2-1ubuntu1.2 and libc6=2.43-2ubuntu2.7 both resolve.
  • Live Launchpad gives the same ID for the real pin: snapshot_before_supersession([('pipewire-pulse', '1.6.2-1ubuntu1.2', 'amd64')]) → 20261124T110707Z.
  • The prepared image has 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

@obs-rust-ai-rebase

obs-rust-ai-rebase Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

ai-rebase: skipped skipped: worker active

vpacher and others added 2 commits November 25, 2026 13:29
…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
vpacher force-pushed the fix/5578-superseded-pin-snapshot branch from 8fde92a to 6cfddef Compare November 25, 2026 12:30
@github-actions github-actions Bot added the claim-conflict A PR closing reference conflicts with the issue claim label Nov 25, 2026
@github-actions

Copy link
Copy Markdown

Claim conflict: keep this PR out of the merge queue until resolved.

@github-actions github-actions Bot removed the claim-conflict A PR closing reference conflicts with the issue claim label Nov 25, 2026
@vpacher
vpacher added this pull request to the merge queue Nov 25, 2026
Merged via the queue into master with commit 31e49ee Nov 25, 2026
44 of 46 checks passed
@vpacher
vpacher deleted the fix/5578-superseded-pin-snapshot branch November 25, 2026 18:23
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 25, 2026
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 runtime delta fails when Ubuntu supersedes a pinned package (pipewire-pulse 1.6.2-1ubuntu1.2), master red

1 participant