Repository navigation
build(cmake): set explicit ctest timeouts for tooling tests - #21453
Conversation
|
@MarcZX10 this is the combined PR the maintainer asked for on #18437 and #18451 (one PR for the CTest timeouts, with values measured on Linux and Windows), and it overlaps the five split PRs #18425, #18445, #18446, #18448 and #18452, which are waiting on it. What it still lacks is the measurement: the body says ctest was not run and 30 comes from the convention. Could you add the measured run time of each of the ten tests on Linux and on Windows (the CI jobs are enough) and say how the limit relates to them? Then this one can replace the split series. |
CTest run times: Linux measured, Windows pendingMeasured on Linux from head
Result: 10 of 10 passed. The slowest test takes 0.76 s, so the 30 s limit leaves about 39 times the measured maximum. Not measured yet
Once a Windows run completes, its ctest log will give the Windows times. I will update this comment with them. |
|
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.
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.
|
|
The ten requested tests were ran serially on Windows 10 Home 22H2 (build 19045.6466), AMD Ryzen 7 7800X3D, Python 3.12.7, MSYS2 MinGW-w64 GCC 15.2.0, CMake/CTest 4.3.1 and Ninja 1.13.2. I configured a Release relinker-only build with BUILD_TESTING=ON. All ten passed on head
The slowest observation was AI-assisted testing and report. |
635b131 to
ef60272
Compare
What
Ten tooling tests were registered in the root
CMakeLists.txtwithout an explicitTIMEOUT, so a stalled test waited for the job limit instead of failing at a bound. Each one now hasset_tests_properties(<name> PROPERTIES TIMEOUT 30)directly after itsadd_test, in one commit per test:validate_patch_catalog,mingw_host_only_test_targets,build_changed_guest_tests,pr_labels,pr_ready,export_gap,audit_dump,ffmpeg_cache_keys,winlibs_digestandprogress_comment_concurrency. The value follows the convention of the other registrations and ofconventions_pr_template. Fixes #18418 (thevalidate_patch_catalogpart;tools_catalog_jsonalready hasTIMEOUT 20onmain), Fixes #18436, Fixes #18437, Fixes #18439, Fixes #18451.Tested
cmake -S . -B <dir> -G Ninja -DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON: configures.python3 -m pytest -q: all pass, each in about a second, well under 30 seconds.python3 tools/check_conventions.py --base upstream/main: all checks passed.git diff --check upstream/main...HEAD: clean.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)