Repository navigation
Description
Context
Follow-up to #1581 and its full-day report in #1693. This is a bounded next experiment batch, not another umbrella replacing #1667 or existing owners.
The October 21–22 day contained 276 runs, compared with a 265-run baseline. Matched Linux lane cohorts improved, but used more runner time; broad code cohorts became slower. Later #1643 concurrency fixes and user-requested #1663 unsharding mean those mixed-layout results are not a forecast for today's configuration.
| Measured area | Observed baseline | Next result required |
|---|---|---|
| Matched Linux queue median / p95 | 696.5 → 581.5 s / 1,050 → 902 s; n=38 → 24 | Fresh baseline on current complete OFF/ON suites; compare each experiment separately |
| Matched Linux queue median runner-minutes | 22.242 → 25.100 | Reduce net latency without hiding added runner cost |
| Cached apt installation | 30–52 s per Tier 2 job | Measure full cold image transfer/unpack/start against stock setup under #1592 |
| Sampled workspace Rust commands | 37.39–43.79 s build/link; 59.72–64.29 s test-output span | Separate actual compilation, linking, rebuild reasons and test/process overhead under #1286 |
| One final-gate wait | 136 s after job creation | Establish dependency-ready → runner-start time and cause before choosing a scheduling fix under #930 |
| Late complete CTest suites | OFF 168.19 s / ON 167.45 s, 353 registered, 3 device skips each | Profile the current longest tests without changing assertions or isolation |
These are observations from different scopes, not additive savings. Rust compiler time may overlap Tier 2 work; removing it can save zero gate time. Prepared setup has at most the observed installation portion to recover before transfer overhead. No defensible universal speedup estimate exists yet.
Evidence: #1693, especially docs/ci-speed-2026-10-21.md and portable docs/ci-evidence/2026-10-22-ci-speed-day.json; prior measurements and live run links are retained there.
Proposal
- Establish today's critical path. Use
ci/cache_metrics.pyandci/queue_report.pyto capture a fresh representative window after ci: unshard Linux Tier 2 and run one complete suite per backend #1663 and late cache changes. Separate code PRs and merge groups, selected lanes, cold/warm cache state, successes/failures/cancellations, and revisions. Identify the largest non-overlapped intervals before changing settings. - Setup and transfer experiment — perf(ci): validate prepared Tier 2 image transfer before rollout #1592. Benchmark stock Ubuntu plus cached apt against an approved immutable prepared image, including download, unpack, verification and publication cost. Touch points:
rust/tools/linux-validate/{Dockerfile,apt-packages.txt,run.sh}and existing.github/workflows/build-project.yaml. Adopt only on demonstrated net benefit; record rejection if transfer consumes the saving. - Rust rebuild/link experiment — perf(ci): fix cache reuse gaps and measure libobs unity/PCH gains #1286. Profile representative changed-crate and workspace commands separately. Record Cargo rebuild causes, compilation versus linker wall/CPU time, cache bytes/restore cost, and test execution/teardown. Compare profile-matched dependency cooking against no cooking before selecting a change. Keep the unsafe Rust compiler wrapper disabled and fingerprint safeguards intact.
- Readiness/scheduling experiment — meta: Faster CI: code-PR queue runs under 8 minutes #930. Attribute dependency wait separately from dispatch wait. Diagnose redundant aggregation or empty jobs only where traces prove they extend the required path. Missing readiness evidence stays unknown; do not infer capacity exhaustion from creation timestamps.
- Remaining CTest cost. Profile current complete suites and the remaining serial deinterlace work. Propose algorithm/resource-isolation changes only with unchanged correctness evidence. Preserve deinterlace RUN_SERIAL unless a separate focused regression and repeated stress evidence justify changing it. Do not restore four shards.
- Rank candidates by measured net gate seconds saved, p95, runner-minutes and failure risk. Implement the best-supported changes in separate focused PRs, then publish an adopt/reject table including experiments with no gain.
Acceptance criteria
- Publish a reproducible current-policy baseline with run IDs/revisions, sample sizes, lane selection, median/p95 gate latency, per-phase time, transferred bytes, runner-minutes and outcomes. Keep platform lanes separate.
- For setup, Rust, scheduling and remaining CTest work, publish an owning existing issue, measured bottleneck, experiment, before/after result and explicit adopt/reject/defer decision. Coordinate active claims; do not duplicate implementation tracked in perf(ci): validate prepared Tier 2 image transfer before rollout #1592/perf(ci): fix cache reuse gaps and measure libobs unity/PCH gains #1286/meta: Faster CI: code-PR queue runs under 8 minutes #930.
- Each proposed implementation starts with focused RED → GREEN evidence; measurement-only work supplies reproducible raw evidence. Normal PR CI and merge queue remain required.
- Publish an expected-gain table before rollout using measured critical-path overlap and uncertainty; publish observed median/p95 and runner cost afterward. Do not add overlapping phase savings or substitute a resident local image for fresh-runner results.
- Validate the selected batch using the completed post-rollout PR and merge-group runs available now, comparing matched code-PR and merge-group cohorts separately. The maintainer explicitly waived the 24-hour wait on October 22; use the fixed October 22 05:52:00–07:12:45 UTC created-at window. Disclose its shorter duration, revision/cache changes, small samples and failed/canceled work; do not present it as a full-day result.
- Preserve complete OFF/ON suites, unchanged C tests/public headers, differential tiers, required checks, device-skip visibility, Rust test-binary budget, current isolation, wrapper bypass/fingerprint safeguards and trusted master-only cache publication. No new workflow files without explicit authorization.
- Link final evidence and decisions to meta: CI performance backlog and measured burn-down #1667 and the owning tracks; close this issue when this bounded batch has measured decisions, even if a rejected or externally blocked experiment remains in its existing tracker.
Decisions
- Prioritize by the refreshed critical path, starting with setup and Rust attribution; old cache-hit percentages alone do not identify the bottleneck.
- Keep the current unsharded policy requested by the maintainer. The mixed-layout day's 16.5% Linux queue reduction is evidence, not a promised next-batch gain.
- Reuse perf(ci): validate prepared Tier 2 image transfer before rollout #1592, perf(ci): fix cache reuse gaps and measure libobs unity/PCH gains #1286 and meta: Faster CI: code-PR queue runs under 8 minutes #930 for their implementation ownership. This issue owns the next batch's selection, comparative evidence and final decisions; meta: CI performance backlog and measured burn-down #1667 remains the broad backlog.
- Preserve current platform scoping and measure native compile performance separately rather than extrapolating Linux results to Windows/macOS.
Related issues
#1581, #1693, #1667, #1592, #1286, #930.
Completion evidence
All seven selected implementations are merged; final report and portable evidence in #1754. The maintainer explicitly replaced the24-hour wait with the available-run comparison. Matched complete-Linux PR median691→555s (n5→3;19.7%faster), queue526→560.5s (n5→2;6.6%slower); median runner-minutes6.9%/9.9%lower. Scope/cache/source differences, samplep95 limits, failures/cancellations and coverage are retained. #1592stronger net-gate criterion, #930under8minute target and #1286broader backlog remain open. No universal causal gain is claimed.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 22, 2026
Claiming: #1694.
First focused PR expected during this session. Decisions: preserve complete unsharded OFF/ON suites, deinterlace isolation, assertions, wrapper bypass and cache fingerprints/master-only writers. The maintainer requested implementation of the whole next batch; measurement-only follow-ups will not substitute for implementing validated improvements. No new workflow files are authorized.
zackees commentedon Oct 22, 2026
Progress:
The goal remains the full implemented/validated batch, including environment transfer, Rust rebuild/link attribution, remaining CTest cost, live scheduling verification and the representative post-rollout day. These initial PRs do not complete #1694.
zackees commentedon Oct 22, 2026
The issue was automatically closed by #1700 despite this batch remaining incomplete; reopened it.
Remaining scope includes hosted qualification, fresh prepared-environment transfer measurement, remaining CTest decisions, and the representative post-rollout day after final rollout. None is replaced by local resident-image or single-run timing.
zackees commentedon Oct 22, 2026
The implementation PRs are on master through normal CI/queue: setup #1700, execution overlap #1701, Rust test execution #1706, runtime closure/ownership batching #1707, fresh-transfer infrastructure #1708, and corrected collector #1710.
#1707 queue run 39720358454 passed; merged 04:13:16Z. #1710 merged 04:13:33Z. The latest runtime PR qualification retained 354 registered / 351 executed / three same Pulse skips in each mode, with zero failures. Hosted manifest generation observed 13.360873→5.751760 s; controlled local result 14.562→7.663 s with byte-identical 224-pin output. These are phase observations, not a universal required-gate saving.
The fresh setup experiment is now running exactly once on verified master ee14833:
https://github.com/obs-rust/obs-studio/actions/runs/39721238636
The manual run retains normal full validation, then measures producer/publication, 3 fresh stock and 3 prepared consumers, including transfer/load/start/inventory, plus complete prepared OFF/ON coverage. A different active manual run is on another branch/concurrency group and was left untouched. No registry visibility/token change, new workflow file or cache writer was added.
The collector is frozen by source SHA256 c0092ac4398f00b358d738c4f9d65f12f92830fc43e006c1d10865c36c1800a1. It now recognizes nextest/doctests separately and preserves historical comparison bases when draining cached runs. The final 24-hour window is not started: first capture the short-lived experiment evidence and decide adoption/rejection, then collect the representative post-rollout comparison and perform the final audit. Goal remains active.
zackees commentedon Oct 22, 2026
Production candidate: #1717, reviewed through4b1dbbc82; full local lint passed100.3s. Existing Tier2 jobs now invoke a verified runtime helper while retaining both complete OFF/ON suites, original paths, writable CTest timing history, eight workers, serial isolation and existing master-only cache writers. Exact closure matching selects the image; changed packages/unavailable assets use stock. Corruption/identity/inventory errors fail closed.
Fresh hosted experiment39721238636 completed successfully. Three trials per variant, explicit phases plus metadata/image transfer or apt restore: stock median55.604s (49.997–67.755), prepared24.510s (24.431–42.751). Excludes artificial stock Docker-stop grace; stock model uses one full-inventory apt transaction. Producer explicit phases91.326s; image publication/refresh must be amortized. Prepared OFF/ON each354registered/351passed/0failed/3samePulse skips. Experimental suites lacked normal timing history; do not infer a causal suite regression from189.30/189.22s.
Expected gate benefit before production rollout remains0–31s, pending release-route transfer cost and actual critical-path overlap. No population p95 estimate from n3. Durable raw observations and caveats committed locally at cfa4861 for the PR's next purposeful update; current CI remains pinned4b1dbbc82 to avoid interrupting qualification.
Corrected earlier local image-size wording:541093691→445476013 are Docker-reported Size fields using containerd, not verified uncompressed rootfs or wire bytes. Actual original transfer493209776bytes; catalogue-convention repack493631934bytes, same image config84efcd622069129995c242d5af614a664abe6d48b31779d38595f1a7c541f6b5.
Candidate prerelease upload is live; shared stable dependency catalogue stays unpublished until qualification. Remaining: observe actual prepared-path normal CI, fix any failures, qualify/merge normally, then freeze the final rollout and collect a representative24h matched PR/merge-group comparison with runner cost, outcomes and coverage. #1694 remains open.
zackees commentedon Oct 22, 2026
Prepared-runtime rollout landed normally: #1717 merged2026-10-22T05:50:37Z at0e42adcfeff236099f7b8f7cecff054c267079ab after successful queue run39729486071. Both earlier normal qualification runs39726143474 and39728550270 also passed, actual prepared path and inventory verification, full OFF/ON coverage and normal CTest timing history. Final PR source merge checkout05ef92bb97cfc543d7481534978b2bb33924eb3b registered357cases per mode (354executed/3existingPulse skips); earlier source registered355, experimental source354. Preserve those source differences.
Dependency catalogue obs-rust/obs-studio-libs#7 merged10ec2d12b3530a58f5c2fd63bd289a4082dfb637 at05:51:29Z. Runtime release promoted; asset bytes unchanged:493631934, SHA2565e5102bfb16ef6d9bec4d24fbe3ee3bafa7abb5f565ad7c7308320cf4df5a558. Master runtime helper blob6737c52eec20e2c323a74f2a4050c8f49b2d719a matches reviewed implementation.
Final fixed observation window:2026-10-22T05:52:00Z through2026-10-23T05:52:00Z (24hours). Frozen collector source ee14833:ci/cache_metrics.py, SHA256c0092ac4398f00b358d738c4f9d65f12f92830fc43e006c1d10865c36c1800a1, per-group1000, include logs. Initial snapshot is running in the persistent evidence directory; same window/output will be drained after end. No CI reruns for measurement. Baseline enriched85/85historical terminal runs;17canceled logs unavailable remain unknown rather thanzero.
All seven selected implementation/measurement PRs1700/1701/1706/1707/1708/1710/1717 are merged. #1694 remains open for the required representative day, matched code-PR/merge-group comparisons, median/p95, runner-minutes, outcomes, coverage, source/cache/platform caveats, final master report and requirement audit. Local/experimental or single-run gains do not replace that validation.
zackees commentedon Oct 22, 2026
Post-rollout validation remains evidence-driven, not declared complete from passing PR runs.
Master run39730342498 at8534113ae7b0ad5282c7c4c03a835363d016ed30: Linux ON passed; OFF executed the complete358-case suite but test_screencast_portal_teardown hit its unchanged20-second child alarm (SIGALRM14),1failure and the same3Pulse skips. Prepared inventory verified; OFF setup17.695seconds. Both timing artifacts uploaded; aggregation/cache save correctly skipped because one suite failed. No skip/timeout/assertion change or blind CI rerun.
Exact artifact b96d0d9fec512393f2654e27ee86cbb5368bd96c4c1701b557ebee01bb6f44dc and test-binary21f1761891266c0f6318ec03432f5e97e83a6de2f50e63fd0d465ccc83ed77d8 were exercised locally under bosn:
Control satisfies all224current runtime pins. All486shared package versions match exactly; control has203additional development packages. Stress retains child20s and outer60s limits, stops each worker on failure, and is diagnostic rather than a representative latency sample. Local host kernel6.18.48 differs from hosted7.0.0-1017-azure. These passes do not reproduce or explain the hosted hang, prove a fix, or establish that the image caused/did not cause it. Keep the failure in the final comparison; no corrective source change is justified yet.
Separate Windows master failure is pre-existing: pre-rollout run39728526955/job119660751156 and post-rollout job119666870978 both fail linking test_video_output_plan with unresolved cm_print_error. The Linux runtime consumer cannot explain a Windows-only linker step. PR1724's other Tier2build failure is owned/fixed by its author9de09abc0; retain the original failed attempt/cost rather than duplicate work.
Terminology correction:84efcd622069129995c242d5af614a664abe6d48b31779d38595f1a7c541f6b5 is the OCI manifest digest/Docker-reported identity; config digest is7362a072406b293ded09f9a52be142367a56bc797e9dbf464ef21feaffaf4986. Asset bytes remain493631934/SHA2565e5102bfb16ef6d9bec4d24fbe3ee3bafa7abb5f565ad7c7308320cf4df5a558. Release notes corrected; final report branch carries the documentation fix.
The fixed observation window still ends2026-10-23T05:52:00Z. Collector snapshots retain failures/cancellations and source/cache/platform differences; final adoption reliability/latency claims remain pending the full window. Portable reproduction observations and input hashes are preserved in the durable evidence root for the final report.
zackees commentedon Oct 22, 2026
Final speed-batch report: #1754; measurements and portable evidence. The maintainer explicitly waived the24h wait; the fixed after window is October22,05:52–07:12:45UTC (80m45s),36listed/29terminal/7active-or-queued at capture. This is not a full-day result.
All seven implementations merged normally: #1700 setup, #1701 dependency overlap, #1706 pinned nextest plus Cargo doctests, #1707 runtime closure/ownership batching, #1708 fresh-transfer experiment, #1710 collector correctness, #1717 prepared runtime. Final report #1754 passed normal CI and merge queue.
Exact selected Linux build lanes, successful code runs: PR n5→3, median691→555s (19.7%faster), samplep95849→633s; queue n5→2, median526→560.5s (6.6%slower), samplep95709→574s. Median runner-minutes19.783→18.417 (PR,6.9%lower) and18.167→16.367 (queue,9.9%lower). Sample p95 is the maximum, not a stable tail. Scope/source/cache differences and failures/cancellations are retained; no universal causal speedup claim.
Retain cooking, reject unsupported linker/deinterlace changes, preserve complete coverage/isolation and freshness safeguards. #930/#1286 remain open; #1592 retains its stronger net-gate condition. This bounded batch is implemented and measured under the amended scope.