Skip to content

perf(ci): qualify prepared Tier 2 runtime with exact closure fallback - #1717

Merged
zackees merged 7 commits into
masterfrom
infra/1694-prepared-runtime
Oct 22, 2026
Merged

zackees merged 7 commits into
masterfrom
infra/1694-prepared-runtime

Conversation

@zackees

@zackees zackees commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Scope

Refs #1694 and #1592. Qualify the prepared runtime through the ordinary complete OFF/ON Tier 2 jobs, retaining the existing CTest timing-cache restore/upload/aggregation and master-only writers. No C tests, public headers, Rust product code, test-binary budget, wrapper policy, or workflow files are added/modified beyond the existing build-project workflow.

The freshly built runtime closure selects the image only when every required package version matches. Changed closures or unavailable release downloads use the pinned stock base and exact runtime installation. Checksum/size, image identity and inventory errors fail closed. Source/build mounts preserve original paths; source is read-only; per-mode CTest history is writable. Both complete suites use eight CTest workers and the existing deinterlace isolation. Suite failures propagate; the owned container stops with a one-second grace period.

Evidence and expected gain before rollout

Hosted experiment: https://github.com/obs-rust/obs-studio/actions/runs/39721238636 at ee14833. Three fresh trials per variant: phase-accounted setup plus metadata/image transfer or apt restore median 55.604 → 24.510 seconds (stock range 50.0–67.8; prepared 24.4–42.8). This excludes artificial stock helper teardown latency. Experimental stock uses one full-inventory apt transaction; production fallback installs the actual closure. Producer explicit phases cost 91.326 seconds, outside the required path and amortized across consumers. Original archive493209776 bytes; catalogue-convention repack493631934 bytes, identical Docker-reported image identity.

Prepared correctness: each complete OFF/ON suite registered354, passed351, failed0, same3 Pulse skips. Experimental coverage lacked normal cost history; this PR preserves it to obtain production evidence. Expected gate benefit is bounded at 0–31 seconds from this setup model, before different release-asset transfer and critical-path overlap. No universal gate speedup or p95 improvement is claimed. Adopt only after hosted candidate timing and normal merge-queue validation.

Candidate image: obs-rust/obs-studio-libs prerelease obs-tier2-runtime-0.1.0-ci.20261022.ee148335. Immutable URL, size, SHA256, base, Docker-reported image identity and full inventory pinned in prepared-runtime.json. Existing obs-studio-libs pack CLI packages the Docker-save OCI archive with zstd9. Shared catalogue publication waits for qualification; no new registry, credentials, CI cache family/writer or workflow is introduced. New package versions safely fall back until another image is qualified.

Local validation

  • RED8746a5885: five exact-closure selection cases fail because implementation is absent.
  • GREENcbcb1f098: selector/helper;10 focused behavior tests pass, including suite failure propagation and owned-container cleanup.
    -47 focused runtime/apt/cache/native tests pass.
  • Full lint found legacy workflow-text checks;4b1dbbc82 traces the same guarantees through the helper.26 follow-up tests pass. Full lint retry passed in100.3seconds (157 CI self-test files, formatting, clippy and Dylints).
  • clud-review single primary reviewed through4b1dbbc82, all buckets clean; same reviewer checked asset pins/layout/publication sequence. Hosted qualification remains required.

Also correct previous Docker Size labels: these are Docker-reported fields using the containerd snapshotter, not verified uncompressed rootfs bytes.

Identity clarification: 84efcd622069129995c242d5af614a664abe6d48b31779d38595f1a7c541f6b5 is the OCI manifest digest and Docker-reported identity. The image configuration blob is 7362a072406b293ded09f9a52be142367a56bc797e9dbf464ef21feaffaf4986. The original archive and catalogue repack contain the same OCI content; archive hashes differ. Publication and rollout completed via obs-rust/obs-studio-libs#7 and this merged PR.

@zackees

zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Normal PR run39726143474 completed success at4b1dbbc82. Both complete suites selected prepared and verified the pinned image inventory.

Mode Setup (release fetch/verify/load/start/inventory) CTest Registered Executed Failed Skipped
OFF 19.627s 168.21s 355 352 0 3
ON 30.455s 169.23s 355 352 0 3

Both restored tier2-ctest-cost-b095a8347f25d1178abc637f5fe99c2e19a868b2. Same Pulse monitor/restart/two-source skips. One additional registered case relative to the earlier354-case experimental source; no coverage reduction. Host checkout/cache restore/tree transfer remain separate from these setup figures. One run proves production-path correctness, not population gate/p95 improvement. Queue delays remain separate from execution.

Review clean and local full lint passed100.3s. Portable experimental and production evidence/report follow-ups are reviewed or in the same reviewer's final docs check, and will be pushed together next; then final-head CI and merge queue remain required. No code changed after4b1dbbc82. Shared catalogue publication follows qualification/landing.

@zackees

zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Catalogue publication is prepared in obs-rust/obs-studio-libs#7 (draft, target assets). It will land after this rollout qualifies through the normal queue. The candidate already consumes the published immutable prerelease asset directly; no dependency on an unpublished catalogue lookup.

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