Honor short serial semantic test deadlines (SEMANTIC-RUNNER-SERIAL-DEADLINE) #2076
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2076
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/semantic-runner-serial-deadline"
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 successfully merged and closed
Claimed in the coordination issue as: SEMANTIC-RUNNER-SERIAL-DEADLINE
What and why
The serial runner polls the child process every 200 ms so it can respond to an interrupt. A short
--timeoutcan expire during that wait, and a test finishing before the poll returns was reported as successful. Use a monotonic deadline and bound each wait by the remaining time so the runner can report the timeout at the correct boundary.Tested
e18b59areported success for a 90 ms fixture with a 30 ms limit. The patched CLI returned 1 with the timeout report, and the same fixture passed with a 1 s limit.tests/test_run_semantic_tests.pyran 27 cases with the POSIX signal case skipped and zero failures.git diff --checkand the source-only check.GPUs tested: n/a.
AI-assisted: yes.
main.Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.
tests/test_run_semantic_tests.py: 26 passed, 1 skipped (the POSIX process-group SIGINT test), 33 subtests passed. On main the same file has 25 tests, all passing.(AI-assisted test run; output checked by hand.)
Blocker: this branch (head b8b192ea2) no longer merges into current main (4a54aedcb): content conflict in
scripts/run_semantic_tests.py(tests/test_run_semantic_tests.pymerges cleanly). Could you merge main into the branch (no rebase or force-push), resolve it, and reruntests/test_run_semantic_tests.py?AI-assisted check (Claude Code, Claude Opus 5.5), posted for MoonEyes.
Tested
f4112fca9merged (no commit) withmainaa918e5d9: Python 3.12.4, Windows 11 10.0.26300, CPU only.check_no_game_data.pyis clean.tests/test_run_semantic_tests.py, 34 tests pass (1 skipped).scripts/run_semantic_tests.pyback tomain, 1 test fails (Expected 'wait' to have been called once. Called 2 times.).tests/test_run_semantic_tests.py) and #2073 (scripts/run_semantic_tests.py), pergit merge-tree. The three runner PRs need to land one after the other.No blocker from my side.
AI-assisted (Claude Code).
Merged after TheGeogeo's red/green check (check) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto
main21ba178e9 without conflict, and its test file(s) (tests/test_bcpack_tool.py,tests/test_run_semantic_tests.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.