Tests: accept Wine’s zero DWM cloak value after a successful query #1481

Open
github-bot wants to merge 1 commit from github-bot/gh-1481 into main AGit
Owner

@⁠gurvancampion on GitHub · 2026-11-24 16:46 UTC · original
gurvancampion:topic/testtitle-wine-cloak → main · +52 −4 · 1 files · 1 commits · open

GE-Proton 11-12 returns S_OK for both DWM calls but reports zero for DWMWA_CLOAKED. The test title now accepts that value only on Wine. Both window variants must still pass the style and client-size checks. Related to #175.

 CreateWindowExW / A → check window styles and 1920×1080 client area
   DwmGetWindowAttribute(DWMWA_CLOAKED)
-    Require a nonzero cloak value
+    Require S_OK
+    Require a nonzero cloak value unless ntdll exports wine_get_version

What is in it

  • tests/testtitle/src/main.rs checks the query HRESULT on every host and tests the Wine exception and native Windows requirement.

Tested

  • AMD Ryzen 7 9800X3D, Omarchy Linux, GE-Proton 11-12, rustc 1.99.0, cargo-xwin 0.24.1, debug x86_64-pc-windows-msvc. The RTX 5090 was disabled for testing (NO_GPU=1, Vulkan ICD disabled, Wine built-in DXGI with renderer=no3d).
  • cargo xwin build --workspace --target x86_64-pc-windows-msvc passed on main and the PR commit.
  • cargo xwin test -p xcl --target x86_64-pc-windows-msvc --test e2e test_title_runs_and_game_folder_is_untouched -- --nocapture printed [FAIL] user32 … W: not cloaked on main and [PASS] user32 on the PR commit. The enclosing test still failed on both revisions, with storage and graphics failures in both runs.
  • cargo xwin test -p xcl-testtitle --target x86_64-pc-windows-msvc -- --nocapture had 2 failures with main's cloak assertion and 2 passes with the fix.
  • cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4. Main 930e8b4 had 737 passed, 14 failed and 41 ignored. PR commit 827617e had 739 passed, the same 14 failed and 41 ignored. On each commit, 108 GPU skips were included in the pass count (107 no GPU, 1 no GPU with 32- or 64-lane waves).

Regression run

The synthetic test title exercised the DWM query on both revisions. Retail smoke runs are only required for runtime changes.

Not tested

  • Native Windows DWM, GPU-backed workspace tests and retail titles.

AI use

  • OpenAI Codex (gpt-6.2-sol) investigated the failure, wrote the patch and tests, ran the checks, and drafted this description. Antigravity (Gemini 4 Neon) coordinated, reviewed the diff, and verified the PR checks. The author reviewed the diff and description before opening the PR.
**@⁠gurvancampion** on GitHub · 2026-11-24 16:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/1481) `gurvancampion:topic/testtitle-wine-cloak` → `main` · +52 −4 · 1 files · 1 commits · open GE-Proton 11-12 returns `S_OK` for both DWM calls but reports zero for `DWMWA_CLOAKED`. The test title now accepts that value only on Wine. Both window variants must still pass the style and client-size checks. Related to #175. ```diff CreateWindowExW / A → check window styles and 1920×1080 client area DwmGetWindowAttribute(DWMWA_CLOAKED) - Require a nonzero cloak value + Require S_OK + Require a nonzero cloak value unless ntdll exports wine_get_version ``` **What is in it** - `tests/testtitle/src/main.rs` checks the query HRESULT on every host and tests the Wine exception and native Windows requirement. **Tested** - AMD Ryzen 7 9800X3D, Omarchy Linux, GE-Proton 11-12, `rustc 1.99.0`, `cargo-xwin 0.24.1`, debug `x86_64-pc-windows-msvc`. The RTX 5090 was disabled for testing (`NO_GPU=1`, Vulkan ICD disabled, Wine built-in DXGI with `renderer=no3d`). - `cargo xwin build --workspace --target x86_64-pc-windows-msvc` passed on main and the PR commit. - `cargo xwin test -p xcl --target x86_64-pc-windows-msvc --test e2e test_title_runs_and_game_folder_is_untouched -- --nocapture` printed `[FAIL] user32 … W: not cloaked` on main and `[PASS] user32` on the PR commit. The enclosing test still failed on both revisions, with storage and graphics failures in both runs. - `cargo xwin test -p xcl-testtitle --target x86_64-pc-windows-msvc -- --nocapture` had 2 failures with main's cloak assertion and 2 passes with the fix. - `cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4`. Main `930e8b4` had 737 passed, 14 failed and 41 ignored. PR commit `827617e` had 739 passed, the same 14 failed and 41 ignored. On each commit, 108 GPU skips were included in the pass count (107 `no GPU`, 1 `no GPU with 32- or 64-lane waves`). **Regression run** The synthetic test title exercised the DWM query on both revisions. Retail smoke runs are only required for runtime changes. **Not tested** - Native Windows DWM, GPU-backed workspace tests and retail titles. **AI use** - OpenAI Codex (`gpt-6.2-sol`) investigated the failure, wrote the patch and tests, ran the checks, and drafted this description. Antigravity (`Gemini 4 Neon`) coordinated, reviewed the diff, and verified the PR checks. The author reviewed the diff and description before opening the PR.
GE-Proton 11-12 returns S_OK for both DWMWA_CLOAK and DWMWA_CLOAKED, but the query fills the cloak value with zero. Require S_OK everywhere and require a nonzero value on native Windows.

