Tests: exercise Wine watch capabilities and placeholder fallback #1411

Open
Filip722 wants to merge 11 commits from upstream-pr/1411 into main
Filip722 commented 2026-11-26 23:51:54 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-26T23:51:54Z.


Two watch tests failed on GE-Proton11-14 before they could exercise the supported behavior. Wine's Event Log stub leaves the error unchanged, and its memory query reports STATUS_INVALID_INFO_CLASS for the placeholder information class.

  • Recognize the unavailable Event Log API only under Wine and only for the unsupported signature. Keep the native subscription assertion.
  • Run the real watch fallback when Wine explicitly rejects the placeholder query. Check that the hole stays unmarked and that an unannounced remap becomes visible exactly when the temporary note expires. Keep the permanent-hole assertions on runtimes that support the query.

On Windows MSVC binaries running on Bazzite and GE-Proton11-14, both focused tests failed on exact main 4c604661 and passed with the patch. The wider watch filter passed 19 tests, with one ignored. Windows-target Clippy with warnings denied and the staged asset policy check passed.

The 4c604661-based version passed GitHub Windows CI, including the serial GPU suite. The latest branch uses the refreshed #1357 source split as its shared prerequisite on main d154dcb1. The stock asset policy passes on that prerequisite for 240 files. Earlier passing CI run · Updated prerequisite

Current head 194b8bf2 passed GitHub Windows CI, including both Clippy configurations, workspace tests, asset policy and the serial GPU suite. Passing CI

Related work includes #897 for the Event Log query and #812 for a separate placeholder capability probe.

Assisted by Codex (GPT-6.2-Sol High).

<!-- greyfinch-sync:fxceless/victory-fork:issue:5518773136 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1411). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-26T23:51:54Z. --- Two watch tests failed on GE-Proton11-14 before they could exercise the supported behavior. Wine's Event Log stub leaves the error unchanged, and its memory query reports `STATUS_INVALID_INFO_CLASS` for the placeholder information class. - Recognize the unavailable Event Log API only under Wine and only for the unsupported signature. Keep the native subscription assertion. - Run the real watch fallback when Wine explicitly rejects the placeholder query. Check that the hole stays unmarked and that an unannounced remap becomes visible exactly when the temporary note expires. Keep the permanent-hole assertions on runtimes that support the query. On Windows MSVC binaries running on Bazzite and GE-Proton11-14, both focused tests failed on exact main `4c604661` and passed with the patch. The wider watch filter passed 19 tests, with one ignored. Windows-target Clippy with warnings denied and the staged asset policy check passed. The 4c604661-based version passed GitHub Windows CI, including the serial GPU suite. The latest branch uses the refreshed #1357 source split as its shared prerequisite on main `d154dcb1`. The stock asset policy passes on that prerequisite for 240 files. [Earlier passing CI run](https://github.com/fxceless/victory-fork/actions/runs/45914265725) · [Updated prerequisite](https://github.com/Filip722/victory-fork/tree/review/ci-source-split-d154) Current head `194b8bf2` passed GitHub Windows CI, including both Clippy configurations, workspace tests, asset policy and the serial GPU suite. [Passing CI](https://github.com/fxceless/victory-fork/actions/runs/45918432798) Related work includes #897 for the Event Log query and #812 for a separate placeholder capability probe. Assisted by Codex (GPT-6.2-Sol High).
akimfomin commented 2026-11-27 00:16:04 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by akimfomin on 2026-11-27T00:16:04Z.


I combined your exact head dee3f61a with #1413 900c15f5 (both use the #1357 test split). Git produces tree f36574568a84b3183368c4756c4d7f914887797d without conflicts. The branch contains separate native/Wine assertions in watch.rs and your existing GE-Proton run covers the unsupported-query path.

