Skip to content

ci: bound Tier 2 apt acquisition and package steps (Refs #5213) - #5221

Merged
zackees merged 2 commits into
masterfrom
fix/5213-tier2-apt-bounds
Nov 19, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/5213-tier2-apt-bounds

Conversation

@zackees

@zackees zackees commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Refs #5213.

A stalled mirror in the Tier 2 Linux build's Install Git step consumed 34.5 minutes of the 45-minute job budget in run 44475566010. Bound each bootstrap apt command to 180 seconds, with a 10-second kill grace, and bound the step to 10 minutes. Set apt HTTP and HTTPS acquisition timeouts to 20 seconds and acquisition retries to three in one configuration file before the prebaked branch. The existing three outer attempts, 10/20-second sleeps, package list, and prebaked no-refresh fast path remain intact.

The audit also found three unbounded direct apt calls in the same required build job: the shared archive download, dependency repair, and package installation. These now have 300-second command limits with the same kill grace and acquisition configuration, and their step has a 10-minute limit. Existing archive isolation, locking, eatmydata, dpkg recovery, and retry handling remain. The step limit also bounds time waiting for the shared archive lock.

ci.yml contains no direct apt-get commands, so it needs no edit. Deliberately left unchanged: apt setup in the independent Fast Gate (rust-tests-linux), cross-compile and Windows link jobs, Qt frontend, full Ubuntu app, Flatpak runtime qualification, and the Linux producer of macOS Rust test artifacts. These jobs are outside the affected Linux Tier 2 build/test dependency path. Apt commands inside the separate Tier 2 runtime/probe helpers are also outside this direct-workflow fix. The optional ci.yml setup probes remain manual-only. No lane routing, cache keys, coverage, job limits, or workflow files were added.

RED commit dea42da adds workflow job/step parsing assertions that check every direct apt-get call in Tier 2 jobs in both workflows, require a bounded step, and require acquisition configuration before the prebaked fast path. With origin/master's workflow unchanged, uv run --no-project python -m unittest ci.test_ci_job_timeouts failed with nine failures (missing acquisition configuration, two missing step bounds, and six missing command bounds). GREEN commit 50d871f (final signed publication head) makes all five tests pass. The existing single-index-refresh assertion now recognizes the timeout wrapper without weakening its count.

Validation: the focused timeout self-test, Tier 2 apt-cache tests, workflow duplicate-key/scalar checks, and host apt mirror tests pass. Full ./lint validation appears below. This is a CI-only change; OBS behavior and ABI/protocol test tiers are unchanged. No hosted stall reproduction or before/after timing measurement was performed.

Full local gate: SOLDR_PORCELAIN=0 ./lint passed (exit 0, 449.7 seconds), including all 397 CI self-test files, formatting, ratchets, rustfmt, workspace clippy and configured feature-set clippy checks. Both edited run scripts also pass bash -n.

Publication: ./push completed its client proofs and signed the final head. The workspace suite passed all 9,145 tests (6 skipped), the utility feature suite passed all 920 tests, and doctests and the configured integration feature checks passed. Hosted CI and actual stalled-mirror timing remain unverified.

Ci-Attestation: {"at":1795080097,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":187,"stamp":"6552a6d813c1093898f0cdc78b81659e","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795080097,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":187,"stamp":"f56a7d73a7a1257f92279730181bff16","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795080097,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":187,"stamp":"daa6aa5591c838cee2827979fae6c029","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795080097,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":187,"stamp":"eb82992973820c150a1ceb759f906a4f","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079908,"gate":"general/all/client-lint","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"86b5f16df15aca8b65bb10b4647ec978","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795080097,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":187,"stamp":"424011b8a601299165cd0184ac5d7c02","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079909,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"47f71486e4eac8cac3cbb197d3e644d3","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079909,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"caef299d8b3aeeb2bc24ece1a9e47d12","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079909,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"a68f3dfbbf7e326fc1850941c1020f4b","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079909,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"143a35258c17ec1e596a57196434dc36","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079908,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"fefe238a2dc7481faa12faa7baf7da50","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079908,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"354e6e92115bf6cd6a90235223dc6f64","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079909,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"9e09a17c06bc9f78afc015e76116b6dd","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079909,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"159b4858fa5a027de6a50e694873524b","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079908,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"b961a052c9c70a579ed999f1fdd44acb","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079909,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"462d23f1990a604b45eaccd67a617c39","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079908,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"3bb8a860c531d7d88ac651c249423b91","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795079908,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"629b6b0bdef36c219b964cf1fc4a53125040476d79f8166bb426b62147866136","lane":"client-lint","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":199,"stamp":"b5dc1ae919071a36fcdb452168335c6c","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}
Ci-Attestation: {"at":1795081015,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"f154f79aec6a12425c8da7b6a2ec8d78e70babd67595bfc8210919e460bc9917","lane":"client-test-x86_64-unknown-linux-gnu","parents":["dea42da73b63fa43d61796bca6506da73bcc7cea"],"secs":916,"stamp":"f57852c243dc551ceb287c612cedcc1a","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"4f62019c31e8e151bc62a76f6b6d490e693b1aba","coverage":"all-tracked-applicable-files","diff":[".github/workflows/build-project.yaml","ci/test_ci_job_timeouts.py","ci/test_tier2_apt_cache.py"],"head":"22aea42a9c48e5ac8df521c5c3536d7ae3a41b1f","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.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\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"e700577d99d2a46025c44cc9d3e437ffb76d8e5d72f4d1129075f178423c7f86","tree":"5e5cd09e9c6f41cd8a2910458ee5301a5137c89a"}}
@zackees zackees added pool-active Pool worker owns this PR; automated rebases must skip it ci Continuous integration labels Nov 19, 2026
@zackees
zackees enabled auto-merge November 19, 2026 09:37
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees
zackees added this pull request to the merge queue Nov 19, 2026
Merged via the queue into master with commit 0614862 Nov 19, 2026
44 checks passed
@zackees
zackees deleted the fix/5213-tier2-apt-bounds branch November 19, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous integration

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant