run_semantic_tests: fail workers that exit without a result (SEMANTIC-WORKER-RESULT-REQUIRED) #1749

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

@⁠lixonik on GitHub · 2026-11-25 11:13 UTC · original
lixonik:semantic-worker-result-required → main · +19 −4 · 2 files · 1 commits · open

Claimed in the coordination issue as: SEMANTIC-WORKER-RESULT-REQUIRED

What and why

A parallel semantic test worker can exit 0 before writing its unittest result. With a second module that completes normally, the runner used to return success for the suite while omitting the unfinished module.

Require a valid unittest result for a successful worker exit. The runner now identifies the unfinished module and fails the suite. A reported count of zero still represents a real completed result, as for an empty package initializer.

Tested

  • Reproduced the false pass on the merge base with a synthetic worker that exits during a test and a healthy sibling. The new CLI regression fails against the base and passes with this change.

  • Ran all 23 semantic runner unit tests on Windows.

  • Passed the no-game-data scan and git diff --check.

  • Ran the complete semantic suite on Windows: 488 files, 6,260 tests, zero failed files.

GPUs tested: n/a (CPU-only test runner)

AI-assisted.

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
**@⁠lixonik** on GitHub · 2026-11-25 11:13 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1749) `lixonik:semantic-worker-result-required` → `main` · +19 −4 · 2 files · 1 commits · open Claimed in the coordination issue as: [SEMANTIC-WORKER-RESULT-REQUIRED](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why A parallel semantic test worker can exit 0 before writing its unittest result. With a second module that completes normally, the runner used to return success for the suite while omitting the unfinished module. Require a valid unittest result for a successful worker exit. The runner now identifies the unfinished module and fails the suite. A reported count of zero still represents a real completed result, as for an empty package initializer. ### Tested - Reproduced the false pass on the merge base with a synthetic worker that exits during a test and a healthy sibling. The new CLI regression fails against the base and passes with this change. - Ran all 23 semantic runner unit tests on Windows. - Passed the no-game-data scan and `git diff --check`. - Ran the complete semantic suite on Windows: 488 files, 6,260 tests, zero failed files. GPUs tested: n/a (CPU-only test runner) AI-assisted. ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:03:37 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-25 11:25 UTC · original

Independent verification (Windows, Python 3.11.9): read_count returns None on missing/invalid count; worker exit-0 without valid unittest result now fails the suite — mechanism correct. test_run_semantic_tests.py shows 3 failures that reproduce IDENTICALLY on origin/main (pre-existing/environmental — possibly Python-version sensitive; your report of all-pass on your box noted). The PR's new test passes standalone; compileall + line-endings + check_no_game_data clean. AI-assisted verification.

**@⁠whoalin1** on GitHub · 2026-11-25 11:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1749#issuecomment-7161026937) Independent verification (Windows, Python 3.11.9): `read_count` returns None on missing/invalid count; worker exit-0 without valid unittest result now fails the suite — mechanism correct. `test_run_semantic_tests.py` shows 3 failures that reproduce IDENTICALLY on origin/main (pre-existing/environmental — possibly Python-version sensitive; your report of all-pass on your box noted). The PR's new test passes standalone; compileall + line-endings + check_no_game_data clean. AI-assisted verification.
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/1749/head:github-bot/gh-1749'
git switch 'github-bot/gh-1749'

Merge

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