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

Open
github-bot wants to merge 1 commit from github-bot/gh-2076 into main AGit
Owner

@⁠alexandersato0830 on GitHub · 2026-11-25 19:38 UTC · original
alexandersato0830:codex/semantic-runner-serial-deadline → main · +29 −4 · 2 files · 1 commits · open

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.
**@⁠alexandersato0830** on GitHub · 2026-11-25 19:38 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2076) `alexandersato0830:codex/semantic-runner-serial-deadline` → `main` · +29 −4 · 2 files · 1 commits · open Claimed in the coordination issue as: [SEMANTIC-RUNNER-SERIAL-DEADLINE](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### 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. - [x] Based on current `main`. - [x] One topic. - [x] Uses source and synthetic fixtures.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:16:59 +00:00
Author
Owner

@⁠DeadlyChirp on GitHub · 2026-11-26 10:01 UTC · original · edited 2026-11-26 10:30 UTC

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

**@⁠DeadlyChirp** on GitHub · 2026-11-26 10:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2076#issuecomment-7188802490) · edited 2026-11-26 10:30 UTC 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.)
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2076/head:github-bot/gh-2076'
git switch 'github-bot/gh-2076'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2076'
git switch 'github-bot/gh-2076'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2076'
git switch 'github-bot/gh-2076'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2076'
git switch 'main'
git merge --squash 'github-bot/gh-2076'
git switch 'main'
git merge --ff-only 'github-bot/gh-2076'
git switch 'main'
git merge 'github-bot/gh-2076'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.