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

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

📋 Pull Request Information

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

Base: main ← Head: semantic-worker-result-required


📝 Commits (1)

  • 4791919 Fail semantic workers that exit without a result

📊 Changes

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

View changed files

📝 scripts/run_semantic_tests.py (+8 -4)
📝 tests/test_run_semantic_tests.py (+11 -0)

📄 Description

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.

🔄 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/1749 **Author:** [@lixonik](https://github.com/lixonik) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `semantic-worker-result-required` --- ### 📝 Commits (1) - [`4791919`](https://github.com/ubiquitarianism/leonida/commit/47919196867c9d4c3df0000b4e80f102eb5a3523) Fail semantic workers that exit without a result ### 📊 Changes **2 files changed** (+19 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_semantic_tests.py` (+8 -4) 📝 `tests/test_run_semantic_tests.py` (+11 -0) </details> ### 📄 Description Claimed in the coordination issue as: [SEMANTIC-WORKER-RESULT-REQUIRED](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7160571651) ### 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. --- <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#1761
No description provided.