test(vk): the PCIe link probe's copies are its own, not a pass's #3196

Merged
HumanBean merged 1 commit from neotoxic/Longshot:test/pcie-probe-unwrapped into main 2026-12-04 20:16:49 +00:00
Contributor

Summary

tests/test_pass_barrier.py fails on main since #3161: vk_pcie_link.cpp calls vkCmdCopyBuffer, vkCmdPipelineBarrier2 and the timestamp calls without vk_work.h, so the check reports them as not counted.

The PCIe link probe records those calls at start into a command buffer of its own pool, submits it and waits for its fence, as the cooperative-matrix probe (vk_coopmat.cpp) does. No pass of the replay's is in it. It joins UNWRAPPED_OK with that reason, beside vk_coopmat.cpp.

Read: UNWRAPPED_OK in tests/test_pass_barrier.py; the probe's own pool, submit and fence wait in gpu/vk/vk_pcie_link.cpp.

Testing

Tested: Windows 11, run_all.py --changed origin/main: test_pass_barrier.py passes (it fails on main at 18edd509 with "vk_pcie_link.cpp calls [...] without vk_work.h: not counted").

Still to test:

  • None: a test's list, nothing the game runs.

Measurements

Nothing to measure: only a test changes.

Risks

None for players: no code the game runs changes. A later change that records a pass into the probe's command buffer would no longer be caught by this check for that file.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary `tests/test_pass_barrier.py` fails on `main` since #3161: `vk_pcie_link.cpp` calls `vkCmdCopyBuffer`, `vkCmdPipelineBarrier2` and the timestamp calls without `vk_work.h`, so the check reports them as not counted. The PCIe link probe records those calls at start into a command buffer of its own pool, submits it and waits for its fence, as the cooperative-matrix probe (`vk_coopmat.cpp`) does. No pass of the replay's is in it. It joins `UNWRAPPED_OK` with that reason, beside `vk_coopmat.cpp`. Read: `UNWRAPPED_OK` in `tests/test_pass_barrier.py`; the probe's own pool, submit and fence wait in `gpu/vk/vk_pcie_link.cpp`. ## Testing **Tested:** Windows 11, `run_all.py --changed origin/main`: `test_pass_barrier.py` passes (it fails on `main` at 18edd509 with "vk_pcie_link.cpp calls [...] without vk_work.h: not counted"). **Still to test:** - None: a test's list, nothing the game runs. ## Measurements Nothing to measure: only a test changes. ## Risks None for players: no code the game runs changes. A later change that records a pass into the probe's command buffer would no longer be caught by this check for that file. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
test(vk): the PCIe link probe's copies are its own, not a pass's
Some checks are pending
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 6s
2b8e99dead
test_pass_barrier.py fails on main since #3161: vk_pcie_link.cpp calls
vkCmdCopyBuffer, vkCmdPipelineBarrier2 and the timestamp calls without
vk_work.h, so the check says they are not counted. The probe records
them at start into a command buffer of its own pool, submits it and
waits for its fence, as the cooperative-matrix probe (vk_coopmat.cpp)
does: no pass of the replay's is in it. It joins UNWRAPPED_OK with that
reason, beside vk_coopmat.cpp.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
neotoxic changed title from WIP: test(vk): the PCIe link probe's copies are its own, not a pass's to test(vk): the PCIe link probe's copies are its own, not a pass's 2026-12-04 19:59:50 +00:00
HumanBean deleted branch test/pcie-probe-unwrapped 2026-12-04 20:16:50 +00:00
Some checks are pending
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 6s
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
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.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!3196
No description provided.