Repository navigation
ci: enable TUnit adaptive parallelism in CI - #1727
Conversation
…in CI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Reviewed the head. The change is small and CI-only: it bumps TUnit 1.87.12 to 1.90.0 in
Two non-blocking notes:
|
CI test-time comparison
Baseline (last 8 successful The branch median (332 s) is lower, but every result is inside the baseline range, and one leg (415 s) is slower than any baseline leg. With two runs on noisy hosted runners, this is no measurable improvement. Likely reasons:
The adaptive summary does not appear in the CI log, because |
|
Reviewed the diff: a TUnit bump in
|
ReviewThe change is small and fits the repo rules. It touches only the test infrastructure. TUnit is the only package bumped. The adaptive-parallelism switch is a native TUnit feature, enabled only in the CI Test step through an environment variable. It adds no Findings (non-blocking):
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Updates TUnit to 1.90.2 and turns on TUnit's experimental adaptive parallelism for the CI test step through
TUNIT_ADAPTIVE_PARALLELISM=1.mainwas moved to 1.90.2 separately in #1728, so this PR now changes only the CI setting.With adaptive parallelism, TUnit starts at its default limit (2x processor count) and raises or lowers the limit during the run based on throughput, CPU and memory pressure. The run summary prints one line per test project.
Local runs are unchanged. Set the same environment variable or pass
--adaptive-parallelismto try it.Manual throttles
None. Relayer has no
[NotInParallel],[ParallelLimiter]or semaphore throttles in its tests, so there was nothing to remove.Result: no measurable change
Teststep, seconds. Three rounds, each with this branch (adaptive) andmain(fixed limit) running at the same time on 1.90.2:The 2.5% difference is inside runner noise. The summaries show why: the runner's CPUs are saturated for most of the run, mostly by the database and broker containers, so a higher limit has nothing to use. The limit stayed at 8 in 101 of 108 test processes.
Two existing tests are timing-sensitive under load. They are unrelated to the mode:
Bounded_stop_cancels_a_stuck_handler_and_restart_replays_from_it: 200 ms stop deadline, failed once with adaptive mode on.ChangeCaptureTests.Failed_send_stays_durable_after_checkpoint_and_restart_recovers_without_new_insert: timed out once with a fixed limit.Details: thomhurst/TUnit#7915 (comment)
Per-message cost: none (test infrastructure only). No docs impact.