tools: offline Scarlett launch diagnosis and visual regression comparison #61

Manually merged
github merged 7 commits from gh-pr/61/head into gh-pr/61/base 2026-11-26 06:28:25 +00:00
Owner

@⁠Valdi320 on GitHub · 2026-11-24 14:12 UTC · original
Valdi320:work/scarlett-observability → main · +2032 −0 · 8 files · 7 commits · merged 2026-11-25 14:21 UTC

Scope

Two offline CPU-only development tools:

  • diagnose_scarlett_run.py: separate appended launch sessions; identify first recorded D3D12 milestones, explicit pipeline/resource/command errors, missing imports, survey RVAs, Wine terminal diagnostics and shader outcomes. Return line references and next investigation checks. Distinguish a nonzero exit, continued assert, terminal exception, and incomplete log without inferring causation or a hang from silence.
  • compare_scarlett_frames.py: compare explicitly aligned RGB/RGBA 8-bit PNGs or matching named sequences, no resizing/alignment/color conversion. Exact-by-default global and per-tile gates, MAE/MSE/PSNR, changed bounding boxes, worst regions, black/flat/repeat observations, absolute-error PNGs. Pillow is optional and not added to runtime requirements.

No changes to game launch or provider behavior. No GPU access or game execution.

Validation

  • 140 distinct Python tests passed (133 in project venv; seven optional image tests run separately using installed Pillow).
  • Actual public issue #39 log: 2,811 lines; first present at 514, page mapping at 548, slot 86 HRESULT 0x8007007e at 541; 64 compute pipeline failure events, 836 distinct shader refusals and 217 successful translations. No exit record; no claim of terminal cause or which module was missing.
  • Controlled appended sessions separate terminal exception, continued assert, nonzero and normal exit.
  • Six synthetic 3840x2160 image pairs (49,766,400 pixel comparisons): identity, single pixel, small localized artifact despite permissive global fraction, black, tolerated one-level changes, and color swap. All gates behaved as expected. Additional controls cover alpha, ROI, partial tiles, dimensions, metadata, animation, and repeated sequence frames.
  • Fixture generator, documentation and receipts included.

Limits

These tools report evidence, not automatic root-cause proof. Captures must be genuinely comparable; real title rendering and gameplay have not been tested. AI-assisted contribution.

**@⁠Valdi320** on GitHub · 2026-11-24 14:12 UTC · [original](https://github.com/brcly/TuxBox/pull/61) `Valdi320:work/scarlett-observability` → `main` · +2032 −0 · 8 files · 7 commits · merged 2026-11-25 14:21 UTC ## Scope Two offline CPU-only development tools: - diagnose_scarlett_run.py: separate appended launch sessions; identify first recorded D3D12 milestones, explicit pipeline/resource/command errors, missing imports, survey RVAs, Wine terminal diagnostics and shader outcomes. Return line references and next investigation checks. Distinguish a nonzero exit, continued assert, terminal exception, and incomplete log without inferring causation or a hang from silence. - compare_scarlett_frames.py: compare explicitly aligned RGB/RGBA 8-bit PNGs or matching named sequences, no resizing/alignment/color conversion. Exact-by-default global and per-tile gates, MAE/MSE/PSNR, changed bounding boxes, worst regions, black/flat/repeat observations, absolute-error PNGs. Pillow is optional and not added to runtime requirements. No changes to game launch or provider behavior. No GPU access or game execution. ## Validation - 140 distinct Python tests passed (133 in project venv; seven optional image tests run separately using installed Pillow). - Actual public issue #39 log: 2,811 lines; first present at 514, page mapping at 548, slot 86 HRESULT 0x8007007e at 541; 64 compute pipeline failure events, 836 distinct shader refusals and 217 successful translations. No exit record; no claim of terminal cause or which module was missing. - Controlled appended sessions separate terminal exception, continued assert, nonzero and normal exit. - Six synthetic 3840x2160 image pairs (49,766,400 pixel comparisons): identity, single pixel, small localized artifact despite permissive global fraction, black, tolerated one-level changes, and color swap. All gates behaved as expected. Additional controls cover alpha, ROI, partial tiles, dimensions, metadata, animation, and repeated sequence frames. - Fixture generator, documentation and receipts included. ## Limits These tools report evidence, not automatic root-cause proof. Captures must be genuinely comparable; real title rendering and gameplay have not been tested. AI-assisted contribution.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:28:25 +00:00
github manually merged commit e365d24d4a into gh-pr/61/base 2026-11-26 06:28:25 +00:00
Author
Owner

@⁠trigger337 on GitHub · 2026-11-24 14:15 UTC · original

Tested on Linux x86_64 (x86_64-unknown-linux-gnu, Linux 6.17 / CachyOS) with AMD Radeon RX 6900 XT (Mesa 26.2.5 RADV, Vulkan 1.4.333):

• cargo test --manifest-path tools/shader-compiler/Cargo.toml --target x86_64-unknown-linux-gnu: all 79 unit tests passed.
• python3 -m unittest discover -s tests: 133 tests passed (7 optional Pillow image comparison tests skipped cleanly as expected when Pillow is absent).
• Tested diagnose_scarlett_run.py and compare_scarlett_frames.py offline tools.

Very clean and helpful offline observability tooling for triage and log inspection.

agent: yes
AI-assisted: yes

**@⁠trigger337** on GitHub · 2026-11-24 14:15 UTC · [original](https://github.com/brcly/TuxBox/pull/61#issuecomment-7134095797) Tested on Linux x86_64 (`x86_64-unknown-linux-gnu`, Linux 6.17 / CachyOS) with AMD Radeon RX 6900 XT (Mesa 26.2.5 RADV, Vulkan 1.4.333): • `cargo test --manifest-path tools/shader-compiler/Cargo.toml --target x86_64-unknown-linux-gnu`: all 79 unit tests passed. • `python3 -m unittest discover -s tests`: 133 tests passed (7 optional Pillow image comparison tests skipped cleanly as expected when Pillow is absent). • Tested `diagnose_scarlett_run.py` and `compare_scarlett_frames.py` offline tools. Very clean and helpful offline observability tooling for triage and log inspection. agent: yes AI-assisted: yes
This discussion has been locked. Commenting is limited to contributors.
No description provided.