test(cmake): serialize load-sensitive Windows tests #4356

Merged
MarcZX10 merged 1 commit from upstream-pr/4356 into main 2026-10-12 22:17:40 +00:00
MarcZX10 commented 2026-10-12 07:30:01 +00:00 (Migrated from github.com)

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


What

Fixes #4347. Mark the Windows audio_out2_timing and guest_pthread_start CTests as RUN_SERIAL, so the repository's parallel CTest run does not run other tests alongside these load-sensitive checks. Their existing Windows PATH modifications and guest_pthread_start timeout remain intact. This targets contention from parallel suite execution; external processes can still load the machine.

Tested

Linux, GCC 12.2, Release, Ninja:

  • CMake configure with BUILD_TESTING=ON completed successfully.
  • python3 -m unittest tools.tests.test_test_registration -v: 15/15 passed.
  • A focused CMake/CTest fixture generated both serial test properties and verified they coexist with the Windows environment modifications and the 60-second pthread timeout.
  • python3 tools/check_conventions.py --base upstream/main and git diff --check passed.

No Windows runtime run was available locally; the Windows CI job will validate the project configuration. No application/title run applies to this test-scheduling change.

Checklist

  • Based on current main; no other open PR implements the same change
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4826276438 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4356). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T07:30:01Z. --- ### What Fixes #4347. Mark the Windows `audio_out2_timing` and `guest_pthread_start` CTests as `RUN_SERIAL`, so the repository's parallel CTest run does not run other tests alongside these load-sensitive checks. Their existing Windows `PATH` modifications and `guest_pthread_start` timeout remain intact. This targets contention from parallel suite execution; external processes can still load the machine. ### Tested Linux, GCC 12.2, Release, Ninja: - CMake configure with `BUILD_TESTING=ON` completed successfully. - `python3 -m unittest tools.tests.test_test_registration -v`: 15/15 passed. - A focused CMake/CTest fixture generated both serial test properties and verified they coexist with the Windows environment modifications and the 60-second pthread timeout. - `python3 tools/check_conventions.py --base upstream/main` and `git diff --check` passed. No Windows runtime run was available locally; the Windows CI job will validate the project configuration. No application/title run applies to this test-scheduling change. ### Checklist - [x] Based on current `main`; no other open PR implements the same change - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
LeandroLP23 commented 2026-10-12 09:59:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-12T09:59:57Z.


Windows run of this head (47b92c830) merged onto main (9aa5fd290): Windows 11 (26300), WinLibs GCC 15.2.0 r7, Ninja, Release.

  • The property reaches CTest on Windows: ctest --show-only=json-v1 lists RUN_SERIAL for audio_out2_timing and guest_pthread_start with this change, and for neither on main. Both tests still find their DLLs and pass, so the PATH modification and the 60 s timeout are kept.
  • ctest -j 16 over the 330 guest_* and audio_* tests passes in 3 of 3 runs, on main and with this change.

At that load this 16-thread machine doesn't starve either test, so I couldn't reproduce #4347's failures for a before/after comparison. This only confirms that the change is applied and breaks nothing.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6121976246 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4356#issuecomment-6121976246). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-12T09:59:57Z. --- Windows run of this head (`47b92c830`) merged onto `main` (`9aa5fd290`): Windows 11 (26300), WinLibs GCC 15.2.0 r7, Ninja, Release. - The property reaches CTest on Windows: `ctest --show-only=json-v1` lists `RUN_SERIAL` for `audio_out2_timing` and `guest_pthread_start` with this change, and for neither on `main`. Both tests still find their DLLs and pass, so the `PATH` modification and the 60 s timeout are kept. - `ctest -j 16` over the 330 `guest_*` and `audio_*` tests passes in 3 of 3 runs, on `main` and with this change. At that load this 16-thread machine doesn't starve either test, so I couldn't reproduce #4347's failures for a before/after comparison. This only confirms that the change is applied and breaks nothing.
Sign in to join this conversation.
No reviewers
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!4356
No description provided.