Skip to content

fix(sanitize): run the sanitizer unit tests concurrently (#3251) - #3279

Merged
zackees merged 2 commits into
masterfrom
build/3251-asan-parallel
Oct 31, 2026
Merged

zackees merged 2 commits into
masterfrom
build/3251-asan-parallel

Conversation

@zackees

@zackees zackees commented Oct 31, 2026

Copy link
Copy Markdown
Member

What

rust/tools/sanitize/sanitize.py run_unit_tests ran its 633 ctest binaries one at a time. That was 20 of the 27 minutes of Build / Sanitize / asan, which made it the critical path of every PR that selects it. Now a new run_tests:

  • runs the tests on a ThreadPoolExecutor with os.cpu_count() workers. Each test already has its own <name>.log and sanitizer log prefix, so outputs don't collide;
  • reads RUN_SERIAL and RESOURCE_LOCK from ctest --show-only=json-v1 (Test.serial). Those tests (xshm monitor, deinterlace field order, the scripting hosts) run one at a time after the pool, as ctest would schedule them;
  • prints each result as its test finishes, with its wall time;
  • writes tests/durations.tsv (name, seconds) so slow tests are visible.

summary.txt keeps its exact format and test order. triage.py matches endswith(" exit=0") and the harness test matches "test_core exit=0", so the durations go in their own file rather than on the summary line (a deviation from the issue text, for compatibility).

RED → GREEN

  • RED (first commit): ParallelUnitTestsTest in ci/test_sanitize_harness.py fails on master. run_tests and Test.serial don't exist; the serial loop would also take 4 × 0.5 s, more than the 1.5 s bound.
  • GREEN: four 0.5 s tests finish in under 1.5 s in order; serial tests never overlap (peak concurrency 1); RUN_SERIAL and RESOURCE_LOCK parse. The sanitize harness, triage, step and cmocka-sanitize suites pass, and ./lint passes.

Expected effect: the ASan unit-test phase drops from about 20 min to about 20 min ÷ the runner's cores, plus the serial tail. The PR's ASan run (if this path selects it) or the next master run will show it.

Test cost: three Python tests, longest about 0.6 s, threads from a pool of 4, no Rust.

Fixes #3251. Refs #3249.

@zackees
zackees enabled auto-merge October 31, 2026 21:16
@zackees
zackees added this pull request to the merge queue Oct 31, 2026
Merged via the queue into master with commit 5159ac4 Oct 31, 2026
36 checks passed
@zackees
zackees deleted the build/3251-asan-parallel branch October 31, 2026 21:32
vpacher added a commit that referenced this pull request Oct 31, 2026
…#3238)

#3279 (#3251) runs the sanitizer unit tests in a pool of every core, on
the one Xvfb display sanitize.py starts, for every tool. The same design,
measured before #3279 merged (dispatch 41238464885 against the serial
41237708627, both on a5feec4), changed three exit codes: with tests
side by side on one display, test_xshm_monitor_late failed in its setup
("cannot add RandR monitors"), and test_dock_proportions failed 6 checks
instead of 1. Tier 2 runs the same tests in parallel without that,
because ctest gives each test its own server through xvfb-run. tsan and
valgrind were not measured in a pool, and valgrind needs far more memory
per test.

TestIsolationTest in ci/test_sanitize_harness.py:
- with private_displays, run_tests() runs every test, serial ones too,
  under xvfb-run with its own server number and without the shared
  DISPLAY (a fake xvfb-run records both);
- private_displays(): asan only; unit_test_jobs(): every core for asan,
  1 for tsan and valgrind, SANITIZE_JOBS overrides;
- run_unit_tests() passes both for its tool.

