Repository navigation
ci: Install Tier 2 Packages retries on the next apt mirror (Fixes #5518) - #5519
Merged
Merged
Conversation
) RED: Install Git keeps no mirror order, and the package step retries on the mirror Install Git ended on (runs 45187119925, 45194364427). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Install Git keeps its mirror order in /etc/apt/ci-tier2-mirrors. Each retry of the package install points the main source at the mirror after the one Install Git ended on and refetches its index; the .debs already downloaded stay. A slow mirror that answered the bootstrap no longer holds the step until its 10-minute limit. Co-Authored-By: Claude Opus 5.5 <[email protected]> Ci-Attestation: {"at":1795445872,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":91,"stamp":"d97cb82e617be20db5b2ec217ee3762b","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445872,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":91,"stamp":"2867554a4d40cc801a9312c9878245d1","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445872,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":91,"stamp":"460e6992bd99a1ea1af15f3589598434","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445872,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":91,"stamp":"acc2c5f8efa71ed4a332491ffc04f704","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445779,"gate":"general/all/client-lint","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"692be3dbc0855bf3d4a7119be73f2267","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445872,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":91,"stamp":"e5a8a38ff8c6a5cc3425f8e2f17f469d","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445780,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"7fe659d2f3f14bb72a7cb5ccce1aa72d","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445780,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"0d119803665936bb58e7148af1e0c250","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445780,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"6775b9487aa5b904a60ed9ab499ea684","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445780,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"7efa2f02b63630df3d7f2baff75598ff","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445780,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"9ada09415c69565c3d70f02e8f5bedb2","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445780,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"eef2b19a9e8102562d56a17b70a39682","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445780,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"083714c009d05d9e92d930a3b556ac6e","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445780,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"239f57ef4736e1f3bb6aed98d6997c23","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445780,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"673b4ece590a86d4b987684053a48645","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445780,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"1a1cccb5fcdd1e0f9b605c1d64fb6768","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445779,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"a1c322c17a75967517e3cd762eaf536f","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795445779,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"351bddfac60eb8dc8538afaa665113b70a78fa9e216506fe6343f5e1c009133b","lane":"client-lint","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":10,"stamp":"65659286231875fa8a27eca8a5a6c040","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Ci-Attestation: {"at":1795446087,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"2005d6b3ea7edd046edd76863bcf8f54d7a2c4f0e865a86c74d49ad33cf28516","lane":"client-test-x86_64-unknown-linux-gnu","parents":["991cfb0cfe1d5f1b09472150125f3cd7569d69ef"],"secs":215,"stamp":"f11e123a87ba34b5d49e15a880dcde2c","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779","v":1,"via":"run"} Client-Checks: {"checks":{"base":"15b15f2dc090307c438cb8525cd5a6045144cd51","coverage":"all-tracked-applicable-files","diff":[".github/workflows/build-project.yaml","ci/test_tier2_apt_cache.py","docs/ci-tooling.md"],"head":"a59d8dfef2a2889e16cc6584c221b8b2df91d5d1","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":"b73b3b52258d5aa970c8032c2a47b96c1afcdeecee28f4eaee984fbe30358cd0","tree":"46b8d31678a075bcdacb8b0f210e5b9ef8945779"}}
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 #5518.
The Tier 2 Linux build's
Install Tier 2 Packages 📦retried its install on the mirrorInstall Git 📦ended on. #5513 rotated mirrors only inInstall Git 📦and the runtime delta install. On 2026-11-23 the AWS runners' own mirror answered the bootstrap, then served the ~400 packages too slowly: attempt 1 hit its 300 s bound, and attempt 2 resumed on the same mirror until the step's 10-minute limit ended the job (merge-queue run 45187119925, PR run 45194364427).Change
Install Git 📦keeps its mirror order (the runner's own, thenarchive.ubuntu.com, thenmirrors.edge.kernel.org) in/etc/apt/ci-tier2-mirrorswhen it rotates.Install Tier 2 Packages 📦points the main source at the mirror after the current one (cyclic) and runsapt-get update(bounded at 180 s) beforedpkg --configure -aand the install. Attempt 1 is unchanged and reuses Install Git's index. The.debs already downloaded stay in the job's archive directory. With no kept order (prebaked image, unknown sources layout), the retries keep today's behaviour. The security pocket keepssecurity.ubuntu.com.ci/test_ci_job_timeouts.py, ci: bound the Tier 2 "Install Git" apt step, whose 34.5 min stall cancelled a PR build at the 45 min job timeout #5213).test_package_index_is_fetched_once_per_fresh_containernow allows the one retry-onlyapt-get updateinside the package step; the new test checks that attempt 1 never fetches the index.docs/ci-tooling.mdsays so next to the ci: Tier 2 Linux container jobs fetch from one Ubuntu mirror only; reuse the host apt mirror list as a fallback #5510 paragraph.Evidence
The new cases run the step's real shell (and Install Git's) with mocked
sudo/apt-get/dpkg:uv run --no-project -m unittest discover -s ci -p test_tier2_apt_cache.py→FAILED (failures=4).test_install_git_keeps_its_mirror_order_for_the_package_step(no order kept) andtest_tier2_install_uses_the_next_mirror_on_each_retry: with one failed install the retry ran atazureagain instead ofarchive; with two it ran three times atarchiveinstead ofarchive, kernel, azure.OK.uv run --no-project -m unittest discover -s ci -p "test_tier2_*.py"→Ran 365 tests ... OK;./lint→lane lint: ok.🤖 Generated with Claude Code