Tests: accept Wine’s zero DWM cloak value after a successful query #1471
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1481"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by gurvancampion on 2026-11-24T16:46:53Z.
GE-Proton 11-12 returns
S_OKfor both DWM calls but reports zero forDWMWA_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.What is in it
tests/testtitle/src/main.rschecks the query HRESULT on every host and tests the Wine exception and native Windows requirement.Tested
rustc 1.99.0,cargo-xwin 0.24.1, debugx86_64-pc-windows-msvc. The RTX 5090 was disabled for testing (NO_GPU=1, Vulkan ICD disabled, Wine built-in DXGI withrenderer=no3d).cargo xwin build --workspace --target x86_64-pc-windows-msvcpassed 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 -- --nocaptureprinted[FAIL] user32 … W: not cloakedon main and[PASS] user32on 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 -- --nocapturehad 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. Main930e8b4had 737 passed, 14 failed and 41 ignored. PR commit827617ehad 739 passed, the same 14 failed and 41 ignored. On each commit, 108 GPU skips were included in the pass count (107no GPU, 1no 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
AI use
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.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T17:20:11Z.
Full-suite run, since this PR has no test report yet. Tested exact head
827617e(on its base930e8b4). Passes on both GPUs, on native Windows.Tested
cargo build --workspace, thenXCL_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.fine_timer_makes_short_sleeps_short(Sleep(1)over its limit), a timing check this PR doesn't touch. It passed when run alone.cloak_query_requires_s_ok,zero_cloak_requires_wine.test_title_runs_and_game_folder_is_untouchedpassed too.XCL_ADAPTER=radeon): 752 passed, 0 failed, 41 ignored, nothing skipped.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:22Z.
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 unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:26:23Z.
Empirical test report (
827617ef)Verified PR #1481 at
827617ef9870aa2ad10fa21ba672cb9c1226b0b6.Hardware / environment
XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1.rustc 1.100.0 (0ef1bc386 2026-11-09). DXC reporteddxcompiler.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-runbuilt all workspace test executables and exited 0.cargo test -p xcl-testtitle --bin xcl_testtitle cloakexited 0 with 2 passed, 0 failed, 0 ignored, 0 skipped, and 0 filtered out. Bothtests::zero_cloak_requires_wineandtests::cloak_query_requires_s_okpassed.Observed behavior
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.E_NOTIMPL,E_INVALIDARG, orS_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.logand published.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:27:37Z.
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
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:32:34Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:54:22Z.
Triage (#1607) – head
e365a19#1462 fixes the same test-title failure under Wine (
W: not cloaked) a different way: with #794, it requires the window to be cloaked or hidden, and to stay hidden afterShowWindow/SetWindowPos. This PR instead drops the nonzero-cloak requirement whenwine_get_versionis exported, so under Wine it no longer checks that the console window is concealed. It does now requireS_OKfrom the query. The maintainer should pick one; #1462 is stricter but needs #794.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.