uv run --no-project python -m unittest ci/test_sanitize_harness.py:
2 errors, 1 failure (run_unit_tests gives valgrind every core), 17 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Oct 31, 2026
…al (#3238)

run_tests() takes private_displays: each test then runs through the
runner with its own Xvfb server number (a per-run counter from 100; the
shared display is :90 to :98). run_one_test() runs it under xvfb-run -n
with the shared screen size and leaves the shared DISPLAY out of its
environment, so the tests registered with xvfb-run-or-display.sh start
their own server instead of falling back to it. The serial tests after
the pool get one too.

run_unit_tests() passes unit_test_jobs(tool) and private_displays(tool):
asan runs every core at a time, each test on its own server; tsan and
valgrind run one test at a time on the shared display, as before #3279.
SANITIZE_JOBS overrides the pool size. run_tests() keeps its defaults
for direct callers.

The end-to-end harness test gets a pass-through xvfb-run stub, as it has
one for Xvfb.

uv run --no-project python -m unittest ci/test_sanitize_harness.py: 20
passed; test_cmocka_sanitize, test_sanitize_triage, test_sanitizers_step
and test_sanitize_deps pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
…#3238)

#3279 (#3251) runs the sanitizer unit tests in a pool of every core, on
the one Xvfb display sanitize.py starts, for every tool. The same design,
measured before #3279 merged (dispatch 41238464885 against the serial
41237708627, both on a5feec4), changed three exit codes: with tests
side by side on one display, test_xshm_monitor_late failed in its setup
("cannot add RandR monitors"), and test_dock_proportions failed 6 checks
instead of 1. Tier 2 runs the same tests in parallel without that,
because ctest gives each test its own server through xvfb-run. tsan and
valgrind were not measured in a pool, and valgrind needs far more memory
per test.

TestIsolationTest in ci/test_sanitize_harness.py:
- with private_displays, run_tests() runs every test, serial ones too,
  under xvfb-run with its own server number and without the shared
  DISPLAY (a fake xvfb-run records both);
- private_displays(): asan only; unit_test_jobs(): every core for asan,
  1 for tsan and valgrind, SANITIZE_JOBS overrides;
- run_unit_tests() passes both for its tool.

uv run --no-project python -m unittest ci/test_sanitize_harness.py:
2 errors, 1 failure (run_unit_tests gives valgrind every core), 17 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
…al (#3238)

run_tests() takes private_displays: each test then runs through the
runner with its own Xvfb server number (a per-run counter from 100; the
shared display is :90 to :98). run_one_test() runs it under xvfb-run -n
with the shared screen size and leaves the shared DISPLAY out of its
environment, so the tests registered with xvfb-run-or-display.sh start
their own server instead of falling back to it. The serial tests after
the pool get one too.

run_unit_tests() passes unit_test_jobs(tool) and private_displays(tool):
asan runs every core at a time, each test on its own server; tsan and
valgrind run one test at a time on the shared display, as before #3279.
SANITIZE_JOBS overrides the pool size. run_tests() keeps its defaults
for direct callers.

The end-to-end harness test gets a pass-through xvfb-run stub, as it has
one for Xvfb.

uv run --no-project python -m unittest ci/test_sanitize_harness.py: 20
passed; test_cmocka_sanitize, test_sanitize_triage, test_sanitizers_step
and test_sanitize_deps pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
KNOWN entries are (kind, why): "bug" (the test is right, OBS or its build
is wrong), "flaky" (the test is not solid yet) and "tool" (a valgrind
limitation). A known bug that ran clean counts as a finding, so the fix
must drop its entry; a flaky one that ran clean is listed. The known list
comes first in the summary.

Against real runs: #3279's master asan run 41246480225 fails on
test_xshm_monitor_hotplug and test_xshm_monitor_late; the serial nightly
41203573843 and this branch's run 41247123560 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
…#3238)

#3279 (#3251) runs the sanitizer unit tests in a pool of every core, on
the one Xvfb display sanitize.py starts, for every tool. The same design,
measured before #3279 merged (dispatch 41238464885 against the serial
41237708627, both on a5feec4), changed three exit codes: with tests
side by side on one display, test_xshm_monitor_late failed in its setup
("cannot add RandR monitors"), and test_dock_proportions failed 6 checks
instead of 1. Tier 2 runs the same tests in parallel without that,
because ctest gives each test its own server through xvfb-run. tsan and
valgrind were not measured in a pool, and valgrind needs far more memory
per test.

TestIsolationTest in ci/test_sanitize_harness.py:
- with private_displays, run_tests() runs every test, serial ones too,
  under xvfb-run with its own server number and without the shared
  DISPLAY (a fake xvfb-run records both);
- private_displays(): asan only; unit_test_jobs(): every core for asan,
  1 for tsan and valgrind, SANITIZE_JOBS overrides;
