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

Open
opened 2026-11-26 20:19:35 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/908
Author: @markankamaransheogarat-sys
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: ubiq/shader-disasm-failed-reset


📝 Commits (1)

  • 67f3dbe shader_disasm: use a per-run failed list in main() instead of shared FAILED

📊 Changes

2 files changed (+64 additions, -11 deletions)

View changed files

📝 tests/test_shader_disasm.py (+47 -0)
📝 tools/shader_disasm.py (+17 -11)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/908 **Author:** [@markankamaransheogarat-sys](https://github.com/markankamaransheogarat-sys) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ubiq/shader-disasm-failed-reset` --- ### 📝 Commits (1) - [`67f3dbe`](https://github.com/ubiquitarianism/leonida/commit/67f3dbe00bade1524103f41f95849b1bb8913059) shader_disasm: use a per-run failed list in main() instead of shared FAILED ### 📊 Changes **2 files changed** (+64 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_shader_disasm.py` (+47 -0) 📝 `tools/shader_disasm.py` (+17 -11) </details> ### 📄 Description ### 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#946
No description provided.