GPU tests: each test's prepare hook runs on its own thread #2583

Open
fyernald wants to merge 1 commit from upstream-pr/2585 into main
fyernald commented 2026-11-25 16:16:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fyernald on 2026-11-25T16:16:16Z.


Two victory-gpu tests added in 42ea09f fail intermittently when the suite runs in parallel (the default for cargo test):

  • descriptor::host::tests::a_slot_rewritten_while_its_view_is_prepared_views_the_new_record: "the slot views the record written last"
  • descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait: "both made"

Each passes when run alone.

Cause

Both tests install work in WHILE_PREPARING, which prepare runs once. It was one global for the whole test process. Every test that binds a view calls prepare, so with tests running in parallel:

  • another test's prepare can take the hook first, so the work runs inside that test instead, or
  • the other of these two tests can replace the hook before this test's own prepare runs, so this test runs the other one's work.

Either way, the concurrent write (or bind) the test checks for never happens, and its assertion fails.

Change

WHILE_PREPARING is now thread-local. prepare runs on the thread that binds the view (HostHeap::mirror), so each test's hook runs in its own prepare and nowhere else. The two tests set and check it via set / with_borrow. This is test code only; nothing outside #[cfg(test)] changes. WHILE_MAKING is left alone, because it already only runs for its own slot.

Testing

Windows 10 Pro 22H2 (19045), RTX 3080 (driver 617.42), Rust 1.98.1 MSVC, base 67e8ae1. The full victory-gpu lib test binary was run 200 times in a row with default parallelism:

Build Runs with either test failing
main 67e8ae1 22 / 200 (a_slot_rewritten_… 13, views_bound_… 11)
this PR 0 / 200