- run_unit_tests() passes both for its tool.

uv run --no-project python -m unittest ci/test_sanitize_harness.py:
2 errors, 1 failure (run_unit_tests gives valgrind every core), 17 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
…al (#3238)

run_tests() takes private_displays: each test then runs through the
runner with its own Xvfb server number (a per-run counter from 100; the
shared display is :90 to :98). run_one_test() runs it under xvfb-run -n
with the shared screen size and leaves the shared DISPLAY out of its
environment, so the tests registered with xvfb-run-or-display.sh start
their own server instead of falling back to it. The serial tests after
the pool get one too.

run_unit_tests() passes unit_test_jobs(tool) and private_displays(tool):
asan runs every core at a time, each test on its own server; tsan and
valgrind run one test at a time on the shared display, as before #3279.
SANITIZE_JOBS overrides the pool size. run_tests() keeps its defaults
for direct callers.

The end-to-end harness test gets a pass-through xvfb-run stub, as it has
one for Xvfb.

uv run --no-project python -m unittest ci/test_sanitize_harness.py: 20
passed; test_cmocka_sanitize, test_sanitize_triage, test_sanitizers_step
and test_sanitize_deps pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
KNOWN entries are (kind, why): "bug" (the test is right, OBS or its build
is wrong), "flaky" (the test is not solid yet) and "tool" (a valgrind
limitation). A known bug that ran clean counts as a finding, so the fix
must drop its entry; a flaky one that ran clean is listed. The known list
comes first in the summary.

Against real runs: #3279's master asan run 41246480225 fails on
test_xshm_monitor_hotplug and test_xshm_monitor_late; the serial nightly
41203573843 and this branch's run 41247123560 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
…#3238)

#3279 (#3251) runs the sanitizer unit tests in a pool of every core, on
the one Xvfb display sanitize.py starts, for every tool. The same design,
measured before #3279 merged (dispatch 41238464885 against the serial
41237708627, both on a5feec4), changed three exit codes: with tests
side by side on one display, test_xshm_monitor_late failed in its setup
("cannot add RandR monitors"), and test_dock_proportions failed 6 checks
instead of 1. Tier 2 runs the same tests in parallel without that,
because ctest gives each test its own server through xvfb-run. tsan and
valgrind were not measured in a pool, and valgrind needs far more memory
per test.

TestIsolationTest in ci/test_sanitize_harness.py:
- with private_displays, run_tests() runs every test, serial ones too,
  under xvfb-run with its own server number and without the shared
  DISPLAY (a fake xvfb-run records both);
- private_displays(): asan only; unit_test_jobs(): every core for asan,
  1 for tsan and valgrind, SANITIZE_JOBS overrides;
- run_unit_tests() passes both for its tool.

uv run --no-project python -m unittest ci/test_sanitize_harness.py:
2 errors, 1 failure (run_unit_tests gives valgrind every core), 17 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
…al (#3238)

run_tests() takes private_displays: each test then runs through the
runner with its own Xvfb server number (a per-run counter from 100; the
shared display is :90 to :98). run_one_test() runs it under xvfb-run -n
with the shared screen size and leaves the shared DISPLAY out of its
environment, so the tests registered with xvfb-run-or-display.sh start
their own server instead of falling back to it. The serial tests after
the pool get one too.

run_unit_tests() passes unit_test_jobs(tool) and private_displays(tool):
asan runs every core at a time, each test on its own server; tsan and
valgrind run one test at a time on the shared display, as before #3279.
SANITIZE_JOBS overrides the pool size. run_tests() keeps its defaults
for direct callers.

The end-to-end harness test gets a pass-through xvfb-run stub, as it has
one for Xvfb.

uv run --no-project python -m unittest ci/test_sanitize_harness.py: 20
passed; test_cmocka_sanitize, test_sanitize_triage, test_sanitizers_step
and test_sanitize_deps pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
KNOWN entries are (kind, why): "bug" (the test is right, OBS or its build
is wrong), "flaky" (the test is not solid yet) and "tool" (a valgrind
limitation). A known bug that ran clean counts as a finding, so the fix
must drop its entry; a flaky one that ran clean is listed. The known list
comes first in the summary.

Against real runs: #3279's master asan run 41246480225 fails on
test_xshm_monitor_hotplug and test_xshm_monitor_late; the serial nightly
41203573843 and this branch's run 41247123560 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
…#3238)

#3279 (#3251) runs the sanitizer unit tests in a pool of every core, on
the one Xvfb display sanitize.py starts, for every tool. The same design,
measured before #3279 merged (dispatch 41238464885 against the serial
41237708627, both on a5feec4), changed three exit codes: with tests
side by side on one display, test_xshm_monitor_late failed in its setup
("cannot add RandR monitors"), and test_dock_proportions failed 6 checks
instead of 1. Tier 2 runs the same tests in parallel without that,
because ctest gives each test its own server through xvfb-run. tsan and
valgrind were not measured in a pool, and valgrind needs far more memory
per test.

