Repository navigation
Closed
Description
Part of #930. Do first: this is the target shape for Tier 2 Linux, and the other Tier 2 items in #930 are steps toward it.
Why
Measured on #918's queue run (Tier 2 Linux, 12.9 min):
| Step | Time |
|---|---|
| Setup (container, Rust staticlib, checks) | 2.4 min |
Build OFF (C) libobs.so + tests, warm ccache |
28 s |
Build ON (Rust) libobs.so + tests |
33 s |
| OFF ctest | 4.7 min |
| ON ctest | 4.7 min |
Builds are about 1 min; tests are 9.4 min, run back to back. Parallelizing the builds alone saves about 30 s. The win is building once and splitting the tests across runners.
Design
- Build job (one runner).
- From one CMake configure, build the C
libobs.so(ENABLE_RUST_LIBOBS=OFF), the Rustlibobs.so(ON), and the cmocka test programs once. - The two libraries share the soname and exports, so the same test binaries run against either via
LD_LIBRARY_PATH. That makes it a real drop-in ABI check. - Upload the two libraries, the test programs and their data as one artifact (about 100 MB).
- From one CMake configure, build the C
- Test runners (matrix: library × shard).
- For example
{OFF, ON} × 4shards. Each downloads the artifact and runsctest -I <shard>,,<N>under xvfb against its library. - RUN_SERIAL tests go on one shard per library.
- The floor is the longest single test (about 83 s,
test_deinterlace_2x_field_order) plus about 30 s of artifact download.
- For example
- Symbol checks (report-only, after the tests).
- A job that needs the test runners runs the new meta: Faster CI: code-PR queue runs under 8 minutes #930 A7 checks every time: the per-unit
nmnames (C object vs Rust exports) and the cbindgen-header signature compile. - For now they report without failing. The C and Rust sides may not be one-to-one yet, and there will be exceptions (Rust runtime internals, helpers, intentional differences). The report goes to the job summary as a list of mismatches.
- Ratchet later: record the current mismatches as an allowlist, fail only on new ones, and shrink the list toward one-to-one.
- The existing library-level
nm -DOFF/ON comparison (IDENTICAL (1766 symbols)today) stays enforced as it is now. It already passes, and dropping it would weaken the current gate.
- A job that needs the test runners runs the new meta: Faster CI: code-PR queue runs under 8 minutes #930 A7 checks every time: the per-unit
- Gate:
CI Gate ✅fails if any shard fails or the enforced export comparison differs. The lane proof is published only when all of them pass.
Later wins it enables
- The C
libobs.sodepends only on C sources and build files, so Rust-only PRs can reuse master's artifact and skip the OFF build and the OFF shards. - The shard count is a single knob to trade runner minutes against wall time.
Checks before building it
decklink.soandobs-nvenc.soload libobs dynamically, so the swap works for them too.- Tests that compile a C source directly into the test program (
test_utf8, …; testing-policy.md:200) only test C; they stay valid but don't exercise the swap. - Both libraries need identical compiler flags (one configure, two targets).
Expected
Tier 2 Linux from 12.9 min to about 3–4 min wall time.
Stepping stones
- meta: Faster CI: code-PR queue runs under 8 minutes #930 A2, OFF and ON as parallel jobs (in progress): 13 min to about 6–7 min.
- ci: Tier 2 Linux schedules slow tests first and runs 8 at a time (A3 of #930) #931, slow tests start first: input to shard balancing.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 16, 2026
Claiming: #937
mode × shardmatrix) unpack it at the same path in the same image and runctest -I <shard>,,<N>. The exports job compares OFF/ON as now; the report-only symbol checks come after.libobs.so, so Rust-only PRs reuse master's C library.RED test first in
ci/; measured against today's 2-job split (ci: Tier 2 Linux runs OFF and ON as parallel jobs #956).github-actions commentedon Oct 16, 2026
Claim bot: claimed by @zackees. It expires after 48 h (8 h on
criticalissues) without a progress comment here or a push, comment or review on a linked PR.test: Tier 2 Linux builds once and shards the tests (RED, Refs #937)
ci: Tier 2 Linux builds once and shards the tests (Fixes #937)
ci: Tier 2 Linux builds once and shards the tests (obs-rust#975)