The other failures on this machine are unchanged in both builds and unrelated. They happen in every run: dynamic_slots_are_held_until_released and lists_share_a_table_and_copies_keep_their_views (NVIDIA's view heap cap, FIND-9), plus a_texture_written_in_one_format_reads_in_another_through_a_placed_view (Windows 10 has no ID3D12Device10, #1999).

  • cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean, also with --all-features
  • cargo xtask policy: 184 files ok

Claim: https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7167717052

<!-- greyfinch-sync:Marvisak/VIctory:issue:5494920830 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2585). Originally posted by [fyernald](https://github.com/fyernald) on 2026-11-25T16:16:16Z. --- Two `victory-gpu` tests added in 42ea09f fail intermittently when the suite runs in parallel (the default for `cargo test`): - `descriptor::host::tests::a_slot_rewritten_while_its_view_is_prepared_views_the_new_record`: "the slot views the record written last" - `descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait`: "both made" Each passes when run alone. ## Cause Both tests install work in `WHILE_PREPARING`, which `prepare` runs once. It was one global for the whole test process. Every test that binds a view calls `prepare`, so with tests running in parallel: - another test's `prepare` can take the hook first, so the work runs inside that test instead, or - the other of these two tests can replace the hook before this test's own `prepare` runs, so this test runs the other one's work. Either way, the concurrent write (or bind) the test checks for never happens, and its assertion fails. ## Change `WHILE_PREPARING` is now thread-local. `prepare` runs on the thread that binds the view (`HostHeap::mirror`), so each test's hook runs in its own `prepare` and nowhere else. The two tests set and check it via `set` / `with_borrow`. This is test code only; nothing outside `#[cfg(test)]` changes. `WHILE_MAKING` is left alone, because it already only runs for its own slot. ## Testing Windows 10 Pro 22H2 (19045), RTX 3080 (driver 617.42), Rust 1.98.1 MSVC, base `67e8ae1`. The full `victory-gpu` lib test binary was run 200 times in a row with default parallelism: | Build | Runs with either test failing | |---|---| | `main` `67e8ae1` | 22 / 200 (`a_slot_rewritten_…` 13, `views_bound_…` 11) | | this PR | **0 / 200** | The other failures on this machine are unchanged in both builds and unrelated. They happen in every run: `dynamic_slots_are_held_until_released` and `lists_share_a_table_and_copies_keep_their_views` (NVIDIA's view heap cap, `FIND-9`), plus `a_texture_written_in_one_format_reads_in_another_through_a_placed_view` (Windows 10 has no `ID3D12Device10`, #1999). - `cargo clippy -p victory-gpu --all-targets --locked -- -D warnings`: clean, also with `--all-features` - `cargo xtask policy`: `184 files ok` Claim: https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7167717052
oni-swr commented 2026-11-25 17:05:07 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-25T16:33:48Z.


oni-swr verification — head 19016aaf6f13fdc7d338ad15fb825453e8717739, origin/main 67e8ae1401df112248aed36d0024483181b718b7

Environment: Windows 11 Pro (26200), rustc 1.98.1, WARP only (VICTORY_D3D12_WARP=1 with --features diagnostics, which is what makes the host device the software adapter; Windows SDK 10.0.26100.0 dxil.dll on PATH). No hardware GPU use in the reported runs, no game files, no retail data. Merge check: git merge-tree --write-tree origin/main <head> is clean.

Commands / results

  • cargo test --locked -p victory-gpu --features diagnostics --lib -- descriptor::host::tests: 13 passed, 0 failed, 0 ignored
  • cargo test --locked -p victory-gpu --features diagnostics: 198 passed, 0 failed, 1 ignored (lib; 0 doctests)
  • Flake reproduction, built lib binary run 150 times each with descriptor:: --test-threads=16: origin/main 7/150 runs fail (views_bound_while_another_slot_gets_its_texture_do_not_wait 4, a_slot_rewritten_while_its_view_is_prepared_views_the_new_record 4); this PR 0/150.
  • Separately, full-lib runs (60 each, default threads) show an unrelated flake in memory::tests::a_submission_that_missed_leaves_the_copies_at_once on WARP: main 9/60, PR 14/60 (also seen once failing on bindless::tests::heap_views_are_current on main). It is not touched by this diff, passes alone and with --test-threads=1; noting it so it is not blamed on this PR.

Review: test-only change. WHILE_PREPARING becomes a thread_local! RefCell; prepare runs on the thread calling HostHeap::mirror, so the hook set by a test is consumed on that same thread, and the helper threads the tests spawn only perform the concurrent write/bind (they never need the hook). WHILE_MAKING correctly left alone. I found no defects.

Overlap: no open PR changes the same hunks. #2547, #2558, #2543, #2542, #2541, #2483 also touch descriptor/host.rs and all merge with this branch cleanly (merge-tree); #2475 conflicts with it in descriptor/host.rs/draw.rs (an ordering matter for whichever lands second, not this PR's fault).

AI disclosure: this review and verification were done by Claude Code (Claude Sonnet 5.5), not a human reviewer. Comment-only; no code changed.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7168179034 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2585#issuecomment-7168179034). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T16:33:48Z. --- **oni-swr verification** — head `19016aaf6f13fdc7d338ad15fb825453e8717739`, `origin/main` `67e8ae1401df112248aed36d0024483181b718b7` **Environment:** Windows 11 Pro (26200), rustc 1.98.1, **WARP only** (`VICTORY_D3D12_WARP=1` with `--features diagnostics`, which is what makes the host device the software adapter; Windows SDK 10.0.26100.0 `dxil.dll` on PATH). No hardware GPU use in the reported runs, no game files, no retail data. Merge check: `git merge-tree --write-tree origin/main <head>` is clean. **Commands / results** - `cargo test --locked -p victory-gpu --features diagnostics --lib -- descriptor::host::tests`: 13 passed, 0 failed, 0 ignored - `cargo test --locked -p victory-gpu --features diagnostics`: 198 passed, 0 failed, 1 ignored (lib; 0 doctests) - Flake reproduction, built lib binary run 150 times each with `descriptor:: --test-threads=16`: `origin/main` **7/150** runs fail (`views_bound_while_another_slot_gets_its_texture_do_not_wait` 4, `a_slot_rewritten_while_its_view_is_prepared_views_the_new_record` 4); this PR **0/150**. - Separately, full-lib runs (60 each, default threads) show an unrelated flake in `memory::tests::a_submission_that_missed_leaves_the_copies_at_once` on WARP: main 9/60, PR 14/60 (also seen once failing on `bindless::tests::heap_views_are_current` on main). It is not touched by this diff, passes alone and with `--test-threads=1`; noting it so it is not blamed on this PR. **Review:** test-only change. `WHILE_PREPARING` becomes a `thread_local!` `RefCell`; `prepare` runs on the thread calling `HostHeap::mirror`, so the hook set by a test is consumed on that same thread, and the helper threads the tests spawn only perform the concurrent write/bind (they never need the hook). `WHILE_MAKING` correctly left alone. I found no defects. **Overlap:** no open PR changes the same hunks. #2547, #2558, #2543, #2542, #2541, #2483 also touch `descriptor/host.rs` and all merge with this branch cleanly (`merge-tree`); #2475 conflicts with it in `descriptor/host.rs`/`draw.rs` (an ordering matter for whichever lands second, not this PR's fault). AI disclosure: this review and verification were done by Claude Code (Claude Sonnet 5.5), not a human reviewer. Comment-only; no code changed.
fyernald commented 2026-11-25 18:02:38 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fyernald on 2026-11-25T17:07:05Z.


Thanks, @oni-swr. Your 7/150 → 0/150 on WARP matches what I saw on hardware.

On memory::tests::a_submission_that_missed_leaves_the_copies_at_once: it never failed in any of my full-suite runs on an RTX 3080 (Windows 10, default parallelism). That's 0 of 550: 200 on main 67e8ae1, 200 with this PR and 150 more on other builds. So it looks specific to WARP (or to its timing), which fits your reading that it's unrelated here.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7169030295 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2585#issuecomment-7169030295). Originally posted by [fyernald](https://github.com/fyernald) on 2026-11-25T17:07:05Z. --- Thanks, @oni-swr. Your 7/150 → 0/150 on WARP matches what I saw on hardware. On `memory::tests::a_submission_that_missed_leaves_the_copies_at_once`: it never failed in any of my full-suite runs on an RTX 3080 (Windows 10, default parallelism). That's 0 of 550: 200 on `main` `67e8ae1`, 200 with this PR and 150 more on other builds. So it looks specific to WARP (or to its timing), which fits your reading that it's unrelated here.
Marvisak commented 2026-11-25 23:06:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T22:19:41Z.


Automated triage for the maintainers.

Merge candidate. This is a test-only fix for two flaky descriptor::host tests. WHILE_PREPARING was one process-wide hook, and prepare runs it for every view any parallel test binds, so another test could take or replace it first. It is now a thread_local! RefCell. prepare (descriptor/host.rs) calls tests::while_preparing() on the thread that calls HostHeap::mirror, which is the test's own thread, so each hook runs in its own test. The helper threads the tests spawn never need it. Nothing outside #[cfg(test)] changes.

CI: check passing. Merges cleanly into current main. A recommendation to look at it, not an approval.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7176224238 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2585#issuecomment-7176224238). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T22:19:41Z. --- <!-- victory-triage v1 head=19016aaf6f13fdc7d338ad15fb825453e8717739 verdict=merge-candidate at=2026-11-25T22:19:18Z --> Automated triage for the maintainers. **Merge candidate.** This is a test-only fix for two flaky `descriptor::host` tests. `WHILE_PREPARING` was one process-wide hook, and `prepare` runs it for every view any parallel test binds, so another test could take or replace it first. It is now a `thread_local!` `RefCell`. `prepare` (descriptor/host.rs) calls `tests::while_preparing()` on the thread that calls `HostHeap::mirror`, which is the test's own thread, so each hook runs in its own test. The helper threads the tests spawn never need it. Nothing outside `#[cfg(test)]` changes. CI: `check` passing. Merges cleanly into current `main`. A recommendation to look at it, not an approval. --- _Generated by [Claude Code](https://claude.ai/code)_
fuzeofficlal commented 2026-11-26 20:10:36 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T20:10:36Z.

Review: APPROVED


Verified locally merged onto origin/main (63bcca43) at PR head 19016aaf (Windows 11 x64, NVIDIA RTX 5090 + Microsoft WARP, VICTORY_D3D12_DEBUG=1):

  • crates/victory-gpu/src/descriptor/host.rs (#[cfg(test)] only): moves WHILE_PREPARING to a thread_local! RefCell<Option<Work>>, eliminating cross-test hook races under parallel cargo test. while_preparing() takes the closure via with_borrow_mut(Option::take) before calling work(), avoiding re-entrant borrow panics or leaked hooks if a callback panics. Confirmed no other WHILE_PREPARING callers exist in the workspace (WHILE_MAKING is already slot-keyed).
  • cargo xtask policy: 191 files ok.
  • cargo clippy --locked -p victory-gpu --all-targets -- -D warnings (default and --all-features): 0 warnings.
  • Parallel stress (--features diagnostics, VICTORY_D3D12_DEBUG=1, descriptor::host::tests:: at --test-threads=16):
    • Microsoft WARP: 15/15 passed, 0/30 failures across 30 consecutive runs.
    • NVIDIA RTX 5090: 14/14 non-heap-cap tests passed, 0/30 failures across 30 consecutive runs (plus --test-threads=1 pass; dynamic_slots_are_held_until_released hits the unrelated NVIDIA view-heap cap on main).

Synthetic tests only; looks ready to merge.

<!-- greyfinch-sync:Marvisak/VIctory:review:6079991815 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2585#pullrequestreview-6079991815). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T20:10:36Z. **Review:** APPROVED --- Verified locally merged onto `origin/main` (`63bcca43`) at PR head `19016aaf` (Windows 11 x64, NVIDIA RTX 5090 + Microsoft WARP, `VICTORY_D3D12_DEBUG=1`): - `crates/victory-gpu/src/descriptor/host.rs` (`#[cfg(test)]` only): moves `WHILE_PREPARING` to a `thread_local!` `RefCell<Option<Work>>`, eliminating cross-test hook races under parallel `cargo test`. `while_preparing()` takes the closure via `with_borrow_mut(Option::take)` before calling `work()`, avoiding re-entrant borrow panics or leaked hooks if a callback panics. Confirmed no other `WHILE_PREPARING` callers exist in the workspace (`WHILE_MAKING` is already slot-keyed). - `cargo xtask policy`: 191 files ok. - `cargo clippy --locked -p victory-gpu --all-targets -- -D warnings` (default and `--all-features`): 0 warnings. - Parallel stress (`--features diagnostics`, `VICTORY_D3D12_DEBUG=1`, `descriptor::host::tests::` at `--test-threads=16`): - Microsoft WARP: 15/15 passed, **0/30** failures across 30 consecutive runs. - NVIDIA RTX 5090: 14/14 non-heap-cap tests passed, **0/30** failures across 30 consecutive runs (plus `--test-threads=1` pass; `dynamic_slots_are_held_until_released` hits the unrelated NVIDIA view-heap cap on `main`). Synthetic tests only; looks ready to merge.
Dukestar69 commented 2026-11-26 21:10:48 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T21:10:48Z.

Review: APPROVED


LGTM — verified on RTX 5090 (Windows / D3D12) against origin/main (63bcca4).

  • Isolating each test's prepare hook to its own thread eliminates cross-test interference in descriptor::host::tests.
  • cargo test -p victory-gpu --lib descriptor::host::tests:: -- --skip dynamic_slots_are_held_until_released --test-threads=1: 14 passed, 0 failed.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6080511735 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2585#pullrequestreview-6080511735). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T21:10:48Z. **Review:** APPROVED --- LGTM — verified on RTX 5090 (Windows / D3D12) against `origin/main` (`63bcca4`). - Isolating each test's prepare hook to its own thread eliminates cross-test interference in `descriptor::host::tests`. - `cargo test -p victory-gpu --lib descriptor::host::tests:: -- --skip dynamic_slots_are_held_until_released --test-threads=1`: 14 passed, 0 failed. - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
andrewpozdnakov7-jpg commented 2026-11-28 07:23:07 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T07:23:07Z.


Two recent Windows CI runs on separate PR heads still fail at the assertion this test-only patch addresses:

Both logs report the sole failing test as descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait, with “both made” at host.rs:2011. The timeout assertion has a different message. I checked that 19016aaf still scopes the prepare hook to the test thread and that its own Windows check is green. These are two recent examples for the merge decision. Once this fix is on main, updating the two PR branches will let their checks run with it.

AI-assisted log and diff review.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7235903415 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2585#issuecomment-7235903415). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T07:23:07Z. --- Two recent Windows CI runs on separate PR heads still fail at the assertion this test-only patch addresses: - [#3651, head 32847d9](https://github.com/Marvisak/VIctory/actions/runs/46099493970/job/140838459938) - [#3594, head 377cd2d](https://github.com/Marvisak/VIctory/actions/runs/46059061697/job/140708596804) Both logs report the sole failing test as descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait, with “both made” at host.rs:2011. The timeout assertion has a different message. I checked that 19016aaf still scopes the prepare hook to the test thread and that its own Windows check is green. These are two recent examples for the merge decision. Once this fix is on main, updating the two PR branches will let their checks run with it. AI-assisted log and diff review.
upipibi commented 2026-11-28 19:28:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-28T19:28:57Z.


NVIDIA row for this PR: on an RTX 3070 the two descriptor::host tests failed in 2 of 20 full-suite runs on main and 0 of 20 with the PR. Run as a pair, they failed in 7 of 10 runs on main and 0 of 10 with the PR.

RTX 3070 (desktop), driver 616.56, Windows 11 Pro 10.0.26100, Rust 1.98.1, debug. The PR head is 19016aa, on base 67e8ae1, which is 78 commits behind main 63bcca4. Main has changed descriptor/host.rs since then (351 insertions, 27 deletions), so I merged the head onto 63bcca4 locally with --no-ff. The merge is clean, and its diff against 63bcca4 changes the same lines as the PR (1 file, 15 insertions, 9 deletions). "Main" below is 63bcca4 and "PR" is that merge. Each tree had its own CARGO_TARGET_DIR. Runs alternated between the two trees.

Full suite, default parallelism, 20 runs per tree:

cargo test --locked -p victory-gpu --lib

test main 63bcca4 PR on 63bcca4
descriptor::host::tests::a_slot_rewritten_while_its_view_is_prepared_views_the_new_record failed in 0 of 20 failed in 0 of 20
descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait failed in 2 of 20 (both made, host.rs:2011) failed in 0 of 20
watch::tests::a_retake_marks_the_copies_and_keeps_the_guard failed in 0 of 20 failed in 1 of 20 (watch.rs:1369, left: 4, right: 2)

Totals: main had 229 passed, 2 failed, 1 ignored in 18 runs and 228 passed, 3 failed, 1 ignored in 2 runs. The PR had 229 passed, 2 failed, 1 ignored in 19 runs and 228 passed, 3 failed, 1 ignored in 1 run.

That is a lower rate on main than in my earlier runs during #3780, where one of the two failed in 5 of 6 full runs on the same commit and card.

The two tests together, 10 runs per tree:

cargo test --locked -p victory-gpu --lib -- descriptor::host::tests::a_slot_rewritten_while_its_view_is_prepared_views_the_new_record descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait

test main 63bcca4 PR on 63bcca4
a_slot_rewritten_while_its_view_is_prepared_views_the_new_record failed in 2 of 10 (the slot views the record written last, host.rs:1967) failed in 0 of 10
views_bound_while_another_slot_gets_its_texture_do_not_wait failed in 5 of 10 (both made) failed in 0 of 10

On main, 7 of 10 runs had a failure, with one test failing in each. With only these two tests running, each one's hook can still be taken by the other, which fits the cause in the description.

Known failures, in all 40 full runs on both trees and not counted above:

  • descriptor::host::tests::dynamic_slots_are_held_until_released;
  • memory::tests::lists_share_a_table_and_copies_keep_their_views.

They are NVIDIA's view-heap cap, the same two as in the description.

The single watch::tests::a_retake_marks_the_copies_and_keeps_the_guard failure was in a file the PR does not touch. The page protection read back was PAGE_READWRITE (4) where PAGE_READONLY (2) was expected. Run alone with -- watch::tests::a_retake_marks_the_copies_and_keeps_the_guard --exact, it passed in 10 of 10 runs on each tree. I read it as a separate parallel-run flake and not as an effect of the PR. One failure in 20 runs is too few to say more.

Not tested:

  • --features diagnostics, WARP and the debug layer;
  • --test-threads other than the default;
  • more than 20 full runs per tree (the description and oni-swr ran 200 and 150);
  • the PR head on its own base 67e8ae1;
  • clippy, cargo xtask policy, release and a title run.

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7244576824 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2585#issuecomment-7244576824). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-28T19:28:57Z. --- NVIDIA row for this PR: on an RTX 3070 the two `descriptor::host` tests failed in 2 of 20 full-suite runs on main and 0 of 20 with the PR. Run as a pair, they failed in 7 of 10 runs on main and 0 of 10 with the PR. RTX 3070 (desktop), driver 616.56, Windows 11 Pro 10.0.26100, Rust 1.98.1, debug. The PR head is `19016aa`, on base `67e8ae1`, which is 78 commits behind main `63bcca4`. Main has changed `descriptor/host.rs` since then (351 insertions, 27 deletions), so I merged the head onto `63bcca4` locally with `--no-ff`. The merge is clean, and its diff against `63bcca4` changes the same lines as the PR (1 file, 15 insertions, 9 deletions). "Main" below is `63bcca4` and "PR" is that merge. Each tree had its own `CARGO_TARGET_DIR`. Runs alternated between the two trees. Full suite, default parallelism, 20 runs per tree: `cargo test --locked -p victory-gpu --lib` | test | main `63bcca4` | PR on `63bcca4` | |---|---|---| | `descriptor::host::tests::a_slot_rewritten_while_its_view_is_prepared_views_the_new_record` | failed in 0 of 20 | failed in 0 of 20 | | `descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait` | failed in 2 of 20 (`both made`, host.rs:2011) | failed in 0 of 20 | | `watch::tests::a_retake_marks_the_copies_and_keeps_the_guard` | failed in 0 of 20 | failed in 1 of 20 (watch.rs:1369, `left: 4`, `right: 2`) | Totals: main had 229 passed, 2 failed, 1 ignored in 18 runs and 228 passed, 3 failed, 1 ignored in 2 runs. The PR had 229 passed, 2 failed, 1 ignored in 19 runs and 228 passed, 3 failed, 1 ignored in 1 run. That is a lower rate on main than in my earlier runs during #3780, where one of the two failed in 5 of 6 full runs on the same commit and card. The two tests together, 10 runs per tree: `cargo test --locked -p victory-gpu --lib -- descriptor::host::tests::a_slot_rewritten_while_its_view_is_prepared_views_the_new_record descriptor::host::tests::views_bound_while_another_slot_gets_its_texture_do_not_wait` | test | main `63bcca4` | PR on `63bcca4` | |---|---|---| | `a_slot_rewritten_while_its_view_is_prepared_views_the_new_record` | failed in 2 of 10 (`the slot views the record written last`, host.rs:1967) | failed in 0 of 10 | | `views_bound_while_another_slot_gets_its_texture_do_not_wait` | failed in 5 of 10 (`both made`) | failed in 0 of 10 | On main, 7 of 10 runs had a failure, with one test failing in each. With only these two tests running, each one's hook can still be taken by the other, which fits the cause in the description. Known failures, in all 40 full runs on both trees and not counted above: - `descriptor::host::tests::dynamic_slots_are_held_until_released`; - `memory::tests::lists_share_a_table_and_copies_keep_their_views`. They are NVIDIA's view-heap cap, the same two as in the description. The single `watch::tests::a_retake_marks_the_copies_and_keeps_the_guard` failure was in a file the PR does not touch. The page protection read back was `PAGE_READWRITE` (4) where `PAGE_READONLY` (2) was expected. Run alone with `-- watch::tests::a_retake_marks_the_copies_and_keeps_the_guard --exact`, it passed in 10 of 10 runs on each tree. I read it as a separate parallel-run flake and not as an effect of the PR. One failure in 20 runs is too few to say more. Not tested: - `--features diagnostics`, WARP and the debug layer; - `--test-threads` other than the default; - more than 20 full runs per tree (the description and oni-swr ran 200 and 150); - the PR head on its own base `67e8ae1`; - clippy, `cargo xtask policy`, release and a title run. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2585:upstream-pr/2585'
git switch 'upstream-pr/2585'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2585'
git switch 'upstream-pr/2585'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2585'
git switch 'upstream-pr/2585'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2585'
git switch 'main'
git merge --squash 'upstream-pr/2585'
git switch 'main'
git merge --ff-only 'upstream-pr/2585'
git switch 'main'
git merge 'upstream-pr/2585'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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
Marvisak/VIctory!2583
No description provided.