SHADER-DISASM-PER-RUN-FAILED: shader_disasm: use a per-run failed list in main() and handle read OSError #908
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/908"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by markankamaransheogarat-sys on 2026-11-24T15:09:33Z.
Summary
failedlist intoone()frommain(argv=None)instead of mutating module-levelFAILEDacross calls.OSErrorwhen reading.fssminputs inone()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).
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-24T19:34:39Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T15:24:50Z.
Tested
18e0304d5merged (no commit) withmainc22a0a732: Python 3.12.4, Windows 11 10.0.26300, CPU only.python -I tests/test_shader_disasm.pygives 36 tests OK.tools/shader_disasm.pyback tomain, 2 tests error withTypeError: main() takes 0 positional arguments but 1 was given:test_main_ignores_module_failed_state_between_callsandtest_unreadable_fssm_reports_clean_error_without_leaking_failed.main's owntests/test_shader_disasm.pygives 34 tests OK, so there is no regression.check_no_game_data.pyis clean.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T19:17:46Z.
Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, spirv-tools + llvm-mc, main
7c330c76d(also merges cleanly on current maindd87aa405; does not force a rebase of #2566), PR head18e0304d5: red 2 errors / green 36 OK, 0 skippedpython3.12 -I tests/test_shader_disasm.py:TypeError: main() takes 0 positional arguments— a signature red, so I also checked behaviour with a copy of the test passing args viasys.argv: on main both cases fail for the intended reasons (theFAILEDstate leaks between calls;PermissionErroris not caught); on the merge the copy passes.main(argv=None), a per-runfailedlist passed toone(), readOSErrorreported cleanly. Nit:one()still appends to the globalFAILEDwhen nofailedis passed. No game data.Verdict: READY
AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T08:14:48Z.
Merged. Tested by @TheGeogeo on head
18e0304d5(CPU only (Windows 11)): test_shader_disasm.py: red with tool reverted 2 TypeError errors, green 36 OK. The CI jobs that are red on this head were also red on main at the time of the run. Thanks @markankamaransheogarat-sys!AI-assisted: yes