Assisted-by: OpenAI Codex (gpt-6.2-sol)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:55:14 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 17:20 UTC · original

Full-suite run, since this PR has no test report yet. Tested exact head 827617e (on its base 930e8b4). Passes on both GPUs, on native Windows.

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4, run alone: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • An earlier run, done while another suite was using the machine, failed only fine_timer_makes_short_sleeps_short (Sleep(1) over its limit), a timing check this PR doesn't touch. It passed when run alone.
  • The new testtitle tests ran and passed on both GPUs: cloak_query_requires_s_ok, zero_cloak_requires_wine. test_title_runs_and_game_folder_is_untouched passed too.
  • Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, XCL_ADAPTER=radeon): 752 passed, 0 failed, 41 ignored, nothing skipped.

Not tested

  • Wine, which is the case this PR is for. This machine is Windows only.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 17:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1481#issuecomment-7139040878) Full-suite run, since this PR has no test report yet. Tested exact head `827617e` (on its base `930e8b4`). **Passes on both GPUs, on native Windows.** **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`, run alone: **752 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - An earlier run, done while another suite was using the machine, failed only `fine_timer_makes_short_sleeps_short` (`Sleep(1)` over its limit), a timing check this PR doesn't touch. It passed when run alone. - The new testtitle tests ran and passed on both GPUs: `cloak_query_requires_s_ok`, `zero_cloak_requires_wine`. `test_title_runs_and_game_folder_is_untouched` passed too. - Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, `XCL_ADAPTER=radeon`): **752 passed, 0 failed, 41 ignored**, nothing skipped. **Not tested** - Wine, which is the case this PR is for. This machine is Windows only. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 18:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/1481#issuecomment-7141293989) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:26 UTC · original

Empirical test report (827617ef)

Verified PR #1481 at 827617ef9870aa2ad10fa21ba672cb9c1226b0b6.

Hardware / environment

  • Native Windows 11 x64, build 26200, on an AMD Family 23 Model 113 Stepping 0 CPU. The focused fixtures use no D3D12 device and ran outside the Arc test wrapper with XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1.
  • rustc 1.100.0 (0ef1bc386 2026-11-09). DXC reported dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47). Cargo used its unoptimized test profile with incremental compilation and debug info disabled.

Commands and results

  • cargo test --workspace --no-run built all workspace test executables and exited 0.
  • cargo test -p xcl-testtitle --bin xcl_testtitle cloak exited 0 with 2 passed, 0 failed, 0 ignored, 0 skipped, and 0 filtered out. Both tests::zero_cloak_requires_wine and tests::cloak_query_requires_s_ok passed.

Observed behavior

  • With simulated S_OK, the checker rejected a zero cloak value for the native Windows branch and accepted zero for the Wine branch. A nonzero cloak value passed in both branches.
  • With simulated E_NOTIMPL, E_INVALIDARG, or S_FALSE, the checker reported the returned HRESULT for both zero and nonzero cloak values on either branch. The run on Windows 11 measured the checker's handling of supplied values. The zero value reported by the PR on GE-Proton 11-12 was represented by a fixture input.

Not tested

Live Windows DWM calls, Wine behavior, the full GPU workspace suite, and game smoke runs were omitted.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1481-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/1481#issuecomment-7153772228) ### Empirical test report (827617ef) Verified PR #1481 at `827617ef9870aa2ad10fa21ba672cb9c1226b0b6`. **Hardware / environment** - Native Windows 11 x64, build 26200, on an AMD Family 23 Model 113 Stepping 0 CPU. The focused fixtures use no D3D12 device and ran outside the Arc test wrapper with `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1`. - `rustc 1.100.0 (0ef1bc386 2026-11-09)`. DXC reported `dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47)`. Cargo used its unoptimized test profile with incremental compilation and debug info disabled. **Commands and results** - `cargo test --workspace --no-run` built all workspace test executables and exited 0. - `cargo test -p xcl-testtitle --bin xcl_testtitle cloak` exited 0 with 2 passed, 0 failed, 0 ignored, 0 skipped, and 0 filtered out. Both `tests::zero_cloak_requires_wine` and `tests::cloak_query_requires_s_ok` passed. **Observed behavior** - With simulated `S_OK`, the checker rejected a zero cloak value for the native Windows branch and accepted zero for the Wine branch. A nonzero cloak value passed in both branches. - With simulated `E_NOTIMPL`, `E_INVALIDARG`, or `S_FALSE`, the checker reported the returned HRESULT for both zero and nonzero cloak values on either branch. The run on Windows 11 measured the checker's handling of supplied values. The zero value reported by the PR on GE-Proton 11-12 was represented by a fixture input. **Not tested** Live Windows DWM calls, Wine behavior, the full GPU workspace suite, and game smoke runs were omitted. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1481-focused.log` and published.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 05:27 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 05:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/1481#issuecomment-7183504207) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
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/1481/head:github-bot/gh-1481'
git switch 'github-bot/gh-1481'

Merge

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