test(platform): retry the map at a fresh address when another test took it #109

Manually merged
github merged 1 commit from github-bot/gh-109 into main 2026-11-26 16:40:53 +00:00 AGit
Owner

@⁠Olima34 on GitHub · 2026-11-26 16:28 UTC · original
Olima34:fix/platform-test-address-race → main · +13 −9 · 1 files · 1 commits · merged 2026-11-26 16:38 UTC

What this changes

victory-platform's a_page_pool_maps_at_several_addresses failed #105's Windows CI with error 487 ("Attempt to access invalid address") at tests/conformance.rs:102. On Windows, which maps over free space only, the test releases its reservation and then maps at that address, and its own comment says this races the other tests running at the same time. When another test takes the address in between, the map fails.

The test now retries at a fresh reservation, up to 8 times, before it fails. macOS maps over the reservation itself, so nothing changes there. Test code only.

How it was tested

  • cargo test -p victory-platform --test conformance on macOS (12 passed)
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings, also with --all-features (the Windows branch compiles)
  • cargo xtask policy
  • Not run on Windows here: this PR's CI is the Windows run

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • No guesses about console behaviour
  • No new diagnostics
**@⁠Olima34** on GitHub · 2026-11-26 16:28 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/109) `Olima34:fix/platform-test-address-race` → `main` · +13 −9 · 1 files · 1 commits · merged 2026-11-26 16:38 UTC ## What this changes `victory-platform`'s `a_page_pool_maps_at_several_addresses` failed #105's Windows CI with error 487 ("Attempt to access invalid address") at `tests/conformance.rs:102`. On Windows, which maps over free space only, the test releases its reservation and then maps at that address, and its own comment says this races the other tests running at the same time. When another test takes the address in between, the map fails. The test now retries at a fresh reservation, up to 8 times, before it fails. macOS maps over the reservation itself, so nothing changes there. Test code only. ## How it was tested - [x] `cargo test -p victory-platform --test conformance` on macOS (12 passed) - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings`, also with `--all-features` (the Windows branch compiles) - [x] `cargo xtask policy` - [ ] Not run on Windows here: this PR's CI is the Windows run ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] No guesses about console behaviour - [x] No new diagnostics
a_page_pool_maps_at_several_addresses lets its reservation go before mapping there on Windows, which maps over free space only, so a test running at the same time can take the address in between: the map then fails with error 487, as it did in #105's CI. It now tries again at a fresh reservation, up to 8 times.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 16:30:21 +00:00
github manually merged commit 12ea2d2497 into main 2026-11-26 16:40:53 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-26 16:37 UTC · original · approved these changes

Checked the diff: the retry loop only re-reserves on a failed map and fails loudly after 8 tries. Merged onto main, victory-platform passes native and x86_64, clippy and policy are clean, CI is green.

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 16:37 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/109#pullrequestreview-6077662475) · **approved these changes** Checked the diff: the retry loop only re-reserves on a failed map and fails loudly after 8 tries. Merged onto main, victory-platform passes native and x86_64, clippy and policy are clean, CI is green.
This discussion has been locked. Commenting is limited to contributors.
No description provided.