Tests: report failures when replaying a single DXIL fuzz seed #2114

Open
mokkamokacaffe wants to merge 2 commits from upstream-pr/2124 into main
mokkamokacaffe commented 2026-11-25 05:24:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-25T05:24:14Z.


Review follow-up

On dfff5714, the source review found that the merge preserved the wave32 guard around GPU comparison and requested a rebase. One diagnostic issue remains: if disassembly fails, debug_seed can panic before validation reports the seed and validator message. The reviewer suggested validating first or handling the disassembly error explicitly. AI-assisted source review

Part of #2115. Replaying a failing seed with the existing ignored debug_seed test can print a validator error, a driver error, or a count of mismatches and still exit successfully. Make a single-seed run return the same failure as the batch when it reaches that check.

What is in it

  • In crates/xcl/src/gpu/dxil/fuzz_tests.rs, reuse the batch's validator and GPU comparison in the single-seed diagnostic. Both paths identify the first mismatching output index and the GPU and CPU values. The diagnostic still prints the disassembly and honors FUZZ_WATCH. Validation-only seeds and unavailable wave32 hardware get a skip message.
  • To replay on Windows PowerShell, set $env:FUZZ_SEED='722' and run cargo test -p xcl --lib gpu::dxil::fuzz_tests::debug_seed -- --exact --ignored --nocapture.

Tested

  • git diff --check passed. Checked the shared comparison against the original batch loop, including its result indexing and dispatch arguments.
  • Linux CPU-only control-flow check using the edited diagnostic functions and stub validator/runner responses: matching output and capability skip exited 0, and validator rejection, driver error and mismatching output each exited 101 with the expected message (5 cases).

Independent Windows tests on head ced97c2af0c5cca480b4aa926681896cfa9cf3b9:

  • On an RX 6800M, seed 530 produced the same pipeline error (0x887A0005) on main f5c5bdf0e91035f8f1404f46f4f2f7aedc259e7f and the PR. Main exited 0 and the PR correctly exited 101. Seed 503 passed on the GPU and seed 500 reported a validation-only skip. luckyteagirl's paired run
  • On an RX 9070 XT, seed 0 passed. Seeds 722 and 1599 exited 101 and identified the first mismatch at indices 30 and 193 respectively. On an RTX 3070, seed 1599 passed, seed 56927 reported a mismatch, and seed 6286 reported a pipeline creation error. Lum7nt's AMD results · upipibi's NVIDIA results
  • With a separate CPU-only companion patch, 2,000 synthetic seeds passed Windows DXIL validation with zero GPU comparisons. A deliberately inconsistent container made the replay exit 101. anes66's control and companion revision

Regression run

Test harness only.

Not tested

  • Full workspace validation on the standalone PR head remains unreported. The cause of the AMD output mismatch in #2115 remains open.
  • Known diagnostic gap: when disassembly and validation both reject a container, disassembly can panic first and omit the seed and validator error. ettehn reproduced this and tested a validation-first change locally. Reproduction and proposed fix

AI use

  • OpenAI Codex (GPT-6.2 Astra) traced the batch and diagnostic paths, edited the test harness, attempted the cross-check and drafted the description.
  • OpenAI Codex summarized the linked contributor reports for this update.
<!-- greyfinch-sync:ivall/xcl:issue:5485692903 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2124). Originally posted by [mokkamokacaffe](https://github.com/mokkamokacaffe) on 2026-11-25T05:24:14Z. --- **Review follow-up** On `dfff5714`, the source review found that the merge preserved the wave32 guard around GPU comparison and requested a rebase. One diagnostic issue remains: if disassembly fails, `debug_seed` can panic before validation reports the seed and validator message. The reviewer suggested validating first or handling the disassembly error explicitly. [AI-assisted source review](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7380470798) Part of #2115. Replaying a failing seed with the existing ignored `debug_seed` test can print a validator error, a driver error, or a count of mismatches and still exit successfully. Make a single-seed run return the same failure as the batch when it reaches that check. **What is in it** - In `crates/xcl/src/gpu/dxil/fuzz_tests.rs`, reuse the batch's validator and GPU comparison in the single-seed diagnostic. Both paths identify the first mismatching output index and the GPU and CPU values. The diagnostic still prints the disassembly and honors `FUZZ_WATCH`. Validation-only seeds and unavailable wave32 hardware get a skip message. - To replay on Windows PowerShell, set `$env:FUZZ_SEED='722'` and run `cargo test -p xcl --lib gpu::dxil::fuzz_tests::debug_seed -- --exact --ignored --nocapture`. **Tested** - `git diff --check` passed. Checked the shared comparison against the original batch loop, including its result indexing and dispatch arguments. - Linux CPU-only control-flow check using the edited diagnostic functions and stub validator/runner responses: matching output and capability skip exited 0, and validator rejection, driver error and mismatching output each exited 101 with the expected message (5 cases). Independent Windows tests on head `ced97c2af0c5cca480b4aa926681896cfa9cf3b9`: - On an RX 6800M, seed 530 produced the same pipeline error (`0x887A0005`) on main `f5c5bdf0e91035f8f1404f46f4f2f7aedc259e7f` and the PR. Main exited 0 and the PR correctly exited 101. Seed 503 passed on the GPU and seed 500 reported a validation-only skip. [luckyteagirl's paired run](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7153850302) - On an RX 9070 XT, seed 0 passed. Seeds 722 and 1599 exited 101 and identified the first mismatch at indices 30 and 193 respectively. On an RTX 3070, seed 1599 passed, seed 56927 reported a mismatch, and seed 6286 reported a pipeline creation error. [Lum7nt's AMD results](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7162864588) · [upipibi's NVIDIA results](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7153959553) - With a separate CPU-only companion patch, 2,000 synthetic seeds passed Windows DXIL validation with zero GPU comparisons. A deliberately inconsistent container made the replay exit 101. [anes66's control and companion revision](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7166916132) **Regression run** Test harness only. **Not tested** - Full workspace validation on the standalone PR head remains unreported. The cause of the AMD output mismatch in #2115 remains open. - Known diagnostic gap: when disassembly and validation both reject a container, disassembly can panic first and omit the seed and validator error. ettehn reproduced this and tested a validation-first change locally. [Reproduction and proposed fix](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7158278991) **AI use** - OpenAI Codex (GPT-6.2 Astra) traced the batch and diagnostic paths, edited the test harness, attempted the cross-check and drafted the description. - OpenAI Codex summarized the linked contributor reports for this update.
luckyteagirl commented 2026-11-25 06:05:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T05:31:02Z.


Windows/RX 6800M verification on exact head ced97c2af0c5cca480b4aa926681896cfa9cf3b9 (clean detached worktree). Main control was f5c5bdf0e91035f8f1404f46f4f2f7aedc259e7f.

Tested: Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (RDNA2), driver 30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5. Debug test profile, XCL_ADAPTER=6800M, XCL_REQUIRE_GPU=1, XCL_DIRECT_DXIL=0. For each seed I set FUZZ_SEED and ran cargo test --locked -p xcl --lib -j 2 gpu::dxil::fuzz_tests::debug_seed -- --exact --ignored --test-threads=1 --show-output.

Seed Main PR head
530, GPU-safe Printed CreateComputePipelineState device suspension 0x887A0005 but exited 0 (1 passed) Printed the same error and exited 101 (1 failed)
503, GPU-safe Not run Exited 0 (1 passed, no skip)
500, validation-only Not run Exited 0 with SKIPPED ... seed is validation-only

This verifies the new diagnostic propagates a real Windows GPU pipeline failure while a GPU-safe success still passes. It does not explain the driver suspension or verify the seed 722 result mismatch from issue #2115. I did not run the full workspace suite, other adapters, or a retail title.

AI use: OpenAI Codex (GPT-6, exact variant not exposed in this session) built the PR head, ran and compared the seed probes, reviewed the diff, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7153850302 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7153850302). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T05:31:02Z. --- **Windows/RX 6800M verification on exact head** `ced97c2af0c5cca480b4aa926681896cfa9cf3b9` (clean detached worktree). Main control was `f5c5bdf0e91035f8f1404f46f4f2f7aedc259e7f`. **Tested:** Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (RDNA2), driver `30.0.13002.13003`, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5. Debug test profile, `XCL_ADAPTER=6800M`, `XCL_REQUIRE_GPU=1`, `XCL_DIRECT_DXIL=0`. For each seed I set `FUZZ_SEED` and ran `cargo test --locked -p xcl --lib -j 2 gpu::dxil::fuzz_tests::debug_seed -- --exact --ignored --test-threads=1 --show-output`. | Seed | Main | PR head | | --- | --- | --- | | 530, GPU-safe | Printed `CreateComputePipelineState` device suspension `0x887A0005` but **exited 0** (1 passed) | Printed the same error and **exited 101** (1 failed) | | 503, GPU-safe | Not run | **Exited 0** (1 passed, no skip) | | 500, validation-only | Not run | **Exited 0** with `SKIPPED ... seed is validation-only` | This verifies the new diagnostic propagates a real Windows GPU pipeline failure while a GPU-safe success still passes. It does not explain the driver suspension or verify the seed 722 result mismatch from issue #2115. I did not run the full workspace suite, other adapters, or a retail title. **AI use:** OpenAI Codex (GPT-6, exact variant not exposed in this session) built the PR head, ran and compared the seed probes, reviewed the diff, and drafted this report.
upipibi commented 2026-11-25 06:05:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T05:36:49Z.


Checked on an RTX 3070 (Ampere, driver 616.56), Windows 11, debug, at ced97c2, with seeds whose outcome on this card is known:

  • FUZZ_SEED=56927 (wrong results on NVIDIA): debug_seed now fails (exit 101).
  • FUZZ_SEED=6286 (the driver refuses the pipeline: CreateComputePipelineState returns E_OUTOFMEMORY): fails and reports the driver error.
  • FUZZ_SEED=1599 (clean): passes.
  • cargo test -p xcl --lib -- fuzz_: 5 passed, 2 ignored.

Both failing seeds are NVIDIA driver issues, not translator bugs. 56927 is an i64 multiply of a zero-extended 0x80000000 by a sign-extended value, with the wrong sign. 6286 is an i32 urem by a constant ≥ 2^31 of a WaveReadLaneFirst value inside a loop, which the driver refuses to compile. Neither form comes out of XCL's translators.

AI-assisted (Claude Code). Synthetic tests only.

<!-- greyfinch-sync:ivall/xcl:comment:7153959553 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7153959553). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T05:36:49Z. --- Checked on an RTX 3070 (Ampere, driver 616.56), Windows 11, debug, at `ced97c2`, with seeds whose outcome on this card is known: - `FUZZ_SEED=56927` (wrong results on NVIDIA): `debug_seed` now **fails** (exit 101). - `FUZZ_SEED=6286` (the driver refuses the pipeline: `CreateComputePipelineState` returns `E_OUTOFMEMORY`): **fails** and reports the driver error. - `FUZZ_SEED=1599` (clean): passes. - `cargo test -p xcl --lib -- fuzz_`: 5 passed, 2 ignored. Both failing seeds are NVIDIA driver issues, not translator bugs. 56927 is an i64 multiply of a zero-extended `0x80000000` by a sign-extended value, with the wrong sign. 6286 is an i32 `urem` by a constant ≥ 2^31 of a `WaveReadLaneFirst` value inside a loop, which the driver refuses to compile. Neither form comes out of XCL's translators. AI-assisted (Claude Code). Synthetic tests only.
DavidM1911 commented 2026-11-25 07:05:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T06:17:50Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7154644988 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7154644988). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T06:17:50Z. --- 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!
ettehn commented 2026-11-25 10:10:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ettehn on 2026-11-25T09:24:04Z.


One remaining diagnostic edge on ced97c2: debug_seed unwraps disassembly before check_valid. If the emitter produces a container that both reject, the replay exits with a generic unwrap panic and no seed, while the batch names the seed and validator error. A local test using an empty container (rejected by XCL’s length check before DXC) reproduced that discrepancy. Moving check_valid ahead of disassembly made it pass with seed 314: validator rejected the module. A disassembly-only error can also include the seed.

Native Windows with WARP: seed 722 still prints FUZZ_WATCH=30 with CPU 0x7fffffff and explicitly skips no wave32. Seed 500 reports seed is validation-only. With XCL_REQUIRE_GPU=wave64, the missing wave32 result on seed 722 exits 101, as directed by the existing strict skip policy. No hardware adapter was exercised.

