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

Closed
leonida/mandy
delysidemanYT1 wants to merge 0 commits from semantic-scratch-error into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

delysidemanYT1 commented 2026-11-25 12:58:20 +00:00

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

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

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.

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

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

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

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

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 reviewed 2026-12-01 11:54:41 +00:00
aslan2142 left a comment
No description provided.
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

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.

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.
Sign in to join this conversation.
No description provided.