[bug][tests] Gate 3 does not come out green on main here: darner-gpu's lib tests fail in half of the parallel runs, one darner-shader test fails every time, one runs for over 14 min #389

Open
opened 2026-12-04 18:51:12 +00:00 by Cyber-Croissant · 0 comments
Contributor

What you see

Gate 3 of AGENTS.md (cargo test --workspace --locked) does not pass on main (f3840d73) on this PC, with nothing of mine on top. Three separate things, all measured on that commit on 2026-12-04:

1. darner-gpu's lib tests fail in about half of the runs in parallel, and pass on one thread.

  • cargo test -p darner-gpu --lib --locked, 20 runs in a row: 10 failed. A failed run has 1 to 3 failed tests of 1,756, and not the same ones from run to run.
  • Tests that failed at least once in those 20 runs (times): watch::tests::ask_once_by_res_splits_reservations_without_refusals (3), watch::watch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochs (3), watch::tests::a_block_written_frame_after_frame_is_kept_open (2), host::watch_pipe::tests::ask_once_delta_runs_on_collector_and_preserves_ahead (2), host::watch_pipe::tests::concurrent_submit_asks_coalesce_without_losing_dirty_pages (2), host::watch_pipe::tests::finish_early_watch_fast_path_reasks_overlap_and_handles_settle_or_cancel (2), host::refresh_tests::chunked_nothing_new_with_matches_individual (2), host::card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_end (1). In six earlier runs: host::refresh_tests::unchanged_ranges_are_known (1).
  • The same command with -- --test-threads=1: 1,756 passed, 0 failed (105 s).
  • gpu_owned::tests::concurrent_faults_on_same_block_serialize_single_readback alone (-- --exact), 10 runs: 9 failed.

2. darner-shader: emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders fails every time. Alone (cargo test -p darner-shader --lib --locked <name> -- --exact): 3 runs of 3. The message: DXIL validation failed: "Function: main: error: Not all elements of output SV_Depth were written.\nValidation failed." (waterfall_tests.rs:1056).

3. darner-shader: oracle64::legacy_mul_forms_are_exact had not ended after 14 min 33 s of CPU time when I stopped cargo test --workspace --locked --no-fail-fast. Its CPU time kept rising, so it runs; it is not hung. An attempt earlier that day stood in it for over 20 min.

Why it matters: AGENTS.md asks every pull request to say which gates ran and what they gave. As it stands, a contributor on a PC like this one cannot get gate 3 green with or without their change, and cannot tell a failure of their own from these. #321's text reports gate 3 failures on f3840d7 too (under Wine, other tests).

What I did not check:

  • Another PC. Whether the parallel failures depend on the number of threads (12 here).
  • Which shared state the failing tests step on. Several of them use write-watched memory and the watch tables; that is a reading of their names and of one test's body, not a finding.
  • Whether the DXIL failure depends on the validator this PC has.
  • The other crates on f3840d73 itself: on a tree with two commits of mine on top (#332's head, which touches darner-gpu only) everything but darner-gpu and darner-shader gave 1,015 passed, 0 failed, and darner-shader without the long test 556 passed, 1 failed (the test of point 2) in 491 s.

CPU, RAM and Windows version

Ryzen 5 7500X3D (6 cores, 12 threads), 32 GB, Windows 11 (build 26300), rustc 1.98.1

Darner release or commit

f3840d73

Are you working on a fix?

No

### What you see Gate 3 of AGENTS.md (`cargo test --workspace --locked`) does not pass on `main` (`f3840d73`) on this PC, with nothing of mine on top. Three separate things, all measured on that commit on 2026-12-04: **1. `darner-gpu`'s lib tests fail in about half of the runs in parallel, and pass on one thread.** - `cargo test -p darner-gpu --lib --locked`, 20 runs in a row: 10 failed. A failed run has 1 to 3 failed tests of 1,756, and not the same ones from run to run. - Tests that failed at least once in those 20 runs (times): `watch::tests::ask_once_by_res_splits_reservations_without_refusals` (3), `watch::watch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochs` (3), `watch::tests::a_block_written_frame_after_frame_is_kept_open` (2), `host::watch_pipe::tests::ask_once_delta_runs_on_collector_and_preserves_ahead` (2), `host::watch_pipe::tests::concurrent_submit_asks_coalesce_without_losing_dirty_pages` (2), `host::watch_pipe::tests::finish_early_watch_fast_path_reasks_overlap_and_handles_settle_or_cancel` (2), `host::refresh_tests::chunked_nothing_new_with_matches_individual` (2), `host::card_steps::tests::shared_scratch_eliminates_flight_settle_end_to_end` (1). In six earlier runs: `host::refresh_tests::unchanged_ranges_are_known` (1). - The same command with `-- --test-threads=1`: 1,756 passed, 0 failed (105 s). - `gpu_owned::tests::concurrent_faults_on_same_block_serialize_single_readback` alone (`-- --exact`), 10 runs: 9 failed. **2. `darner-shader`: `emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders` fails every time.** Alone (`cargo test -p darner-shader --lib --locked <name> -- --exact`): 3 runs of 3. The message: `DXIL validation failed: "Function: main: error: Not all elements of output SV_Depth were written.\nValidation failed."` (`waterfall_tests.rs:1056`). **3. `darner-shader`: `oracle64::legacy_mul_forms_are_exact` had not ended after 14 min 33 s of CPU time** when I stopped `cargo test --workspace --locked --no-fail-fast`. Its CPU time kept rising, so it runs; it is not hung. An attempt earlier that day stood in it for over 20 min. Why it matters: AGENTS.md asks every pull request to say which gates ran and what they gave. As it stands, a contributor on a PC like this one cannot get gate 3 green with or without their change, and cannot tell a failure of their own from these. #321's text reports gate 3 failures on `f3840d7` too (under Wine, other tests). What I did not check: - Another PC. Whether the parallel failures depend on the number of threads (12 here). - Which shared state the failing tests step on. Several of them use write-watched memory and the watch tables; that is a reading of their names and of one test's body, not a finding. - Whether the DXIL failure depends on the validator this PC has. - The other crates on `f3840d73` itself: on a tree with two commits of mine on top (#332's head, which touches `darner-gpu` only) everything but `darner-gpu` and `darner-shader` gave 1,015 passed, 0 failed, and `darner-shader` without the long test 556 passed, 1 failed (the test of point 2) in 491 s. ### CPU, RAM and Windows version Ryzen 5 7500X3D (6 cores, 12 threads), 32 GB, Windows 11 (build 26300), rustc 1.98.1 ### Darner release or commit `f3840d73` ### Are you working on a fix? No
Sign in to join this conversation.
No labels
No milestone
No project
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.

Dependencies

No dependencies set

Reference
TrustNo1/Darner#389
No description provided.