AI use — OpenAI Codex (GPT-6) ran the checks and wrote the local diagnostic patch.

<!-- greyfinch-sync:ivall/xcl:comment:7158278991 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7158278991). Originally posted by [ettehn](https://github.com/ettehn) on 2026-11-25T09:24:04Z. --- One remaining diagnostic edge on `ced97c2`: `debug_seed` unwraps disassembly before `check_valid`. If the emitter produces a container that both reject, the replay exits with a generic unwrap panic and no seed, while the batch names the seed and validator error. A local test using an empty container (rejected by XCL’s length check before DXC) reproduced that discrepancy. Moving `check_valid` ahead of disassembly made it pass with `seed 314: validator rejected the module`. A disassembly-only error can also include the seed. Native Windows with WARP: seed 722 still prints `FUZZ_WATCH=30` with CPU `0x7fffffff` and explicitly skips `no wave32`. Seed 500 reports `seed is validation-only`. With `XCL_REQUIRE_GPU=wave64`, the missing wave32 result on seed 722 exits 101, as directed by the existing strict skip policy. No hardware adapter was exercised. AI use — OpenAI Codex (GPT-6) ran the checks and wrote the local diagnostic patch.
Lum7nt commented 2026-11-25 13:05:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Lum7nt on 2026-11-25T12:47:36Z.


Windows hardware check on clean head ced97c2af0c5cca480b4aa926681896cfa9cf3b9: Radeon RX 9070 XT, driver 32.0.32029.2010, DXC 1.9.2609.5. For each seed I set FUZZ_SEED and ran:

cargo test --offline --locked --release -p xcl --lib gpu::dxil::fuzz_tests::debug_seed -- --exact --ignored --nocapture --test-threads=1

  • Seed 0: 1 passed, 0 failed, 0 ignored, exit 0.
  • Seed 722: 0 passed, 1 failed, 0 ignored, exit 101; mismatch at result 30 (GPU 1, CPU 0x7fffffff).
  • Seed 1599: 0 passed, 1 failed, 0 ignored, exit 101; mismatch at result 193 (GPU 1, CPU 0).

These are synthetic diagnostic runs, not a full workspace or retail test. The corresponding batch failures also reproduced on the tested main control; this report does not establish their cause.

AI use: OpenAI Codex (GPT-6; exact variant unavailable) ran the checks and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7162864588 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7162864588). Originally posted by [Lum7nt](https://github.com/Lum7nt) on 2026-11-25T12:47:36Z. --- Windows hardware check on clean head `ced97c2af0c5cca480b4aa926681896cfa9cf3b9`: Radeon RX 9070 XT, driver `32.0.32029.2010`, DXC 1.9.2609.5. For each seed I set `FUZZ_SEED` and ran: `cargo test --offline --locked --release -p xcl --lib gpu::dxil::fuzz_tests::debug_seed -- --exact --ignored --nocapture --test-threads=1` - Seed 0: 1 passed, 0 failed, 0 ignored, exit 0. - Seed 722: 0 passed, 1 failed, 0 ignored, exit 101; mismatch at result 30 (GPU 1, CPU `0x7fffffff`). - Seed 1599: 0 passed, 1 failed, 0 ignored, exit 101; mismatch at result 193 (GPU 1, CPU 0). These are synthetic diagnostic runs, not a full workspace or retail test. The corresponding batch failures also reproduced on the tested main control; this report does not establish their cause. AI use: OpenAI Codex (GPT-6; exact variant unavailable) ran the checks and drafted this report.
anes66 commented 2026-11-25 16:12:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by anes66 on 2026-11-25T15:29:09Z.


Native Windows CPU-only verification of exact head ced97c2af0c5cca480b4aa926681896cfa9cf3b9 passed, using optional test-only companion 0a5cdfb. It adds XCL_FUZZ_CPU_ONLY=1 to avoid capability queries as well as dispatch, including single-seed diagnostics. The normal GPU path remains selected when unset.

Tested

  • Windows 10 Pro 19045, Ryzen 7 9800X3D, Rust 1.100.0 MSVC, debug, SDK DXC/DXIL 1.9.2602.17. No GPU device or title execution.
  • XCL_FUZZ_CPU_ONLY=1 cargo test --locked -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_ -j 2 -- --nocapture --test-threads=1: 4 passed / 0 failed / 0 ignored; 2,000 validated, 0 GPU-compared. The same corpus also passed on the combined local optimizer tree based on main 06c9f55 (another 4/0/0, 0 GPU comparisons).
  • FUZZ_SEED=722, FUZZ_WATCH=0, CPU-only mode, debug_seed --exact --ignored --nocapture: 1 passed / 0 failed, with one explicit GPU-comparison skip. Disassembly and the CPU watch output were produced.
  • Native error-path control: toggle the synthetic container's Int64Ops feature bit and recompute its digest. The real SDK validator rejects it with Container part 'Feature Info' does not match expected for module; this PR's diagnostic exits 101. Restoring only the old print-the-Result behavior on the same invalid container exits 0, demonstrating the false success the PR fixes. All temporary mutations were removed before the final passing runs and commit.

Not tested
GPU comparison/error/mismatch paths, AMD seed 722 execution, full workspace or a title. The two 2,000-seed results are validator coverage, not shader-output parity.

<!-- greyfinch-sync:ivall/xcl:comment:7166916132 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7166916132). Originally posted by [anes66](https://github.com/anes66) on 2026-11-25T15:29:09Z. --- Native Windows CPU-only verification of exact head `ced97c2af0c5cca480b4aa926681896cfa9cf3b9` passed, using optional test-only companion [0a5cdfb](https://github.com/anes66/xcl/commit/0a5cdfbfd360c45b4fcd49a1535ae5358137379f). It adds `XCL_FUZZ_CPU_ONLY=1` to avoid capability queries as well as dispatch, including single-seed diagnostics. The normal GPU path remains selected when unset. **Tested** - Windows 10 Pro 19045, Ryzen 7 9800X3D, Rust 1.100.0 MSVC, debug, SDK DXC/DXIL 1.9.2602.17. No GPU device or title execution. - `XCL_FUZZ_CPU_ONLY=1 cargo test --locked -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_ -j 2 -- --nocapture --test-threads=1`: **4 passed / 0 failed / 0 ignored**; **2,000 validated, 0 GPU-compared**. The same corpus also passed on the combined local optimizer tree based on main `06c9f55` (another 4/0/0, 0 GPU comparisons). - `FUZZ_SEED=722`, `FUZZ_WATCH=0`, CPU-only mode, `debug_seed --exact --ignored --nocapture`: **1 passed / 0 failed**, with **one explicit GPU-comparison skip**. Disassembly and the CPU watch output were produced. - Native error-path control: toggle the synthetic container's Int64Ops feature bit and recompute its digest. The real SDK validator rejects it with `Container part 'Feature Info' does not match expected for module`; this PR's diagnostic exits **101**. Restoring only the old print-the-Result behavior on the same invalid container exits **0**, demonstrating the false success the PR fixes. All temporary mutations were removed before the final passing runs and commit. **Not tested** GPU comparison/error/mismatch paths, AMD seed 722 execution, full workspace or a title. The two 2,000-seed results are validator coverage, not shader-output parity.
github-actions[bot] commented 2026-11-29 20:43:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:00Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262301053 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7262301053). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:43:00Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 07:25:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:25:35Z.


