Skip to content

Honor short serial semantic test deadlines (SEMANTIC-RUNNER-SERIAL-DEADLINE) - #2076

Merged
MoonEyes merged 4 commits into
ProjectLeonida:mainfrom
alexandersato0830:codex/semantic-runner-serial-deadline
Nov 28, 2026
Merged

MoonEyes merged 4 commits into
ProjectLeonida:mainfrom
alexandersato0830:codex/semantic-runner-serial-deadline

Conversation

@alexandersato0830

Copy link
Copy Markdown
Contributor

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 --timeout can 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

  • Windows 11, Python 3.14.9. Main e18b59a reported 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.
  • The clock-controlled regression failed on main and passed with the patch. tests/test_run_semantic_tests.py ran 27 cases with the POSIX signal case skipped and zero failures.
  • Verified git diff --check and the source-only check.

GPUs tested: n/a.

AI-assisted: yes.

  • Based on current main.
  • One topic.
  • Uses source and synthetic fixtures.

@DeadlyChirp

DeadlyChirp commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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.)

@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 28, 2026
@MoonEyes

Copy link
Copy Markdown
Collaborator

Blocker: this branch (head b8b192e) no longer merges into current main (4a54aed): content conflict in scripts/run_semantic_tests.py (tests/test_run_semantic_tests.py merges cleanly). Could you merge main into the branch (no rebase or force-push), resolve it, and rerun tests/test_run_semantic_tests.py?

AI-assisted check (Claude Code, Claude Opus 5.5), posted for MoonEyes.

MoonEyes and others added 2 commits November 28, 2026 21:15
…-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>
@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 28, 2026
@TheGeogeo

Copy link
Copy Markdown
Contributor

Tested f4112fca9 merged (no commit) with main aa918e5d9: Python 3.12.4, Windows 11 10.0.26300, CPU only. check_no_game_data.py is clean.

No blocker from my side.

AI-assisted (Claude Code).

@MoonEyes
MoonEyes merged commit cd36c87 into ProjectLeonida:main Nov 28, 2026
6 of 12 checks passed
@MoonEyes

Copy link
Copy Markdown
Collaborator

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 main 21ba178 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 on main without the PR (red/green) and a bundle with other open PRs showed no new failures. check_no_game_data.py is clean. Windows 11, Python 3.14; no GPU needed for these tests.

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants