Skip to content

gpu: two unit tests fail now and then in parallel runs #54

Backlog

Description

@fogydes

What

Two xtp-gpu unit tests fail now and then on current main in the parallel workspace run (cargo test --workspace --locked, WARP), and pass on a rerun:

  • watch::tests::a_view_gone_before_the_index_forgets_it
  • resource::tests::a_released_targets_copy_goes_when_its_memory_is_used_again

Each was seen once or twice today across many pr-check runs on branches that don't touch the code they test. It looks like a dependency on timing or on shared state with tests running alongside.

Impact

cargo xtask pr-check and CI's test job fail at random.

No game files are needed.

Activity

  1. added
    bug
    area/gpu
    on Nov 25, 2026
  2. fogydes commented on Nov 25, 2026

    @fogydes
    CollaboratorAuthor

    One more, seen once in a serial debug-layer run on WARP (passed alone and on the full rerun): descriptor::host::tests::placed_texture_slots_follow_their_replacement (crates/xtp-gpu/src/descriptor/host.rs ~3902).

  3. simnJS commented on Nov 25, 2026

    @simnJS
    Collaborator

    Thanks for tracking these. Each flaky test is now with the task that currently owns its file: the watch.rs test with the write-watch work (N4), the resource.rs test with the R9G9B9E5 decode work, and the descriptor/host.rs one (plus placed_unordered_texture_views_are_made_over_their_memory, which failed the same way on #26's debug-layer run) with the next descriptor task. The goal is to remove the shared state or timing dependency, not to retry. I'll update this issue as each lands.

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

    area/gpuarea/testsbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions