Repository navigation
ci: reduce queue runner demand while preserving complete Tier 2 coverage - #3917
Conversation
|
Hosted red adjudicated: PRE-EXISTING master oracle-link breakage. Master push run 42393067345 has exact head 5653407. Job 128470923706 failed with the same five undefined obs_encoder_get_codec/type/id/type_data/caps symbols (log lines 602, 606, 610, 614, 618), then obs-util (lib test) failed at line 623. https://github.com/obs-rust/obs-studio/actions/runs/42393067345/job/128470923706 Separate live breakage: #3918, fix PR #3919. No unrelated Rust/C fix is being added here. Local six-test adjudication is still pending: the task requires a separate clean master worktree but also explicitly prohibits creating another checkout; clarification requested. Fresh local gate is running on locally rebased af1bad1; lint has reproduced inherited SOLDR_PORCELAIN=1 metadata parser failure (workspace_members). No attestation claimed, no push or enqueue, ruleset untouched. |
|
Local gate completed on rebased af1bad1: FAILED after 528s, no lane passed, no Local-Gate attestation. Identical command: OBS_CTEST_JOBS=8 uvx --from git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2 ci-lint local-gate run. Inherited SOLDR_PORCELAIN=1 reproduced lint KeyError workspace_members. OFF C-reference: 7/763 failed, 301.03s: test_deinterlace_2x_field_order_50i_into_50, test_deinterlace_2x_field_order_50i_into_60, test_deinterlace_2x_field_order_50i_into_30, test_pipewire_screencast_resume, test_pulse_stream_restart, test_vlc_audio_pacing, test_vlc_playlist_gap. ON and later lanes not reached. This is NOT proof of pre-existing local failures or a scheduling regression: unmodified-master comparison remains required. Blocked on conflicting task constraints: separate clean worktree required, creation of another checkout prohibited; permission/path question pending. No push, ready, enqueue, ruleset write, or unrelated code changes. Raw local log: /tmp/pr3917-rebased-local-gate.log. Hosted exact-base evidence is in the preceding comment. |
0c0c390 to
af1bad1
Compare
af1bad1 to
a324464
Compare
Reduce Linux hosted-runner demand on PRs and merge groups from six Tier 2 test runners to two, running the complete OFF and ON CTest registry once each. Retain the existing six partitions on master pushes, nightly, manual and release callers. No test assertions, C tests, public headers, aggregate-gate code or ruleset settings change.
Refs #2072 and #930. Requested deliverable: leave this PR unmerged; no auto-merge or enqueue.
Decision
Choose compact scheduling over dropping OFF/serial coverage: all existing assertions remain on the queue path.
allclears every part/shard/CPU partition selector, and CTest still honors RUN_SERIAL. Keep the standard Fast Gate and Tier 2 build/export checks. PRs use the same compact layout to reduce shared demand and validate the queue path before admission. Scheduling logic lives inci/tier2_matrix.py; YAML only consumes its JSON output. Scheduling-policy edits invalidate both attestation and lane proofs.Same-head PR attestation is insufficient for a synthetic merge tree; existing trusted input-keyed lane proofs already implement safe reuse. A timeout increase would hide the measured allocation bottleneck, so retain the 60-minute intent and reduce fan-out first.
Measurement: approximately 24 hours
Fetched 90 master merge-group runs using
gh api 'repos/obs-rust/obs-studio/actions/runs?event=merge_group&created=%3E%3D2026-11-06T16%3A20%3A00Z&per_page=100', then/actions/runs/<id>/jobs?per_page=100for each. The latest collected run was created 2026-11-07 16:27:07Z. All runs are attempt 1; no pagination was needed (90 runs; at most 41 jobs/run).Compute queue = job.started_at − job.created_at, runtime = job.completed_at − job.started_at, only for jobs that acquired a runner. Dependency wait is excluded. Summary includes completed allocated jobs, including failures/cancellations; pending/unallocated jobs have unknown durations, not zero. The local CSV preserves 1,056 non-skipped records; raw dumps remain untracked per #2686. API collection is non-atomic, so top-level run conclusions can lag the per-job snapshot.
All eight quoted queue/runtime pairs are independently confirmed, plus the
remaining Tier 2 partition:
The coordinator's quoted queue/runtime numbers are all confirmed exactly. Six test variants dominate the per-entry Tier 2 fan-out. The broader claim that every entry is close to ejection is not supported across the whole day: many earlier jobs waited only 2–5 seconds. Severe recent allocation delays are real; other Linux orchestration jobs also waited.
Before/after expectation
The example's six partitions consumed 1,048 runner-seconds; the longest took 235 s. A complete suite will take longer per runner because serial tests run there too. Four fewer allocations/setups/downloads per entry should reduce demand, but these observations do not predict a specific future queue delay or guarantee a hard wall-time bound. Measure the first post-rollout queue/main/nightly runs before claiming a measured speedup.
Hard proof obligations
CI Gate ✅(integration 15368), ALLGREEN/SQUASH, max build/merge 5/5, timeout 60 minutes. No ruleset API write, migration window or payload is needed.Check Job Resultsexiting 1 andCheck Run Jobsreporting that Tier 2 ON did not succeed..github/workflows/ci.ymlandci/gate_jobs.pyhave zero diff: no new aggregate gate is being trusted without a failure observation.Validation
5f6f07910:PYTHONPATH=ci uv run --no-project python -m unittest ci/test_tier2_matrix.pyfails because the scheduling helper does not exist.clud-review: clean (one reviewer); independently checked all measured CSV statistics and the complete-registry execution path.OBS_CTEST_JOBS=8 uvx --from git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2 ci-lint local-gate runwas run before pushing and failed. Export parity passed (1,767 identical symbols), but the full C-reference run took 311.64 seconds and reported six failures out of 759 tests:test_deinterlace_2x_field_order_60i_into_60,test_pulse_stream_restart,test_ws_monitor_only,test_group_hide_transition_audio,test_pulse_monitor_samples, andtest_scene_item_crop. ON execution was not reached after OFF failed. This is a local coverage result, not a hosted before/after speedup benchmark. The inheritedSOLDR_PORCELAIN=1also broke lint’s Cargo-metadata inventory parser;SOLDR_PORCELAIN=0restores valid metadata, andSOLDR_PORCELAIN=0 ./lintsubsequently passed in 201.3 seconds (including all Python self-tests, Rust formatting, Clippy and Dylint). No attestation is claimed. Rust-test/cross were not run after the heavy-lane failure. These local failures remain visible; no test/header changes, retries masking a failure, or skip exemptions were added.ci-lint precheck --local --event pull_request --jsonreports 40 existing violations in untouched files (for example vcam/welcome/release workflows and existing shell/native paths); no violation names a changed file. No unrelated policy suppressions were added.Decision and reproducible evidence:
docs/ci-tier2-queue-capacity.md.Hosted PR CI: run 42393538817 is pending; this proposal is not yet a demonstrated hosted speedup. The PR remains draft with auto-merge off.