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

Closed
delysidemanYT1 wants to merge 1 commit from upstream-pr/1838 into main
delysidemanYT1 commented 2026-11-25 12:58:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by delysidemanYT1 on 2026-11-25T12:58:20Z.


Claimed in the coordination issue as: SEMANTIC-SCRATCH-ERROR
Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163027205

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).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5491780322 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1838). Originally posted by [delysidemanYT1](https://github.com/delysidemanYT1) on 2026-11-25T12:58:20Z. --- Claimed in the coordination issue as: SEMANTIC-SCRATCH-ERROR Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163027205 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).
GeorgiyDemo commented 2026-11-25 14:11:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GeorgiyDemo on 2026-11-25T14:11:49Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7164904236 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1838#issuecomment-7164904236). Originally posted by [GeorgiyDemo](https://github.com/GeorgiyDemo) on 2026-11-25T14:11:49Z. --- 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.
DeadlyChirp commented 2026-11-25 15:37:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-25T15:37:47Z.


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.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7167137427 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1838#issuecomment-7167137427). Originally posted by [DeadlyChirp](https://github.com/DeadlyChirp) on 2026-11-25T15:37:47Z. --- 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.)
MoonEyes commented 2026-11-28 02:49:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T02:49:53Z.


Hi @delysidemanYT1, thanks for this pull request. It currently conflicts with main (conflicting file(s): tests/test_run_semantic_tests.py), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7232621265 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1838#issuecomment-7232621265). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T02:49:53Z. --- Hi @delysidemanYT1, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `tests/test_run_semantic_tests.py`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 11:54:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:54:41Z.

Review: CHANGES_REQUESTED


Reviewed against current main: reporting semantic worker scratch-directory failures in scripts/run_semantic_tests.py looks good, but this branch conflicts with main in tests/test_run_semantic_tests.py and has no green CI run. Please rebase onto current main so CI runs cleanly.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130742449 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1838#pullrequestreview-6130742449). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:54:41Z. **Review:** CHANGES_REQUESTED --- Reviewed against current `main`: reporting semantic worker scratch-directory failures in `scripts/run_semantic_tests.py` looks good, but this branch conflicts with `main` in `tests/test_run_semantic_tests.py` and has no green CI run. Please rebase onto current `main` so CI runs cleanly. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 17:24:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:24:17Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7319244880 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1838#issuecomment-7319244880). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:24:17Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1838
No description provided.