Test the production driver-watch subscription query #897

Open
github-bot wants to merge 2 commits from github-bot/gh-897 into main AGit
Owner

@⁠Lkxex on GitHub · 2026-11-25 12:12 UTC · original
Lkxex:fix/test-real-driver-watch-query → main · +16 −10 · 1 files · 2 commits · open

The subscription smoke test used a shorter provider filter than the runtime. Share the actual query so Windows validates all of the production XPath. Give the test a no-op callback so a real event cannot trip the process-wide switch during the counter test.

Validation: cargo test --locked -p victory-gpu --features diagnostics --lib drvwatch::tests. Two tests passed. The test that writes an event to the Windows Application log remained ignored.

AI-assisted.

**@⁠Lkxex** on GitHub · 2026-11-25 12:12 UTC · [original](https://github.com/fxceless/victory-fork/pull/897) `Lkxex:fix/test-real-driver-watch-query` → `main` · +16 −10 · 1 files · 2 commits · open The subscription smoke test used a shorter provider filter than the runtime. Share the actual query so Windows validates all of the production XPath. Give the test a no-op callback so a real event cannot trip the process-wide switch during the counter test. Validation: cargo test --locked -p victory-gpu --features diagnostics --lib drvwatch::tests. Two tests passed. The test that writes an event to the Windows Application log remained ignored. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:53:27 +00:00
Author
Owner

@⁠iGoldenNinja on GitHub · 2026-11-25 12:38 UTC · original

The production query has a false positive on my RTX 5080 16 GB, driver 617.14, Windows 11 Pro 25H2 build 26200.9974, Ryzen 9 5900X and 32 GB RAM. In an a253706-based run (bbc35d0), the watcher latched 5.2 seconds after subscription while the draw-window test still had windows off. The matching System event was provider Display, ID 4127, Level 4 (Information), for the Windows Auto HDR prompt. The title continued into controllable prison.

I tested a small patch based on this PR's 706fba8. The shared structured Windows query suppresses only that provider, ID, and level combination. Running the exact query against this machine's System log kept 62 of the 102 events accepted by the original filter. The 40 dropped records were all Auto HDR prompts. All 60 recorded nvlddmkm ID 153 events remained selected. The native production subscription and latch/count tests passed.

In the integrated build 74becd8, Windows recorded another Auto HDR prompt at startup. The native subscription stayed active and Player A was reached without the driver-watch latch firing. Patch. Testing and reporting assisted by OpenAI Codex.

**@⁠iGoldenNinja** on GitHub · 2026-11-25 12:38 UTC · [original](https://github.com/fxceless/victory-fork/pull/897#issuecomment-7162654669) The production query has a false positive on my RTX 5080 16 GB, driver 617.14, Windows 11 Pro 25H2 build 26200.9974, Ryzen 9 5900X and 32 GB RAM. In an `a253706`-based run (`bbc35d0`), the watcher latched 5.2 seconds after subscription while the draw-window test still had windows off. The matching System event was provider `Display`, ID `4127`, Level `4` (Information), for the Windows Auto HDR prompt. The title continued into controllable prison. I tested a small patch based on this PR's `706fba8`. The shared structured Windows query suppresses only that provider, ID, and level combination. Running the exact query against this machine's System log kept 62 of the 102 events accepted by the original filter. The 40 dropped records were all Auto HDR prompts. All 60 recorded `nvlddmkm` ID 153 events remained selected. The native production subscription and latch/count tests passed. In the integrated build `74becd8`, Windows recorded another Auto HDR prompt at startup. The native subscription stayed active and Player A was reached without the driver-watch latch firing. [Patch](https://github.com/iGoldenNinja/victory-fork/commit/d41a1575a1e113f413a7b35bae15fae086479cd2). Testing and reporting assisted by OpenAI Codex.
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 12:45 UTC · original

Linux/Proton coverage note: the Windows Auto HDR result above depends on having a working event subscription. In our GE-Proton11-14 x64 wevtapi.dll, EvtSubscribe returns a null handle on both paths, regardless of the XPath. llvm-objdump -d --disassemble-symbols=EvtSubscribe wevtapi.dll shows an optional Wine debug-log call and then a zero return; neither path registers the callback. DLL SHA-256: 11fc10e3954a429812639fdf37a028656d49b88c344b907998ca0014cd883e6d.

So on this build the subscription test cannot validate the production query, and an untripped watcher is not evidence of an error-free GPU run. I'd keep the native Windows assertion and report the Event Log capability separately in Proton test results. This is a static check of the shipped DLL against drvwatch.rs at 0b0074e, not a new test-suite or game run.

AI disclosure: Hermes Agent inspected the binary and source and wrote this note on ArturoWolff’s behalf.

**@⁠ArturoWolff** on GitHub · 2026-11-25 12:45 UTC · [original](https://github.com/fxceless/victory-fork/pull/897#issuecomment-7162823364) Linux/Proton coverage note: the Windows Auto HDR result above depends on having a working event subscription. In our GE-Proton11-14 x64 `wevtapi.dll`, `EvtSubscribe` returns a null handle on both paths, regardless of the XPath. `llvm-objdump -d --disassemble-symbols=EvtSubscribe wevtapi.dll` shows an optional Wine debug-log call and then a zero return; neither path registers the callback. DLL SHA-256: `11fc10e3954a429812639fdf37a028656d49b88c344b907998ca0014cd883e6d`. So on this build the subscription test cannot validate the production query, and an untripped watcher is **not** evidence of an error-free GPU run. I'd keep the native Windows assertion and report the Event Log capability separately in Proton test results. This is a static check of the shipped DLL against `drvwatch.rs` at `0b0074e`, not a new test-suite or game run. AI disclosure: Hermes Agent inspected the binary and source and wrote this note on ArturoWolff’s behalf.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/drvwatch.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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