[PR #2076] Honor short serial semantic test deadlines (SEMANTIC-RUNNER-SERIAL-DEADLINE) #2082

Open
opened 2026-11-26 21:19:58 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2076
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: codex/semantic-runner-serial-deadline


📝 Commits (1)

  • b8b192e Bound serial semantic runner polls by the timeout

📊 Changes

2 files changed (+29 additions, -4 deletions)

View changed files

📝 scripts/run_semantic_tests.py (+9 -4)
📝 tests/test_run_semantic_tests.py (+20 -0)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2076 **Author:** [@alexandersato0830](https://github.com/alexandersato0830) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/semantic-runner-serial-deadline` --- ### 📝 Commits (1) - [`b8b192e`](https://github.com/ubiquitarianism/leonida/commit/b8b192ea2246ba6d51f278481301364fa3aed638) Bound serial semantic runner polls by the timeout ### 📊 Changes **2 files changed** (+29 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_semantic_tests.py` (+9 -4) 📝 `tests/test_run_semantic_tests.py` (+20 -0) </details> ### 📄 Description Claimed in the coordination issue as: [SEMANTIC-RUNNER-SERIAL-DEADLINE](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172519361) ### 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2082
No description provided.