tools: conventions_function_bodies approaches 30s and times out in the Windows full suite #5672

Closed
opened 2026-10-14 05:52:01 +00:00 by Amoenus · 3 comments
Amoenus commented 2026-10-14 05:52:01 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-14T05:52:01Z.


What

conventions_function_bodies approaches the30s test budget and timed out under a full Windows CTest run. It registers the entire53-case tools/tests/test_check_conventions_comments.py as one process.

Observed evidence

  • Integration head d881e48fd, based on main a14ae8e232b100eab53c6cdce0676ff167fd137b: full1163 tests,1154 pass,8 existing skips,1 timeout. conventions_function_bodies timed out at 30.0414s; full run265.55s.
  • Same test/build, run alone with the same30s limit: pass27.6355s,53 Python unit cases in27.481s.
  • The test script, checker and NID registry are byte-identical to both that main and current main 0b6d033b80083ca4468c38c4b7e88053eb238d01: Git blobs 25e0b1f871cc7dda7c98e2a9dc0174beac26f38a, 61b187c984969f26b661dfe5d52d673287097891, 2cb0d756e4146907878c42b1205ee77b0f008566.
  • This is an observed composed integration run, not an untouched-main full-suite or CI-runner reproduction. No functional unit-test failure or deterministic timeout is established.

Reproduction

Windows11 Enterprise26200, Ryzen9950X3D, Python3.13, WinLibs GCC15.2.0r7/Ninja Release, testing enabled, bundled dependencies. Full runtime build; parallel2 as below. Exact timings are load dependent.

ctest --test-dir <build> --parallel 2 --timeout 30 --output-on-failure
ctest --test-dir <build> -R "^conventions_function_bodies$" --parallel 1 --timeout 30 --output-on-failure

Current registration runs the whole file. The contribution guide requires splitting or shrinking tests close to30s, accounting for concurrent CTest load.

Proposed correction

Use the earlier #5678, head 326845537. Exact exported test/checker/NID-registry files run on Windows11/Python3.13: main1209's53 cases pass28.729s (28.926s process), this head's54 pass28.666s (28.838s process). Six nine-case shards pass five rounds with two concurrent Python processes and a30s limit: maximum9.295s process/9.129s unittest. All54 cases run every round; six invalid CLI controls exit2. This is direct Python-runner validation, not CMake/full application/CI validation. An initial timing harness shadowed Python's round function after shard execution; the corrected campaign completes and original logs remain.

Our later overlapping #5685 is closed in favor of #5678. Both implementations and validation are preserved; no duplicate upstream fix is needed.

Earlier alternative and validation (preserved)

Split the registration into smaller complete unittest groups, retaining all53 cases and future discovery coverage, with the same30s bound. Confirm the partition covers the original case set and compare main/change runs. The implemented proposal is #5685, fork dbc2ab33c, based on main107. It preserves the original53 cases, adds three partition checks, and keeps direct whole-file invocation. Full relinker-only build, conventions/registration and five adjacent groups pass. Three groups pass five repetitions with parallel2 (maximum16.4823s); the post-rebase run passes at maximum19.62s. The exported unmodified-main53-case invocation passes in27.072s; the candidate default56-case invocation passes in27.984s. These establish local per-process margin, not deterministic CI timing or a whole-main timeout reproduction. No timeout increase, retry or environment switch.

At the initial report, searched existing issues/PRs for the test name, script path, conventions/timeout and conventions/split. Other reports mention this timeout, but no dedicated report or split contribution was found then. #5678 is now confirmed as the earlier overlapping submission; the current proposal above points to it.

