Skip to content

ci: bound prepared-runtime apt and refresh missing pins once (Refs #5237) - #5249

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

zackees merged 2 commits into
masterfrom
fix/5237-apt-bounds

Conversation

@zackees

@zackees zackees commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Prepared Tier 2 runtime jobs can spend thirteen minutes waiting for an Ubuntu archive outage, then fail without naming the delta that was being installed. Bound each prepared-delta update/install with timeout --kill-after=10s 180s, APT-native Acquire::Retries=3, and 15-second HTTP/HTTPS connection/data timeouts. The 180-second budget allows four times the observed roughly 45-second normal setup, with a further 10-second forced-kill grace.

An install reporting an unavailable pinned version refreshes indexes once and retries the same exact package versions once. Other errors fail immediately after APT's native recovery. Persistent failures include the delta package list, exit status, and captured APT diagnostics. No custom wait/backoff code is added; stock/prebaked selection and final full-closure inventory verification are preserved.

Refs #5237.

Validation:

  • RED commit 62a6ad3df: uv run python -m unittest ci.test_tier2_runtime_delta.AptInstallTest fails on missing bounds, stderr capture, missing-version recovery, and package diagnostics. Empty-delta behavior already passes. Local failing evidence: /home/niteris/.clud/tmp/tool-output/local-test-private/local-test-BCuj5n.log.
  • GREEN: uv run python -m unittest ci.test_tier2_runtime_delta ci.test_tier2_ci_runtime ci.test_tier2_runtime_selection ci.test_tier2_runtime_packages passes all 50 tests. The new fake-runner tests assert exact argv and exercise refresh success, persistent pin failure, update failure, timeout/kill exits, and no unbounded retries. ci.test_tier2_setup_probe passes seven tests; uv run ci/test_tier2_image.py passes its suite. The image test needs script invocation for its sibling imports; the initial module-form invocation failed to import test_ci_pre.
  • One read-only clud-review reviewer: clean; focused apt tests pass.
  • Full SOLDR_PORCELAIN=0 ./lint passes: == lane lint: ok (430.4s); run once with a 1200-second deadline. The report parser returned unknown verdict with exit 0, so the successful lane footer was checked directly.

APT options verified against Ubuntu 26.04's apt.conf(5), apt-transport-http(1), and apt-transport-https(1). Rust/C differential, ABI and protocol test tiers do not apply to this CI Python change. No live archive outage, complete OFF/ON runtime qualification, or new prepared asset publication was performed locally; hosted validation remains required.

Maintainer refresh procedure (also added to docs/ci-tooling.md):

  1. When consumer logs show more than four delta packages (fallback remains sixteen), dispatch the existing producer: gh workflow run ci.yml --repo obs-rust/obs-studio --ref master -f tier2-setup-probe=true. The producer is tier2-setup-producer, running ci/tier2_setup_probe.py produce, rather than the GHCR tier2-image job. Wait for normal validation and the setup experiment to succeed before replacing the runtime.
  2. Download tier2-setup-image and tier2-setup-metadata before their one-day retention expires. The image contains the new build's exact runtime-packages.txt plus bootstrap tools in the pinned stock base. bundle.json records image ID, full inventory, base, checksum/size and producer revision.
  3. Publish a new unique prerelease through the existing obs-studio-libs pack/add catalogue process, following obs-studio-libs#7. Use flavor ubuntu26.04-docker, platform linux/x86_64; the payload is a Docker-save/OCI archive, not a host library prefix. Never overwrite the October asset. If repacking changes compressed bytes, use the checksum and size of the final published archive.
  4. Open a descriptor-update PR for rust/tools/linux-validate/prepared-runtime.json, recording the new immutable release URL, final archive checksum/size, bundle.json image ID/base/full inventory/revision/run ID, and new catalogue version; retain platform: linux/amd64. Run runtime-selection/delivery self-tests and qualify complete OFF/ON suites in ordinary PR/queue validation, checking inventory_verified and the remaining delta. Promote the release/catalogue only after qualification, as in the original rollout. No repository variable change is required.

The consumer cannot dispatch or publish that refresh. This PR documents the action rather than updating the prepared asset or introducing automatic producer runs. Hosted GHCR use remains unchanged: the package is private, and a successful anonymous manifest probe does not guarantee that a later job-container pull can authenticate. The broader zero-network hosted-run acceptance in #5237 therefore remains pending.

Publication checks: ./push completed successfully with signed final head 274b0a315356b7d14457f7d7444d498222a0cb21. Client lint passed all six targets' clippy and Dylint (229.8s), client validators passed, and the host client-test lane passed (568.1s), including 9,208 workspace tests, 920 utility tests, documentation tests, and Windows GNU test-binary linking. Six workspace tests were skipped by existing policy. Optional Swift evidence was unavailable because swift-format is absent. Backpressure was open before publication. No native-coverage label applies to this CI Python-only change.

)

