Windows: audio_out2_timing and guest_pthread_start are load-sensitive under ctest -j, not regressions; RUN_SERIAL would settle them #4347

Closed
opened 2026-10-12 07:22:42 +00:00 by screamm · 1 comment
screamm commented 2026-10-12 07:22:42 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-12T07:22:42Z.


Two tests fail on Windows under CPU load but pass alone, so they show up as "known failures" in many Windows reports (#4174, #4109, #3757, #3291, #2853) without being regressions. Measured on main 2ccbd376 and bab7b328 side by side (Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Release, 16 logical CPUs) with synthetic load:

Test Load 2ccbd376 bab7b328
audio_out2_timing 32 busy processes 3/3 abort 2/3 abort
audio_out2_timing 16 busy processes 0/4 abort 3/4 abort
guest_pthread_start 16 busy processes, 90 s limit 2/2 time out (3588 and 2418 of 10000 starts) 2/2 time out
both idle 3/3 pass 3/3 pass
  • audio_out2_timing exits with 0xc0000409 (FATAL: abort() (SIGABRT), no what(): because the test's Require calls std::abort); the return address maps to Require(Constant(played, first, burst, 0.5f * masterGain)) in TestPrimingAfterRunningDry. If the pushing thread is held off the CPU for longer than the 40 ms startup buffer, the SDL disk device runs dry mid-burst and writes silence, so the 12-grain burst is no longer one constant run.
  • guest_pthread_start is not hung: its RunThread lines keep coming at about 30 to 40 starts per second under load (about 5000 idle); 10000 sequential thread starts with several hand-offs each overrun the 60 s Windows timeout.

Neither is Windows-specific in the code (only the 60 s limit and the stack walk are). Options, cheapest first: mark both tests RUN_SERIAL (or give them PROCESSORS) so ctest -j does not starve them; make the audio check accept a burst split by device-dry silence; cut the pthread test to a few hundred iterations. The merges in range that touch these paths (#4002, #4005, #3944, #3494, #4029) are ruled out by the same failures on the older build.

Measured with Claude Code assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5809922328 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4347). Originally posted by [screamm](https://github.com/screamm) on 2026-10-12T07:22:42Z. --- Two tests fail on Windows under CPU load but pass alone, so they show up as "known failures" in many Windows reports (#4174, #4109, #3757, #3291, #2853) without being regressions. Measured on `main` `2ccbd376` and `bab7b328` side by side (Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Release, 16 logical CPUs) with synthetic load: | Test | Load | `2ccbd376` | `bab7b328` | |---|---|---|---| | `audio_out2_timing` | 32 busy processes | 3/3 abort | 2/3 abort | | `audio_out2_timing` | 16 busy processes | 0/4 abort | 3/4 abort | | `guest_pthread_start` | 16 busy processes, 90 s limit | 2/2 time out (3588 and 2418 of 10000 starts) | 2/2 time out | | both | idle | 3/3 pass | 3/3 pass | - `audio_out2_timing` exits with `0xc0000409` (`FATAL: abort() (SIGABRT)`, no `what():` because the test's `Require` calls `std::abort`); the return address maps to `Require(Constant(played, first, burst, 0.5f * masterGain))` in `TestPrimingAfterRunningDry`. If the pushing thread is held off the CPU for longer than the 40 ms startup buffer, the SDL disk device runs dry mid-burst and writes silence, so the 12-grain burst is no longer one constant run. - `guest_pthread_start` is not hung: its `RunThread` lines keep coming at about 30 to 40 starts per second under load (about 5000 idle); 10000 sequential thread starts with several hand-offs each overrun the 60 s Windows timeout. Neither is Windows-specific in the code (only the 60 s limit and the stack walk are). Options, cheapest first: mark both tests `RUN_SERIAL` (or give them `PROCESSORS`) so `ctest -j` does not starve them; make the audio check accept a burst split by device-dry silence; cut the pthread test to a few hundred iterations. The merges in range that touch these paths (#4002, #4005, #3944, #3494, #4029) are ruled out by the same failures on the older build. Measured with Claude Code assistance.
MarcZX10 commented 2026-10-12 07:30:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T07:30:17Z.


I opened #4356 with the Windows-only RUN_SERIAL change for both tests. Linux CMake configure and the test-registration unit suite pass; a focused CMake/CTest fixture confirms the serial property preserves the existing environment and timeout settings. Windows CI is still needed to validate the project configuration. The change prevents overlap with other CTest jobs, though unrelated external CPU load can still affect these timing-sensitive tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6119765521 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4347#issuecomment-6119765521). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T07:30:17Z. --- I opened #4356 with the Windows-only `RUN_SERIAL` change for both tests. Linux CMake configure and the test-registration unit suite pass; a focused CMake/CTest fixture confirms the serial property preserves the existing environment and timeout settings. Windows CI is still needed to validate the project configuration. The change prevents overlap with other CTest jobs, though unrelated external CPU load can still affect these timing-sensitive tests.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#4347
No description provided.