CI: tests that fail by timing or shared state keep unrelated PRs red (5 sightings on 28 Nov) #3180

Open
opened 2026-11-28 16:26:24 +00:00 by tiagonleal · 10 comments
tiagonleal commented 2026-11-28 16:26:24 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-28T16:26:24Z.


Four tests failed the CI check today on PRs that do not touch them, a different one each time, plus one on main. Each PR's own diff is unrelated, and the same heads pass the whole suite on a PC. I can't rerun the jobs, so the PRs stay red.

run where failing test message
46163497619 #3038 (BVH triangle test) shaders::pipeline_library::tests::builder_deduplicates_names_and_atomically_replaces_output, then 3 more pipeline_library.rs:414: left: 3, right: 2
46162251064 #3172 (end_title) the same four the same
46163522000 #2506 (list waits) hle::kernelx::tests::fine_timer_makes_short_sleeps_short kernelx.rs:2221: Sleep(1) took 12.230375ms: the 15.6 ms tick
46163556100 #3027 (fault dump, README) hle::d3d12x::alloc_pool::tests::submit_marking_calls_out_unlocked_and_revalidates_the_queue_marker alloc_pool.rs:1747: queue invalidation can run while Signal is outside STATE
46160882862 main bb9a6b4b hle::d3d12x::alloc_pool::tests::completion_queries_run_outside_allocator_state alloc_pool.rs:1606: in-flight polling must not hold STATE

What the logs show:

  • pipeline_library: only builder_deduplicates_names_and_atomically_replaces_output fails an assertion (a count of 3 where it expects 2). The other three (graphics_pipeline_round_trips_through_serialized_library, mesh_pipeline_round_trips_through_serialized_library, warm_library::tests::cold_publish_makes_an_unchanged_corpus_reusable) fail with PoisonError on a mutex the first one held when it panicked. That looks like state shared between tests that run in parallel. These tests came with #3100, merged at 15:37 UTC; both runs are from after it.
  • fine_timer_makes_short_sleeps_short measures wall time on a shared runner.
  • The two alloc_pool tests assert on what another thread manages to do inside a window, so they look timing dependent too. I have not read them closely.

Edit, 28 Nov 18:50 UTC: where each one stands:

  • pipeline_library: #3183.
  • the two alloc_pool tests: #3190. The cause was not a time window: both checks used a single STATE.try_lock(), and STATE is shared with the other alloc_pool tests running in parallel.
  • fine_timer_makes_short_sleeps_short: #1628 (upipibi) already fixes it and has been open since 24 Nov. I had missed it; I'm testing that PR.

Not tested: how often each fails (one or two sightings each today); whether any of them fails on a PC. On an RTX 5070 Ti today the kernelx and alloc_pool tests passed in 12 whole-suite runs; the pipeline_library ones are newer and passed in the one run that had them.

AI use: Claude Code (Claude Fable 5.2) read the CI logs and wrote this issue.

<!-- greyfinch-sync:ivall/xcl:issue:6668230669 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-28T16:26:24Z. --- **Four tests failed the `CI` check today on PRs that do not touch them, a different one each time, plus one on `main`. Each PR's own diff is unrelated, and the same heads pass the whole suite on a PC. I can't rerun the jobs, so the PRs stay red.** | run | where | failing test | message | |---|---|---|---| | [46163497619](https://github.com/xcl-dev/xcl/actions/runs/46163497619/job/141035816445) | #3038 (BVH triangle test) | `shaders::pipeline_library::tests::builder_deduplicates_names_and_atomically_replaces_output`, then 3 more | `pipeline_library.rs:414`: `left: 3, right: 2` | | [46162251064](https://github.com/xcl-dev/xcl/actions/runs/46162251064/job/141031930773) | #3172 (`end_title`) | the same four | the same | | [46163522000](https://github.com/xcl-dev/xcl/actions/runs/46163522000/job/141035894226) | #2506 (list waits) | `hle::kernelx::tests::fine_timer_makes_short_sleeps_short` | `kernelx.rs:2221`: `Sleep(1) took 12.230375ms: the 15.6 ms tick` | | [46163556100](https://github.com/xcl-dev/xcl/actions/runs/46163556100/job/141035998398) | #3027 (fault dump, README) | `hle::d3d12x::alloc_pool::tests::submit_marking_calls_out_unlocked_and_revalidates_the_queue_marker` | `alloc_pool.rs:1747`: `queue invalidation can run while Signal is outside STATE` | | [46160882862](https://github.com/xcl-dev/xcl/actions/runs/46160882862) | `main` `bb9a6b4b` | `hle::d3d12x::alloc_pool::tests::completion_queries_run_outside_allocator_state` | `alloc_pool.rs:1606`: `in-flight polling must not hold STATE` | What the logs show: - **`pipeline_library`**: only `builder_deduplicates_names_and_atomically_replaces_output` fails an assertion (a count of 3 where it expects 2). The other three (`graphics_pipeline_round_trips_through_serialized_library`, `mesh_pipeline_round_trips_through_serialized_library`, `warm_library::tests::cold_publish_makes_an_unchanged_corpus_reusable`) fail with `PoisonError` on a mutex the first one held when it panicked. That looks like state shared between tests that run in parallel. These tests came with #3100, merged at 15:37 UTC; both runs are from after it. - **`fine_timer_makes_short_sleeps_short`** measures wall time on a shared runner. - **The two `alloc_pool` tests** assert on what another thread manages to do inside a window, so they look timing dependent too. I have not read them closely. *Edit, 28 Nov 18:50 UTC:* where each one stands: - `pipeline_library`: #3183. - the two `alloc_pool` tests: #3190. The cause was not a time window: both checks used a single `STATE.try_lock()`, and `STATE` is shared with the other `alloc_pool` tests running in parallel. - `fine_timer_makes_short_sleeps_short`: #1628 (upipibi) already fixes it and has been open since 24 Nov. I had missed it; I'm testing that PR. **Not tested:** how often each fails (one or two sightings each today); whether any of them fails on a PC. On an RTX 5070 Ti today the `kernelx` and `alloc_pool` tests passed in 12 whole-suite runs; the `pipeline_library` ones are newer and passed in the one run that had them. **AI use:** Claude Code (Claude Fable 5.2) read the CI logs and wrote this issue.
tiagonleal commented 2026-11-28 18:32:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-28T18:32:25Z.


More tests of this kind, seen only under an overload that CI does not use, for whoever looks at them next. hle::d3d12x tests run 6 times with --test-threads=32 on a 16-thread PC (Ryzen 7 9800X3D) that was also running other CPU-heavy test loops; 5 of the 6 runs had 1 to 3 failures, each of these once:

test message
sparse::tests::a_tile_decommitted_and_committed_again_keeps_its_video_memory s.drain_quarantined()
sparse::tests::flush_parked_does_not_free_or_reuse_tiles_while_unmap_is_in_flight "completed unmap batch should drain after fence completion"
list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit pso_async::is_pending(standin)
pso_async::used_tests::bound_state_follows_the_choice_from_a_shared_build "a worker did not start the build: Timeout"
pso_async::used_tests::a_bind_waits_for_a_slow_pipeline_no_longer_than_its_budget "waited 491.3942ms"
pso_async::used_tests::emission_resolves_the_retained_recipe_after_title_address_reuse left: 1, right: 0
real::queue_tests::own_work_execute_command_lists_bypasses_note_execute_and_drain "own_work submit must bypass present::note_execute", (0, 8) against (0, 7)
frame::tests::origin_events_issue_tokens_and_flips_have_statistics "4 origins at 60 Hz took 249 ms"

The two alloc_pool tests of #3190 failed in those runs too. In the same file, transferred_owner_is_released_once_outside_state_after_logical_forget fails under this load because a parallel test's sweep releases its owner first; #3190 now has that fix as a second commit.

None of the eight above has been diagnosed, and I have not seen them fail on CI or at --test-threads=4. a_dispatch_with_a_pipeline_still_building_waits_at_the_submit is the one throny saw fail once in a merge check of #2550, and it failed 1 in 36 on main under load on 27 Nov. An earlier run of the same command on this PC did not finish in 30 minutes; six further attempts with a 10-minute limit did not repeat that, so I have no cause for it.

AI use: Claude Code (Claude Fable 5.2) wrote this comment; Claude Opus 5.5 ran the loops on an RTX 5070 Ti PC.

<!-- greyfinch-sync:ivall/xcl:comment:7243866999 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180#issuecomment-7243866999). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-28T18:32:25Z. --- More tests of this kind, seen only under an overload that CI does not use, for whoever looks at them next. `hle::d3d12x` tests run 6 times with `--test-threads=32` on a 16-thread PC (Ryzen 7 9800X3D) that was also running other CPU-heavy test loops; 5 of the 6 runs had 1 to 3 failures, each of these once: | test | message | |---|---| | `sparse::tests::a_tile_decommitted_and_committed_again_keeps_its_video_memory` | `s.drain_quarantined()` | | `sparse::tests::flush_parked_does_not_free_or_reuse_tiles_while_unmap_is_in_flight` | "completed unmap batch should drain after fence completion" | | `list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit` | `pso_async::is_pending(standin)` | | `pso_async::used_tests::bound_state_follows_the_choice_from_a_shared_build` | "a worker did not start the build: Timeout" | | `pso_async::used_tests::a_bind_waits_for_a_slow_pipeline_no_longer_than_its_budget` | "waited 491.3942ms" | | `pso_async::used_tests::emission_resolves_the_retained_recipe_after_title_address_reuse` | `left: 1, right: 0` | | `real::queue_tests::own_work_execute_command_lists_bypasses_note_execute_and_drain` | "own_work submit must bypass present::note_execute", `(0, 8)` against `(0, 7)` | | `frame::tests::origin_events_issue_tokens_and_flips_have_statistics` | "4 origins at 60 Hz took 249 ms" | The two `alloc_pool` tests of #3190 failed in those runs too. In the same file, `transferred_owner_is_released_once_outside_state_after_logical_forget` fails under this load because a parallel test's sweep releases its owner first; #3190 now has that fix as a second commit. None of the eight above has been diagnosed, and I have not seen them fail on CI or at `--test-threads=4`. `a_dispatch_with_a_pipeline_still_building_waits_at_the_submit` is the one throny saw fail once in a merge check of #2550, and it failed 1 in 36 on `main` under load on 27 Nov. An earlier run of the same command on this PC did not finish in 30 minutes; six further attempts with a 10-minute limit did not repeat that, so I have no cause for it. **AI use:** Claude Code (Claude Fable 5.2) wrote this comment; Claude Opus 5.5 ran the loops on an RTX 5070 Ti PC.
gefydev commented 2026-11-28 19:03:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by gefydev on 2026-11-28T19:03:33Z.


Would anyone be willing to review PR #3193? It replaces the scheduler-sensitive Sleep(1) timing assertion with direct tests of timer-period selection. The PR is ready for review and its CI checks are green. Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7244257060 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180#issuecomment-7244257060). Originally posted by [gefydev](https://github.com/gefydev) on 2026-11-28T19:03:33Z. --- Would anyone be willing to review [PR #3193](https://github.com/xcl-dev/xcl/pull/3193)? It replaces the scheduler-sensitive `Sleep(1)` timing assertion with direct tests of timer-period selection. The PR is ready for review and its CI checks are green. Thanks!
Eterst commented 2026-11-28 21:10:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Eterst on 2026-11-28T21:10:38Z.


One more sighting of fine_timer_makes_short_sleeps_short, on #3209, whose diff is gpu/xbox.rs (FSSM parsing), README.md and THIRD_PARTY.md only:

run where failing test message
46184822393 #3209 (head e8782653, on main 10d27297) hle::kernelx::tests::fine_timer_makes_short_sleeps_short kernelx.rs:2221: Sleep(1) took 5.236725ms: the 15.6 ms tick

It was the only failure in that run (2,456 passed, 1 failed, 29 ignored). main's own CI at 10d27297 passed, and the same head passed the test in a --test-threads=1 run on a PC (RTX 4070 SUPER, Windows 10 19045). 5.24 ms is just over the test's 5 ms limit, so #3193's change would cover this one too.

AI use: Claude Code (Claude Opus 5.5) read the CI log and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7245827227 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180#issuecomment-7245827227). Originally posted by [Eterst](https://github.com/Eterst) on 2026-11-28T21:10:38Z. --- One more sighting of `fine_timer_makes_short_sleeps_short`, on #3209, whose diff is `gpu/xbox.rs` (FSSM parsing), `README.md` and `THIRD_PARTY.md` only: | run | where | failing test | message | |---|---|---|---| | [46184822393](https://github.com/xcl-dev/xcl/actions/runs/46184822393/job/141102260577) | #3209 (head `e8782653`, on `main` `10d27297`) | `hle::kernelx::tests::fine_timer_makes_short_sleeps_short` | `kernelx.rs:2221`: `Sleep(1) took 5.236725ms: the 15.6 ms tick` | It was the only failure in that run (2,456 passed, 1 failed, 29 ignored). `main`'s own CI at `10d27297` passed, and the same head passed the test in a `--test-threads=1` run on a PC (RTX 4070 SUPER, Windows 10 19045). 5.24 ms is just over the test's 5 ms limit, so #3193's change would cover this one too. AI use: Claude Code (Claude Opus 5.5) read the CI log and wrote this comment.
throny commented 2026-11-29 08:22:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T08:22:47Z.


One more for this list, measured on main d8bd9a38 (RTX 4080 16 GB, 621.40, debug build): the group hle::d3d12x::pso_async::used_tests ends the lib test binary in about one run of four when it is run alone.

  • Command, 25 times: cargo test -p xcl --lib pso_async::used_tests -- --test-threads=4 (181 tests) -> 17 clean, 7 aborts, 1 failed assert.
  • Every abort is the same: a worker thread named xcl-pso-ahead-<n> panics in windows-core with "misaligned pointer dereference" on a small odd value, the panic cannot unwind, and the process ends with 0xc0000409. So a background pipeline worker treats a test's stand-in pointer as a real COM interface. Which test's stand-in it is I have not traced; the last test printed before the abort differs between runs.
  • The one assert: emission_resolves_the_retained_recipe_after_title_address_reuse.
  • In whole-suite runs this shows up as a run without lib counts. The same message also ended a suite run once from list_x::tests::wait64_flags_do_not_mask_the_recorded_counter.
  • The same 25 loops with #2070 merged: 22 clean, 2 aborts, 1 assert, so that PR is not the cause.

Not done: a fix, and a count with --test-threads=1.

AI use: Claude Code (Claude Fable 5.2) ran the loops and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7253066555 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180#issuecomment-7253066555). Originally posted by [throny](https://github.com/throny) on 2026-11-29T08:22:47Z. --- One more for this list, measured on `main` `d8bd9a38` (RTX 4080 16 GB, 621.40, debug build): the group `hle::d3d12x::pso_async::used_tests` ends the lib test binary in about one run of four when it is run alone. - Command, 25 times: `cargo test -p xcl --lib pso_async::used_tests -- --test-threads=4` (181 tests) -> 17 clean, 7 aborts, 1 failed assert. - Every abort is the same: a worker thread named `xcl-pso-ahead-<n>` panics in `windows-core` with "misaligned pointer dereference" on a small odd value, the panic cannot unwind, and the process ends with 0xc0000409. So a background pipeline worker treats a test's stand-in pointer as a real COM interface. Which test's stand-in it is I have not traced; the last test printed before the abort differs between runs. - The one assert: `emission_resolves_the_retained_recipe_after_title_address_reuse`. - In whole-suite runs this shows up as a run without lib counts. The same message also ended a suite run once from `list_x::tests::wait64_flags_do_not_mask_the_recorded_counter`. - The same 25 loops with #2070 merged: 22 clean, 2 aborts, 1 assert, so that PR is not the cause. Not done: a fix, and a count with `--test-threads=1`. AI use: Claude Code (Claude Fable 5.2) ran the loops and wrote this.
tiagonleal commented 2026-11-29 11:12:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-29T11:12:24Z.


@throny the abort in pso_async::used_tests comes from one test, graphics_first_use_carries_the_exact_serialized_recipe_identity, and #3306 (grahamster2, opened this morning) already changes it as a side fix.

What happens on main d8bd9a38: the test submits a lazy pipeline whose job returns the stand-in value 0x4332, under a key no earlier test used, so submit_as hands it to the backlog (send_ahead). The test then calls released(standin) without waiting. If an xcl-pso-ahead worker already has the job, the build is an orphan and complete releases its result as an ID3D12PipelineState. 0x4332 is the odd value in the "misaligned pointer dereference" panic.

Numbers here, cargo test -p xcl --lib pso_async::used_tests -- --test-threads=4, debug, RTX 5070 Ti, Ryzen 7 9800X3D:

  • main d8bd9a38, 12 runs with RUST_BACKTRACE=1: 10 clean, 2 aborts. Both panicked on 0x4332 in release ← complete ← run_build on an xcl-pso-ahead thread.
  • With that test's job kept out of the backlog (key 0, one line), 25 runs: 25 clean, 181 passed each.

The link from 0x4332 to the test is that it is the only submit_lazy in the file returning that value; I did not force the schedule. The single assert you saw in emission_resolves_the_retained_recipe_after_title_address_reuse has another cause (it never goes through the backlog) and did not show up in these 37 runs. Your suite run that ended at list_x::tests::wait64_flags_do_not_mask_the_recorded_counter is probably the same abort, since the last test printed is not the one at fault, but I did not check that.

I have not opened a PR, because #3306 already has the fix (its job returns 0). If #3306 needs time in review, that one line could go in alone; @grahamster2, your call.

AI use: Claude Code wrote this comment (Claude Fable 5.2); Claude Opus 5.5 ran the loops.

  • Tiago
<!-- greyfinch-sync:ivall/xcl:comment:7254952222 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180#issuecomment-7254952222). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-29T11:12:24Z. --- @throny the abort in `pso_async::used_tests` comes from one test, `graphics_first_use_carries_the_exact_serialized_recipe_identity`, and #3306 (grahamster2, opened this morning) already changes it as a side fix. What happens on `main` `d8bd9a38`: the test submits a lazy pipeline whose job returns the stand-in value `0x4332`, under a key no earlier test used, so `submit_as` hands it to the backlog (`send_ahead`). The test then calls `released(standin)` without waiting. If an `xcl-pso-ahead` worker already has the job, the build is an orphan and `complete` releases its result as an `ID3D12PipelineState`. `0x4332` is the odd value in the "misaligned pointer dereference" panic. Numbers here, `cargo test -p xcl --lib pso_async::used_tests -- --test-threads=4`, debug, RTX 5070 Ti, Ryzen 7 9800X3D: - `main` `d8bd9a38`, 12 runs with `RUST_BACKTRACE=1`: 10 clean, 2 aborts. Both panicked on `0x4332` in `release` ← `complete` ← `run_build` on an `xcl-pso-ahead` thread. - With that test's job kept out of the backlog (key 0, one line), 25 runs: 25 clean, 181 passed each. The link from `0x4332` to the test is that it is the only `submit_lazy` in the file returning that value; I did not force the schedule. The single assert you saw in `emission_resolves_the_retained_recipe_after_title_address_reuse` has another cause (it never goes through the backlog) and did not show up in these 37 runs. Your suite run that ended at `list_x::tests::wait64_flags_do_not_mask_the_recorded_counter` is probably the same abort, since the last test printed is not the one at fault, but I did not check that. I have not opened a PR, because #3306 already has the fix (its job returns 0). If #3306 needs time in review, that one line could go in alone; @grahamster2, your call. **AI use:** Claude Code wrote this comment (Claude Fable 5.2); Claude Opus 5.5 ran the loops. - Tiago
tiagonleal commented 2026-11-29 12:23:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-29T12:23:30Z.


Four more sightings from today, all on PRs of mine rebased onto main d8bd9a38, none of which touches the failing code:

run PR (what it changes) what failed
46257764057 #3190 (alloc_pool.rs tests) the 4 pipeline_library / warm_library tests; #3183 fixes these
46257774766 #2858 (depth bias) 8 title_textures tests, the first being gpu_a_title_queue_upload_waits_for_the_page_mappings_before_it; #3278 fixes these
46260503226 #570 (netoff.rs) both groups above in one run, 12 tests
46260140323 #2549 (list_x.rs) the lib test binary ended inside uma_driver::tests, after mixed_segments_cover_the_window, with coherent window could not be restored at 0x1591e010000 (268435456 bytes, got 0x0, Windows error 487) after segment 2 (64 MB CUSTOM): Map gave 0x159023d0000, wanted 0x1592a010000; stopping before guest memory is used

The last one is new in this list, but it already has a fix: #3187 (Kalmarv, open) runs the two mixed-window tests in a child process, so the deliberate stop ends only the child. The test that was running is mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment, the only one of the module without an ok line in the log. #3187 was written for another trigger (E_OUTOFMEMORY from CreateCommandQueue on NVIDIA); this run reaches the same restore and stop through a Map that landed outside the window on the software adapter. From reading remake_mixed, nothing keeps other threads from taking address space between the release of the window and the mapping of a segment, in a test binary or in a real run. I have not reproduced it.

Of the 9 PRs I pushed today, 4 came back red this way and 5 green. #3183, #3278 and #3187 between them cover all four red runs.

  • Tiago
<!-- greyfinch-sync:ivall/xcl:comment:7255778024 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180#issuecomment-7255778024). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-29T12:23:30Z. --- Four more sightings from today, all on PRs of mine rebased onto `main` `d8bd9a38`, none of which touches the failing code: | run | PR (what it changes) | what failed | |---|---|---| | [46257764057](https://github.com/xcl-dev/xcl/actions/runs/46257764057) | #3190 (`alloc_pool.rs` tests) | the 4 `pipeline_library` / `warm_library` tests; #3183 fixes these | | [46257774766](https://github.com/xcl-dev/xcl/actions/runs/46257774766) | #2858 (depth bias) | 8 `title_textures` tests, the first being `gpu_a_title_queue_upload_waits_for_the_page_mappings_before_it`; #3278 fixes these | | [46260503226](https://github.com/xcl-dev/xcl/actions/runs/46260503226) | #570 (`netoff.rs`) | both groups above in one run, 12 tests | | [46260140323](https://github.com/xcl-dev/xcl/actions/runs/46260140323) | #2549 (`list_x.rs`) | the lib test binary ended inside `uma_driver::tests`, after `mixed_segments_cover_the_window`, with `coherent window could not be restored at 0x1591e010000 (268435456 bytes, got 0x0, Windows error 487) after segment 2 (64 MB CUSTOM): Map gave 0x159023d0000, wanted 0x1592a010000; stopping before guest memory is used` | The last one is new in this list, but it already has a fix: #3187 (Kalmarv, open) runs the two mixed-window tests in a child process, so the deliberate stop ends only the child. The test that was running is `mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment`, the only one of the module without an `ok` line in the log. #3187 was written for another trigger (`E_OUTOFMEMORY` from `CreateCommandQueue` on NVIDIA); this run reaches the same restore and stop through a `Map` that landed outside the window on the software adapter. From reading `remake_mixed`, nothing keeps other threads from taking address space between the release of the window and the mapping of a segment, in a test binary or in a real run. I have not reproduced it. Of the 9 PRs I pushed today, 4 came back red this way and 5 green. #3183, #3278 and #3187 between them cover all four red runs. - Tiago
tiagonleal commented 2026-11-29 19:30:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-29T19:30:08Z.


One more, and a correction to what I guessed above. Run 46300047915 on #3190 (which only changes alloc_pool.rs tests) ended the lib test binary with misaligned pointer dereference: address must be a multiple of 0x8 but is 0x1d1adc819a2, and this time the panic is on the thread of hle::d3d12x::list_x::tests::wait64_flags_do_not_mask_the_recorded_counter itself, not on an xcl-pso-ahead worker, and the value is not 0x4332. So that test has an abort of its own; it is not the one #3306 fixes. I have not looked for the cause.

The other four PRs I pushed in the same batch on main 0fe06eb0 came back green.

  • Tiago
<!-- greyfinch-sync:ivall/xcl:comment:7261329284 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180#issuecomment-7261329284). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-29T19:30:08Z. --- One more, and a correction to what I guessed above. [Run 46300047915](https://github.com/xcl-dev/xcl/actions/runs/46300047915) on #3190 (which only changes `alloc_pool.rs` tests) ended the lib test binary with `misaligned pointer dereference: address must be a multiple of 0x8 but is 0x1d1adc819a2`, and this time the panic is on the thread of `hle::d3d12x::list_x::tests::wait64_flags_do_not_mask_the_recorded_counter` itself, not on an `xcl-pso-ahead` worker, and the value is not `0x4332`. So that test has an abort of its own; it is not the one #3306 fixes. I have not looked for the cause. The other four PRs I pushed in the same batch on `main` `0fe06eb0` came back green. - Tiago
tiagonleal commented 2026-11-29 23:22:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-29T23:22:49Z.


Two updates for this list. The abort in hle::d3d12x::list_x::tests::wait64_flags_do_not_mask_the_recorded_counter (run 46300047915 on #3190) has a cause and a fix in #3472: another test in the same module leaves a backing keyed by a fake allocator id in alloc_pool, and the next test on that worker thread releases it.

Since 22:55 UTC today every CI run also fails on hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline (left: (0, 1, 1), right: (0, 0, 1)), which came in with the merge of #2369. That one is deterministic, and #3474 fixes it (passes 10 of 10 here).

  • Tiago
<!-- greyfinch-sync:ivall/xcl:comment:7264415894 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180#issuecomment-7264415894). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-29T23:22:49Z. --- Two updates for this list. The abort in `hle::d3d12x::list_x::tests::wait64_flags_do_not_mask_the_recorded_counter` (run 46300047915 on #3190) has a cause and a fix in #3472: another test in the same module leaves a backing keyed by a fake allocator id in `alloc_pool`, and the next test on that worker thread releases it. Since 22:55 UTC today every CI run also fails on `hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline` (`left: (0, 1, 1)`, `right: (0, 0, 1)`), which came in with the merge of #2369. That one is deterministic, and #3474 fixes it (passes 10 of 10 here). - Tiago
tiagonleal commented 2026-11-30 04:41:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-30T04:41:58Z.


One more sighting, on a GPU machine this time (RTX 5070 Ti, full suite with --test-threads=4, a branch on main 75093adf that does not touch this code): hle::d3d12x::pso_async::used_tests::retained_failed_demand_observes_another_binds_successful_retry (pso_async.rs:6912) and hle::d3d12x::pso_async::used_tests::retained_submit_demand_restores_one_exact_generation_after_address_reuse (pso_async.rs:6763) failed together in one full run. They passed in the next full run, alone 6 of 6 each, and in two runs of their module (181 passed). I have not looked for the cause.

  • Tiago
<!-- greyfinch-sync:ivall/xcl:comment:7269005239 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180#issuecomment-7269005239). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-30T04:41:58Z. --- One more sighting, on a GPU machine this time (RTX 5070 Ti, full suite with `--test-threads=4`, a branch on `main` `75093adf` that does not touch this code): `hle::d3d12x::pso_async::used_tests::retained_failed_demand_observes_another_binds_successful_retry` (`pso_async.rs:6912`) and `hle::d3d12x::pso_async::used_tests::retained_submit_demand_restores_one_exact_generation_after_address_reuse` (`pso_async.rs:6763`) failed together in one full run. They passed in the next full run, alone 6 of 6 each, and in two runs of their module (181 passed). I have not looked for the cause. - Tiago
kole07139 commented 2026-12-01 21:05:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by kole07139 on 2026-12-01T21:05:56Z.


One more for the list, seen locally rather than in CI: hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels panicked at title_textures.rs:6368 with "superseded unaligned extra_pages must be reclaimed immediately (22609920 -> 22609920)". Three title_textures::tests::stream_recheck_* tests then failed on the mutex it poisoned.

  • Where: 1 of 2 runs of cargo test --workspace --no-fail-fast -- --test-threads=4, on a branch one commit ahead of main 6bfb5c51. That commit changes only translation cache keys (pso.rs, shaders.rs).
  • Reruns all passed:
    • on that head: the test alone 10/10, the title_textures module 5/5, cargo test -p xcl --lib -- --test-threads=4 3/3;
    • on main 6bfb5c51: the same lib command 6/6.
  • Machine: RTX 3070 8 GB (driver 32.0.16.2140), i9-9900K, Windows 11 26200, debug build.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7325742306 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3180#issuecomment-7325742306). Originally posted by [kole07139](https://github.com/kole07139) on 2026-12-01T21:05:56Z. --- One more for the list, seen locally rather than in CI: `hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels` panicked at `title_textures.rs:6368` with "superseded unaligned extra_pages must be reclaimed immediately (22609920 -> 22609920)". Three `title_textures::tests::stream_recheck_*` tests then failed on the mutex it poisoned. - **Where:** 1 of 2 runs of `cargo test --workspace --no-fail-fast -- --test-threads=4`, on a branch one commit ahead of `main` `6bfb5c51`. That commit changes only translation cache keys (`pso.rs`, `shaders.rs`). - **Reruns** all passed: - on that head: the test alone 10/10, the `title_textures` module 5/5, `cargo test -p xcl --lib -- --test-threads=4` 3/3; - on `main` `6bfb5c51`: the same lib command 6/6. - **Machine:** RTX 3070 8 GB (driver 32.0.16.2140), i9-9900K, Windows 11 26200, debug build. AI use: Claude Code (Claude Opus 5.5).
Sign in to join this conversation.
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#3180
No description provided.