mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:10:51 +01:00
[PR #1437] Fail semantic runs that exit without a trustworthy result (SEMANTIC-RUNNER-COMPLETION) #1467
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#1467
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/1437
Author: @titoreinaldo
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/semantic-runner-completion📝 Commits (2)
52557d5Fail semantic runs without a completed unittest verdict84f8feeCover early exits and masked unittest failures📊 Changes
2 files changed (+73 additions, -25 deletions)
View changed files
📝
scripts/run_semantic_tests.py(+46 -25)📝
tests/test_run_semantic_tests.py(+27 -0)📄 Description
Claimed in the coordination issue as: SEMANTIC-RUNNER-COMPLETION (#14 claim).
What and why
An incomplete semantic run can report success. A synthetic module calling
os._exit(0)during import leaves no unittest result; the parallel runner counts zero for that worker and accepts its process status, and the serial runner simply forwards success. An exit handler can also overwrite the status after unittest has completed with a failure.Use unittest’s completed result as well as the process exit status in both modes. Status 0 without a result, or after unittest reported a nonzero status, is an error. Empty package initializers are still ignored based on the recorded result, and timeouts retain their existing diagnostics. Discovery rules are unchanged.
Tested
1154976dwith either-j 1or-j 2: four false-green cases before, all four detected after.python -I tests/test_run_semantic_tests.py: 24 tests pass.python -I scripts/run_semantic_tests.py tests/semantic -j 8: 476 files, 6,223 tests, zero failing files.GPUs tested: none, Linux x86-64 / Python 3.12.14, CPU-only. No game files, keys, decryption, or online game services. AI-assisted: yes, OpenAI Codex.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.