Shaders: restore direct DXIL cache ID after source deletion #2047

Open
github-bot wants to merge 1 commit from github-bot/gh-2047 into main AGit
Owner

@⁠luckyteagirl on GitHub · 2026-11-25 01:58 UTC · original
luckyteagirl:codex/dxil-source-deletion → main · +85 −1 · 3 files · 1 commits · open

Fixes #2033. Cargo can miss the first build after a nested direct-DXIL source is deleted, leaving the temporary source ID in the binary and missing otherwise valid shader-cache entries. The build script keeps its directory watch for additions and also watches each file it hashes, so removing a watched file reruns the script immediately. The hash algorithm for unchanged sources is unchanged.

What is in it

  • crates/xcl/build.rs: emit cargo:rerun-if-changed for each hashed direct-DXIL source while retaining the directory watch.
  • scripts/test_dxil_source_id.py: exercise the real build script in a temporary Cargo package through nested-file addition and deletion, including the first incremental build after deletion.
  • .github/workflows/ci.yml: run the regression script on Windows CI.

Tested

  • Clean rebased head 0e9ebc56978eb709b5de0b4ab6823790b1af04bc on main 6d12f58a229bc73889878a448c64dc3af25eeba0; Windows 11 Home build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver 30.0.13002.13003, Rust 1.99.0 MSVC.
  • python scripts/test_dxil_source_id.py: passed. Original, first post-deletion, clean, and second post-deletion source IDs were all 13533542a3f5a0ac; adding a nested source changed the ID to 6404de24ffc18849.
  • Negative control using the same submitted script with clean current-main build.rs and source_hash.rs: exited 1 at the intended first-post-deletion assertion. The first post-deletion ID remained the temporary source's 6404de24ffc18849, while the clean build restored 13533542a3f5a0ac. The control was constructed in a temporary directory; no source worktree was changed.
  • cargo build --locked --release -p xcl --bins -j 2 on this head: passed under the 1 GiB free-commit guard with no guard trigger. git diff --check: clean.
  • On the earlier head 859e8c0, the full workspace run completed with 993 passed, 161 failed, 46 ignored on both that head and its then-current main; all 161 named failures matched and followed RX 6800M device suspension. This is historical parity evidence, not a current-head suite result.

Regression run

The same locally owned title and RX 6800M were run with separate fresh data and shader caches. The short title run does not add or remove translator sources; the Cargo fixture above directly exercises this fix.

Current main:

xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: AMD Radeon RX 6800M
title: 2ef5fd64
seconds: 7
exit: 0x0
frames shown: 12 (PresentX 12)
presents per 2 s (last 3): 0 0 1
device removals: 0
crashes: 0
peak commit: 6943 MB

This PR:

xcl-smoke v1
commit: 0e9ebc56978eb709b5de0b4ab6823790b1af04bc
gpu: AMD Radeon RX 6800M
title: 2ef5fd64
seconds: 7
exit: 0x0
frames shown: 14 (PresentX 14)
presents per 2 s (last 3): 0 0 1
device removals: 0
crashes: 0
peak commit: 6958 MB

Not tested

  • A completed current-head GPU workspace suite, longer title runs, other adapters, or newer drivers. No game data was uploaded.

AI use

OpenAI Codex (GPT-6; exact variant unavailable) implemented the fix and regression script, rebased the commit, ran the current-head fixture and negative control, built the release binary, ran guarded smoke comparisons, and drafted this description.

**@⁠luckyteagirl** on GitHub · 2026-11-25 01:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/2047) `luckyteagirl:codex/dxil-source-deletion` → `main` · +85 −1 · 3 files · 1 commits · open Fixes #2033. Cargo can miss the first build after a nested direct-DXIL source is deleted, leaving the temporary source ID in the binary and missing otherwise valid shader-cache entries. The build script keeps its directory watch for additions and also watches each file it hashes, so removing a watched file reruns the script immediately. The hash algorithm for unchanged sources is unchanged. **What is in it** - `crates/xcl/build.rs`: emit `cargo:rerun-if-changed` for each hashed direct-DXIL source while retaining the directory watch. - `scripts/test_dxil_source_id.py`: exercise the real build script in a temporary Cargo package through nested-file addition and deletion, including the first incremental build after deletion. - `.github/workflows/ci.yml`: run the regression script on Windows CI. **Tested** - Clean rebased head `0e9ebc56978eb709b5de0b4ab6823790b1af04bc` on `main` `6d12f58a229bc73889878a448c64dc3af25eeba0`; Windows 11 Home build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver `30.0.13002.13003`, Rust 1.99.0 MSVC. - `python scripts/test_dxil_source_id.py`: passed. Original, first post-deletion, clean, and second post-deletion source IDs were all `13533542a3f5a0ac`; adding a nested source changed the ID to `6404de24ffc18849`. - Negative control using the same submitted script with clean current-main `build.rs` and `source_hash.rs`: exited 1 at the intended first-post-deletion assertion. The first post-deletion ID remained the temporary source's `6404de24ffc18849`, while the clean build restored `13533542a3f5a0ac`. The control was constructed in a temporary directory; no source worktree was changed. - `cargo build --locked --release -p xcl --bins -j 2` on this head: passed under the 1 GiB free-commit guard with no guard trigger. `git diff --check`: clean. - On the earlier head `859e8c0`, the full workspace run completed with **993 passed, 161 failed, 46 ignored** on both that head and its then-current main; all 161 named failures matched and followed RX 6800M device suspension. This is historical parity evidence, not a current-head suite result. **Regression run** The same locally owned title and RX 6800M were run with separate fresh data and shader caches. The short title run does not add or remove translator sources; the Cargo fixture above directly exercises this fix. Current `main`: ``` xcl-smoke v1 commit: 6d12f58a229bc73889878a448c64dc3af25eeba0 gpu: AMD Radeon RX 6800M title: 2ef5fd64 seconds: 7 exit: 0x0 frames shown: 12 (PresentX 12) presents per 2 s (last 3): 0 0 1 device removals: 0 crashes: 0 peak commit: 6943 MB ``` This PR: ``` xcl-smoke v1 commit: 0e9ebc56978eb709b5de0b4ab6823790b1af04bc gpu: AMD Radeon RX 6800M title: 2ef5fd64 seconds: 7 exit: 0x0 frames shown: 14 (PresentX 14) presents per 2 s (last 3): 0 0 1 device removals: 0 crashes: 0 peak commit: 6958 MB ``` **Not tested** - A completed current-head GPU workspace suite, longer title runs, other adapters, or newer drivers. No game data was uploaded. **AI use** OpenAI Codex (GPT-6; exact variant unavailable) implemented the fix and regression script, rebased the commit, ran the current-head fixture and negative control, built the release binary, ran guarded smoke comparisons, and drafted this description.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:16:38 +00:00
Author
Owner

@⁠pvfreis on GitHub · 2026-11-25 02:24 UTC · original

One thing that only shows after a merge with main (read at 3933694, not run): scripts/test_dxil_source_id.py:41 copies only build.rs into its package, and main's crates/xcl/build.rs (since #2031) loads src/source_hash.rs as a module (#[path], line 49), which is not there, so the script would fail at its first build. CI doesn't run it, so nothing reports it. Copying that file to the package's src/ too should be enough.

