GPU tests: close section handles after mapping watch test views #2480

Open
VlREX wants to merge 2 commits from upstream-pr/2482 into main
VlREX commented 2026-11-25 14:36:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by VlREX on 2026-11-25T14:36:51Z.


The watch tests open pagefile-backed section handles to create mapped views, then lose the handles without closing them. Close each handle after the mapping calls. The mapped views remain valid after CloseHandle. Existing tests exercise those views after the handle closes.

Test-only change. No title data was used. Local Rust tests were unavailable. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6606949032 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2482). Originally posted by [VlREX](https://github.com/VlREX) on 2026-11-25T14:36:51Z. --- The watch tests open pagefile-backed section handles to create mapped views, then lose the handles without closing them. Close each handle after the mapping calls. The mapped views remain valid after `CloseHandle`. Existing tests exercise those views after the handle closes. Test-only change. No title data was used. Local Rust tests were unavailable. AI-assisted.
catminou4 commented 2026-11-25 15:04:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T14:57:42Z.

Review: COMMENTED


GPU tests: close section handles after mapping watch test views. Test-only hygiene. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.

<!-- greyfinch-sync:Marvisak/VIctory:review:6059998120 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2482#pullrequestreview-6059998120). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T14:57:42Z. **Review:** COMMENTED --- GPU tests: close section handles after mapping watch test views. Test-only hygiene. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.
Bj0rnis commented 2026-11-25 15:04:23 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Bj0rnis on 2026-11-25T14:40:19Z.


Independent Windows 11 hardware + WARP verification of #2482 at 9dffe2c4 (clean git merge-tree with origin/main 940d32f6, Rust 1.98.1 MSVC):

  • NVIDIA GeForce RTX 5070 Ti (real hardware): cargo test -p victory-gpu --features diagnostics --lib --locked -- --test-threads=1 -> 144 passed, 2 failed, 2 ignored (only the 2 pre-existing #1744 NVIDIA 1M view-heap baseline failures also present on main 940d32f6; all watch::tests passed).
  • WARP (VICTORY_D3D12_WARP=1): 146 passed, 0 failed, 2 ignored (0.96s).
  • Clippy: cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings -> 0 warnings.
  • Asset policy: cargo xtask policy -> 182 files ok.

AI-assisted test run and summary.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7165634942 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2482#issuecomment-7165634942). Originally posted by [Bj0rnis](https://github.com/Bj0rnis) on 2026-11-25T14:40:19Z. --- Independent Windows 11 hardware + WARP verification of #2482 at `9dffe2c4` (clean `git merge-tree` with `origin/main` `940d32f6`, Rust 1.98.1 MSVC): - **NVIDIA GeForce RTX 5070 Ti (real hardware):** `cargo test -p victory-gpu --features diagnostics --lib --locked -- --test-threads=1` -> **144 passed, 2 failed, 2 ignored** (only the 2 pre-existing #1744 NVIDIA 1M view-heap baseline failures also present on `main` `940d32f6`; all `watch::tests` passed). - **WARP (`VICTORY_D3D12_WARP=1`):** **146 passed, 0 failed, 2 ignored** (0.96s). - **Clippy:** `cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings` -> **0 warnings**. - **Asset policy:** `cargo xtask policy` -> **182 files ok**. AI-assisted test run and summary.
Vedoxdev123 commented 2026-11-25 16:09:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Vedoxdev123 on 2026-11-25T15:57:33Z.


Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060 (AI-assisted):

cargo test -p victory-gpu --lib -> 141 passed; 2 failed; 2 ignored

All tests in this branch pass on RTX 4060; the only 2 failures are the known 1,000,000 view heap cap tests (dynamic_slots_are_held_until_released and lists_share_a_table_and_copies_keep_their_views from #1744).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7167464957 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2482#issuecomment-7167464957). Originally posted by [Vedoxdev123](https://github.com/Vedoxdev123) on 2026-11-25T15:57:33Z. --- Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060 (AI-assisted): `cargo test -p victory-gpu --lib` -> **141 passed; 2 failed; 2 ignored** All tests in this branch pass on RTX 4060; the only 2 failures are the known 1,000,000 view heap cap tests (`dynamic_slots_are_held_until_released` and `lists_share_a_table_and_copies_keep_their_views` from #1744).
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/2482:upstream-pr/2482'
git switch 'upstream-pr/2482'

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/2482'
git switch 'upstream-pr/2482'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2482'
git switch 'upstream-pr/2482'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2482'
git switch 'main'
git merge --squash 'upstream-pr/2482'
git switch 'main'
git merge --ff-only 'upstream-pr/2482'
git switch 'main'
git merge 'upstream-pr/2482'
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!2480
No description provided.