mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:45:53 +01:00
[PR #1015] run_wine_tests: reject overflowing timeouts (WINE-TIMEOUT-OVERFLOW) #1051
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1051
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1015
Author: @TheGeogeo
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/wine-timeout-overflow📝 Commits (1)
b70bde2run_wine_tests: reject overflowing process timeouts📊 Changes
2 files changed (+22 additions, -6 deletions)
View changed files
📝
scripts/run_wine_tests.py(+7 -6)📝
tests/test_run_wine_tests.py(+15 -0)📄 Description
Claimed in the coordination issue as: WINE-TIMEOUT-OVERFLOW — https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138342601
What and why
An oversized finite
--timeoutcould pass argument parsing and raiseOverflowErrorwhile waiting for the first subprocess. Bound the option by the largest whole number of seconds that fits Linuxpoll's signed millisecond timeout. The CLI reports the bound and rejects larger inputs before launching a test. A shorterTIMEOUTfrom CTest still takes precedence.Tested
Head
b70bde27, rebased onmaine18b59a5, same patch as56bed586(git range-diff); it merges cleanly withmain747809e7. Windows 11, Python 3.12.4:python -I -B tests/test_run_wine_tests.py, three runs: 74 run, 12 skipped, errors only intest_jobs_keeps_locks_serial_tests_and_dependenciesandtest_jobs_runs_that_many_tests_at_a_time(three runs each).maine18b59a5alone: both in two runs of three. With these tests on the runner ofmaine48ff037,test_timeout_over_process_limit_is_rejected_before_launchfails.tests/test_docs_cli_flags.py,tests/test_text_write_line_endings.py,tests/test_ctest_registration.py,tests/test_ci_registration.pyandtests/test_docs_links.py: OK.tests/test_tool_stdout_encoding.pyfails intest_every_main_block_reconfigures_stdout, as onmaine18b59a5alone (three tools this change does not touch).compileall,git diff --checkandpython -I scripts/check_no_game_data.pyon the two files: clean.Earlier head
56bed586, rebased onmain28a32e19; it merged cleanly withmain22372d86. Same patch: only the--timeouthelp next to the new--jobsoption conflicted. Windows 11, Python 3.12.4:python -I -B tests/test_run_wine_tests.py: 74 run, 12 skipped, 1 error, intest_jobs_runs_that_many_tests_at_a_time(the run before also had one intest_jobs_keeps_locks_serial_tests_and_dependencies). Unmodifiedmain22372d86gives the same errors (three runs: both twice, only the first named here once), so they do not come from this change.tests/test_tool_stdout_encoding.py,tests/test_docs_cli_flags.pyandtests/test_text_write_line_endings.py: OK.git diff --checkandpython -I -B scripts/check_no_game_data.py scripts/run_wine_tests.py tests/test_run_wine_tests.py: clean.Earlier heads:
c8e02cd4(same patch as743755d9, onmain6293c1c4), Windows 11, Python 3.12.4:tests/test_run_wine_tests.py65 run, OK (9 skipped).mainat82a2aabc, a synthetic passing test triggeredOverflowErrorwith2147484seconds on Debian WSL and1e100on Debian WSL and Windows.2147483completed on Debian.2147483completes a passing test.743755d9:python -I -B tests/test_run_wine_tests.pyon Windows, Python 3.12.4, 56 passed and 9 POSIX-only skips;python3 -I -B tests/test_run_wine_tests.pyon Debian WSL, Python 3.11.2, 65 passed, and 67 after clean temporary merges with #999 (e8226ee4) and #919 (3de809cf);tests/test_docs_cli_flags.py4 passed.GPUs tested: n/a (CPU-only synthetic tests).
AI-assisted: yes (Codex; the rebases on
28a32e19ande18b59a5with Claude Code).Checklist
mainand merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.