Tests: exercise Wine watch capabilities and placeholder fallback #1411

Open
github-bot wants to merge 11 commits from github-bot/gh-1411 into main AGit
Owner

@⁠Filip722 on GitHub · 2026-11-26 23:51 UTC · original
Filip722:tests/wine-watch-capabilities → main · +1443 −1365 · 15 files · 11 commits · open

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).

**@⁠Filip722** on GitHub · 2026-11-26 23:51 UTC · [original](https://github.com/fxceless/victory-fork/pull/1411) `Filip722:tests/wine-watch-capabilities` → `main` · +1443 −1365 · 15 files · 11 commits · open 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).
The check job fails on main: crates/victory-gpu/src/host.rs (528,954 bytes)
and crates/victory-shader/src/emit/lower.rs (535,588 bytes) are over the
asset policy's 512 KiB limit (#1342).

Only #[cfg(test)] modules move, verbatim apart from losing one level of
indentation; module names and paths are unchanged, no non-test code changes.

- host.rs: its eight test modules (tests, relay_tests, grouped_tests,
  late_tests, trail, spare, batch, queue2_tests) move to host/<name>.rs,
  the layout profile.rs and profile/tests.rs already use. 492,495 bytes.
- lower.rs: mod tests moves to emit/lower_tests.rs, declared with
  #[path = "lower_tests.rs"] as in #1322. 512,559 bytes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015kFDn6faAxnJwPKPwiCnj1
Require a subscription on Windows and on Wine implementations that support it. Accept a null handle on Wine only if EvtSubscribe leaves the caller's sentinel error untouched or reports ERROR_CALL_NOT_IMPLEMENTED. The missing subscription on GE-Proton is documented in #897.
Wine can create and map placeholders even when MemoryRegionInformationEx returns STATUS_INVALID_INFO_CLASS, as discussed in #812. In that case exercise the conservative watch path and check that an unannounced mapping is detected when its absence note expires. Keep the original permanent-hole assertions for runtimes that can query the flag.
Carry forward the host portion of #1357 (450ed9bd). The eight extracted modules are unchanged from its base. Keep the new deferred-write test in place.
Extract Lower::buffer into a child module while retaining the instruction body and its existing callers.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:03:47 +00:00
Author
Owner

@⁠akimfomin on GitHub · 2026-11-27 00:16 UTC · original

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.

**@⁠akimfomin** on GitHub · 2026-11-27 00:16 UTC · [original](https://github.com/fxceless/victory-fork/pull/1411#issuecomment-7206317614) 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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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