TestIsolationTest in ci/test_sanitize_harness.py:
- with private_displays, run_tests() runs every test, serial ones too,
  under xvfb-run with its own server number and without the shared
  DISPLAY (a fake xvfb-run records both);
- private_displays(): asan only; unit_test_jobs(): every core for asan,
  1 for tsan and valgrind, SANITIZE_JOBS overrides;
- run_unit_tests() passes both for its tool.

uv run --no-project python -m unittest ci/test_sanitize_harness.py:
2 errors, 1 failure (run_unit_tests gives valgrind every core), 17 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
…al (#3238)

run_tests() takes private_displays: each test then runs through the
runner with its own Xvfb server number (a per-run counter from 100; the
shared display is :90 to :98). run_one_test() runs it under xvfb-run -n
with the shared screen size and leaves the shared DISPLAY out of its
environment, so the tests registered with xvfb-run-or-display.sh start
their own server instead of falling back to it. The serial tests after
the pool get one too.

run_unit_tests() passes unit_test_jobs(tool) and private_displays(tool):
asan runs every core at a time, each test on its own server; tsan and
valgrind run one test at a time on the shared display, as before #3279.
SANITIZE_JOBS overrides the pool size. run_tests() keeps its defaults
for direct callers.

The end-to-end harness test gets a pass-through xvfb-run stub, as it has
one for Xvfb.

uv run --no-project python -m unittest ci/test_sanitize_harness.py: 20
passed; test_cmocka_sanitize, test_sanitize_triage, test_sanitizers_step
and test_sanitize_deps pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vpacher added a commit that referenced this pull request Nov 1, 2026
KNOWN entries are (kind, why): "bug" (the test is right, OBS or its build
is wrong), "flaky" (the test is not solid yet) and "tool" (a valgrind
limitation). A known bug that ran clean counts as a finding, so the fix
must drop its entry; a flaky one that ran clean is listed. The known list
comes first in the summary.

Against real runs: #3279's master asan run 41246480225 fails on
test_xshm_monitor_hotplug and test_xshm_monitor_late; the serial nightly
41203573843 and this branch's run 41247123560 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
alerque pushed a commit to alerque/obs-studio that referenced this pull request Nov 2, 2026
…valgrind runs every test, two at a time (follow-up to obs-rust#3279) (obs-rust#3290)

* ci(sanitizers): RED: own X server per asan test, tsan/valgrind serial (obs-rust#3238)

obs-rust#3279 (obs-rust#3251) runs the sanitizer unit tests in a pool of every core, on
the one Xvfb display sanitize.py starts, for every tool. The same design,
measured before obs-rust#3279 merged (dispatch 41238464885 against the serial
41237708627, both on a5feec4), changed three exit codes: with tests
side by side on one display, test_xshm_monitor_late failed in its setup
("cannot add RandR monitors"), and test_dock_proportions failed 6 checks
instead of 1. Tier 2 runs the same tests in parallel without that,
because ctest gives each test its own server through xvfb-run. tsan and
valgrind were not measured in a pool, and valgrind needs far more memory
per test.

TestIsolationTest in ci/test_sanitize_harness.py:
- with private_displays, run_tests() runs every test, serial ones too,
  under xvfb-run with its own server number and without the shared
  DISPLAY (a fake xvfb-run records both);
- private_displays(): asan only; unit_test_jobs(): every core for asan,
  1 for tsan and valgrind, SANITIZE_JOBS overrides;
- run_unit_tests() passes both for its tool.

uv run --no-project python -m unittest ci/test_sanitize_harness.py:
2 errors, 1 failure (run_unit_tests gives valgrind every core), 17 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): GREEN: own X server per asan test, tsan/valgrind serial (obs-rust#3238)

run_tests() takes private_displays: each test then runs through the
runner with its own Xvfb server number (a per-run counter from 100; the
shared display is :90 to :98). run_one_test() runs it under xvfb-run -n
with the shared screen size and leaves the shared DISPLAY out of its
environment, so the tests registered with xvfb-run-or-display.sh start
their own server instead of falling back to it. The serial tests after
the pool get one too.

run_unit_tests() passes unit_test_jobs(tool) and private_displays(tool):
asan runs every core at a time, each test on its own server; tsan and
valgrind run one test at a time on the shared display, as before obs-rust#3279.
SANITIZE_JOBS overrides the pool size. run_tests() keeps its defaults
for direct callers.

The end-to-end harness test gets a pass-through xvfb-run stub, as it has
one for Xvfb.

uv run --no-project python -m unittest ci/test_sanitize_harness.py: 20
passed; test_cmocka_sanitize, test_sanitize_triage, test_sanitizers_step
and test_sanitize_deps pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): RED: run the timing-sensitive tests alone (obs-rust#3238)

With an own X server per test (dispatch 41242258179), four tests still
changed in the asan pool: test_async_delay_audio (the tone broke up
once), test_slideshow_mem_cap (a fade's wall-clock check),
test_deinterlace_mode_load (a frame-timing check) and
test_dock_proportions (a Qt layout that settles on timers). Their checks
depend on timing, and four ASan processes on four cores leave them no
slack.

TimingLockTest in ci/test_sanitize_harness.py: the three tests.d tests
and the test-graph entry of test_deinterlace_mode_load hold the ctest
RESOURCE_LOCK "timing", which the pool runs alone after the others; a
RESOURCE_LOCK test is serial in ctest_tests().

uv run --no-project python -m unittest ci/test_sanitize_harness.py:
1 failure (test_async_delay_audio holds no lock), 21 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): GREEN: run the timing-sensitive tests alone (obs-rust#3238)

test_async_delay_audio, test_dock_proportions and test_slideshow_mem_cap
(tests.d) and test_deinterlace_mode_load (test-graph.json resource_locks)
hold the ctest RESOURCE_LOCK "timing". The asan pool runs a RESOURCE_LOCK
test alone after the others, so these four keep the quiet machine they
had in the serial run. In Tier 2, ctest only keeps the four from
overlapping each other; every other test still runs beside them. No
change to sanitize.py: a lock already made a test serial. A new
timing-sensitive test takes the same lock.

uv run --no-project python -m unittest ci/test_sanitize_harness.py: 23
passed; ci/test_test_graph_sorted.py passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): RED: skip exit, known findings, asan gate, valgrind ASan, slideshow press (obs-rust#3238)

Tests for the sanitizer job failing on what it finds:
- triage: exit 77 (ctest's skip) is a skip, not a failure; a KNOWN test's
  exit and sanitizer reports are listed, not counted; a KNOWN test that ran
  clean is listed; an unknown failure still counts.
- the triage step fails the asan pass on findings without the input;
  tsan keeps reporting only.
- the valgrind configure turns off the cmocka tests' own ASan.
- test_slideshow_mem_cap: a press that never lands fails. RED on CT115:
  folder_keeps_every_picture fails at the first Next ("did not land in
  5 s"); each of its 12 presses waited out the 5 s before.

Fails: 5 triage/step cases, 1 harness case (no tool_cmake_args), the
slideshow folder case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): GREEN: skip exit, known findings, asan gate, valgrind ASan, slideshow press (obs-rust#3238)

- triage.py: exit 77 is a skip. KNOWN covers a test's exit and its sanitizer
  reports, with ten asan entries, each naming the issue that tracks it; a
  KNOWN test that ran clean is listed so its entry can go.
- sanitizers_step.py: asan fails the job on findings with or without the
  fail_on_findings input; tsan and valgrind still report only.
- sanitize.py: the valgrind build turns off the cmocka tests' own ASan
  (-DOBS_TEST_SANITIZE_PER_TARGET=OFF). 101 valgrind tests died at start
  ("ASan runtime does not come first") and never ran.
- test_slideshow_mem_cap: in a folder the index is not the picture, so a
  folder press lands when another picture is shown. CT115 Tier 2 tree,
  3 runs: 41.4-42.8 s, was 100 s (folder case 61 s -> <1 s).

Harness tests: 46 OK.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): RED: the known list keeps itself honest (obs-rust#3238)

Each KNOWN entry gets a kind (bug, flaky or tool) and bug and flaky entries
name their issue; a known bug that ran clean is a finding, so the fix that
makes it pass must drop its entry; the known list comes first in the
summary, above the failures.

Fails: 2 triage cases and the KNOWN shape check (entries are plain strings).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): GREEN: the known list keeps itself honest (obs-rust#3238)

KNOWN entries are (kind, why): "bug" (the test is right, OBS or its build
is wrong), "flaky" (the test is not solid yet) and "tool" (a valgrind
limitation). A known bug that ran clean counts as a finding, so the fix
must drop its entry; a flaky one that ran clean is listed. The known list
comes first in the summary.

Against real runs: obs-rust#3279's master asan run 41246480225 fails on
test_xshm_monitor_hotplug and test_xshm_monitor_late; the serial nightly
41203573843 and this branch's run 41247123560 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): RED: each private X server gets its own auth file (obs-rust#3238)

In the tsan pool run 41275822723, test_xshm_monitor_move and
test_media_cover_art_monitor exited 5: "xvfb-run: error: problem while
cleaning up temporary directory". xvfb-run's own exit replaced the test's.
The test now expects `-f <build>/xauth/<test>` on every private server.

Fails: test_each_test_gets_its_own_x_server (no -f, so the stub's shift
runs into the command).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): GREEN: each private X server gets its own auth file (obs-rust#3238)

run_one_test passes `-f <build>/xauth/<test>` to xvfb-run, so its cleanup
only removes an empty temporary directory and the test's own exit status
reaches the summary. The build tree is not uploaded, so the cookies stay
out of the artifact. Harness tests: 49 OK.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): RED: tsan in the pool, valgrind one at a time (obs-rust#3238)

Measured on throwaway refs with a pool and private displays for every tool,
against the serial nightly 41203573843:
- tsan 41275822723: unit tests 20.3 -> 8.2 min; a few more races found
  (145 tests with reports, was 137), as more interleavings show them.
- valgrind 41275824985: unit tests 82 -> 50.5 min, but 9 tests newly fail
  (4 timing tests exit 1, 4 new valgrind errors, 1 with 18 failed cases),
  so it stays serial until it is measured with fewer jobs.

Fails: test_private_displays_and_pool_size_per_tool (tsan is serial).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): GREEN: tsan in the pool, valgrind one at a time (obs-rust#3238)

POOLED = {"asan", "tsan"}: both run their unit tests on every core, each on
its own X server; valgrind keeps one test at a time on the shared display.
Harness tests: 49 OK.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): RED: valgrind two at a time (obs-rust#3238)

With the 101 tests that died at start now running (the valgrind build has
no per-target ASan), the serial valgrind pass no longer fits the job's
150 minutes: run 41281819710 was 143 min in, unit tests at 134 min and
two timing tests still to go.

Measured on a local build box, the same valgrind build, the same 108-test
sample, at the same time, each on its own 4 cores:
- 1 job: 1443 s (746 s timing tests alone, 697 s pool part)
- 2 jobs: 1136 s (744 s timing tests alone, 392 s pool part), 1.78x on
  the pool part, with the same results as 1 job except
  test_source_monitor_only_load, which also fails serially (nightly
  41203573843).
4 jobs (41275824985) had broken 9 tests on timing.

Fails: test_private_displays_and_pool_size_per_tool and
test_run_unit_tests_uses_the_tool_settings (valgrind runs one
test at a time on the shared display).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci(sanitizers): GREEN: valgrind two at a time (obs-rust#3238)

valgrind runs VALGRIND_JOBS = 2 unit tests at once; private_displays() now
follows the job count, so every pass that runs tests side by side gives
each its own X server, and SANITIZE_JOBS=1 still runs valgrind on the
shared display. The timing-locked tests stay alone after the pool.
Harness tests: 49 OK.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=59bf78986128b0bf3e88e3b0e1c3faa6700e3c55 secs=254 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run,macos-native:n/a,windows-native:n/a
Ci-Attestation: {"at":1793529162,"gate":"rust/all/fmt","host":"linux-x86_64","key":"4e5e3858d8491199c49bb2e8f32403634c6802f54e8060aee6fb528fdb666fec","lane":"lint","parents":["6f40abc2382eae22194ee07c3b2d481f2d021586"],"secs":38,"stamp":"27cd4b8ad907603c69fe3a8d0fe985fd","tree":"59bf78986128b0bf3e88e3b0e1c3faa6700e3c55","v":1,"via":"run"}
Ci-Attestation: {"at":1793529162,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"4e5e3858d8491199c49bb2e8f32403634c6802f54e8060aee6fb528fdb666fec","lane":"lint","parents":["6f40abc2382eae22194ee07c3b2d481f2d021586"],"secs":38,"stamp":"d5a93a648d856ea3fe2659f25a8a54d1","tree":"59bf78986128b0bf3e88e3b0e1c3faa6700e3c55","v":1,"via":"run"}
Ci-Attestation: {"at":1793529162,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"0d5d8c901437764902057b062a2a2970307cc3ef96866b8f0eb1c3bd40245bce","lane":"rust-test","parents":["6f40abc2382eae22194ee07c3b2d481f2d021586"],"secs":82,"stamp":"1578f2a2f93b9e070ce6255b93ddce86","tree":"59bf78986128b0bf3e88e3b0e1c3faa6700e3c55","v":1,"via":"run"}
Ci-Attestation: {"at":1793529162,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"f9b86b3e7b4c56f30c9c84c28b7cc4f0e5c9112c17da38c138e0b09cd930f9e3","lane":"cross","parents":["6f40abc2382eae22194ee07c3b2d481f2d021586"],"secs":39,"stamp":"0ae2c63e36d2c1ad058c2dd863465dee","tree":"59bf78986128b0bf3e88e3b0e1c3faa6700e3c55","v":1,"via":"run"}
Ci-Attestation: {"at":1793529162,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"f9b86b3e7b4c56f30c9c84c28b7cc4f0e5c9112c17da38c138e0b09cd930f9e3","lane":"cross","parents":["6f40abc2382eae22194ee07c3b2d481f2d021586"],"secs":39,"stamp":"35bbe7cd711b3a574ef3f63e087fff88","tree":"59bf78986128b0bf3e88e3b0e1c3faa6700e3c55","v":1,"via":"run"}
Ci-Attestation: {"at":1793529162,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"f9b86b3e7b4c56f30c9c84c28b7cc4f0e5c9112c17da38c138e0b09cd930f9e3","lane":"cross","parents":["6f40abc2382eae22194ee07c3b2d481f2d021586"],"secs":39,"stamp":"1374fb0edef543694df2502a436e4d46","tree":"59bf78986128b0bf3e88e3b0e1c3faa6700e3c55","v":1,"via":"run"}
Ci-Attestation: {"at":1793529162,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"f9b86b3e7b4c56f30c9c84c28b7cc4f0e5c9112c17da38c138e0b09cd930f9e3","lane":"cross","parents":["6f40abc2382eae22194ee07c3b2d481f2d021586"],"secs":39,"stamp":"198864707a8d0b9fc19e977d32913681","tree":"59bf78986128b0bf3e88e3b0e1c3faa6700e3c55","v":1,"via":"run"}
Ci-Attestation: {"at":1793529162,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"2759ea0a08270136ee9a68523ff733c6af0ea1afbb4449a3e97c61aa574ed7a1","lane":"tier2-linux","parents":["6f40abc2382eae22194ee07c3b2d481f2d021586"],"secs":253,"stamp":"1ecdab1fd6760422148507c14323e139","tree":"59bf78986128b0bf3e88e3b0e1c3faa6700e3c55","v":1,"via":"run"}

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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(sanitize): run the ASan unit tests in parallel (20 of 27 min serial)

1 participant