tests: wait for asynchronous mesh57 state archives #3936

Open
github-bot wants to merge 1 commit from github-bot/gh-3934 into main AGit
Owner

@⁠R0Y00 on GitHub · 2026-12-03 13:17 UTC · original
R0Y00:codex/mesh57-wait-for-archives → main · +9 −2 · 1 files · 1 commits · open

Refs #3509.

The fixed-mesh outcome fixture scans for two state archives immediately after the draw checks. The request publisher writes them asynchronously. When the second rename loses the race, the fixture reports accepted=1 refused=0 even though the draw checks passed.

Wait up to 10 seconds for both archives and keep the exact payload and uniqueness checks. This exercises the default asynchronous path.

Verification on main 4567a71a plus this patch, Windows 11 build 26300, MSVC Debug, D3D12 debug layer enabled:

  • cmake --build --preset dev --target startup_indirect_draw_indexed d3d12_xs_shim
  • ctest --preset dev --no-tests=error -j 1 --repeat until-fail:8 --output-on-failure -R '^native_mesh57_outcomes_(warp|hardware)$': 8/8 on WARP (10.0.26100.9818) and 8/8 on RTX 4060 Laptop (32.0.16.1656).
  • A local mutation that stopped after the first scan reproduced accepted=1 refused=0 on WARP. The restored fixture passed on both adapters with accepted=1 refused=1.

Hosted Debug failure

**@⁠R0Y00** on GitHub · 2026-12-03 13:17 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3934) `R0Y00:codex/mesh57-wait-for-archives` → `main` · +9 −2 · 1 files · 1 commits · open Refs #3509. The fixed-mesh outcome fixture scans for two state archives immediately after the draw checks. The request publisher writes them asynchronously. When the second rename loses the race, the fixture reports accepted=1 refused=0 even though the draw checks passed. Wait up to 10 seconds for both archives and keep the exact payload and uniqueness checks. This exercises the default asynchronous path. Verification on main 4567a71a plus this patch, Windows 11 build 26300, MSVC Debug, D3D12 debug layer enabled: - `cmake --build --preset dev --target startup_indirect_draw_indexed d3d12_xs_shim` - `ctest --preset dev --no-tests=error -j 1 --repeat until-fail:8 --output-on-failure -R '^native_mesh57_outcomes_(warp|hardware)$'`: 8/8 on WARP (10.0.26100.9818) and 8/8 on RTX 4060 Laptop (32.0.16.1656). - A local mutation that stopped after the first scan reproduced accepted=1 refused=0 on WARP. The restored fixture passed on both adapters with accepted=1 refused=1. [Hosted Debug failure](https://github.com/R0Y00/Xbox2Windows/actions/runs/47098624269/job/144226185848)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 13:23:16 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-03 15:37 UTC · original

On current main d5271c96, #3763 already puts a publisher drain before this same archive read in native_fixed_mesh_fixture. The wait flushes the mesh request publisher and waits for pending target writes before the fixture checks both .s57 archives and their .t57 sidecars. At the #3763 head, the exact native_mesh57_outcomes fixture then passed five consecutive runs each on WARP and RTX (accepted=1, refused=1).

Can the original flake still be reproduced on main after #3763? If so, please share which archive or sidecar is late after the existing drain. That would tell us whether this additional polling covers a distinct failure.

**@⁠R0Y00** on GitHub · 2026-12-03 15:37 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3934#issuecomment-7383452948) On current main d5271c96, #3763 already puts a publisher drain before this same archive read in native_fixed_mesh_fixture. The wait flushes the mesh request publisher and waits for pending target writes before the fixture checks both .s57 archives and their .t57 sidecars. At the #3763 head, the exact native_mesh57_outcomes fixture then passed five consecutive runs each on WARP and RTX (accepted=1, refused=1). Can the original flake still be reproduced on main after #3763? If so, please share which archive or sidecar is late after the existing drain. That would tell us whether this additional polling covers a distinct failure.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3936/head:github-bot/gh-3934'
git switch 'github-bot/gh-3934'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3934'
git switch 'github-bot/gh-3934'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3934'
git switch 'github-bot/gh-3934'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3934'
git switch 'main'
git merge --squash 'github-bot/gh-3934'
git switch 'main'
git merge --ff-only 'github-bot/gh-3934'
git switch 'main'
git merge 'github-bot/gh-3934'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.