CI: tests that fail by timing or shared state keep unrelated PRs red (5 sightings on 28 Nov) #3180
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-28T16:26:24Z.
Four tests failed the
CIcheck today on PRs that do not touch them, a different one each time, plus one onmain. 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.shaders::pipeline_library::tests::builder_deduplicates_names_and_atomically_replaces_output, then 3 morepipeline_library.rs:414:left: 3, right: 2end_title)hle::kernelx::tests::fine_timer_makes_short_sleeps_shortkernelx.rs:2221:Sleep(1) took 12.230375ms: the 15.6 ms tickhle::d3d12x::alloc_pool::tests::submit_marking_calls_out_unlocked_and_revalidates_the_queue_markeralloc_pool.rs:1747:queue invalidation can run while Signal is outside STATEmainbb9a6b4bhle::d3d12x::alloc_pool::tests::completion_queries_run_outside_allocator_statealloc_pool.rs:1606:in-flight polling must not hold STATEWhat the logs show:
pipeline_library: onlybuilder_deduplicates_names_and_atomically_replaces_outputfails 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 withPoisonErroron 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_shortmeasures wall time on a shared runner.alloc_pooltests 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.alloc_pooltests: #3190. The cause was not a time window: both checks used a singleSTATE.try_lock(), andSTATEis shared with the otheralloc_pooltests 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
kernelxandalloc_pooltests passed in 12 whole-suite runs; thepipeline_libraryones 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.
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::d3d12xtests run 6 times with--test-threads=32on 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:sparse::tests::a_tile_decommitted_and_committed_again_keeps_its_video_memorys.drain_quarantined()sparse::tests::flush_parked_does_not_free_or_reuse_tiles_while_unmap_is_in_flightlist_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submitpso_async::is_pending(standin)pso_async::used_tests::bound_state_follows_the_choice_from_a_shared_buildpso_async::used_tests::a_bind_waits_for_a_slow_pipeline_no_longer_than_its_budgetpso_async::used_tests::emission_resolves_the_retained_recipe_after_title_address_reuseleft: 1, right: 0real::queue_tests::own_work_execute_command_lists_bypasses_note_execute_and_drain(0, 8)against(0, 7)frame::tests::origin_events_issue_tokens_and_flips_have_statisticsThe two
alloc_pooltests of #3190 failed in those runs too. In the same file,transferred_owner_is_released_once_outside_state_after_logical_forgetfails 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_submitis the one throny saw fail once in a merge check of #2550, and it failed 1 in 36 onmainunder 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.
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!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 isgpu/xbox.rs(FSSM parsing),README.mdandTHIRD_PARTY.mdonly:e8782653, onmain10d27297)hle::kernelx::tests::fine_timer_makes_short_sleeps_shortkernelx.rs:2221:Sleep(1) took 5.236725ms: the 15.6 ms tickIt was the only failure in that run (2,456 passed, 1 failed, 29 ignored).
main's own CI at10d27297passed, and the same head passed the test in a--test-threads=1run 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.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T08:22:47Z.
One more for this list, measured on
maind8bd9a38(RTX 4080 16 GB, 621.40, debug build): the grouphle::d3d12x::pso_async::used_testsends the lib test binary in about one run of four when it is run alone.cargo test -p xcl --lib pso_async::used_tests -- --test-threads=4(181 tests) -> 17 clean, 7 aborts, 1 failed assert.xcl-pso-ahead-<n>panics inwindows-corewith "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.emission_resolves_the_retained_recipe_after_title_address_reuse.list_x::tests::wait64_flags_do_not_mask_the_recorded_counter.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.
Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-29T11:12:24Z.
@throny the abort in
pso_async::used_testscomes 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
maind8bd9a38: the test submits a lazy pipeline whose job returns the stand-in value0x4332, under a key no earlier test used, sosubmit_ashands it to the backlog (send_ahead). The test then callsreleased(standin)without waiting. If anxcl-pso-aheadworker already has the job, the build is an orphan andcompletereleases its result as anID3D12PipelineState.0x4332is 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:maind8bd9a38, 12 runs withRUST_BACKTRACE=1: 10 clean, 2 aborts. Both panicked on0x4332inrelease←complete←run_buildon anxcl-pso-aheadthread.The link from
0x4332to the test is that it is the onlysubmit_lazyin the file returning that value; I did not force the schedule. The single assert you saw inemission_resolves_the_retained_recipe_after_title_address_reusehas another cause (it never goes through the backlog) and did not show up in these 37 runs. Your suite run that ended atlist_x::tests::wait64_flags_do_not_mask_the_recorded_counteris 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.
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
maind8bd9a38, none of which touches the failing code:alloc_pool.rstests)pipeline_library/warm_librarytests; #3183 fixes thesetitle_texturestests, the first beinggpu_a_title_queue_upload_waits_for_the_page_mappings_before_it; #3278 fixes thesenetoff.rs)list_x.rs)uma_driver::tests, aftermixed_segments_cover_the_window, withcoherent 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 usedThe 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 anokline in the log. #3187 was written for another trigger (E_OUTOFMEMORYfromCreateCommandQueueon NVIDIA); this run reaches the same restore and stop through aMapthat landed outside the window on the software adapter. From readingremake_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.
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.rstests) ended the lib test binary withmisaligned pointer dereference: address must be a multiple of 0x8 but is 0x1d1adc819a2, and this time the panic is on the thread ofhle::d3d12x::list_x::tests::wait64_flags_do_not_mask_the_recorded_counteritself, not on anxcl-pso-aheadworker, and the value is not0x4332. 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
main0fe06eb0came back green.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 inalloc_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).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 onmain75093adfthat does not touch this code):hle::d3d12x::pso_async::used_tests::retained_failed_demand_observes_another_binds_successful_retry(pso_async.rs:6912) andhle::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.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_pixelspanicked attitle_textures.rs:6368with "superseded unaligned extra_pages must be reclaimed immediately (22609920 -> 22609920)". Threetitle_textures::tests::stream_recheck_*tests then failed on the mutex it poisoned.cargo test --workspace --no-fail-fast -- --test-threads=4, on a branch one commit ahead ofmain6bfb5c51. That commit changes only translation cache keys (pso.rs,shaders.rs).title_texturesmodule 5/5,cargo test -p xcl --lib -- --test-threads=43/3;main6bfb5c51: the same lib command 6/6.AI use: Claude Code (Claude Opus 5.5).