Scripts: prepare verified shader diagnostic bundles #2870

Open
IISKII1 wants to merge 5 commits from upstream-pr/2870 into main
IISKII1 commented 2026-11-26 20:05:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by IISKII1 on 2026-11-26T20:05:05Z.


Stacked on #2553 (head b0d2fb814b); only the top commit belongs here. Part of #2562.

Prepare isolated shader bundles before optional vendor analysis: verify the copied artifacts, retain the manifest and SHA-256 identities, and write a structured local report. A new directory per run prevents stale results from being reused.

What is in it

  • scripts/analyze_shader.py, five synthetic fixture tests, and README usage. No runtime change in this commit.

Tested

  • Windows 10 Pro build 19045, RX 7700 XT driver 32.0.22021.1009, Rust 1.94.0 MSVC, Python 3.13; debug.
  • python -B -m unittest discover -s scripts -p test_*.py: 35 passed, 0 failed on the matching local tree.
  • scripts/test.ps1: build succeeded; library tests 1297 passed, 3 failed, 26 ignored; 345 explicit GPU skips included in passes. The run stopped before integration tests. Failures: passthrough_mesh_stream_accepts_a_triangle_driver_blob, split_compute_program_prebuilds_and_caches_chain_pieces, stale_blob_cannot_bypass_the_offline_pipeline_cap. The latter reports no SM 6.6 on this Windows installation. Rust sources are unchanged from the dependency; no claim of a green full suite.
  • git diff --check passed. Remote tree matches the tested local tree.

Not tested

  • No retail title, no GPU execution coverage for skipped cases. Source revision is caller-supplied, not authenticated. This verifies artifact identity, not DXIL validity. Draft pending dependency and Windows suite validation.

AI use

  • Codex (GPT-6) implemented the code and tests, ran validation and wrote this description.
<!-- greyfinch-sync:ivall/xcl:issue:5516458421 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2870). Originally posted by [IISKII1](https://github.com/IISKII1) on 2026-11-26T20:05:05Z. --- Stacked on #2553 (head b0d2fb814b92148710d0f91e590d6c1f9fe26cd2); only the top commit belongs here. Part of #2562. Prepare isolated shader bundles before optional vendor analysis: verify the copied artifacts, retain the manifest and SHA-256 identities, and write a structured local report. A new directory per run prevents stale results from being reused. **What is in it** - scripts/analyze_shader.py, five synthetic fixture tests, and README usage. No runtime change in this commit. **Tested** - Windows 10 Pro build 19045, RX 7700 XT driver 32.0.22021.1009, Rust 1.94.0 MSVC, Python 3.13; debug. - python -B -m unittest discover -s scripts -p test_*.py: 35 passed, 0 failed on the matching local tree. - scripts/test.ps1: build succeeded; library tests 1297 passed, 3 failed, 26 ignored; 345 explicit GPU skips included in passes. The run stopped before integration tests. Failures: passthrough_mesh_stream_accepts_a_triangle_driver_blob, split_compute_program_prebuilds_and_caches_chain_pieces, stale_blob_cannot_bypass_the_offline_pipeline_cap. The latter reports no SM 6.6 on this Windows installation. Rust sources are unchanged from the dependency; no claim of a green full suite. - git diff --check passed. Remote tree matches the tested local tree. **Not tested** - No retail title, no GPU execution coverage for skipped cases. Source revision is caller-supplied, not authenticated. This verifies artifact identity, not DXIL validity. Draft pending dependency and Windows suite validation. **AI use** - Codex (GPT-6) implemented the code and tests, ran validation and wrote this description.
Foniass commented 2026-12-01 09:05:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:05:40Z.


Triage (#1607) – head ba0df57

Stacked on #2553: the four commits up to b0d2fb81 (dump manifests, verify_shader_dump.py) are #2553's and are not on main. Only ba0df574 (scripts/analyze_shader.py, its tests, README) belongs to this PR. #2871 is stacked on this one. This is a stack, not a duplicate.
No problems found in the top commit: it copies the files before verifying them, writes one new directory per run, and returns exit 1 on an invalid bundle.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7306205202 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2870#issuecomment-7306205202). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:05:40Z. --- **Triage (#1607)** – head ba0df57 Stacked on #2553: the four commits up to b0d2fb81 (dump manifests, verify_shader_dump.py) are #2553's and are not on main. Only ba0df574 (scripts/analyze_shader.py, its tests, README) belongs to this PR. #2871 is stacked on this one. This is a stack, not a duplicate. No problems found in the top commit: it copies the files before verifying them, writes one new directory per run, and returns exit 1 on an invalid bundle. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2870:upstream-pr/2870'
git switch 'upstream-pr/2870'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2870'
git switch 'upstream-pr/2870'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2870'
git switch 'upstream-pr/2870'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2870'
git switch 'main'
git merge --squash 'upstream-pr/2870'
git switch 'main'
git merge --ff-only 'upstream-pr/2870'
git switch 'main'
git merge 'upstream-pr/2870'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
xcl-dev/xcl!2870
No description provided.