Test the production driver-watch subscription query #896

Open
Lkxex wants to merge 2 commits from upstream-pr/897 into main
Lkxex commented 2026-11-25 12:12:59 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Lkxex on 2026-11-25T12:12:59Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6604207242 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/897). Originally posted by [Lkxex](https://github.com/Lkxex) on 2026-11-25T12:12:59Z. --- 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.
iGoldenNinja commented 2026-11-25 13:06:02 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by iGoldenNinja on 2026-11-25T12:38:33Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7162654669 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/897#issuecomment-7162654669). Originally posted by [iGoldenNinja](https://github.com/iGoldenNinja) on 2026-11-25T12:38:33Z. --- 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.
ArturoWolff commented 2026-11-25 13:06:03 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-25T12:45:55Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7162823364 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/897#issuecomment-7162823364). Originally posted by [ArturoWolff](https://github.com/ArturoWolff) on 2026-11-25T12:45:55Z. --- 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 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/897:upstream-pr/897'
git switch 'upstream-pr/897'

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/897'
git switch 'upstream-pr/897'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/897'
git switch 'upstream-pr/897'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/897'
git switch 'main'
git merge --squash 'upstream-pr/897'
git switch 'main'
git merge --ff-only 'upstream-pr/897'
git switch 'main'
git merge 'upstream-pr/897'
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
fxceless/victory-fork!896
No description provided.