A downstream team can take the two focused tests rather than replay the whole suite on a different Wine runtime. If you have another receiving PR/SHA or a Wine runtime report, PortBridge #98 can record the exact pair and link the original diagnostics. This is an independent tree check; I did not retest GE-Proton or claim Wine behavior for the combined tree. AI-assisted Git check.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7206317614 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1411#issuecomment-7206317614). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-27T00:16:04Z. --- I combined your exact head `dee3f61a` with #1413 `900c15f5` (both use the #1357 test split). Git produces tree `f36574568a84b3183368c4756c4d7f914887797d` without conflicts. The branch contains separate native/Wine assertions in [`watch.rs`](https://github.com/fxceless/victory-fork/blob/dee3f61a25dec141909c7df2584a0d39a2a9afbf/crates/victory-gpu/src/watch.rs) and your existing GE-Proton run covers the unsupported-query path. A downstream team can take the two focused tests rather than replay the whole suite on a different Wine runtime. If you have another receiving PR/SHA or a Wine runtime report, [PortBridge #98](https://github.com/akimfomin/PortBridge/issues/98) can record the exact pair and link the original diagnostics. This is an independent tree check; I did not retest GE-Proton or claim Wine behavior for the combined tree. AI-assisted Git check.
Headache3318 commented 2026-11-27 11:28:39 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Headache3318 on 2026-11-27T11:28:39Z.


Verification: this PR's two Wine-branches fire on stock wine-11.22 too — base fails, head passes

Verified author head 194b8bf2d775fcc480b921e70aa6189d70fe593d (merge of the wine-watch branch 370cfd81 with upstream 6a0bce34) against its recorded base d154dcb15b1d659eea99ad9fbbcd09eddee23957. The GE-Proton11-14 gaps described in the PR body reproduce identically on stock wine-11.22, and the head turns both failures into passes on their new fallback branches. Verification only, no competing implementation; no title data, synthetic mappings only.

