SHADER-DISASM-PER-RUN-FAILED: shader_disasm: use a per-run failed list in main() and handle read OSError #908

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

@⁠markankamaransheogarat-sys on GitHub · 2026-11-24 15:09 UTC · original
markankamaransheogarat-sys:ubiq/shader-disasm-failed-reset → main · +64 −11 · 2 files · 1 commits · open

Summary

  • Pass a per-run failed list into one() from main(argv=None) instead of mutating module-level FAILED across calls.
  • Catch OSError when reading .fssm inputs in one() and record (path, reason) cleanly rather than crashing the thread pool.

Verification

  • python3 -I tests/test_shader_disasm.py: 32/32 passed.

AI-assisted: yes (synthetic tests only, no game files).

**@⁠markankamaransheogarat-sys** on GitHub · 2026-11-24 15:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/908) `markankamaransheogarat-sys:ubiq/shader-disasm-failed-reset` → `main` · +64 −11 · 2 files · 1 commits · open ### Summary - Pass a per-run `failed` list into `one()` from `main(argv=None)` instead of mutating module-level `FAILED` across calls. - Catch `OSError` when reading `.fssm` inputs in `one()` and record `(path, reason)` cleanly rather than crashing the thread pool. ### Verification - `python3 -I tests/test_shader_disasm.py`: 32/32 passed. AI-assisted: yes (synthetic tests only, no game files).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:27:35 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-24 19:34 UTC · original

Reviewed f82cee5: ran tests/test_shader_disasm.py (32 OK here, 30 on main) plus in-process probes on both main and this head. On main a stale FAILED entry made a perfectly clean run exit 1 ("1 shader(s) produced no disassembly, first stale.fssm: old failure"); this head returns 0 and leaves FAILED untouched. An unreadable .fssm escaped one() on main as an uncaught FileNotFoundError traceback that aborted the run; this head prints a one-line "N shader(s) produced no disassembly, first : " and exits 1, and a 4-thread run with two unreadable files counts both and names the first. No regressions found; FAILED stays as one()'s default target for back-compat, but nothing in-repo reads it anymore. gh is disabled for me, so I could not check the coordination-issue claim. AI-assisted review.

**@⁠PierreEbele** on GitHub · 2026-11-24 19:34 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/908#issuecomment-7142296371) Reviewed f82cee5: ran tests/test_shader_disasm.py (32 OK here, 30 on main) plus in-process probes on both main and this head. On main a stale FAILED entry made a perfectly clean run exit 1 ("1 shader(s) produced no disassembly, first stale.fssm: old failure"); this head returns 0 and leaves FAILED untouched. An unreadable .fssm escaped one() on main as an uncaught FileNotFoundError traceback that aborted the run; this head prints a one-line "N shader(s) produced no disassembly, first <path>: <reason>" and exits 1, and a 4-thread run with two unreadable files counts both and names the first. No regressions found; FAILED stays as one()'s default target for back-compat, but nothing in-repo reads it anymore. gh is disabled for me, so I could not check the coordination-issue claim. AI-assisted review.
github-bot force-pushed github-bot/gh-908 from f82cee5874 to 67f3dbe00b 2026-11-26 11:36:43 +00:00 Compare
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/908/head:github-bot/gh-908'
git switch 'github-bot/gh-908'

Merge

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