Skip to content

ci: Tier 2 Linux starts the slowest tests first - #950

Merged
zackees merged 3 commits into
masterfrom
ci/931-tier2-schedule
Oct 16, 2026
Merged

zackees merged 3 commits into
masterfrom
ci/931-tier2-schedule

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

Fixes #931. Part of #930.

RED acd7d91: ci/test_tier2_schedule.py, 4 fail (no cost-data handoff, OBS_CTEST_JOBS: 4 vs the first plan's 8).
GREEN a1d6bdd: validate.sh restores CTestCostData.txt per mode from the ccache dir before ctest and writes it back after, also when a test fails. CI keeps -j4.

Why not -j8: under 8 jobs, test_encoder_join_keyframe (a real AV1 encode) and test_media_gif_last_frame failed their timing assertions while passing 5/5 alone. Raising the job count needs per-test PROCESSORS first (#938).

Local check: the tier2-linux lane wrote ctest-cost-OFF.txt and ctest-cost-ON.txt into the ccache volume (test_serializer 3 0.114433 …). OFF passed 250/250. ON had two real-time timing failures (test_deinterlace_2x_field_order, test_async_delay_audio) while the host load average was 76–174 from other sessions; they're unrelated to this change, because on a first run ctest has no cost data and keeps master's order.

Effect shows from the second CI run after merge: master's push saves the ccache, including the cost files, and the next runs order by them.

…, Refs #931)

Fails: validate.sh has no CTestCostData.txt handoff and CI sets
OBS_CTEST_JOBS: 4.
Every CI container started without CTestCostData.txt, so ctest did not
know test_deinterlace_2x_field_order (83 s) and the other real-time
media tests are slow and could start them last: about 285 s per mode for
660 s of work at -j4. validate.sh now carries the cost data per mode in
the ccache directory (which CI restores), and keeps it when a test fails.

The job count stays at 4: under -j8, CPU-heavy timing tests failed while
passing alone (#938).
@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

Heads-up: going from -j4 to 8 at a time will likely raise the rate of the load-sensitive flakes #953 (test_v4l2_busy_signal, just failed on #934) and #838 (real-time audio). Worth watching the first few queue runs after this lands.

@zackees
zackees enabled auto-merge October 16, 2026 01:22
test_local_gate_probe captured the lane's output, so a CI failure read
only 'returned non-zero exit status 101'.
@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

The Ubuntu Rust Tests lint lane failed twice here (runs 38834345861 attempt 1 and 2; the other Rust jobs were cancelled after it).

ci/test_local_gate_probe.py::test_changed_source_fails_the_rust_test_lane errors on its first, expected-to-pass lane_rust_test(False) call: the windows-gnu step added in #925, soldr cargo test --workspace --locked --no-run --target x86_64-pc-windows-gnu on the probe crate, exits 101. The probe captures cargo's output and does not print it, so the log does not show the actual cargo error.

It is not reproducible locally: the probe passes on master 6423c6b and on this branch rebased onto it. #936's Ubuntu lane passed after #925. So this looks environment- or cache-dependent rather than caused by this diff, which only touches the Tier 2 job. Two small follow-ups would make the next failure diagnosable: print output[-1] when the probe's first call raises, and check whether the runner's soldr matches the 0.9.33 that #925 needs.

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 schedules slow tests first and runs 8 at a time (A3 of #930)

1 participant