Skip to content

ci: Tier 2 Linux builds once and shards the tests - #975

Merged
zackees merged 2 commits into
masterfrom
ci/937-tier2-fanout
Oct 16, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/937-tier2-fanout

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

Stacked: builds on #967 (Tier 2 Linux native); the new commits are the two #937 ones. It will be retargeted to master once #967 merges.

Fixes #937. Part of #930.

Builds are about 1 min of Tier 2 Linux; the ctest runs were 9.4 min. So build once, then shard the tests:

  • rust-linux-tier2-build: builds OFF and ON natively, runs every check (ported objects, decklink/nvenc, ON/Debug staticlib, and the enforced OFF/ON export comparison, so a mismatch fails before any test runs), packs each build tree without *.o/*.a/cargo target, and uploads tier2-tree-OFF/-ON.
  • rust-linux-tier2 (mode × shard, 2×3): each job checks out, installs the packages, unpacks its tree at the same runner.temp path, and runs ctest -I <shard>,,3.
  • rust-linux-tier2-done: publishes the tier2-linux lane proof once every shard passes.
  • validate.sh: OBS_TIER2_STAGE (all/build/test; default all, so the local gate is unchanged), OBS_TIER2_PACK, OBS_CTEST_SHARD. run.sh passes them through (OBS_TIER2_PACK_DIR), so a CI shard reproduces locally.
  • zstd joins apt-packages.txt (tar --zstd). A built-in soldr untar is requested in feat: soldr tar/untar (and zstd) subcommands for general .tar.zst archives, with timestamp handling on by default forge-ci/soldr#3790.

RED 7772cf0: ci/test_tier2_fanout.py, 7 failures.
GREEN 9fd7666: 23/23 across the Tier 2 tests. Superseded workflow assertions were moved (split → fanout; native tests now read the build and test jobs).

Local end-to-end (Docker harness, host load 180–250):

  • build stage: IDENTICAL (1766 symbols); packed 42 MB (OFF) and 50 MB (ON).
  • a fresh empty volume with only the unpacked ON tree, test stage shard 1/40: 7/7 passed (incl. test_pipewire_wrapper, test_vlc_audio_track).
  • The first try caught zstd: not found in the image, which is now fixed.

Expected: build job about 3–4 min, then shards of about 1/3 of 4.7 min each (floor: the 83 s test_deinterlace_2x_field_order), in parallel.

Fails: validate.sh has no build/test stages, packing or ctest shards,
and the workflow has no build job or shard matrix.
Builds are about 1 min of Tier 2; the ctest runs were 9.4 min. One job
now builds ENABLE_RUST_LIBOBS=OFF and =ON (with the enforced OFF/ON
export comparison, so a mismatch fails before any test), packs each tree
without objects (42/50 MB zstd) and uploads it; 2x3 mode-by-shard jobs
unpack it at the same path and run ctest -I <i>,,3. rust-linux-tier2-done
publishes the lane proof once every shard passes. validate.sh gains
OBS_TIER2_STAGE (all/build/test), OBS_TIER2_PACK and OBS_CTEST_SHARD;
run.sh passes them through so a CI shard reproduces locally. zstd joins
the package list for tar --zstd.
@zackees
zackees force-pushed the ci/937-tier2-fanout branch from 9fd7666 to 6694b43 Compare October 16, 2026 07:56
@zackees
zackees changed the base branch from ci/966-tier2-native to master October 16, 2026 07:56
@zackees
zackees marked this pull request as ready for review October 16, 2026 07:56
@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

Rebased onto master (now RED 62b7904, GREEN 6694b43); #967's commits dropped, since master has them squashed. The three jobs are rebuilt on master's current Tier 2 job: the stock ubuntu:26.04 container (#967), deferred (#993: Tier 2 runs on master pushes and the release gate, not PRs), 30-min timeouts (#983) and the git-safe fix (#1030).

Local check on this head (Docker harness): build stage OFF+ON, IDENTICAL (1766 symbols), trees 45 MB / 53 MB; a fresh volume with only the unpacked OFF tree, shard 2/40: 7/7 passed. 34 Tier 2 workflow tests and the ci/ suite (415) pass.

Because PR runs defer Tier 2, this PR's own CI won't run the new jobs. Their first real run is the master push after merge.

@zackees
zackees merged commit 30a57fc into master Oct 16, 2026
zackees added a commit that referenced this pull request Oct 16, 2026
* test: Tier 2 test stage needs no Rust toolchain (RED, Refs #1041)

Fails: validate.sh reads rustc -V for every stage.

* ci: Tier 2 test shards run without a Rust toolchain (Fixes #1041)

validate.sh read rustc -V at the top for every stage, so every shard job
of #975's first master run failed with 'rustc: command not found'. Only
the build stage needs it (stale-build detection).
@zackees
zackees deleted the ci/937-tier2-fanout branch October 26, 2026 15:42
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.

ci: Tier 2 Linux builds once, then fans the tests out over parallel runners (target design for #930)

1 participant