Repository navigation
Shaders: identify direct translation artifacts in dump manifests - #2553
mokkamokacaffe wants to merge 4 commits into
Conversation
|
Verified Earlier verificationI prepared an offline artifact checker and tests on I ran 12 two-manifest CLI cases using synthetic files, including a 131,073-byte binary guest with independently computed hash Windows 11 26100.9711, i7-13700, Python 3.14.3. I tested the offline checker only. End-to-end generation with XCL and a shader pack remains unverified here. OpenAI Codex (GPT-6) prepared the checker and ran the tests. Rechecked the offline verifier on I ran |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! — Devin |
Check the guest hash and the result selected by the manifest. Compare exact diagnostic bytes for rejected translations so saved artifacts can be verified without the source pack or a GPU. Assisted-by: OpenAI Codex (GPT-6)
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
Tested: current PR head merged onto current
Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
luckyteagirl
left a comment
There was a problem hiding this comment.
Reusing a --dump directory can leave a manifest that still verifies after a rerun fails. The prefix is stable for the same record and program. If the first run writes DXIL and a later run produces a translation error, a failed write to .direct.err.txt returns before the old manifest is replaced. The unchanged guest and old DXIL still match that manifest.
I reproduced the file sequence on Windows by placing a directory at the error artifact path. The sibling write raised PermissionError and the exact-head verifier exited 0 with “guest and translated DXIL match.”
Could the writer invalidate the existing manifest before it starts replacing artifacts, or use separate names for each generation? A regression can seed a valid bundle, force an artifact write failure on the rerun, and check that the old manifest cannot be mistaken for its result.
Remove an existing manifest before replacing any of its sibling artifacts. A failed rerun can then leave incomplete files, but cannot make the verifier accept the previous generation as the new result. Add a two-generation regression that forces the replacement error artifact to be unwritable and checks that the old manifest is gone. Assisted-by: OpenAI Codex (GPT-6.2 Astra Ultra)
|
Fixed in
The new Checked
Not tested
AI use
|
XCL PR #2553 Windows test reportThe PR workspace build, Rust tests, Python tests, whitespace check, and shader dump verification passed. Both retail smoke attempts stopped before launch because the unpacked title was missing the executable declared in Machine and revisions
Tested
Explicit Rust skipsThe workspace emitted 29
Optional retail fixtures for the workspace suite were unset. It logged eight early returns for Failures and main comparisons
Regression runPowerShell confirmed the local title directory exists. Each worktree's full
Neither attempt reached retail gameplay. A paired 60-second performance and stability comparison is pending a complete local title. The title file list, sizes, and last-write times matched before and after testing. Direct shader dumpThe PR release binary ran AI useOpenAI Codex (GPT-6) ran the local checks and drafted this report. Raw logs and shader artifacts stayed local. |
|
I forgot to put the .exe at the right place - rerunning the smoke tests. |
XCL PR #2553 Windows test reportThe PR workspace build, Rust tests, Python tests, whitespace check, and shader dump verification passed. The PR completed two 60-second retail runs with 753 and 733 frames respectively, each with zero crashes or device removals. Main timed out during cold shader preparation on both attempts, so a retail frame or memory comparison against main is unavailable. PR #2553 Machine and revisions
Tested
Explicit Rust skipsThe workspace emitted 29
Optional retail fixtures for the workspace suite were unset. It logged eight early returns for Failures and main comparisons
D3D12 debug-layer follow-upBoth revisions used the matching x64 core and debug DLLs from Microsoft.Direct3D.D3D12 The two stock end-to-end tests check for the Windows-installed debug DLL before starting. That DLL was absent. Separate diagnostic launches using the same synthetic title exercised DRED off and on for each revision. All four loaded Agility SDK v620, exited Regression runPowerShell confirmed that the configured title executable was present. Main ran first, followed by the PR. Each worktree passed a full For the second pair, main used its supported 7,200-second startup allowance. The PR script has a fixed 120-second startup allowance. Both retained the 60-second guest-run setting. The title file list, file sizes, and last-write times matched before and after the reruns. MainThe script stopped the launcher after 7,260 seconds of wall time. Main was still preparing shaders, with 23,520 files in its private cache. The launcher printed no log path, and the stock script produced no PRFirst attempt with default timeoutsMain timed out during cold shader preparation and produced no block. The PR completed its first 60-second run with 753 frames, zero crashes, zero device removals, and 14,948 MB peak commit. PR, first attempt Direct shader dumpThe PR release binary ran AI useOpenAI Codex (GPT-6) ran the original checks. Codex (GPT-6.2 Astra) ran the retail and debug-layer follow-ups and updated this report. Raw logs and shader artifacts stayed local. |
|
Tested: Exact clean head When Windows denied deleting the old manifest, head left the old bundle untouched and the verifier still accepted it. When Windows denied the DXIL write after successful invalidation, no manifest was published and the verifier exited 1. Both retries produced valid bundles once the file handles were released. Not tested: GPU execution, full Rust workspace, retail packs, or retail smoke. AI use: T3 Code / Codex ( |
Part of #2541.
What is in it
xcl shaders --direct --dump <dir>writes a versioned.manifest.jsonbeside each program'sguest.binanddirect.dxilordirect.err.txt. The files share a prefix so a report can be matched to its artifacts.scripts/verify_shader_dump.pyverifies saved bundles without the source shader pack or a GPU: it recomputes the guest/DXIL FNV-1a hashes or compares rejected-translation diagnostic bytes exactly.scripts/test_verify_shader_dump.pycovers successful and rejected translations, large binary inputs, mismatches, absent files/fields, invalid schemas, malformed JSON, and multi-manifest failure handling.translation_wall_usmeasures elapsed time around the translation worker call, including the wait for its result. Driver PSO creation is outside that interval.Tested
b0d2fb814b92148710d0f91e590d6c1f9fe26cd2:python3 -B -m unittest discover -s scripts -p 'test_*.py': 30 passed, 0 failed.cargo check -p xcl --tests --target x86_64-pc-windows-msvc: passed in a Linux cross-check environment using a locallib.exe-compatible archive wrapper. This was compile-only; Windows test binaries were not executed.git diff --check: passed.76e7793, independently checked on Windows 11 / RTX 3060 Ti after merging then-currentmain:cargo test -p xcl --libreported all tests that ran passed, 0 failed and 27 ignored. This predates the stale-manifest fix and is supporting evidence, not exact-head validation.Regression run
Pending paired
xcl-smokeblocks from currentmainand this PR's clean headb0d2fb814b92148710d0f91e590d6c1f9fe26cd2, with the same title and duration.Not tested
AI use
38cdb20f, assisted by OpenAI Codex (GPT-6); the commit was cherry-picked with its original authorship preserved.