Repository navigation
tests: the quick-program GPU timeout case no longer races Python startup (TEST-GPU-TIMEOUT-QUICK-LOAD) - #1427
Open
Anonymous78e wants to merge 1 commit into
Conversation
…tup (TEST-GPU-TIMEOUT-QUICK-LOAD)
test_quick_program_is_unaffected ran `python -c "print('ok')"` under the
0.5 s limit the hang cases use. On a loaded Windows host starting the child
alone can take longer, so the quick program was killed and the test failed
for the wrong reason (3 of 10 runs with the CPU saturated). That one case now
runs under a 60 s limit, still a limit; the hang cases keep 0.5 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014sDZDAAcsauTL6d8ie67Qo
Contributor
|
Reviewed 7a6eb36: Ran Recommendation: Merge |
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: TEST-GPU-TIMEOUT-QUICK-LOAD (#14 (comment))
What and why
tests/test_gpu_test_timeout.pyHungProgram.test_quick_program_is_unaffectedruns a quick child,python -c "print('ok')", throughrun_gpu_tests.run_cmdandcheck.rununder the class'sLEONIDA_GPU_TEST_TIMEOUT=0.5. That limit is meant for the hang cases. On a loaded Windows host, starting a Python child alone can take longer than 0.5 s, so the quick program is killed and the test fails for the wrong reason:It passes alone. I first saw it in a full parallel run of
tests/, and it is not one of the three in the parallel-load finding of the coordination issue (#1410 covers thetiming.logone).This case now runs under a 60 s limit. That is still a limit, and the test asserts
check.gpu_test_timeout()is 60, so it keeps checking that a limit in force leaves a quick program alone. The hang cases keep 0.5 s, andtest_translator_step_has_no_limitstill checks that 0.5 is passed through.Tested
Windows 11 Pro 26H2, CPython 3.13.15, 16 threads, with the CPU saturated by 64 busy processes, on
main6fe8380:test_quick_program_is_unaffectedalonemainUnloaded,
python -I tests/test_gpu_test_timeout.pyruns 8 tests OK.scripts/check_no_game_data.pyon the file: clean.GPUs tested: n/a (no GPU involved; the hang is a sleeping Python child)
AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
https://claude.ai/code/session_014sDZDAAcsauTL6d8ie67Qo