Tests: some_ranges in texture_upload wraps its generator instead of overflowing #2761

Merged
inf1425 merged 1 commit from upstream-pr/2771 into nvidia-dev 2026-11-28 03:35:05 +00:00
inf1425 commented 2026-11-26 11:38:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by inf1425 on 2026-11-26T11:38:29Z.


The some_ranges helper in texture_upload's tests advances a linear congruential generator with n = n * 1103515245 + 12345, and n grows without bound. By the third loop pass it exceeds u64, and debug builds (cargo test) panic with "attempt to multiply with overflow". Both GPU tests that use the helper fail on a GPU. CI has no GPU, so they return before reaching it. The step now wraps, as such a generator should. Royalflamejlh reported this in #42 (comment) and proposed exactly this line. This PR applies it.

What is in it

  • crates/xcl/src/hle/d3d12x/texture_upload.rs (in mod tests): n = n.wrapping_mul(1103515245).wrapping_add(12345). Test code only. The helper came in with 73fc616f.

Tested

  • NVIDIA GeForce RTX 4060 Laptop GPU (8 GB, driver 616.64), Ryzen 7 7840HS, Windows 11 build 26300, Rust 1.95.0, debug build.
  • cargo test -p xcl --lib texture_upload: 8 passed, 0 failed, in 3 runs. Without this PR, pieces_hold_the_texels_of_their_levels and gpu_parts_of_a_texture_go_up_and_the_rest_stays fail.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 at this PR's head: 1746 passed, 4 failed, 48 ignored. The failures are not touched here: the 2 late-release tests (#2770), d3d12_mesh_stream::console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly (#2632), and the flaky hle::kernelx::tests::memory_under_a_shown_page_is_told_to_sparse_before_it_goes, a race that #2772 fixes. That last test passed in 3 further lib runs and 10 runs on its own.
  • SKIPPED GPU tests (26): 21 need wave64; 3 are f16 ops the per-lane form refuses (#1426); 2 need XCL_HEAP_WINDOWS=1.

Regression run

  • The change is inside #[cfg(test)] mod tests and never reaches xcl.exe, but scripts/pr_check.py counts any file under crates/xcl/src/ as runtime. Smoke blocks from nvidia-dev and from this head will be added once a title is available, unless a maintainer prefers the test-only label.

main:

PR:

Not tested

  • AMD, other NVIDIA cards, Linux/Wine, a release build, any retail title (smoke run pending).

AI use

  • Claude Code (Claude Opus 5.5) found the overflow, wrote the change and ran the tests. I read every line of the diff.
<!-- greyfinch-sync:ivall/xcl:issue:5509339157 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2771). Originally posted by [inf1425](https://github.com/inf1425) on 2026-11-26T11:38:29Z. --- The `some_ranges` helper in `texture_upload`'s tests advances a linear congruential generator with `n = n * 1103515245 + 12345`, and `n` grows without bound. By the third loop pass it exceeds u64, and debug builds (`cargo test`) panic with "attempt to multiply with overflow". Both GPU tests that use the helper fail on a GPU. CI has no GPU, so they return before reaching it. The step now wraps, as such a generator should. Royalflamejlh reported this in #42 ([comment](https://github.com/xcl-dev/xcl/issues/42#issuecomment-7180312120)) and proposed exactly this line. This PR applies it. **What is in it** - `crates/xcl/src/hle/d3d12x/texture_upload.rs` (in `mod tests`): `n = n.wrapping_mul(1103515245).wrapping_add(12345)`. Test code only. The helper came in with 73fc616f. **Tested** - NVIDIA GeForce RTX 4060 Laptop GPU (8 GB, driver 616.64), Ryzen 7 7840HS, Windows 11 build 26300, Rust 1.95.0, debug build. - `cargo test -p xcl --lib texture_upload`: 8 passed, 0 failed, in 3 runs. Without this PR, `pieces_hold_the_texels_of_their_levels` and `gpu_parts_of_a_texture_go_up_and_the_rest_stays` fail. - `cargo test --workspace --no-fail-fast -- --test-threads=4` at this PR's head: 1746 passed, 4 failed, 48 ignored. The failures are not touched here: the 2 late-release tests (#2770), `d3d12_mesh_stream::console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly` (#2632), and the flaky `hle::kernelx::tests::memory_under_a_shown_page_is_told_to_sparse_before_it_goes`, a race that #2772 fixes. That last test passed in 3 further lib runs and 10 runs on its own. - SKIPPED GPU tests (26): 21 need wave64; 3 are f16 ops the per-lane form refuses (#1426); 2 need `XCL_HEAP_WINDOWS=1`. **Regression run** - The change is inside `#[cfg(test)] mod tests` and never reaches `xcl.exe`, but `scripts/pr_check.py` counts any file under `crates/xcl/src/` as runtime. Smoke blocks from `nvidia-dev` and from this head will be added once a title is available, unless a maintainer prefers the `test-only` label. main: PR: **Not tested** - AMD, other NVIDIA cards, Linux/Wine, a release build, any retail title (smoke run pending). **AI use** - Claude Code (Claude Opus 5.5) found the overflow, wrote the change and ran the tests. I read every line of the diff.
MarcosMDev commented 2026-11-26 13:05:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MarcosMDev on 2026-11-26T12:25:35Z.


Test report: 6b2691e against its base af2cecc on a desktop RTX 4060 (Windows): the 2 texture_upload tests fail 10 of 10 on the base and pass 10 of 10 here; full suite, no new failure. No title was run.

Debug, each tree in its own worktree and target folder, cargo build --workspace --locked first.

  • cargo test -p xcl --lib hle::d3d12x::texture_upload::tests, 10 times in a row: base 6 passed, 2 failed every time (attempt to multiply with overflow at texture_upload.rs:1002); head 8 passed, 0 failed every time.
  • Full suite, cargo test --workspace --locked --no-fail-fast -- --test-threads=4: base 1745 passed, 6 failed, 48 ignored; head 1747 passed, 4 failed, 48 ignored. The 4 left are the 2 late-release tests (counted 3 times; #2770) and console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly. The kernelx race you mention did not fail here. The same 30 SKIPPED lines on both.

The change is inside #[cfg(test)] mod tests, and in a release build n * … already wraps, so the generator's values are the same there as before.

RTX 4060 8 GB (driver 621.01), Ryzen 7 5700X, 24 GB, Windows 11 26200, rustc 1.100.0, DXC 1.9.2609.5.

Not tested: a release build, AMD, any title, so no smoke blocks from me.

AI use: Claude Code (Claude Opus 5.5) ran the tests and drafted this; I read it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7191985261 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2771#issuecomment-7191985261). Originally posted by [MarcosMDev](https://github.com/MarcosMDev) on 2026-11-26T12:25:35Z. --- **Test report: `6b2691e` against its base `af2cecc` on a desktop RTX 4060 (Windows): the 2 `texture_upload` tests fail 10 of 10 on the base and pass 10 of 10 here; full suite, no new failure.** No title was run. Debug, each tree in its own worktree and target folder, `cargo build --workspace --locked` first. - `cargo test -p xcl --lib hle::d3d12x::texture_upload::tests`, 10 times in a row: base 6 passed, 2 failed every time (`attempt to multiply with overflow` at `texture_upload.rs:1002`); head 8 passed, 0 failed every time. - Full suite, `cargo test --workspace --locked --no-fail-fast -- --test-threads=4`: base 1745 passed, 6 failed, 48 ignored; head 1747 passed, 4 failed, 48 ignored. The 4 left are the 2 late-release tests (counted 3 times; #2770) and `console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly`. The `kernelx` race you mention did not fail here. The same 30 SKIPPED lines on both. The change is inside `#[cfg(test)] mod tests`, and in a release build `n * …` already wraps, so the generator's values are the same there as before. RTX 4060 8 GB (driver 621.01), Ryzen 7 5700X, 24 GB, Windows 11 26200, rustc 1.100.0, DXC 1.9.2609.5. **Not tested:** a release build, AMD, any title, so no smoke blocks from me. AI use: Claude Code (Claude Opus 5.5) ran the tests and drafted this; I read it before posting.
Prime1997 commented 2026-11-26 13:19:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T13:19:13Z.

Review: COMMENTED


Current-base follow-up: the two overflow fixtures pass with this one-line fix; fresh CI is still required.

PR head 6b2691e18b02fd5f5efcca5c8e27db93e3ce727a was applied unchanged to NVIDIA base ba9d1f9473ebeb73fd5216c13a367d968f0a1c07 in an isolated worktree. The resulting tree is 4774827509d8959140f3ddb5401c2aa8006c1752; its only difference from that base is the wrapping LCG arithmetic in the existing test helper.

  • Unmodified base: workspace build passed. The full workspace suite returned 1,892 passed, 2 failed, 48 ignored, with 28 explicit SKIPPED reports, exit 101. Both failures were multiplication overflow at texture_upload.rs:1002, in the two tests below.
  • Current-base overlay: build passed; those exact tests returned 2 passed, 0 failed, 0 ignored, 0 reported skips; 1,788 other library tests were filtered out.
  • hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels checks CPU layout/fill using D3D12 resource layouts.
  • hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays checks bounded texture uploads/readbacks.

Commands (private target directories replaced by placeholders):

cargo build --locked --workspace --target-dir <baseline-target>
cargo test --locked --workspace --no-fail-fast --target-dir <baseline-target> -- --test-threads=4
cargo test --locked -p xcl --lib --target-dir <overlay-target> --no-run
cargo test --locked -p xcl --lib --target-dir <overlay-target> -- --exact --test-threads=1 --nocapture hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays

Windows build 26200 x64, Intel Core i5-10400, RTX 3060 Ti (driver 32.0.16.1714), Rust 1.100.0 MSVC, debug profile with debug symbols disabled. The baseline runtime logs identify that adapter. The two focused fixtures do not log their selected adapter and can fall back to WARP, so their result is functional evidence, not independently confirmed NVIDIA execution.

The old CI attempt tested a merge into af2cecc4 and aborted on Microsoft Basic Render Driver after a 3 GiB sparse reservation. The currently advertised PR merge ref also predates merged #2837, which fixes that test helper's software-adapter classification. A fresh current-base CI event is needed; retrying the old run retains its old checkout. The planned close/reopen refresh preserves this draft and the contributor's history, followed by renewed review of the test-only label under CONTRIBUTING. No test filter or assertion is being weakened.

Not yet established: the full patched workspace suite, fresh required CI, AMD, gameplay, or general driver compatibility. This update is not a merge approval.

AI use: Codex (GPT-6) inspected the source, coordinated the local checks and audited their logs. Optional temporary Discord for coordinating contributor work, testing and comparing results.

<!-- greyfinch-sync:ivall/xcl:review:6074813201 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2771#pullrequestreview-6074813201). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T13:19:13Z. **Review:** COMMENTED --- **Current-base follow-up: the two overflow fixtures pass with this one-line fix; fresh CI is still required.** PR head `6b2691e18b02fd5f5efcca5c8e27db93e3ce727a` was applied unchanged to NVIDIA base `ba9d1f9473ebeb73fd5216c13a367d968f0a1c07` in an isolated worktree. The resulting tree is `4774827509d8959140f3ddb5401c2aa8006c1752`; its only difference from that base is the wrapping LCG arithmetic in the existing test helper. - Unmodified base: workspace build passed. The full workspace suite returned **1,892 passed, 2 failed, 48 ignored**, with **28 explicit SKIPPED reports**, exit 101. Both failures were multiplication overflow at `texture_upload.rs:1002`, in the two tests below. - Current-base overlay: build passed; those exact tests returned **2 passed, 0 failed, 0 ignored, 0 reported skips**; 1,788 other library tests were filtered out. - `hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels` checks CPU layout/fill using D3D12 resource layouts. - `hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays` checks bounded texture uploads/readbacks. Commands (private target directories replaced by placeholders): ```text cargo build --locked --workspace --target-dir <baseline-target> cargo test --locked --workspace --no-fail-fast --target-dir <baseline-target> -- --test-threads=4 cargo test --locked -p xcl --lib --target-dir <overlay-target> --no-run cargo test --locked -p xcl --lib --target-dir <overlay-target> -- --exact --test-threads=1 --nocapture hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays ``` Windows build 26200 x64, Intel Core i5-10400, RTX 3060 Ti (driver 32.0.16.1714), Rust 1.100.0 MSVC, debug profile with debug symbols disabled. The baseline runtime logs identify that adapter. **The two focused fixtures do not log their selected adapter and can fall back to WARP**, so their result is functional evidence, not independently confirmed NVIDIA execution. The old [CI attempt](https://github.com/xcl-dev/xcl/actions/runs/45812422397/attempts/2) tested a merge into `af2cecc4` and aborted on Microsoft Basic Render Driver after a 3 GiB sparse reservation. The currently advertised PR merge ref also predates merged #2837, which fixes that test helper's software-adapter classification. A fresh current-base CI event is needed; retrying the old run retains its old checkout. The planned close/reopen refresh preserves this draft and the contributor's history, followed by renewed review of the `test-only` label under CONTRIBUTING. No test filter or assertion is being weakened. **Not yet established:** the full patched workspace suite, fresh required CI, AMD, gameplay, or general driver compatibility. This update is not a merge approval. AI use: Codex (GPT-6) inspected the source, coordinated the local checks and audited their logs. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
SlopTart commented 2026-11-26 17:51:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T17:51:07Z.


Linux (Wine) dual-lane run at head 6b2691e1

  • Rig: Ryzen 9 9900X, 96 GB DDR5, RX 7900 XT (Mesa 26.2.5 RADV), Arch, wine-11.0 Proton build + vkd3d-proton
  • Boxb: i5-10600K, 16 GB DDR4, GTX 1070 (550.163.01), Debian 13, stock wine-10.0 + vkd3d-proton, xvfb

Suite: cargo test --release --locked -p xcl --lib --target x86_64-pc-windows-gnu -- --test-threads=2 --skip gpu::, compared to today's nvidia-dev base af2cecc4 runs on the same machines.

Results: rig 869/6 = base exactly; boxb 865/10 = base exactly; red sets byte-identical on both lanes. The some_ranges generator fix changes no observable outcome on either Wine lane — no overflow was ever hit here, consistent with a latent wrap that Windows's larger default ranges or timing would surface first.

One thing to flag from our lane: the NVIDIA box keeps texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays red on Pascal (it is in our standing 10-red set on this branch, red before and after this PR). That test lives in the same file this PR's helper change touches, so if you are auditing texture_upload test health, that one is a vendor-dependent red nobody has root-caused yet; it is not caused or fixed by this PR.

Not tested: behavior at the wrap boundary itself (we could not trigger it under Wine either way).

AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7199764408 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2771#issuecomment-7199764408). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-26T17:51:07Z. --- **Linux (Wine) dual-lane run at head `6b2691e1`** - **Rig**: Ryzen 9 9900X, 96 GB DDR5, RX 7900 XT (Mesa 26.2.5 RADV), Arch, wine-11.0 Proton build + vkd3d-proton - **Boxb**: i5-10600K, 16 GB DDR4, GTX 1070 (550.163.01), Debian 13, stock wine-10.0 + vkd3d-proton, xvfb Suite: `cargo test --release --locked -p xcl --lib --target x86_64-pc-windows-gnu -- --test-threads=2 --skip gpu::`, compared to today's `nvidia-dev` base `af2cecc4` runs on the same machines. **Results:** rig 869/6 = base exactly; boxb 865/10 = base exactly; red sets byte-identical on both lanes. The `some_ranges` generator fix changes no observable outcome on either Wine lane — no overflow was ever hit here, consistent with a latent wrap that Windows's larger default ranges or timing would surface first. **One thing to flag from our lane:** the NVIDIA box keeps `texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays` red on Pascal (it is in our standing 10-red set on this branch, red before and after this PR). That test lives in the same file this PR's helper change touches, so if you are auditing `texture_upload` test health, that one is a vendor-dependent red nobody has root-caused yet; it is not caused or fixed by this PR. **Not tested:** behavior at the wrap boundary itself (we could not trigger it under Wine either way). AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.
efsebayern commented 2026-11-26 18:54:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by efsebayern on 2026-11-26T18:54:44Z.


Independent Windows/NVIDIA check on the newer nvidia-dev snapshot eae015021c639866ab061cdff2e9daf8ba9daac5. I compared the clean snapshot against a separate worktree at the same commit containing only the one-line texture_upload.rs change from 6b2691e18b02fd5f5efcca5c8e27db93e3ce727a.

Windows 11 Pro build 26200, i7-13700K, RTX 4080 SUPER (driver 610.88), 32 GB RAM, Rust 1.98.1 MSVC, debug. With XCL_ADAPTER=NVIDIA, I ran these two tests in a single process with --test-threads=1 --nocapture:

  • hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays
  • hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels

Clean snapshot: 0 passed, 2 failed, 0 ignored. Both hit “attempt to multiply with overflow” at texture_upload.rs:1002. With the PR change: 2 passed, 0 failed, 0 ignored, with no skip notices. I did not run the workspace suite or a title for this report.

AI use: Codex (exact model variant unknown) prepared the worktrees, ran the checks and wrote the report.

<!-- greyfinch-sync:ivall/xcl:comment:7200987023 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2771#issuecomment-7200987023). Originally posted by [efsebayern](https://github.com/efsebayern) on 2026-11-26T18:54:44Z. --- Independent Windows/NVIDIA check on the newer `nvidia-dev` snapshot `eae015021c639866ab061cdff2e9daf8ba9daac5`. I compared the clean snapshot against a separate worktree at the same commit containing only the one-line `texture_upload.rs` change from `6b2691e18b02fd5f5efcca5c8e27db93e3ce727a`. Windows 11 Pro build 26200, i7-13700K, RTX 4080 SUPER (driver 610.88), 32 GB RAM, Rust 1.98.1 MSVC, debug. With `XCL_ADAPTER=NVIDIA`, I ran these two tests in a single process with `--test-threads=1 --nocapture`: - `hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays` - `hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels` Clean snapshot: **0 passed, 2 failed, 0 ignored**. Both hit “attempt to multiply with overflow” at `texture_upload.rs:1002`. With the PR change: **2 passed, 0 failed, 0 ignored**, with no skip notices. I did not run the workspace suite or a title for this report. AI use: Codex (exact model variant unknown) prepared the worktrees, ran the checks and wrote the report.
Kalmarv commented 2026-11-27 17:33:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-27T17:33:06Z.


merge-check
base: d1be810364 (nvidia-dev)
head: 6b2691e18b
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1824 passed, 8 failed, 48 ignored (the harness lines summed; two of the failing tests re-run themselves in a child process and count twice). Failing, 6 distinct, all also failing on the base with the same names: lib gpu::recomp::link_tests::gpu_linked_memory_accessors, gpu::recomp::link_tests::linked_programs_keep_their_declarations; d3d12_mesh_stream: console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly (#2788's); gpu_compute_e2e: async_compute_pso_registers_real_pso_and_not_standin, split_compute_prefers_the_offline_whole_pipeline; gpu_two_pass_cache_e2e: two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs. The base (1822 / 10 / 48) also fails hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays and pieces_hold_the_texels_of_their_levels ("attempt to multiply with overflow" in some_ranges); both pass with this PR.
review: none. Test-only, one line: the some_ranges LCG step wraps. In a release build the old line already wrapped, so the ranges the tests use are the same values as before; only the debug build's overflow panic goes. Read the whole diff.
performance: none, test-only.
verdict: safe to merge. With #2837, #2788 and #2773 it makes nvidia-dev's Build and test (Windows, no GPU) pass (fork run of the four: https://github.com/Kalmarv/xcl/actions/runs/46032822388).
hardware / tool and model: NVIDIA GeForce RTX 5070 Ti, driver 610.74, Ryzen 9 9950X, Windows 11 Pro 26200, rustc 1.99.0; the build and tests were run in one queue job by a teammate agent (strange: Claude Code, Claude Opus 5.5) with the same commands, and Claude Code (Claude Opus 5.5) read the logs and the diff and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7224531680 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2771#issuecomment-7224531680). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-27T17:33:06Z. --- merge-check base: d1be8103644791b7a65f068954324e93d4b1b565 (`nvidia-dev`) head: 6b2691e18b02fd5f5efcca5c8e27db93e3ce727a merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1824 passed, 8 failed, 48 ignored (the harness lines summed; two of the failing tests re-run themselves in a child process and count twice). Failing, 6 distinct, all also failing on the base with the same names: lib `gpu::recomp::link_tests::gpu_linked_memory_accessors`, `gpu::recomp::link_tests::linked_programs_keep_their_declarations`; `d3d12_mesh_stream`: `console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly` (#2788's); `gpu_compute_e2e`: `async_compute_pso_registers_real_pso_and_not_standin`, `split_compute_prefers_the_offline_whole_pipeline`; `gpu_two_pass_cache_e2e`: `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`. The base (1822 / 10 / 48) also fails `hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays` and `pieces_hold_the_texels_of_their_levels` ("attempt to multiply with overflow" in `some_ranges`); both pass with this PR. review: none. Test-only, one line: the `some_ranges` LCG step wraps. In a release build the old line already wrapped, so the ranges the tests use are the same values as before; only the debug build's overflow panic goes. Read the whole diff. performance: none, test-only. verdict: safe to merge. With #2837, #2788 and #2773 it makes `nvidia-dev`'s `Build and test (Windows, no GPU)` pass (fork run of the four: https://github.com/Kalmarv/xcl/actions/runs/46032822388). hardware / tool and model: NVIDIA GeForce RTX 5070 Ti, driver 610.74, Ryzen 9 9950X, Windows 11 Pro 26200, rustc 1.99.0; the build and tests were run in one queue job by a teammate agent (strange: Claude Code, Claude Opus 5.5) with the same commands, and Claude Code (Claude Opus 5.5) read the logs and the diff and wrote this check.
Kalmarv commented 2026-11-27 20:24:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-27T20:24:23Z.


@inf1425 this PR is one of four test-only fixes that together make nvidia-dev's Build and test (Windows, no GPU) pass (#2837, #2771, #2788, #2773; fork run with all four on d1be8103: https://github.com/Kalmarv/xcl/actions/runs/46032822388), and #3041's queue holds every nvidia-dev PR until that job is green. It has a merge check above ("safe to merge"). #3041 does not list drafts, so if you consider it done, marking it ready for review would let it be merged; #2837 is now ready.

AI use: Claude Code (Claude Opus 5.5) wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7227471784 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2771#issuecomment-7227471784). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-27T20:24:23Z. --- @inf1425 this PR is one of four test-only fixes that together make `nvidia-dev`'s `Build and test (Windows, no GPU)` pass (#2837, #2771, #2788, #2773; fork run with all four on d1be8103: https://github.com/Kalmarv/xcl/actions/runs/46032822388), and #3041's queue holds every `nvidia-dev` PR until that job is green. It has a merge check above ("safe to merge"). #3041 does not list drafts, so if you consider it done, marking it ready for review would let it be merged; #2837 is now ready. AI use: Claude Code (Claude Opus 5.5) wrote this comment.
throny commented 2026-11-27 21:28:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T21:28:16Z.


merge-check claim
head: 6b2691e18b

<!-- greyfinch-sync:ivall/xcl:comment:7228473138 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2771#issuecomment-7228473138). Originally posted by [throny](https://github.com/throny) on 2026-11-27T21:28:16Z. --- merge-check claim head: 6b2691e18b02fd5f5efcca5c8e27db93e3ce727a
throny commented 2026-11-27 21:49:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T21:49:01Z.


merge-check
base: d1be8103 (nvidia-dev)
head: 6b2691e18b
merge: clean (alone, and together with the other three)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1826 passed, 6 failed, 48 ignored: the two texture_upload tests that fail on the base (overflow panic in the test's generator in a debug build) pass with it; the rest are the base's failures. base (nvidia-dev d1be8103) alone on this GPU: 1824 passed, 8 failed, 48 ignored; failing there: async_compute_pso_registers_real_pso_and_not_standin, split_compute_prefers_the_offline_whole_pipeline, two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, and two texture_upload tests. All four test fixes together (#2837 + #2771 + #2788 + #2773): 1827 passed, 5 failed, 48 ignored; only the first three names remain, and they fail on the base too.
review: none. One line in a test helper: the generator's multiply and add wrap instead of overflowing.
performance: none (test only).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code (Claude Fable 5.2): merge, build, suite and the review of this small diff; nothing run on the GPU beyond the suite.

<!-- greyfinch-sync:ivall/xcl:comment:7228779965 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2771#issuecomment-7228779965). Originally posted by [throny](https://github.com/throny) on 2026-11-27T21:49:01Z. --- merge-check base: d1be8103 (nvidia-dev) head: 6b2691e18b02fd5f5efcca5c8e27db93e3ce727a merge: clean (alone, and together with the other three) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1826 passed, 6 failed, 48 ignored: the two texture_upload tests that fail on the base (overflow panic in the test's generator in a debug build) pass with it; the rest are the base's failures. base (nvidia-dev d1be8103) alone on this GPU: 1824 passed, 8 failed, 48 ignored; failing there: async_compute_pso_registers_real_pso_and_not_standin, split_compute_prefers_the_offline_whole_pipeline, two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, and two texture_upload tests. All four test fixes together (#2837 + #2771 + #2788 + #2773): 1827 passed, 5 failed, 48 ignored; only the first three names remain, and they fail on the base too. review: none. One line in a test helper: the generator's multiply and add wrap instead of overflowing. performance: none (test only). verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code (Claude Fable 5.2): merge, build, suite and the review of this small diff; nothing run on the GPU beyond the suite.
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!2761
No description provided.