test(tools): split conventions fixtures across CTest groups #5685

Closed
Amoenus wants to merge 1 commit from upstream-pr/5685 into main
Amoenus commented 2026-10-14 06:30:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-14T06:30:40Z.


Superseded by #5678

Closing this duplicate in favor of the earlier #5678. Its six shards pass five parallel-2 rounds on Windows/Python3.13 at head326845537, with maximum9.295s per process; all54 cases run each round. The original53-case main module passes28.729s. Validation comment on #5678 records the exported-source scope and harness correction. Our implementation and historical validation remain preserved below and on the fork.

Historical submission

What

Split the conventions fixture CTest registration into three groups: silent-stub sections, repository checks, and the remaining cases. Keep the original conventions_function_bodies name for the remaining group and preserve direct whole-file unittest invocation.

Fixes #5672: this53-case script timed out at30.0414s in our Windows full integration suite and passed alone at27.6355s. Its test/checker/registry blobs match current main. The observed timeout is on that composed integration, not an untouched-main full-suite or CI-runner reproduction.

Three new tests verify complete non-overlapping discovery, discovery of a future class in the remaining group, and rejection of an unknown group. No original cases are removed. No timeout increase, retry or environment switch.

Tested

Windows11 Enterprise26200, Ryzen9950X3D, Python3.13, WinLibs GCC15.2.0r7/Ninja Release.

Head dbc2ab33c is based on main 107190d11da0ffae85f3e06a0362d5f17b6bbf94. Full relinker-only build, conventions, test registration and whitespace checks pass. The candidate's CMake/test/checker/registry files are byte-identical to the extensively tested pre-rebase19018 head; relinker rebuild and all three CTest groups were rerun after rebase.

  • Unmodified main0b6 test/checker/registry exported as a sibling package:53 cases pass, Python time27.072s (total27.851s). Same interpreter/environment/current directory; not a whole-main checkout. Those files are unchanged through main107.
  • Candidate default whole-file invocation:56 cases pass in27.984s, preserving the original53 plus three partition checks.
  • Three CTest groups pass serially (maximum16.2013s), then five repetitions each with parallel2 (maximum16.4823s), no skips/failures,30s bound per process. The post-rebase parallel run also passes all three, maximum19.62s.
  • Five adjacent convention/registration groups pass without skips: wrapped declarations, CI gate, test registration, body BOM and agent-file checks (maximum8.06123s).
  • Partition checks verify every discovered case appears exactly once across the groups, including the three added tests. A dynamically introduced future class enters the remaining group; an unknown group throws.

These timings establish local budget margin, not a guarantee on CI hardware or a title/performance result. No runtime libraries, game assets or shader semantics changed; no full application/GPU-suite claim. AI-assisted: Codex.

Checklist

  • Based on current main; no other open PR implements the same split
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no system-library exports or silent stubs changed
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source: n/a
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a; Python test partition/CMake registration only
  • AI-assisted: yes (Codex); author responsible for every line
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4853920562 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5685). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-14T06:30:40Z. --- ## Superseded by #5678 Closing this duplicate in favor of the earlier [#5678](https://github.com/boykopovar/AnyPS5/pull/5678). Its six shards pass five parallel-2 rounds on Windows/Python3.13 at head326845537, with maximum9.295s per process; all54 cases run each round. The original53-case main module passes28.729s. [Validation comment on #5678](https://github.com/boykopovar/AnyPS5/pull/5678) records the exported-source scope and harness correction. Our implementation and historical validation remain preserved below and on the fork. ## Historical submission ### What Split the conventions fixture CTest registration into three groups: silent-stub sections, repository checks, and the remaining cases. Keep the original `conventions_function_bodies` name for the remaining group and preserve direct whole-file unittest invocation. Fixes #5672: this53-case script timed out at30.0414s in our Windows full integration suite and passed alone at27.6355s. Its test/checker/registry blobs match current main. The observed timeout is on that composed integration, not an untouched-main full-suite or CI-runner reproduction. Three new tests verify complete non-overlapping discovery, discovery of a future class in the remaining group, and rejection of an unknown group. No original cases are removed. No timeout increase, retry or environment switch. ### Tested Windows11 Enterprise26200, Ryzen9950X3D, Python3.13, WinLibs GCC15.2.0r7/Ninja Release. [Head dbc2ab33c](https://github.com/Amoenus/AnyPS5/commit/dbc2ab33c8868ad021b9a300260adc6c614db874) is based on main `107190d11da0ffae85f3e06a0362d5f17b6bbf94`. Full relinker-only build, conventions, test registration and whitespace checks pass. The candidate's CMake/test/checker/registry files are byte-identical to the extensively tested pre-rebase19018 head; relinker rebuild and all three CTest groups were rerun after rebase. - Unmodified main0b6 test/checker/registry exported as a sibling package:53 cases pass, Python time27.072s (total27.851s). Same interpreter/environment/current directory; not a whole-main checkout. Those files are unchanged through main107. - Candidate default whole-file invocation:56 cases pass in27.984s, preserving the original53 plus three partition checks. - Three CTest groups pass serially (maximum16.2013s), then **five repetitions each with parallel2** (maximum16.4823s), no skips/failures,30s bound per process. The post-rebase parallel run also passes all three, maximum19.62s. - Five adjacent convention/registration groups pass without skips: wrapped declarations, CI gate, test registration, body BOM and agent-file checks (maximum8.06123s). - Partition checks verify every discovered case appears exactly once across the groups, including the three added tests. A dynamically introduced future class enters the remaining group; an unknown group throws. These timings establish local budget margin, not a guarantee on CI hardware or a title/performance result. No runtime libraries, game assets or shader semantics changed; no full application/GPU-suite claim. AI-assisted: Codex. ### Checklist - [x] Based on current `main`; no other open PR implements the same split - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no system-library exports or silent stubs changed - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source: n/a - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a; Python test partition/CMake registration only - [x] AI-assisted: yes (Codex); author responsible for every line
github-actions[bot] commented 2026-10-14 06:36:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T06:36:52Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#5678 CMakeLists.txt L110-111
tools/tests/test_check_conventions_comments.py L597-599
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6162467561 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5685#issuecomment-6162467561). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T06:36:52Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #5678 | `CMakeLists.txt` [L110-111](https://github.com/boykopovar/AnyPS5/blob/31bfc4e8693d86318824d83c47cfa418703a7cc8/CMakeLists.txt#L110-L111)<br>`tools/tests/test_check_conventions_comments.py` [L597-599](https://github.com/boykopovar/AnyPS5/blob/31bfc4e8693d86318824d83c47cfa418703a7cc8/tools/tests/test_check_conventions_comments.py#L597-L599) | | |
ideabsassistenza commented 2026-10-14 08:04:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ideabsassistenza on 2026-10-14T08:04:05Z.