Environment: Arch Linux, kernel 7.3.5-arch1-1, wine-11.22 (fresh-behaving prefix, WINEDLLOVERRIDES=d3d12=n,b, WINEDBG=-all), rustc 1.98.1 + x86_64-pc-windows-msvc via cargo-xwin 0.24.2, release profile, tests serial (--test-threads=1, per FIND-20's parallel flakiness). Host has 3x RTX 4090 but these tests need no GPU.

Build (identical at both trees):

cargo xwin test --release -p victory-gpu --target x86_64-pc-windows-msvc --no-run
# -> target/x86_64-pc-windows-msvc/release/deps/victory_gpu-a374979df1e9af3a.exe

Negative control at base d154dcb: both tests fail exactly as the PR describes.

  • drvwatch::tests::the_system_takes_the_subscription — FAILED, panics at drvwatch.rs:192: assertion left != right failed: Success. (os error 0) — Wine's wevtapi logs fixme:wevtapi:EvtSubscribe (… L"System" L"*[System[Provider[@Name='nvlddmkm' …]]" …) stub, returns 0 and leaves LastError untouched, so last_os_error() reads os error 0.
  • watch::tests::holes_are_known_by_their_bits_only_when_noted_for_good — FAILED, panics at watch.rs:2889: what is left of the placeholder — Wine's NtQueryVirtualMemory logs fixme:virtual: … info_class=7 … Unknown information class (→ STATUS_INVALID_INFO_CLASS), so the old placeholder() collapses the refusal to false.

At head, all pass on this runtime:

  • the_system_takes_the_subscription — ok. Takes the new branch (EvtSubscribe is unavailable on this Wine runtime printed) precisely because GetLastError stayed UNCHANGED and running_under_wine() is true; the native assert_ne!(subscription, 0) path is untouched for real Windows.
  • holes_are_known_by_their_bits_only_when_noted_for_good — ok. Takes the fallback: can_query_placeholders == false after two Err(STATUS_INVALID_INFO_CLASS), then asserts hold — hole bits stay clear while the note is current, and the expired note at noted_at + UNSURE_MS reveals the remap (Some(vec![pages(1)])); the release closure replaced the old fall-through teardown.
  • Whole drvwatch module: 2 passed; 0 failed; 1 ignored (an_entry_written_reaches_a_subscription is ignored by design, run-by-name --ignored).
  • Whole watch:: module: 20 passed; 0 failed; 1 ignored in 0.21 s.

Host-vs-regression separation: both base failures are Wine host stubs (wevtapi stub, unimplemented MemoryRegionInformation info class) — not regressions introduced by this PR's source split; head's extra check CI run is already green and this is the second Wine runtime the branches are shown to work on. The two new branches are gated on running_under_wine() plus the exact unsupported signature, so native Windows assertions still run in full.

AI-assisted (Hermes Agent).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7217119250 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1411#issuecomment-7217119250). Originally posted by [Headache3318](https://github.com/Headache3318) on 2026-11-27T11:28:39Z. --- **Verification: this PR's two Wine-branches fire on stock wine-11.22 too — base fails, head passes** Verified author head `194b8bf2d775fcc480b921e70aa6189d70fe593d` (merge of the wine-watch branch `370cfd81` with upstream `6a0bce34`) against its recorded base `d154dcb15b1d659eea99ad9fbbcd09eddee23957`. The GE-Proton11-14 gaps described in the PR body reproduce **identically on stock wine-11.22**, and the head turns both failures into passes on their new fallback branches. Verification only, no competing implementation; no title data, synthetic mappings only. Environment: Arch Linux, kernel 7.3.5-arch1-1, wine-11.22 (fresh-behaving prefix, `WINEDLLOVERRIDES=d3d12=n,b`, `WINEDBG=-all`), rustc 1.98.1 + `x86_64-pc-windows-msvc` via cargo-xwin 0.24.2, release profile, tests serial (`--test-threads=1`, per FIND-20's parallel flakiness). Host has 3x RTX 4090 but these tests need no GPU. Build (identical at both trees): ``` cargo xwin test --release -p victory-gpu --target x86_64-pc-windows-msvc --no-run # -> target/x86_64-pc-windows-msvc/release/deps/victory_gpu-a374979df1e9af3a.exe ``` **Negative control at base `d154dcb`: both tests fail exactly as the PR describes.** - `drvwatch::tests::the_system_takes_the_subscription` — FAILED, panics at `drvwatch.rs:192`: `assertion left != right failed: Success. (os error 0)` — Wine's wevtapi logs `fixme:wevtapi:EvtSubscribe (… L"System" L"*[System[Provider[@Name='nvlddmkm' …]]" …) stub`, returns 0 and leaves LastError untouched, so `last_os_error()` reads os error 0. - `watch::tests::holes_are_known_by_their_bits_only_when_noted_for_good` — FAILED, panics at `watch.rs:2889`: `what is left of the placeholder` — Wine's `NtQueryVirtualMemory` logs `fixme:virtual: … info_class=7 … Unknown information class` (→ `STATUS_INVALID_INFO_CLASS`), so the old `placeholder()` collapses the refusal to `false`. **At head, all pass on this runtime:** - `the_system_takes_the_subscription` — ok. Takes the new branch (`EvtSubscribe is unavailable on this Wine runtime` printed) precisely because `GetLastError` stayed `UNCHANGED` and `running_under_wine()` is true; the native `assert_ne!(subscription, 0)` path is untouched for real Windows. - `holes_are_known_by_their_bits_only_when_noted_for_good` — ok. Takes the fallback: `can_query_placeholders == false` after two `Err(STATUS_INVALID_INFO_CLASS)`, then asserts hold — hole bits stay clear while the note is current, and the expired note at `noted_at + UNSURE_MS` reveals the remap (`Some(vec![pages(1)])`); the release closure replaced the old fall-through teardown. - Whole `drvwatch` module: `2 passed; 0 failed; 1 ignored` (`an_entry_written_reaches_a_subscription` is ignored by design, run-by-name `--ignored`). - Whole `watch::` module: `20 passed; 0 failed; 1 ignored` in 0.21 s. Host-vs-regression separation: both base failures are Wine host stubs (wevtapi stub, unimplemented `MemoryRegionInformation` info class) — not regressions introduced by this PR's source split; head's extra `check` CI run is already green and this is the second Wine runtime the branches are shown to work on. The two new branches are gated on `running_under_wine()` plus the exact unsupported signature, so native Windows assertions still run in full. AI-assisted (Hermes Agent).
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/1411:upstream-pr/1411'
git switch 'upstream-pr/1411'

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