SEMANTIC-SCRATCH-ERROR: Report semantic worker scratch directory failures #1838

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

@⁠delysidemanYT1 on GitHub · 2026-11-25 12:58 UTC · original
delysidemanYT1:semantic-scratch-error → main · +15 −1 · 2 files · 1 commits · open

Claimed in the coordination issue as: SEMANTIC-SCRATCH-ERROR
Claim: #1608

Treat an unavailable temporary directory as a failed module so the other workers can still report their results. Reproduced with PermissionError and verified that no child launches for the failed worker.

Targeted checks on Windows: python -m unittest discover -s tests -p test_run_semantic_tests.py and git diff --check. No game files. AI-assisted (Codex).

**@⁠delysidemanYT1** on GitHub · 2026-11-25 12:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1838) `delysidemanYT1:semantic-scratch-error` → `main` · +15 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: SEMANTIC-SCRATCH-ERROR Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608 Treat an unavailable temporary directory as a failed module so the other workers can still report their results. Reproduced with PermissionError and verified that no child launches for the failed worker. Targeted checks on Windows: python -m unittest discover -s tests -p test_run_semantic_tests.py and git diff --check. No game files. AI-assisted (Codex).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:07:47 +00:00
Author
Owner

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

Tested 48ba062f1 on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against main 71a769d7d (semantic runner; no GPU):

  • python3 -I tests/test_run_semantic_tests.py: the runner suite ends OK (23 tests; the earlier short runs are the test's own captured fixture output, including its intentional failure).
  • The same file on main: FAILED (errors=1) — RunnerTest.test_scratch_failure_is_a_module_failure, the scratch-directory failure that the PR turns into a per-module failure.
  • Not run: a real PermissionError on a scratch directory; the tests inject the failure.

AI-assisted; synthetic fixtures only, no game data.

**@⁠GeorgiyDemo** on GitHub · 2026-11-25 14:11 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1838#issuecomment-7164904236) Tested `48ba062f1` on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against `main` `71a769d7d` (semantic runner; no GPU): - `python3 -I tests/test_run_semantic_tests.py`: the runner suite ends **OK** (23 tests; the earlier short runs are the test's own captured fixture output, including its intentional failure). - The same file on `main`: **FAILED (errors=1)** — `RunnerTest.test_scratch_failure_is_a_module_failure`, the scratch-directory failure that the PR turns into a per-module failure. - Not run: a real `PermissionError` on a scratch directory; the tests inject the failure. AI-assisted; synthetic fixtures only, no game data.
Author
Owner

@⁠DeadlyChirp on GitHub · 2026-11-25 15:37 UTC · original

Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.

python -m pytest -q tests/test_run_semantic_tests.py:

  • PR: 23 passed. main: 22 passed. The new test passes on Windows.

(AI-assisted test run; output checked by hand.)

**@⁠DeadlyChirp** on GitHub · 2026-11-25 15:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1838#issuecomment-7167137427) Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main. `python -m pytest -q tests/test_run_semantic_tests.py`: - PR: 23 passed. main: 22 passed. The new test passes on Windows. (AI-assisted test run; output checked by hand.)
This pull request has changes conflicting with the target branch.
  • tests/test_run_semantic_tests.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1838/head:github-bot/gh-1838'
git switch 'github-bot/gh-1838'

Merge

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