The build.rs change reads right to me (it fixes my #1947): it watches exactly the files it hashes and does not change what is hashed.

Read by Claude Code (Claude Opus 5.5), checked with Claude Fable 5.2; each point checked by a person before posting.

**@⁠pvfreis** on GitHub · 2026-11-25 02:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/2047#issuecomment-7150674763) One thing that only shows after a merge with `main` (read at `3933694`, not run): `scripts/test_dxil_source_id.py:41` copies only `build.rs` into its package, and `main`'s `crates/xcl/build.rs` (since #2031) loads `src/source_hash.rs` as a module (`#[path]`, line 49), which is not there, so the script would fail at its first build. CI doesn't run it, so nothing reports it. Copying that file to the package's `src/` too should be enough. The `build.rs` change reads right to me (it fixes my #1947): it watches exactly the files it hashes and does not change what is hashed. Read by Claude Code (Claude Opus 5.5), checked with Claude Fable 5.2; each point checked by a person before posting.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 02:43 UTC · original

Tested

Windows 11 Enterprise Evaluation x64 build 26200.9974, NTFS, Ryzen 7 3800X, native x86_64-pc-windows-msvc Rust/Cargo 1.100.0, Cargo dev profile, portable CPython 3.13.7 from L:/XclTooling/pr1999-coverage-52a120f7/portable.

Command for each run: & 'L:/XclTooling/pr1999-coverage-52a120f7/portable/python.exe' scripts/test_dxil_source_id.py from the checkout or scratch fixture root. The script invokes cargo build --offline --quiet --manifest-path <fixture>/Cargo.toml --target-dir <target> and runs the resulting debug/xcl.exe after each successful build.

  • PR #2047 3933694fcb35f157fd4b169ecfd14015b9724ce2 — Clean detached checkout, verified against the open PR before and after execution. The checked-in script exited 0. Five Cargo builds and five probes succeeded, all four assertions passed, and there were zero failures or skips. The temporary source changed the ID from 344117f303413662 to 26dcbf2be98a5142. The first incremental build after deletion, the clean build, and the second incremental build all returned 344117f303413662.
  • Main cbc296ab65a2661a61e3e2da109134bcd5319f60 — In scratch fixtures with main's exact build.rs and src/source_hash.rs, the submitted script exited 1 on the first Cargo build because it did not copy src/source_hash.rs into the temporary package. One build failed before any probe or assertion ran. With one test-only change to copy the actual module into the package, five builds and five probes succeeded with zero skips. The script exited 1 at the regression assertion: first post-deletion ID 6404de24ffc18849 still matched the temporary-file ID, and the original, clean and second post-deletion IDs were 13533542a3f5a0ac.

Not tested

Rebased or merged PR tree, XCL workspace build or tests, GPU execution, titles, and shader-cache I/O. The probe measured the compiled-in source ID.

AI use

Codex in T3 Code (gpt-6.2-sol, high reasoning effort) ran the checked-in test, prepared and ran the scratch comparisons, and wrote this report.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 02:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/2047#issuecomment-7151102946) <!-- xcl-standalone-test-report: pr-2047 head-3933694 windows-msvc-1.100.0 --> **Tested** Windows 11 Enterprise Evaluation x64 build 26200.9974, NTFS, Ryzen 7 3800X, native `x86_64-pc-windows-msvc` Rust/Cargo 1.100.0, Cargo dev profile, portable CPython 3.13.7 from `L:/XclTooling/pr1999-coverage-52a120f7/portable`. Command for each run: `& 'L:/XclTooling/pr1999-coverage-52a120f7/portable/python.exe' scripts/test_dxil_source_id.py` from the checkout or scratch fixture root. The script invokes `cargo build --offline --quiet --manifest-path <fixture>/Cargo.toml --target-dir <target>` and runs the resulting `debug/xcl.exe` after each successful build. - **PR #2047 `3933694fcb35f157fd4b169ecfd14015b9724ce2`** — Clean detached checkout, verified against the open PR before and after execution. The checked-in script exited 0. Five Cargo builds and five probes succeeded, all four assertions passed, and there were zero failures or skips. The temporary source changed the ID from `344117f303413662` to `26dcbf2be98a5142`. The first incremental build after deletion, the clean build, and the second incremental build all returned `344117f303413662`. - **Main `cbc296ab65a2661a61e3e2da109134bcd5319f60`** — In scratch fixtures with main's exact `build.rs` and `src/source_hash.rs`, the submitted script exited 1 on the first Cargo build because it did not copy `src/source_hash.rs` into the temporary package. One build failed before any probe or assertion ran. With one test-only change to copy the actual module into the package, five builds and five probes succeeded with zero skips. The script exited 1 at the regression assertion: first post-deletion ID `6404de24ffc18849` still matched the temporary-file ID, and the original, clean and second post-deletion IDs were `13533542a3f5a0ac`. **Not tested** Rebased or merged PR tree, XCL workspace build or tests, GPU execution, titles, and shader-cache I/O. The probe measured the compiled-in source ID. **AI use** Codex in T3 Code (`gpt-6.2-sol`, high reasoning effort) ran the checked-in test, prepared and ran the scratch comparisons, and wrote this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 04:41 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 04:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/2047#issuecomment-7153079485) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠anes66 on GitHub · 2026-11-25 06:20 UTC · original

Independent CPU-only verification on exact head 859e8c0c2e496c45856edce382b7e1026e60b3d5 reproduces the first-post-deletion bug without the per-file watch and passes with it.

Tested

  • Windows 10 Pro 19045, NTFS on a SATA HDD, Ryzen 7 9800X3D, Rust/Cargo 1.100.0 MSVC. No GPU, DXC or title execution. Cargo target and temporary directories are isolated under the project directory, which contains spaces.
  • python -B scripts/test_dxil_source_id.py: exit 0. Original / first post-deletion / clean / second post-deletion ID all 13533542a3f5a0ac; adding the source gives 6404de24ffc18849.
  • Temporary control removing only the direct-source cargo:rerun-if-changed={relative} line: exit 1 at the intended assertion. First post-deletion ID remains 6404de24ffc18849, while clean and second builds restore 13533542a3f5a0ac. Restored afterward.
  • Final restored script with PYTHONOPTIMIZE=1 and CARGO_BUILD_TARGET=x86_64-pc-windows-msvc: exit 0, all four baseline/restoration IDs match as above.
  • Reused our source-identity integration fixture from #1947 on this head: cargo test --locked -p xcl --test direct_source_identity -j 2 -- --nocapture --test-threads=1: 1 passed / 0 failed / 0 ignored / 0 skips. Seventeen real-build-script probes check direct/common/per-lane isolation, excluded test/non-Rust files, nested additions, deterministic ordering, rename sensitivity, and restoration after deletion. This complements the Cargo scheduling test rather than replacing it.

Optional companion c63333b is directly on this PR's head and contains only that existing integration fixture. No runtime edits or competing PR.

Not tested
Workspace build/test suite, release, shader-cache reuse in an actual title, GPU execution, performance or newer-main integration. The Cargo fixture establishes the immediate cache-ID restoration; it does not measure load-time improvement.

AI use: Codex (GPT-6; exact variant unavailable) reused the integration fixture, ran the script / negative control / CPU test and prepared this report.

**@⁠anes66** on GitHub · 2026-11-25 06:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/2047#issuecomment-7154682516) Independent CPU-only verification on exact head `859e8c0c2e496c45856edce382b7e1026e60b3d5` reproduces the first-post-deletion bug without the per-file watch and passes with it. **Tested** - Windows 10 Pro 19045, NTFS on a SATA HDD, Ryzen 7 9800X3D, Rust/Cargo 1.100.0 MSVC. No GPU, DXC or title execution. Cargo target and temporary directories are isolated under the project directory, which contains spaces. - `python -B scripts/test_dxil_source_id.py`: exit 0. Original / first post-deletion / clean / second post-deletion ID all `13533542a3f5a0ac`; adding the source gives `6404de24ffc18849`. - Temporary control removing only the direct-source `cargo:rerun-if-changed={relative}` line: exit 1 at the intended assertion. First post-deletion ID remains `6404de24ffc18849`, while clean and second builds restore `13533542a3f5a0ac`. Restored afterward. - Final restored script with `PYTHONOPTIMIZE=1` and `CARGO_BUILD_TARGET=x86_64-pc-windows-msvc`: exit 0, all four baseline/restoration IDs match as above. - Reused our source-identity integration fixture from #1947 on this head: `cargo test --locked -p xcl --test direct_source_identity -j 2 -- --nocapture --test-threads=1`: **1 passed / 0 failed / 0 ignored / 0 skips**. Seventeen real-build-script probes check direct/common/per-lane isolation, excluded test/non-Rust files, nested additions, deterministic ordering, rename sensitivity, and restoration after deletion. This complements the Cargo scheduling test rather than replacing it. Optional companion [c63333b](https://github.com/anes66/xcl/commit/c63333b3a47cd8ee03561084d2285d796a65a9ff) is directly on this PR's head and contains only that existing integration fixture. No runtime edits or competing PR. **Not tested** Workspace build/test suite, release, shader-cache reuse in an actual title, GPU execution, performance or newer-main integration. The Cargo fixture establishes the immediate cache-ID restoration; it does not measure load-time improvement. AI use: Codex (GPT-6; exact variant unavailable) reused the integration fixture, ran the script / negative control / CPU test and prepared this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 07:15 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: 1 failure under parallel scheduling; clean on --test-threads=1 rerun (1312 passed, 0 failed, 27 ignored, 82s). Intermittent single-test flake — tracked in #1978.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 07:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/2047#issuecomment-7185266825) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: 1 failure under parallel scheduling; clean on `--test-threads=1` rerun (**1312 passed, 0 failed, 27 ignored**, 82s). Intermittent single-test flake — tracked in #1978. Thanks! — Devin
Author
Owner

@⁠lewisnic94-max on GitHub · 2026-11-25 02:16 UTC · original · reviewed

At 3933694fcb35f157fd4b169ecfd14015b9724ce2, the first Cargo build after deleting a nested direct-DXIL source restored the clean fingerprint in 8/8 cycles, versus 0/8 on merge base 3da2abb81606df622610e009f0430de99aa9881c. The first restored workspace executable also reused the original HLSL, direct-compute, direct-all and per-lane entries. All four synthetic compute pipelines were created, with unchanged cache paths, bytes and timestamps.

Two P3 findings in scripts/test_dxil_source_id.py (high confidence)

  1. Line 69. With PYTHONOPTIMIZE=1, the PR script paired with the unpatched build.rs exits 0 even though the first restored ID is 26dcbf2be98a5142 and the clean ID is 344117f303413662. Normal Python exits 1 on the same input. Use explicit checks that raise or exit nonzero, and run this known-bad control with optimization enabled.

  2. Line 32. With CARGO_BUILD_TARGET=x86_64-pc-windows-msvc on native Windows, Cargo builds the probe successfully, then the script raises FileNotFoundError looking under debug/. Use cargo run --offline --quiet to read the ID without guessing the executable path. A scratch copy with both corrections passed on the fixed head with the host target set and failed on the optimized broken control.

The default script failed on the merge-base build script and passed on this head. Adding it to Windows CI would exercise this regression on future changes. The workspace suite currently does not invoke it.

Tested. Windows 11 26200.9974, Ryzen 7 5800X, RTX 3080 (616.92), Rust/Cargo 1.100.0 MSVC, DXC 1.9.2602.17. cargo test --locked --workspace --no-fail-fast -j 1 -- --test-threads=4 --nocapture gave 1,111 passed, 0 failed, 46 ignored on the head and 1,111 passed, 0 failed, 46 ignored on the base. The head emitted 27 explicit SKIPPED messages and 12 other skip messages, some for subcases. The shader_cache_tests filter passed 15/15.

AMD and coverage. Earlier RX 6800M runs on driver 30.0.13002.13003 also reported device removal. A pre-existing failure cascade is plausible, but the public record does not establish the cause of all 158 failures. A same-driver merge-base run with the first error and per-test results would distinguish them. I did not test AMD, wave64, release builds or a retail title. Earlier RX 6800M report

AI assistance. OpenAI Codex (GPT-6) inspected the changes, ran the independent tests and drafted this review.

**@⁠lewisnic94-max** on GitHub · 2026-11-25 02:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/2047#pullrequestreview-6050694860) · **reviewed** At `3933694fcb35f157fd4b169ecfd14015b9724ce2`, the first Cargo build after deleting a nested direct-DXIL source restored the clean fingerprint in **8/8 cycles**, versus **0/8** on merge base `3da2abb81606df622610e009f0430de99aa9881c`. The first restored workspace executable also reused the original HLSL, direct-compute, direct-all and per-lane entries. All four synthetic compute pipelines were created, with unchanged cache paths, bytes and timestamps. **Two P3 findings in `scripts/test_dxil_source_id.py` (high confidence)** 1. **Line 69.** With `PYTHONOPTIMIZE=1`, the PR script paired with the unpatched build.rs exits 0 even though the first restored ID is `26dcbf2be98a5142` and the clean ID is `344117f303413662`. Normal Python exits 1 on the same input. Use explicit checks that raise or exit nonzero, and run this known-bad control with optimization enabled. 2. **Line 32.** With `CARGO_BUILD_TARGET=x86_64-pc-windows-msvc` on native Windows, Cargo builds the probe successfully, then the script raises `FileNotFoundError` looking under `debug/`. Use `cargo run --offline --quiet` to read the ID without guessing the executable path. A scratch copy with both corrections passed on the fixed head with the host target set and failed on the optimized broken control. The default script failed on the merge-base build script and passed on this head. Adding it to Windows CI would exercise this regression on future changes. The workspace suite currently does not invoke it. **Tested.** Windows 11 26200.9974, Ryzen 7 5800X, RTX 3080 (616.92), Rust/Cargo 1.100.0 MSVC, DXC 1.9.2602.17. `cargo test --locked --workspace --no-fail-fast -j 1 -- --test-threads=4 --nocapture` gave 1,111 passed, 0 failed, 46 ignored on the head and 1,111 passed, 0 failed, 46 ignored on the base. The head emitted 27 explicit `SKIPPED` messages and 12 other skip messages, some for subcases. The `shader_cache_tests` filter passed 15/15. **AMD and coverage.** Earlier RX 6800M runs on driver 30.0.13002.13003 also reported device removal. A pre-existing failure cascade is plausible, but the public record does not establish the cause of all 158 failures. A same-driver merge-base run with the first error and per-test results would distinguish them. I did not test AMD, wave64, release builds or a retail title. [Earlier RX 6800M report](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2035) **AI assistance.** OpenAI Codex (GPT-6) inspected the changes, ran the independent tests and drafted this review.
Author
Owner

@⁠lewisnic94-max on GitHub · 2026-11-25 09:19 UTC · original · reviewed

Reviewed commit 859e8c0c2e496c45856edce382b7e1026e60b3d5.

I rechecked the two regression-script findings and the newer build-script dependency. The fixture now copies src/source_hash.rs, invokes Cargo to run the binary, and checks the IDs even with Python optimization enabled. On the standalone head, with CARGO_BUILD_TARGET=x86_64-pc-windows-msvc, and on the clean merge tree 833140040a2de15ad310094cac29bd7ba9a5eedc with main 568e7db772, the first incremental build after deletion restored 13533542a3f5a0ac. Adding the nested file had changed it to 6404de24ffc18849.

As a negative control I removed only the per-file Cargo watch from the direct-source loop. Running the unchanged script with python -O exited 1 on the first stale post-deletion ID. The next build and clean build both recovered. That distinguishes a working assertion from a script that always exits successfully. I consider the two earlier P3s resolved on this head.

Windows 11 x64, Ryzen 7 5800X, Rust/Cargo 1.100.0 MSVC. The RTX 3080 was idle for these CPU tests. Three positive script runs passed and one negative control failed as intended. No skipped cases. Coverage was the Cargo fingerprint fixture. The eight-cycle and shader-cache results in the earlier review belong to its earlier commit.

AI assistance: OpenAI Codex (GPT-6) inspected the implementation, analyzed the synthetic test evidence and drafted this review.

**@⁠lewisnic94-max** on GitHub · 2026-11-25 09:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/2047#pullrequestreview-6054815021) · **reviewed** Reviewed commit `859e8c0c2e496c45856edce382b7e1026e60b3d5`. I rechecked the two regression-script findings and the newer build-script dependency. The fixture now copies src/source_hash.rs, invokes Cargo to run the binary, and checks the IDs even with Python optimization enabled. On the standalone head, with CARGO_BUILD_TARGET=x86_64-pc-windows-msvc, and on the clean merge tree 833140040a2de15ad310094cac29bd7ba9a5eedc with main 568e7db7729c8fa6c8f0f4b32d798faaf11462bb, the first incremental build after deletion restored 13533542a3f5a0ac. Adding the nested file had changed it to 6404de24ffc18849. As a negative control I removed only the per-file Cargo watch from the direct-source loop. Running the unchanged script with python -O exited 1 on the first stale post-deletion ID. The next build and clean build both recovered. That distinguishes a working assertion from a script that always exits successfully. I consider the two earlier P3s resolved on this head. Windows 11 x64, Ryzen 7 5800X, Rust/Cargo 1.100.0 MSVC. The RTX 3080 was idle for these CPU tests. Three positive script runs passed and one negative control failed as intended. No skipped cases. Coverage was the Cargo fingerprint fixture. The eight-cycle and shader-cache results in the earlier review belong to its earlier commit. AI assistance: OpenAI Codex (GPT-6) inspected the implementation, analyzed the synthetic test evidence and drafted this review.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2047/head:github-bot/gh-2047'
git switch 'github-bot/gh-2047'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2047'
git switch 'github-bot/gh-2047'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2047'
git switch 'github-bot/gh-2047'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2047'
git switch 'main'
git merge --squash 'github-bot/gh-2047'
git switch 'main'
git merge --ff-only 'github-bot/gh-2047'
git switch 'main'
git merge 'github-bot/gh-2047'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.