Skip to content

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

Done

Description

@chippy01

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)

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 (D3D12.X: global shader-visible sampler heap, typed UAV validation, and occlusion/query VA fixes #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.

Activity

  1. b3IKK commented on Nov 25, 2026

    @b3IKK
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions