---
title: "CI speed batch: October 21, 2026"
source: https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md
commit: 524486a44c81ef30b039f10ab955bc778f39e225
tier: archive
tokens_est: 4847
---
# CI speed batch: October 21, 2026

> The `docs/ci-evidence/` snapshots linked below are retired from `master`
> (#2686); each link resolves to the commit that last held the file
> (`c2af3f9c3`), and the commands quoted below name those paths as they were
> then.

Work tracked in [#1581](https://github.com/obs-rust/obs-studio/issues/1581).
All five implementation PRs merged. The full post-rollout day and later
decisions are reported below. Comparisons are observational, not controlled
estimates of the effect of an individual change.

## Baseline

Read-only collection covered October 20 00:40 UTC through October 21 00:40 UTC.
The initial 31-run stratified sample was expanded to all 265 listed runs.
[Full-window evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-ci-speed-baseline-full.json)
retains every inspected run URL/revision, outcomes, cohorts, per-lane timings,
and sample counts. The initial sample remains available separately in
[its original snapshot](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-ci-speed-baseline.json).

| Successful code cohort | Runs | Median required gate | p95 |
| --- | ---: | ---: | ---: |
| PR | 83 | 723 s | 1,121 s |
| Merge group | 61 | 697 s | 988 s |

p95 uses nearest rank. Canceled code queue runs consumed 324.065 runner-minutes
in this window; this is observed elapsed job time, not billed cost. Unknown
source diffs, manual dispatches and CI/config changes remain separate cohorts.
The collector's broad `code` category includes Rust harness/test paths; inspect
lane selection and changed files before treating a CI/harness rollout as
representative of product changes.

Reproduce with the existing collector:

```sh
uv run ci/cache_metrics.py --output build_ci_audit/1581-before \
  --start 2026-10-20T00:40:00Z --end 2026-10-21T00:40:00Z --per-group 1000
```

## Where time goes

[Queue run 39521142237](https://github.com/obs-rust/obs-studio/actions/runs/39521142237)
took 696 seconds through CI Gate: 36 seconds initial orchestration, 215 seconds
overlapping Fast Gate/build, 3 seconds transition, 422 seconds concurrent OFF/ON
test jobs, and 20 seconds final aggregation. Tier 2 compilation is already
overlapped. The build step's 96 seconds includes orchestration, not just compiler
CPU time. Across eight inspected successful runs, that step took 66–96 seconds.

The ON suite registered 341 tests and took 331.24 seconds. Five RUN_SERIAL tests
had durations of 82.79 seconds (deinterlacing), 59.26 (async audio delay), 38.87
(PipeWire resume), 34.61 (VLC pacing), and 23.60 (audio clock drift). Increasing
CTest parallelism cannot overlap a RUN_SERIAL test with other tests in its
environment. Three PulseAudio device scenarios skipped; preserve that distinction
between registration and executed coverage.

## Decisions and current evidence

1. **Overlap Qt with Fast Gate — implement and measure.**
   [PR #1582](https://github.com/obs-rust/obs-studio/pull/1582) starts Qt after
   successful scope detection while keeping both jobs required. Configure,
   build, and test phases get separate successful-phase wall times. In its
   [PR run](https://github.com/obs-rust/obs-studio/actions/runs/39523981726),
   Qt ran 00:53:16–00:56:23 UTC and Fast Gate ran 00:53:29–00:55:42: all
   133 seconds of Fast Gate overlapped Qt. This verifies scheduling, not a
   causal before/after speedup. Failed-gate wasted Qt time remains to measure.
2. **Two isolated Tier 2 shards per mode — retain rollout for day measurement.**
   [PR #1583](https://github.com/obs-rust/obs-studio/pull/1583) reuses the build
   artifact and duration planner. Four runners replace two; each keeps
   RUN_SERIAL intact and verifies all plans partition its actual CTest registry
   exactly once. Missing plans fail closed. Both its PR and queue passed with
   341 registered tests per mode and the same three PulseAudio device skips.
   The PR split OFF 169+172 and ON 171+170; all 338 executed tests per mode
   passed. No C test or RUN_SERIAL property was changed. The first queue's
   longest test step took 178 seconds; required gate took 485 seconds. The
   increased runner cost remains part of the final acceptance decision.
3. **Prepared Tier 2 environment — defer deployment under #1592.**
   Cached apt archives still leave 30–52 seconds installation per job. A
   prepared image must beat stock-image setup including pull/restore time,
   with a pinned reproducible package set. Existing
   [#525](https://github.com/obs-rust/obs-studio/issues/525) gates dependency
   producers on measured payoff and explicit sign-off for repository/workflow
   creation. The [local experiment](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-tier2-environment-experiment.json)
   measured 150.634 seconds for a fresh stock container with seeded apt archives
   versus 4.343 seconds for a fresh container from a resident prepared image.
   Both package/version fingerprints matched. The prepared image is 541 MB
   uncompressed. These local figures exclude registry publication and a fresh
   runner's download/unpack; local installation is much slower than CI. The
   current credential cannot inventory registry packages (`read:packages`,
   HTTP 403), and no compatible published immutable image was verified.
   [#1592](https://github.com/obs-rust/obs-studio/issues/1592) records the
   publication/access and fresh-runner benchmark gate. Keep stock Ubuntu and
   apt caching in this batch; no producer, workflow or image publication was
   introduced, and no net CI environment gain is claimed.
4. **Rust compilation — retain settings; measure individual rebuilds next.**
   The three inspected workspace test steps combine about 35–41 seconds of
   Cargo-reported build/link work with 59–62 seconds between first test launch
   and last test-result output. The compiler is a substantial portion, but
   treating the whole 96–102 second step as compilation overstates it. The
   [phase evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-rust-test-phase-profile.json) retains
   run IDs, command timestamps and output spans. Merged
   [#1590](https://github.com/obs-rust/obs-studio/pull/1590) extracts these
   with `--include-logs`, including Soldr timestamp prefixes and raw or escaped
   ANSI colors, without another build. Missing markers remain unknown.
   Linker-only cost, exact process teardown time and Cargo rebuild reasons
   remain unavailable from these log lines. Controlled per-unit profiling and
   rebuild/fingerprint work remain with
   [#1286](https://github.com/obs-rust/obs-studio/issues/1286). Keep the Rust
   wrapper bypass and fingerprint safeguards; no compiler-setting speedup is
   claimed from three unmatched revisions with restored cook archives.
5. **Scheduling gaps — measure intervals and remove empty publication work.**
   In [run 39520254679](https://github.com/obs-rust/obs-studio/actions/runs/39520254679),
   Tier 2 aggregation ended at 00:26:12 UTC, CI Gate was created at 00:26:13,
   and a runner started it at 00:28:29. Thus 136 of the 137 seconds were after
   job creation, rather than compilation or a running dependency. The API
   does not establish the dispatch delay's cause. The baseline also contains
   job creation-to-start intervals of 427 seconds for a Tier 2 build and 818 seconds for a Swift
   format job. Report job-created-to-started duration separately from job
   execution. Creation-to-start intervals can include dependency waiting and
   cannot isolate dispatch latency without inspecting readiness; avoid inferring
   capacity exhaustion or changing concurrency
   policy from one observation. In the shard PR, the Tier 2 publication job
   waited 96 seconds, ran for four seconds and skipped every work step. Merged
   [#1589](https://github.com/obs-rust/obs-studio/pull/1589) checks for an
   eligible proof or master timing publication before requesting that runner.
   Matrix failures remain failures of the required gate. Interval and sample
   tail reporting landed in [#1585](https://github.com/obs-rust/obs-studio/pull/1585).

## First rollout observations

[Literal timings and coverage](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-ci-speed-rollout.json)
retain run IDs and the source diff between the two queue trees. Libobs, Rust
crate, Cargo/toolchain and cmocka test source paths were unchanged; CI/harness
and frontend files changed. Runners and setup/cache conditions differ, so
these observations do not isolate a causal speedup or replace a full day.

| Observation | Earlier queue | Shard PR | Shard queue |
| --- | ---: | ---: | ---: |
| Required-gate wall | 696 s | not used as queue comparison | 485 s |
| Concurrent test-job phase, including setup | 422 s | 283 s | 254 s |
| Summed test-job runner time | 838 s | 970 s | 982 s |
| Registered tests per implementation | 341 | 341 | 341 |
| Skipped device scenarios per implementation | 3 | 3 | 3 |

The queue observation is 211 seconds shorter with about 17% more test-job
runner time. More isolated runners trade cost for latency. The PR observation
also exposed the empty publishing job's avoidable runner wait; #1589 removes
that job only when no proof or timing publication is possible.

## Full post-rollout day

[Day evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-ci-speed-day.json) covers October 21
01:20:52 UTC through October 22 01:20:52 UTC. Collection began after a
30-minute drain and completed at 01:57 UTC: all 276 listed runs were inspected,
with three successful code PR and three successful code queue logs sampled at
evenly spaced positions. Both workflow listings extend before the window.
The evidence retains revisions, changed paths, outcomes, lane summaries, cache
inventory, sampled log hashes and parsed output. Cache inventory describes
collection time, not the window-end cache contents.

### Before and after

The broad code cohort became slower overall. Do not use the earlier single
485-second queue observation as the day's expected runtime.

| Successful code cohort | Before n | After n | Median before → after | p95 before → after |
| --- | ---: | ---: | ---: | ---: |
| All code PRs | 83 | 58 | 723 → 791.5 s | 1,121 → 1,874 s |
| All code queue runs | 61 | 55 | 697 → 711 s | 988 → 1,197 s |

The following comparison matches the complete set of non-skipped job names,
normalizing only the shard suffix. It includes format and cross-platform jobs
in the matching key, rather than treating every code change as equivalent.
Linux rows run Fast Gate and Tier 2 without Qt or native platform lanes; Qt
rows run Fast Gate and Qt without Tier 2. The JSON contains all matched groups,
run membership and the comparison source. These are comparable lane cohorts,
not identical code or controlled runner/cache experiments.

To reproduce every matched group, outcome/cost total and first-attempt
sensitivity calculation from the committed inputs, run from the repo root:

```sh
uv run --no-project python - <<'PY'
import json
from pathlib import Path
import sys
path = Path('docs/ci-evidence/2026-10-22-ci-speed-day.json')
data = json.loads(path.read_text())
sys.argv = ['reproduce-comparison', str(path)]
exec(compile(data['reproduce_comparison_source'], 'reproduce-comparison', 'exec'))
PY
```

| Selected lanes / event | Before n | After n | Median before → after | p95 before → after | Median runner-minutes before → after |
| --- | ---: | ---: | ---: | ---: | ---: |
| Linux Tier 2 / PR | 55 | 25 | 723 → 593 s | 1,219 → 1,085 s | 21.767 → 25.600 |
| Linux Tier 2 / queue | 38 | 24 | 696.5 → 581.5 s | 1,050 → 902 s | 22.242 → 25.100 |
| Qt / PR | 3 | 4 | 576 → 358.5 s | 608 → 453 s | 9.433 → 9.758 |
| Qt / queue | 2 | 4 | 487.5 → 401 s | 522 → 412 s | 9.483 → 9.975 |

Linux medians are 130 seconds (18.0%) and 115 seconds (16.5%) shorter, with
17.6% and 12.9% higher median total runner time respectively. Qt samples are
small: nearest-rank p95 is their maximum and is not a stable population tail.
Cross-platform matched groups became slower; see the JSON rather than
extrapolating Linux gains to Windows/macOS work. Job elapsed minutes are not
billed minutes or monetary cost.

Of the successful after-window Linux rows, 20/25 PR runs and 19/24 queue runs
used four shards; the remaining five in each row used complete suites.
The table therefore measures the day's mixed policy, not sharding alone.

| Code cohort / outcome | Before runs | After runs | Before runner-minutes | After runner-minutes |
| --- | ---: | ---: | ---: | ---: |
| PR success | 83 | 58 | 2,175.093 | 1,987.102 |
| PR failure | 10 | 11 | 171.967 | 364.599 |
| PR canceled | 21 | 22 | 381.681 | 356.115 |
| Queue success | 61 | 55 | 1,644.061 | 1,777.482 |
| Queue failure | 3 | 2 | 24.033 | 114.184 |
| Queue canceled | 9 | 1 | 324.065 | 7.883 |

Outcome totals are separate from successful-gate latency. Latest attempts only
are available; the comparison includes a first-attempt-only sensitivity view.
Some rerun job creation timestamps are later than their retained start times;
those cannot establish dispatch latency. No claim about overwritten attempt
costs is possible from this dataset.

### Revision changes and final decisions

This was a representative day of actual repository work, with changing source
and policy. It was not a day on a frozen implementation. In particular:

- **Qt overlap: retain.** 19 of 20 PR and 14 of 15 queue successful Qt/Fast Gate
  job pairs overlapped; median overlap was 184.5 and 144 seconds. These counts
  include all source cohorts. No observed failed Fast Gate run had an active
  Qt job, so failed-gate wasted Qt cost is unmeasured, not proven zero for
  future runs. Keep both final dependencies and cancellation conditions.
- **Sharding: superseded.** The mixed-layout day cohorts showed lower Linux gate medians
  with more runner time. [#1643](https://github.com/obs-rust/obs-studio/pull/1643)
  merged at 20:43:20 UTC, removing nine serial barriers after resource isolation
  and a core ordering fix. It retained deinterlace RUN_SERIAL. At the user's
  request, [#1663](https://github.com/obs-rust/obs-studio/pull/1663) merged at
  22:22:41 UTC, restoring one complete suite per backend and halving repeated
  test-job setup/download work. Keep that current unsharded policy. Do not
  restore four runners based on the earlier cohort result. Optional local
  sharding tools remain available.
- **Prepared environment: defer under #1592.** The original local experiment
  excludes a fresh runner's image transfer. No net CI saving is established;
  keep stock Ubuntu plus apt caching until its publication and transfer
  benchmark gate is satisfied.
- **Rust compile settings: retain; further profiling under #1286.** Sampled
  Fast Gate workspace commands reported 37.39–43.79 seconds build/link and
  59.72–64.29 seconds observed test output. A changed-crate queue command was
  only 2.92 seconds build/link and 2.88 seconds output: do not pool these
  different scopes. Logs still cannot isolate linker-only time or rebuild
  reasons. No extra compilation or wrapper/fingerprint changes were made.
- **Empty publisher skip and timing metrics: retain.** Required failures stay
  failures. Master timing publication was verified after the original rollout;
  remote cache publication remains master-only. Several independent cache
  changes (#1670, #1671, #1672, #1675, #1680 and #1681) also landed late in the
  day. They and the hybrid-default change #1588 prevent attributing the entire
  day to #1581. Qt pruning #1690 landed after the observation window.

### Coverage and failures

Across the day, concrete Linux Tier 2 test jobs had 341 successes, two failures
and seven cancellations (188/1/7 on PRs; 153/1/0 in the queue). These are job
outcomes, not an independent-trial flake probability. A canceled workflow can
contain a failed final gate; do not count that as another test failure.

The sampled successful shard runs registered 341, 342 and 346 tests per
backend as new tests landed. Each mode retained the same three unavailable
PulseAudio skips and zero failures. A late unsharded PR run
[39703552196](https://github.com/obs-rust/obs-studio/actions/runs/39703552196)
registered 353 per backend, executed 350, skipped the same three and reported
zero failures: OFF 168.19 seconds, ON 167.45 seconds. The early sampled queue
[39528104438](https://github.com/obs-rust/obs-studio/actions/runs/39528104438)
retained 341 per mode; the middle queue retained 346. The final queue sample
selected no Linux Tier 2 job. Coverage evidence is sampled; a successful job
alone does not reconstruct every test assertion or every registry union.
The original exact-partition checker and focused rollout evidence establish
shard union invariants. Current unsharded jobs run the complete registry.

The two observed Linux test failures were inspected directly:

- [39549304820](https://github.com/obs-rust/obs-studio/actions/runs/39549304820),
  ON shard 2: `test_output_delay_e2e/force_stop_skips_delay`. #1643 corrected
  inactive-state publication before the deactivate signal and added a
  deterministic callback regression test, preserving existing assertions.
- [39658456956](https://github.com/obs-rust/obs-studio/actions/runs/39658456956),
  OFF shard 1: `test_deinterlace_2x_field_order/yadif_2x_bottom_first_50i_into_30`
  during the experiment removing its guard. #1643 restored deinterlace
  RUN_SERIAL instead of relaxing the timing assertion.

The unchanged three device skips remain visible. This batch introduced no new
workflow file, product ABI/protocol change, Rust test binary, C-test relaxation
or public-header change. Later independent product/test changes are explicitly
identified above. The initial RED/GREEN and partition/failure-condition checks
remain linked through the implementation PRs; documentation needs no artificial
RED test.

### Measurement limits and follow-through

The day supports adopting Qt overlap, retaining the publication guard and phase
instrumentation, and recording the cost of the temporary shard experiment.
It does not establish a universal speedup. Cache hits in sampled build logs
indicate warm restores, while some compilations remain cold; missing cache
markers are unknown. Setup, restore/save, build/configure and test step times
are retained separately in lane summaries. Qt phase markers and Cargo phase
markers are in sampled logs; build-step wall time is not compiler CPU time.
Creation-to-start includes dependency waits and cannot identify runner
contention by itself. The earlier 136-second post-creation gate delay remains
unexplained; further readiness/dispatch diagnosis stays with the overall queue
runtime tracker [#930](https://github.com/obs-rust/obs-studio/issues/930).
This batch adds measurement rather than changing runner policy.

Further prepared-image work is gated by #1592 and rebuild/link/cache work by
#1286. Preserve the current complete OFF/ON suites, required checks,
differential tiers and cache safeguards while pursuing those follow-ups.
