tests: wait for asynchronous mesh57 state archives #3934

Open
R0Y00 wants to merge 1 commit from upstream-pr/3934 into main
R0Y00 commented 2026-12-03 13:17:07 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T13:17:07Z.


Refs #3507.

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

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5627262444 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3934). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T13:17:07Z. --- Refs #3507. 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)
R0Y00 commented 2026-12-03 15:37:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T15:37:18Z.


On current main d5271c96, #3761 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 #3761 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 #3761? 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7383452948 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3934#issuecomment-7383452948). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T15:37:18Z. --- On current main d5271c96, #3761 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 #3761 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 #3761? 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 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/3934:upstream-pr/3934'
git switch 'upstream-pr/3934'

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