AI-assisted: yes (Codex); author responsible.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5842701821 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5672). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-14T05:52:01Z. --- ### What `conventions_function_bodies` approaches the30s test budget and timed out under a full Windows CTest run. It registers the entire53-case `tools/tests/test_check_conventions_comments.py` as one process. ### Observed evidence - [Integration head d881e48fd](https://github.com/Amoenus/AnyPS5/commit/d881e48fdacc19d26e380c1d4dca4b94e5a120a2), based on main `a14ae8e232b100eab53c6cdce0676ff167fd137b`: full1163 tests,1154 pass,8 existing skips,1 timeout. `conventions_function_bodies` timed out at **30.0414s**; full run265.55s. - Same test/build, run alone with the same30s limit: **pass27.6355s**,53 Python unit cases in27.481s. - The test script, checker and NID registry are byte-identical to both that main and current main `0b6d033b80083ca4468c38c4b7e88053eb238d01`: Git blobs `25e0b1f871cc7dda7c98e2a9dc0174beac26f38a`, `61b187c984969f26b661dfe5d52d673287097891`, `2cb0d756e4146907878c42b1205ee77b0f008566`. - This is an observed **composed integration** run, not an untouched-main full-suite or CI-runner reproduction. No functional unit-test failure or deterministic timeout is established. ### Reproduction Windows11 Enterprise26200, Ryzen9950X3D, Python3.13, WinLibs GCC15.2.0r7/Ninja Release, testing enabled, bundled dependencies. Full runtime build; parallel2 as below. Exact timings are load dependent. ```text ctest --test-dir <build> --parallel 2 --timeout 30 --output-on-failure ctest --test-dir <build> -R "^conventions_function_bodies$" --parallel 1 --timeout 30 --output-on-failure ``` [Current registration](https://github.com/boykopovar/AnyPS5/blob/0b6d033b80083ca4468c38c4b7e88053eb238d01/CMakeLists.txt#L101) runs the whole file. The contribution guide requires splitting or shrinking tests close to30s, accounting for concurrent CTest load. ### Proposed correction Use the earlier [#5678](https://github.com/boykopovar/AnyPS5/pull/5678), head [326845537](https://github.com/MarcZX100/AnyPS5/commit/326845537d12790bdd031efe94f06d8c37f6c5fc). Exact exported test/checker/NID-registry files run on Windows11/Python3.13: main1209's53 cases pass28.729s (28.926s process), this head's54 pass28.666s (28.838s process). Six nine-case shards pass five rounds with two concurrent Python processes and a30s limit: maximum9.295s process/9.129s unittest. All54 cases run every round; six invalid CLI controls exit2. This is direct Python-runner validation, not CMake/full application/CI validation. An initial timing harness shadowed Python's round function after shard execution; the corrected campaign completes and original logs remain. Our later overlapping #5685 is closed in favor of #5678. Both implementations and validation are preserved; no duplicate upstream fix is needed. ### Earlier alternative and validation (preserved) Split the registration into smaller complete unittest groups, retaining all53 cases and future discovery coverage, with the same30s bound. Confirm the partition covers the original case set and compare main/change runs. The implemented proposal is [#5685](https://github.com/boykopovar/AnyPS5/pull/5685), [fork dbc2ab33c](https://github.com/Amoenus/AnyPS5/commit/dbc2ab33c8868ad021b9a300260adc6c614db874), based on main107. It preserves the original53 cases, adds three partition checks, and keeps direct whole-file invocation. Full relinker-only build, conventions/registration and five adjacent groups pass. Three groups pass five repetitions with parallel2 (maximum16.4823s); the post-rebase run passes at maximum19.62s. The exported unmodified-main53-case invocation passes in27.072s; the candidate default56-case invocation passes in27.984s. These establish local per-process margin, not deterministic CI timing or a whole-main timeout reproduction. No timeout increase, retry or environment switch. At the initial report, searched existing issues/PRs for the test name, script path, conventions/timeout and conventions/split. Other reports mention this timeout, but no dedicated report or split contribution was found then. #5678 is now confirmed as the earlier overlapping submission; the current proposal above points to it. AI-assisted: yes (Codex); author responsible.
MarcZX10 commented 2026-10-14 06:04:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T06:04:53Z.


Opened #5678 with six deterministic shards over all discovered tests; a coverage test checks every case is assigned once, including future cases. On Linux the six CTest shards pass. I have not run the reported Windows full-suite scenario, so that remains the platform-specific validation to check.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6162042973 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5672#issuecomment-6162042973). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-14T06:04:53Z. --- Opened #5678 with six deterministic shards over all discovered tests; a coverage test checks every case is assigned once, including future cases. On Linux the six CTest shards pass. I have not run the reported Windows full-suite scenario, so that remains the platform-specific validation to check.
jotitadev commented 2026-10-15 18:52:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T18:52:05Z.


#5678 (merged) registers test_check_conventions_comments.py as six CTest shards (conventions_function_bodies plus conventions_function_bodies_shard_1.._5, --shard N/6, 30 s timeout each), and #5748 (merged) reads the checker's file contents through one git cat-file process.

macOS data point on main 44df21632: Apple M2 Max, relinker-only build (-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON), /usr/bin/python3 3.9.6.

  • ctest -R "^conventions_function_bodies" -j6 --timeout 30: 6/6 pass, slowest shard 4.8 s.
  • The whole file in one process (python3 tools/tests/test_check_conventions_comments.py): OK in 17.6 s.

I have not rerun the Windows full-suite case from the report.

Written with AI assistance (Claude Code). I ran the check above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6199821468 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5672#issuecomment-6199821468). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-15T18:52:05Z. --- #5678 (merged) registers `test_check_conventions_comments.py` as six CTest shards (`conventions_function_bodies` plus `conventions_function_bodies_shard_1`..`_5`, `--shard N/6`, 30 s timeout each), and #5748 (merged) reads the checker's file contents through one `git cat-file` process. macOS data point on `main` `44df21632`: Apple M2 Max, relinker-only build (`-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON`), `/usr/bin/python3` 3.9.6. - `ctest -R "^conventions_function_bodies" -j6 --timeout 30`: 6/6 pass, slowest shard 4.8 s. - The whole file in one process (`python3 tools/tests/test_check_conventions_comments.py`): OK in 17.6 s. I have not rerun the Windows full-suite case from the report. Written with AI assistance (Claude Code). I ran the check above on my machine.
oneandonlydean commented 2026-10-16 23:53:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-16T23:53:41Z.


Fixed by #5678 (646c6a248) and #5748: the checker now runs as six CTest shards of 30 s each, and the shard timings on current main are well under that (slowest 4.8 s on an M2 Max, 6/6 passing). I haven't seen a Windows full-suite run after the merge; if it still times out there, reopen with the shard timings.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226915296 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5672#issuecomment-6226915296). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-16T23:53:41Z. --- Fixed by #5678 (646c6a248) and #5748: the checker now runs as six CTest shards of 30 s each, and the shard timings on current main are well under that (slowest 4.8 s on an M2 Max, 6/6 passing). I haven't seen a Windows full-suite run after the merge; if it still times out there, reopen with the shard timings.
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#5672
No description provided.