Triage (#1607) – head ced97c2

No open PR makes the same change. #2875 also edits fuzz_tests.rs but only run_seeds' skip reporting, so the two will conflict on text but do not overlap in behaviour. #2231 (same issue #2115) changes the Countbits folding in ops.rs and is unrelated.
debug_seed still calls validate::disassemble(&c).unwrap() before check_valid, so a container that fails to disassemble panics without the seed or the validator error. The description already lists this gap.
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:7304041162 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7304041162). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:25:35Z. --- **Triage (#1607)** – head ced97c2 No open PR makes the same change. #2875 also edits `fuzz_tests.rs` but only `run_seeds`' skip reporting, so the two will conflict on text but do not overlap in behaviour. #2231 (same issue #2115) changes the Countbits folding in `ops.rs` and is unrelated. `debug_seed` still calls `validate::disassemble(&c).unwrap()` before `check_valid`, so a container that fails to disassemble panics without the seed or the validator error. The description already lists this gap. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Foniass commented 2026-12-03 13:50:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T13:50:29Z.


Follow-up review of dfff5714, since ced97c2 (code reading only, not a merge-check) · 1 medium, 1 nit

In short: The only new commit since ced97c2 is dfff5714, which merges main into the branch. main now gates the GPU comparison in run_seeds on wave32_supported, and the merge resolves the conflict by keeping that gate around the new compare_seed_on_gpu, which is right. The branch should be rebased rather than merged with main, and one small earlier point is still open.

Medium

  1. main is merged into the branch instead of rebased. CONTRIBUTING.md asks to keep a PR up to date "by rebasing onto main, not by merging main into it". Because history is merged with merge commits, dfff5714 would land in main as is, with its conflict resolution hidden inside it. Rebase ced97c2 onto main and force-push. The resolution can stay as it is: if matches!(wave32, Ok(true)) && p.gpu_safe && seed % gpu_every == 0 { compare_seed_on_gpu(…) }.

Nit

  1. debug_seed still disassembles before it validates (still open). validate::disassemble(&c).unwrap() (fuzz_tests.rs ~1221) runs before check_valid(seed, &c), so a container that does not disassemble panics without the seed or the validator's message. Call check_valid first, or print the disassembly error the way compare_seed_on_gpu does (unwrap_or_else(|d| d)).
Checked and fine
  • After the merge, run_seeds still compares a seed on the GPU only when wave32 is supported. Without wave32 it only validates, as on main.
  • debug_seed calls skip_test for a validation-only seed, for no wave32 and for a wave32 query error. The signatures match: wave32_supported() -> Result<bool, String>, skip_test(&str). A GPU mismatch now panics, so the test fails, as the PR intends.
  • compare_seed_on_gpu keeps main's panic messages unchanged, so run_seeds reports a failure as before.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7380470798 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2124#issuecomment-7380470798). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T13:50:29Z. --- **Follow-up review** of `dfff5714`, since `ced97c2` (code reading only, not a merge-check) · 1 medium, 1 nit **In short:** The only new commit since `ced97c2` is `dfff5714`, which merges `main` into the branch. `main` now gates the GPU comparison in `run_seeds` on `wave32_supported`, and the merge resolves the conflict by keeping that gate around the new `compare_seed_on_gpu`, which is right. The branch should be rebased rather than merged with `main`, and one small earlier point is still open. #### Medium 1. **`main` is merged into the branch instead of rebased.** CONTRIBUTING.md asks to keep a PR up to date "by rebasing onto `main`, not by merging `main` into it". Because history is merged with merge commits, `dfff5714` would land in `main` as is, with its conflict resolution hidden inside it. Rebase `ced97c2` onto `main` and force-push. The resolution can stay as it is: `if matches!(wave32, Ok(true)) && p.gpu_safe && seed % gpu_every == 0 { compare_seed_on_gpu(…) }`. #### Nit 2. **`debug_seed` still disassembles before it validates (still open).** `validate::disassemble(&c).unwrap()` (`fuzz_tests.rs` ~1221) runs before `check_valid(seed, &c)`, so a container that does not disassemble panics without the seed or the validator's message. Call `check_valid` first, or print the disassembly error the way `compare_seed_on_gpu` does (`unwrap_or_else(|d| d)`). <details><summary>Checked and fine</summary> - After the merge, `run_seeds` still compares a seed on the GPU only when wave32 is supported. Without wave32 it only validates, as on `main`. - `debug_seed` calls `skip_test` for a validation-only seed, for no wave32 and for a wave32 query error. The signatures match: `wave32_supported() -> Result<bool, String>`, `skip_test(&str)`. A GPU mismatch now panics, so the test fails, as the PR intends. - `compare_seed_on_gpu` keeps `main`'s panic messages unchanged, so `run_seeds` reports a failure as before. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
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/2124:upstream-pr/2124'
git switch 'upstream-pr/2124'

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/2124'
git switch 'upstream-pr/2124'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2124'
git switch 'upstream-pr/2124'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2124'
git switch 'main'
git merge --squash 'upstream-pr/2124'
git switch 'main'
git merge --ff-only 'upstream-pr/2124'
git switch 'main'
git merge 'upstream-pr/2124'
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!2114
No description provided.