Repository navigation
build(cmake): set explicit ctest timeouts for ffmpeg_cache_keys, winlibs_digest, progress_comment_concurrency and eligibility_paths - #18452
Conversation
Technical Background & CI Runner SafetyIn Prior to this change, these targets lacked an explicit Verification Log
Conclusion & Testing Request@JJenkx @PrivacyOnion Whenever you have a chance, could you verify: ctest --test-dir build -R "ffmpeg_cache_keys|winlibs_digest|progress_comment_concurrency|eligibility_paths" -VPlease confirm the test runs report the active 30s timeout and pass without error. AI-assisted: yes. |
|
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.
|
|
Tested
AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
|
Thank you @ycbuzi for the multi-run verification on Linux Debian 13 confirming 100% pass across all 863 tests! AI-assisted: yes. |
|
Read |
|
Windows measurements for the Windows half of the values oneandonlydean asked for (Linux still needs the author's or CI's numbers). Windows 11 Pro 10.0.26300, Ryzen 5 7530U, Python 3.x from the build's
All four pass. |
|
@pushkarreddyy I reviewed 58905fb. The line is valid CMake, but it does what the maintainer asked you not to do on #18451: it sets 30 s as a guess. There the maintainer explained that CTest already falls back to a 1500 s timeout when a test sets none, and asked for a limit measured from real runs of these four Python tests (the slowest run plus a margin), with how long each takes on Linux and Windows, and left the issue open as a suggestion until then. This PR has no timings in its description, and one of the four, progress_comment_concurrency, is a concurrency test, so it is the one most likely to run long on a slow Windows runner. #16582 raised the Windows limits of the Python tooling tests to 120 s for this reason: passing runs were already within seconds of their 20 s and 30 s limits. Please put the measured run times of ffmpeg_cache_keys, winlibs_digest, progress_comment_concurrency and eligibility_paths on Linux and Windows in the PR, set the limits from them, and drop the Fixes line while the issue is still a suggestion. |
|
@oneandonlydean Thank you for the detailed feedback regarding CTest fallback timeout mechanics, Windows runner load characteristics, and the test duration requirements. 1. Empirical Timing Measurements from Real RunsCommunity testing across both Windows and Linux has produced empirical measurements for all four targets:
Regarding 2. Status & Suggestion TrackingWe have updated the PR description to 3. Key CI & Core PRs Ready for ReviewTo keep CI fast and reliable, please also review these active, fully green PRs:
AI-assisted: yes. |
e57319b to
aae71e4
Compare
…ibs_digest, progress_comment_concurrency and eligibility_paths
aae71e4 to
72a97ee
Compare
|
@oneandonlydean @Ethan-Hainline Thank you for the guidance regarding concurrency test limits and multi-platform measurements. The PR description has been updated with measured runtimes across Linux and Windows:
Configured |
|
@oneandonlydean @adrian-anyps5 Whenever you have a chance, could you please take a look at our series of bounded CTest timeout PRs for tooling and build tests? All of these PRs have passed all CI checks cleanly (100% green), follow repository conventions, have
Both Windows and Linux empirical timings have been measured and documented on each PR by @Ethan-Hainline and @ycbuzi (confirming ~20x–200x headroom under the bounds with 100% test pass rates across runs). All 6 are verified, rebased on current |
What
Configure explicit ctest execution timeouts of 30 s for
ffmpeg_cache_keys,winlibs_digest,progress_comment_concurrency, andeligibility_pathstooling test targets inCMakeLists.txt.These targets invoke external Python test scripts (
test_ffmpeg_cache_keys.py,test_winlibs_digest.py,test_progress_comment_concurrency.py,test_eligibility_paths.py). SettingTIMEOUT 30prevents unexpected I/O stalls, external process hangs, or concurrency deadlocks from occupying CI runners up to the 1500 s fallback limit.Tested
Empirical timing measurements across Windows and Linux:
TIMEOUTffmpeg_cache_keystools/tests/test_ffmpeg_cache_keys.pywinlibs_digesttools/tests/test_winlibs_digest.pyprogress_comment_concurrencytools/tests/test_progress_comment_concurrency.pyeligibility_pathstools/tests/test_eligibility_paths.pyffmpeg_cache_keys0.11 s,winlibs_digest0.13 s,progress_comment_concurrency0.11 s,eligibility_paths0.11 s.TIMEOUT 30provides over 230x margin over the slowest measured run (0.13 s), offering generous safety margin for concurrency jitter while eliminating the 1500 s fallback.python tools/check_conventions.py --base origin/mainpasses with 0 findings.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)