Ci-Attestation: {"at":1795098887,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":161,"stamp":"808e57d97259e75837f248314ff79b0e","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098887,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":161,"stamp":"3ff2c8eb1acb5989b99a2abddc4c676a","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098887,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":161,"stamp":"d79e0d9e9ce49772a33e0c6368e65f47","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098887,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":161,"stamp":"4f8ca6f22f3a8d7fe33aa69b9bfdaa38","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098723,"gate":"general/all/client-lint","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"cefcf79b5b8d58c47b9e171012ea9e13","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098887,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":161,"stamp":"ce489d18e849d49e81f21bdac9030850","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098724,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"88c4a1a453cf96ae0aa91decae3c694c","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098724,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"b72a2cdc4c74394288ece0645b7dc64a","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098724,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"e69e0398538da94302acb4912ef8db96","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098724,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"07251439635d59cdeadf5e2ce377afe8","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098723,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"9be6ef22fbcab61718dd28af29ee07bb","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098723,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"03d93ef7a5e467acb74ac9db0ad3c54e","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098724,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"ed656e87acd776541fbb40c8012238fb","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098724,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"cfc06fd36706ee5a03a66ccf358f0687","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098723,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"ed5cad529288f86beac69e705c267b5e","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098723,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"fef553fbb6cf80777840ed983ad5969a","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098723,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"f280f29d07d4cca3b0d709b5211131b8","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795098723,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"6c25b3200ec17cf796790608bbbef25f71d248643925a5f9d574d8de0fa5c35a","lane":"client-lint","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":230,"stamp":"b343a3e88411896aa31a7f049f4c8226","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}
Ci-Attestation: {"at":1795099456,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"d2b86f5fbb43409fa0284ff1210aec835eb0582f2bf1a4502584aa446ab38df9","lane":"client-test-x86_64-unknown-linux-gnu","parents":["62a6ad3df5cbc233e1cce9fec89deca9d45ecef6"],"secs":568,"stamp":"a9d5b40f9449585ef0dbd1b0037decbe","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"046aa3962ebec052eb15d857ebb79f26602f47bf","coverage":"all-tracked-applicable-files","diff":["ci/test_tier2_runtime_delta.py","docs/ci-tooling.md","libobs/build/libobs.core-source+.h.c","libobs/build/libobs.ported-source-get-weak+.h.c","libobs/build/ported-source-sets/source-get-weak.json","libobs/cmake/rust-exports.d/obs-source-source_get_weak.txt","libobs/obs-source-get-weak-fields.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_source_get_weak_swap_is_registered.rs","rust/obs-c-oracle/oracle.d/source-get-weak.list","rust/obs-c-oracle/oracle/source_get_weak.c","rust/obs-source/src/ffi/mod.rs","rust/obs-source/src/ffi/source_get_weak.rs","rust/obs-source/src/get_weak.rs","rust/obs-source/src/lib.rs","rust/obs-source/tests/source/get_weak.rs","rust/obs-source/tests/source/get_weak_parity.rs","rust/obs-source/tests/source/main.rs","rust/tools/linux-validate/ci-runtime.py"],"head":"230a1e0e974f6b8f5d648613a1e37a47924bd11c","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":"4c40c1f24678449f33235b2c655913e3e86b7d704245abfe3601bf58ad6f697d","tree":"d18a5186330d9d43595c5c6fa1c8f14e941a41c2"}}
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees
zackees enabled auto-merge November 19, 2026 14:44
@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
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@zackees
zackees added this pull request to the merge queue Nov 19, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 19, 2026
@zackees
zackees added this pull request to the merge queue Nov 19, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 19, 2026
Merged via the queue into master with commit e17df59 Nov 19, 2026
46 checks passed
@zackees
zackees deleted the fix/5237-apt-bounds branch November 19, 2026 17:09
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 19, 2026
vpacher added a commit that referenced this pull request Nov 23, 2026
…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]>
vpacher added a commit to wesleyhawes/obs-studio that referenced this pull request Nov 23, 2026
…recovery (obs-rust#5508)

* ci: a timed-out runtime delta install retries once after dpkg recovery, RED (Refs obs-rust#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]>

* ci: a timed-out runtime delta install retries once after dpkg recovery, GREEN (Fixes obs-rust#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 (obs-rust#5249).
docs/ci-tooling.md says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

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.

1 participant