main's CI fails on two lib tests that disagree with code merged next to them (#2120 / #2064, #1988 / #1991) #2248

Closed
opened 2026-11-26 05:24:34 +00:00 by github-bot · 1 comment
Owner

@⁠chippy01 on GitHub · 2026-11-25 11:17 UTC · original

CI on main fails on two lib tests: 1172 passed, 2 failed in the runs on f087b99 and 9633138. In both cases a test and the code it checks came in through different PRs merged minutes apart, and they disagree. No GPU is involved, so every PR's CI run against main shows the same two failures until they are fixed.

1. gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator (pso.rs:1360, added in 8dcc56d, #2120)

  • left: 68, right: 1
  • 743a612 (#2064, merged eight minutes before #2120) changed the test helper compiled(marker) to return synthetic_dxil(marker), a valid DXBC container, because the translated/v2 cache now refuses anything else. That helper puts the marker in byte 67. The new test still reads .dxil[0], which is now always b'D' (68).
  • Likely fix, test only: read the marker where synthetic_dxil puts it (.dxil[67]) in the test's go closure.

2. hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa (device_x.rs:1376, added in 587d77b, #1988)

  • format 85 kept: left: 28, right: 85
  • 71639e0 (#1991, merged in the same minute) makes pc_resource_desc promote a B5G6R5 (85) texture with ALLOW_UNORDERED_ACCESS to R8G8B8A8 (28), and a B8G8R8X8 (88) one to B8G8R8A8 (87). The test expects both to keep their format and lose the UAV flag instead. Once 85 passes, 88 fails the same way.
  • Which behaviour is wanted is for the authors to decide: keep the promotion (and expect 28 / 87 with the flag kept in the test), or strip the flag (and drop the promotion).

Seen on

  • main's own CI runs linked above (no GPU).
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on f087b99, NVIDIA GeForce RTX 3070 Ti (driver 621.24), Windows 11 Pro 26200, rustc 1.100.0: the same two failures, the same values, and nothing else failing.

AI use: Claude Code (Claude Opus 5.5) traced the two failures reported in the issue.

**@⁠chippy01** on GitHub · 2026-11-25 11:17 UTC · [original](https://github.com/xcl-dev/xcl/issues/2248) `CI` on `main` fails on two lib tests: 1172 passed, 2 failed in the runs on [`f087b99`](https://github.com/xcl-dev/xcl/actions/runs/45599963095) and [`9633138`](https://github.com/xcl-dev/xcl/actions/runs/45601040540). In both cases a test and the code it checks came in through different PRs merged minutes apart, and they disagree. No GPU is involved, so every PR's `CI` run against `main` shows the same two failures until they are fixed. **1. `gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator`** (`pso.rs:1360`, added in `8dcc56d`, #2120) - `left: 68, right: 1` - `743a612` (#2064, merged eight minutes before #2120) changed the test helper `compiled(marker)` to return `synthetic_dxil(marker)`, a valid `DXBC` container, because the translated/v2 cache now refuses anything else. That helper puts the marker in byte 67. The new test still reads `.dxil[0]`, which is now always `b'D'` (68). - Likely fix, test only: read the marker where `synthetic_dxil` puts it (`.dxil[67]`) in the test's `go` closure. **2. `hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa`** (`device_x.rs:1376`, added in `587d77b`, #1988) - `format 85 kept: left: 28, right: 85` - `71639e0` (#1991, merged in the same minute) makes `pc_resource_desc` promote a B5G6R5 (85) texture with `ALLOW_UNORDERED_ACCESS` to R8G8B8A8 (28), and a B8G8R8X8 (88) one to B8G8R8A8 (87). The test expects both to keep their format and lose the UAV flag instead. Once 85 passes, 88 fails the same way. - Which behaviour is wanted is for the authors to decide: keep the promotion (and expect 28 / 87 with the flag kept in the test), or strip the flag (and drop the promotion). **Seen on** - `main`'s own `CI` runs linked above (no GPU). - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `f087b99`, NVIDIA GeForce RTX 3070 Ti (driver 621.24), Windows 11 Pro 26200, rustc 1.100.0: the same two failures, the same values, and nothing else failing. AI use: Claude Code (Claude Opus 5.5) traced the two failures reported in the issue.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:24:34 +00:00
Author
Owner

@⁠b3IKK on GitHub · 2026-11-25 11:18 UTC · original

Confirmed on this machine too (RTX 5080, main 9633138): the same two tests, same messages. Your analysis of the cause matches what I found: compiled() moved the marker to byte 67 in 743a612 (#2064), and 71639e0 (#1991) promotes 85 → 28 and 88 → 87 rather than stripping the UAV flag.

On the open question in your point 2 — keep the promotion or strip the flag — I kept the promotion: pc_resource_desc's own comment says R8G8B8A8 holds the same values with full PC RTV/UAV/SRV support, and an earlier assertion in the same test (a B5G5R5A1 target → 28) already expects that behaviour, so the format loop was the one that had not been updated.

#2245 has both fixes, Fixes #2242 and Fixes #2248. Suite there: 1243 passed, 0 failed, 46 ignored, plus the smoke pair. AI use: OpenCode, Claude Fable 5.2.

**@⁠b3IKK** on GitHub · 2026-11-25 11:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/2248#issuecomment-7160870839) Confirmed on this machine too (RTX 5080, `main` `9633138`): the same two tests, same messages. Your analysis of the cause matches what I found: `compiled()` moved the marker to byte 67 in 743a612 (#2064), and 71639e0 (#1991) promotes 85 → 28 and 88 → 87 rather than stripping the UAV flag. On the open question in your point 2 — keep the promotion or strip the flag — I kept the promotion: `pc_resource_desc`'s own comment says R8G8B8A8 holds the same values with full PC RTV/UAV/SRV support, and an earlier assertion in the same test (a B5G5R5A1 target → 28) already expects that behaviour, so the format loop was the one that had not been updated. #2245 has both fixes, `Fixes #2242` and `Fixes #2248`. Suite there: 1243 passed, 0 failed, 46 ignored, plus the smoke pair. AI use: OpenCode, Claude Fable 5.2.
This discussion has been locked. Commenting is limited to contributors.
No description provided.