Repository navigation
ci(tier2): run the RUN_SERIAL part beside the suite on its own CPUs (#2773) - #2779
Merged
Merged
Conversation
RED. The Tier 2 harness has no OBS_TIER2_SERIAL_CPUS and no serial runner yet, so seven of the ten cases fail: $ uv run python -m unittest ci/test_tier2_serial_cpus.py FAILED (failures=7) failed to spawn .../serial-runner.py: No such file or directory AssertionError: 'OBS_TIER2_SERIAL_CPUS' not found in validate.sh The cases that must go green: the suite CPU set is the affinity minus the serial set (and an empty remainder is refused), the serial tests run at the same time on their own CPU pairs, only RUN_SERIAL tests are run by the new part, a failure fails the run and keeps the log, more tests than pairs is a usage error, validate.sh keeps its single ctest invocation for the default path, and run.py passes the variable into the container.
…2773) GREEN for 56a85ed. OBS_TIER2_SERIAL_CPUS=<cpu list> gives the five RUN_SERIAL deinterlace tests their own cores, so a local host gets the isolation CI has with a second runner (#2071/#2072) without idling the machine: - rust/tools/linux-validate/serial-runner.py: `run` starts each RUN_SERIAL test from the CTest registry as its own process on its own CPU pair (sched_setaffinity, LP_NUM_THREADS=1 from the test's ENVIRONMENT, WORKING_DIRECTORY honoured, its own xvfb-run -a and log); `suite-cpus` prints the affinity minus the serial set; `pin` execs the suite part's ctest on that set, so the harness needs no taskset. - validate.sh: the concurrent branch, the usage guard against OBS_CTEST_PART/OBS_CTEST_SHARD, and test_env_pairs so the serial children get the same NAME=VALUE list the suite part exports. - run.py: passthrough, so the harness passes it into the container. - README: the knob and what changes. - ci/test_tier2_env.py: read the pairs array, which is now the source of the environment block it pins. The serial part deliberately has no ctest of its own: RUN_SERIAL keeps those tests one-at-a-time even under -j, and a second concurrent ctest would race the suite part's Testing/Temporary/CTestCostData.txt. Measured on this 16-core host (CPUs 0-9 serial, 10-15 suite), inside the Tier 2 image against this checkout's build tree: standalone, one process per pair: 5/5 passed in 31.6 s wall (one after another they are 147 s per mode in #2773) concurrent with the suite part: serial 33.4 s, 5/5 passed, while tree.ctest-OFF.log was still running the suite tests No features.md line: build/test tooling only.
ci/test_tier2_xvfb_lifetime.py execs the suite-part invocation with a stubbed xvfb-run to prove the shared display survives between tests (#1355). #2773 puts that invocation in the else branch of the serial-CPU opt-in, so the pin now reads the else branch and counts the three xvfb-run/ctest pairs: the default path, the repeat run, and the concurrent suite part. The serial part gets its own per-test display (--xvfb=-a), which the test also pins.
zackees
marked this pull request as ready for review
October 28, 2026 11:38
Member
Author
|
Handed off to the coordinator PR #2779 is ready and queued (
|
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Tier 2's
RUN_SERIALdeinterlace tests idle every other core while they run: five tests, one after another, 147 s of the 242 s of one mode on a 24-core host (#2773). CI avoids it with two runners per mode (#2071, #2072); a local host has no second runner, so this takes the isolation from CPU time instead of an idle machine.New opt-in
OBS_TIER2_SERIAL_CPUS=<cpu list>:ctest -E <serial regex>pinned to the CPUs the variable leaves;RUN_SERIALtest as its own process on its own CPU pair withLP_NUM_THREADS=1and its ownxvfb-run -a;tree.ctest-<mode>.log,tree.serial-<mode>.log);The serial part deliberately does not go through ctest:
RUN_SERIALkeeps those tests one-at-a-time even under-j, and a second concurrent ctest would race the first one'sTesting/Temporary/CTestCostData.txt. The trade-off is that the five pinned tests no longer get cost entries; ctest's longest-first ordering has nothing to order when one test per CPU pair is already the schedule.RED
56a85edd8—ci/test_tier2_serial_cpus.py, seven of ten cases fail on it:GREEN
73c795cd1:rust/tools/linux-validate/serial-runner.py—run(registry → one process per CPU pair,ENVIRONMENT/WORKING_DIRECTORY/RUN_SERIALproperties honoured, per-test log, non-zero on failure),suite-cpus(affinity minus the serial set, refuses an empty remainder) andpin(execs the suite part's ctest on a CPU set, so the harness needs notaskset);validate.sh— the concurrent branch, the usage guard againstOBS_CTEST_PART/OBS_CTEST_SHARD, andtest_env_pairsso the serial children get the sameNAME=VALUElist the suite part exports;run.py— passthrough into the container;README.md— the knob and what changes;ci/test_tier2_env.py— reads the pairs array, which is now the source of the environment block it pins.Measured on this host (16 cores; serial 0-9, suite 10-15)
Inside the Tier 2 image against this checkout's build tree:
tests: Running 13 test(s) ... PASSED), not the skip path.tree.ctest-OFF.logwas still running the suite tests (10/585, each 17-19 s). The suite part on this box is slower than the reporter's 24-core host, so I stopped the full run at 15 min rather than quote a total I did not finish.No
docs/features.mdline: build/test tooling only.Refs #2773