mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2076] Honor short serial semantic test deadlines (SEMANTIC-RUNNER-SERIAL-DEADLINE) #2082
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2082
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 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)
b8b192eBound 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
--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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.