Independent Windows timing check of head dbc2ab33c8868ad021b9a300260adc6c614db874: conventions_silent_stub_sections still reaches a local 30 s limit on this machine.

Windows 11 Pro, i7-8700 (6 cores/12 threads), CPython 3.12.14, WinLibs GCC 15.2.0 r7, Ninja Release configuration, CMake 4.4.4; BUILD_TESTING=ON, ANYPS5_RELINKER_ONLY=ON.

  • Whole-file invocation passes all 56 cases in 79.349 s. Independent discovery confirms all 53 original cases are retained exactly once, plus the three added cases; group sizes 31/13/12.
  • With the three groups selected under ctest --parallel 2 --timeout 30, conventions_silent_stub_sections times out in all three runs (approximately 30.04 s each). The other two groups pass each time. This is a local timing concern, not an assertion failure.
  • The groups have no explicit CTest TIMEOUT property. I imposed 30 s for this check; the pinned build/release workflows use a 120 s fallback, so these local timeouts are not a claim that the PR's current CI fails.
  • Baseline main 5ee94cf571c71de79b9e28759a72400001b9ab48 passes its 53 cases in 82.719 s and its unsplit CTest group times out with the same local 30 s limit. In a separate check on this machine, alternative #5678 head 326845537d passes all six groups in three parallel-2 runs, with a maximum of 21.749 s.

The 13-case silent-stub group may need another split to retain the requested margin on slower Windows hosts. No cases were lost. These are pinned branch-head checks, not a combined build with current main. No native build/runtime, full Windows suite, GPU or title validation; local timings are not CI hardware guarantees.

AI-assisted: yes (Codex); tests and results reviewed in this session.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6163798161 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5685#issuecomment-6163798161). Originally posted by [ideabsassistenza](https://github.com/ideabsassistenza) on 2026-10-14T08:04:05Z. --- Independent Windows timing check of head `dbc2ab33c8868ad021b9a300260adc6c614db874`: `conventions_silent_stub_sections` still reaches a local 30 s limit on this machine. Windows 11 Pro, i7-8700 (6 cores/12 threads), CPython 3.12.14, WinLibs GCC 15.2.0 r7, Ninja Release configuration, CMake 4.4.4; `BUILD_TESTING=ON`, `ANYPS5_RELINKER_ONLY=ON`. - Whole-file invocation passes all 56 cases in 79.349 s. Independent discovery confirms all 53 original cases are retained exactly once, plus the three added cases; group sizes 31/13/12. - With the three groups selected under `ctest --parallel 2 --timeout 30`, `conventions_silent_stub_sections` times out in all three runs (approximately 30.04 s each). The other two groups pass each time. This is a local timing concern, not an assertion failure. - The groups have no explicit CTest `TIMEOUT` property. I imposed 30 s for this check; the pinned build/release workflows use a 120 s fallback, so these local timeouts are not a claim that the PR's current CI fails. - Baseline main `5ee94cf571c71de79b9e28759a72400001b9ab48` passes its 53 cases in 82.719 s and its unsplit CTest group times out with the same local 30 s limit. In a separate check on this machine, alternative #5678 head `326845537d` passes all six groups in three parallel-2 runs, with a maximum of 21.749 s. The 13-case silent-stub group may need another split to retain the requested margin on slower Windows hosts. No cases were lost. These are pinned branch-head checks, not a combined build with current main. No native build/runtime, full Windows suite, GPU or title validation; local timings are not CI hardware guarantees. AI-assisted: yes (Codex); tests and results reviewed in this session.

Pull request closed

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!5685
No description provided.