Skip to content

ci: isolate Tier 2 serial tests across verified balanced shards - #1583

Merged
zackees merged 2 commits into
masterfrom
infra/1581-tier2-shards
Oct 21, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/1581-tier2-shards

Conversation

@zackees

@zackees zackees commented Oct 21, 2026

Copy link
Copy Markdown
Member

Tier 2 testing takes roughly 306–332 seconds per implementation despite a 66–96 second build step. Several long tests require RUN_SERIAL, so additional CTest parallelism cannot overlap them within one environment. Partition each OFF/ON suite into two duration-balanced shards on separate runners using the existing build-once artifact and planner. Keep RUN_SERIAL, all C assertions, the Fast Gate dependency and the required lane proof.

Before each filtered run, compare all shard plans against that runner's actual CTest JSON registry. Fail on omissions, duplicates, empty/missing plans, unknown tests and unsupported regex syntax; never silently fall back to striped scheduling. Timing artifacts have unique mode/shard identities and merge on master through the existing implementation. The new verifier lives in the validation directory so scope selection and proof invalidation cover its changes.

This is an experiment: four test runners replace two, increasing setup and potentially runner-minutes. Adopt/reject based on live suite times, coverage, runner cost and representative-day data. No measured speedup claimed yet; Refs #1581, not a closure of the full batch.

Validation:

  • RED 080420b4b: focused shard/fanout/cost tests failed (9 failures) before the implementation.
  • GREEN f5108758b: 36 focused tests pass, including actual CTest registry/filter partitioning, unchanged RUN_SERIAL metadata, invalid shard rejection, complete coverage, omissions, overlaps, missing and empty plans, timing merge, failure/cancellation/attestation gating.
  • Tier 2 proof-input tests pass; bash -n and git diff --check pass.
  • ./lint --fix passed (36.0 s); after relocating the helper into the validation directory, tool-guard, uv-run and stdlib-only checks also pass.
  • clud-review: fixed the reviewer finding that a verifier under ci/ would escape Tier 2 proof inputs by placing it with the validation harness.
  • Existing C tests, public headers, submodule pointers, cache writer policy and Rust compiler-cache safeguards are unchanged. No workflow files added.

Baseline: https://github.com/obs-rust/obs-studio/actions/runs/39521142237 (11m36s required gate; 341 registered tests/mode; ON CTest 331.24 s).

@zackees
zackees added this pull request to the merge queue Oct 21, 2026
Merged via the queue into master with commit de0ed36 Oct 21, 2026
25 checks passed
@zackees
zackees deleted the infra/1581-tier2-shards branch October 26, 2026 15:45
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