test(tools): shard conventions comment checks under CTest timeout #5678
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5678"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T06:04:47Z.
What
Split the conventions comment checker into six deterministic CTest shards. The runner discovers all
unittestcases in the module and assigns sorted test IDs across shards, so new cases and classes are included automatically. A regression check verifies that the shards are nonempty and cover each discovered test exactly once. The existingconventions_function_bodiesCTest name is retained for shard zero, and every shard keeps the 30-second timeout. References #5672.Tested
Linux, GCC 12.2, Python 3.11: configured with
BUILD_TESTING=ONandANYPS5_RELINKER_ONLY=ON; all six CTest shards passed with--parallel 2. Running the complete Python module directly passed all 54 cases in 3.29 seconds. The base revision's 53 cases passed in 3.29 seconds. Windows full-suite timing was not tested here.Checklist
main; no other open PR implements the same change.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by ideabsassistenza on 2026-10-14T08:03:14Z.
Independent Windows validation of head
326845537d12790bdd031efe94f06d8c37f6c5fc.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.5ee94cf571c71de79b9e28759a72400001b9ab48: the original 53 cases pass in 82.719 s. With a local 30 s CTest limit, the single group times out at 30.066 s.--parallel 2 --timeout 30. Maximum group times per run: 21.110 s, 21.749 s, 20.325 s. No failures or skips. Each group also has an explicitTIMEOUT 30property.This supports the local per-process margin from the split, not a reduction in total fixture work or a CI timing guarantee. I configured the relinker-only project but did not compile or run native targets, the full Windows suite, GPU tests or a title. These are pinned branch-head results, not a combined build with current main or the alternative #5685.
AI-assisted: yes (Codex); tests and results reviewed in this session.
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-14T08:14:05Z.
Windows validation of head
326845537d12790bdd031efe94f06d8c37f6c5fcagainst main1209d370723d439477ad10940ebd1163b6873501:--shard INDEX/6invocations pass five rounds with two concurrent processes. Each runs nine cases; all 54 run each round. Maximum process time 9.295s, maximum unittest time 9.129s, with a 30-second process limit.This checks the exported Python runner on Windows, not a CMake configure/full application/CI-runner pass. An initial timing-harness bug occurred after shard execution; the corrected campaign above completed and its logs are retained.
This PR was opened before our overlapping #5685 and provides more margin than our three-group split. I am closing #5685 as a duplicate and updating #5672 to point here. AI-assisted: Codex; author responsible.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T13:14:31Z.
Rebased the existing branch onto current upstream/main
63fb0cd92and resolved the CMake registration overlap by retaining main’sunwrap_selftest while replacing the conventions test with six shards. The rebased commit remains authored by MarcZX100 with no coauthor trailer. Validation on Linux/GCC 12.2: relinker-only CMake configure passed; all sixconventions_function_bodiesshards passed under CTest (--parallel 2, 1.92 s total);tools/check_conventions.py --base upstream/main --head HEADandgit diff --checkpassed.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T13:19:43Z.
Hosted verification is complete on this rebased head. The Ubuntu, macOS, and Windows relinker jobs all pass; conventions and eligibility pass. The app build jobs are skipped by the PR path filter because this change only affects relinker convention tests. The local six-shard CTest run and convention checker also pass.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T11:59:50Z.
Checked the six
--shard INDEX/6runs on the PR merged onto current main (10 cases each, all pass), the whole module (60 cases, pass), invalid shard arguments (6/6,0/0,xexit 2) and the coverage test (every discovered case assigned exactly once, no empty shard).conventions_function_bodieskeeps its name for shard 0 and all shards keep the 30 s timeout. The Windows runs from @ideabsassistenza and @Amoenus cover the timing scenario from #5672. Merging.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:08:35Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
CMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txt