Skip to content

ci: a timed-out Tier 2 runtime delta install retries once after dpkg recovery - #5508

Merged
vpacher merged 2 commits into
masterfrom
fix/5504-ci-runtime-apt
Nov 23, 2026
Merged

vpacher merged 2 commits into
masterfrom
fix/5504-ci-runtime-apt

Conversation

@vpacher

@vpacher vpacher commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Problem

PR 2 of 2 for #5504. With the same slow archive.ubuntu.com, the Tier 2 tests job then failed in ci-runtime.py: the prepared-runtime delta install stopped at its 180 s bound and the job failed at once (run 45113911635, attempt 4, #5142: RuntimeError: Runtime delta apt failed (exit 124)). #5249 bounded these commands to avoid long waits in an archive outage, and lets only an unavailable pin retry.

Change

install_prepared_delta in rust/tools/linux-validate/ci-runtime.py:

  • An install that the bound stops (exit 124, or 137 after the kill) runs dpkg --configure -a (same bound) and is retried once. A timeout in the unpack leaves dpkg interrupted, which would fail the retry. The .deb files that the first attempt downloaded stay in the archive mount, so the retry goes on from there.
  • A failed recovery is printed and the retry still runs.
  • An update timeout and every other error still fail at once, as ci: bound prepared-runtime apt and refresh missing pins once (Refs #5237) #5249 decided. Worst case adds one 180 s bound inside the job's 30 minutes.
  • The superseded-pin path uses the same retry for its second install.

docs/ci-tooling.md describes the retry.

Tests

Check RED (8fb6b20) GREEN
test_a_timed_out_install_recovers_dpkg_and_retries_once (124 and 137): update, install, dpkg --configure -a, install fails: no recovery, no retry passes
test_a_second_timeout_fails_with_the_delta_packages: 3 apt calls, 1 recovery, the error names exit 124 and the packages fails passes
test_other_install_failures_do_not_recover_or_retry (exit 100) passes (guard) passes
test_other_failures_do_not_refresh the install-timeout cases move to the new tests; an update timeout still fails at once passes
test_tier2_runtime_delta, test_tier2_ci_runtime, test_tier2_runtime_selection, test_tier2_runtime_packages, test_uv_run pass on Linux

No user-visible change, so no features ledger line. No workflow change. Tiers 1 to 4 do not apply (CI only).

Test cost: no Rust tests. The new cases use the existing mocked command and run in milliseconds.

Fixes #5504

🤖 Generated with Claude Code

@vpacher
vpacher requested a review from zackees as a code owner November 23, 2026 10:34
@vpacher vpacher changed the title ci: a timed-out runtime delta install retries once after dpkg recovery, GREEN (Fixes #5504) ci: a timed-out Tier 2 runtime delta install retries once after dpkg recovery Nov 23, 2026
@vpacher
vpacher enabled auto-merge November 23, 2026 10:39
vpacher and others added 2 commits November 23, 2026 11:47
…y, RED (Refs #5504)

The Tier 2 tests job's runtime delta install failed at once when its
180 s bound stopped apt on a slow mirror (run 45113911635, attempt 4,
exit 124). New cases: a timed-out install (124 or 137) runs
dpkg --configure -a and retries once; a second timeout fails with the
delta packages; other install errors neither recover nor retry. An
update timeout still fails at once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y, GREEN (Fixes #5504)

ci-runtime.py's prepared-runtime delta install runs dpkg --configure -a
and retries once when the 180 s bound stops it (exit 124 or 137). The
downloaded .debs stay in the archive mount, so the retry goes on from
there. An update timeout and other errors still fail at once (#5249).
docs/ci-tooling.md says so.

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: Install Git in the Tier 2 Linux build cannot recover after a timeout stops dpkg (no dpkg --configure -a in its retry)

1 participant