Repository navigation
Honor short serial semantic test deadlines (SEMANTIC-RUNNER-SERIAL-DEADLINE) - #2076
Conversation
… output (BCPACK-TOOL-HARDENING)
|
Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.
(AI-assisted test run; output checked by hand.) |
|
Blocker: this branch (head b8b192e) no longer merges into current main (4a54aed): content conflict in AI-assisted check (Claude Code, Claude Opus 5.5), posted for MoonEyes. |
…-hardening bcpack_tool: single-pass profile, history overwrite guard, and atomic output (BCPACK-TOOL-HARDENING)
…ct in scripts/run_semantic_tests.py) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
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 AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes. |
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.