e2e: the console screen may be hidden where DWM cannot cloak it #1462
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1462
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1462"
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?
@crastinator on GitHub · 2026-11-24 16:27 UTC · original
crastinator:testtitle-hidden-console-window→main· +44 −19 · 1 files · 1 commits · openThe e2e test title's window check required
DWMWA_CLOAKED != 0. Under Wine,DwmGetWindowAttribute(DWMWA_CLOAKED)returns S_OK withcloaked 0, since there is no DWM cloaking, so the check fails on every Linux and macOS run (W: not cloaked). #794 makes XCL hide the window in that case. This updates the check to match, and also tests the second half of #794: a title showing the window again must not bring it back. Part of #175; a test-only companion to #794.It is based on
main, not stacked on #794, so it stays test-only. Under Wine the check passes only once #794 is merged. On Windows the window is cloaked, so it passes as before.What is in it
tests/testtitle/src/main.rs, the user32 window check:ShowWindow(SW_SHOW)andSetWindowPos(SWP_SHOWWINDOW | SWP_NOACTIVATE)it must still be cloaked or hidden;cloakedvalue.Tested
-Db_ndebug=true, dxil-spirv53aac418from #775), DXVK v3.1.1-209dxgi, DXC 1.9.2609.5, libopus 1.5.2. Cross-built forx86_64-pc-windows-msvc(clang-cl / lld-link, xwin SDK 10.0.26100), Rust 1.99.1, debug. The test binaries ran under Wine.cargo test -p xcl --test e2e):bee31d5) merged[PASS], 3/3main)[FAIL] W: neither cloaked nor hidden (DwmGetWindowAttribute 0x0, cloaked 0)mainbefore this PR, with #794[FAIL] W: not cloakedpos.flags &= !SWP_SHOWWINDOWremoved (local control)[FAIL] W: shown after ShowWindow / SetWindowPos(SWP_SHOWWINDOW)cargo test --workspace --no-fail-fast -- --test-threads=4: 735 passed, 16 failed, 41 ignored, 0 SKIPPED (XCL_REQUIRE_GPU=wave64,mesh). These are the same failures as onmainunder Wine: #530 ×2, #676, #890 ×2 (+ e2e),pls_quota#810,predication_e2e#1272, #1246 and its 7-test parallel cascade (#1246).--test-threads=1: no test fails that passes onmain930e8b4.[PASS]×50, no[FAIL]). The e2e test then stops atreport.called_stubs: [](e2e.rs:164). That's a separate Wine issue, filed as #1461.Regression run
tests/testtitle).Not tested
813615con Windows 11, on an RTX 5070 Ti and on a Ryzen 9800X3D's RDNA2 iGPU: 751 passed, 0 failed, 41 ignored on both, so the cloaked branch and the show step pass on a real DWM (comment).XCL_SAMPLE_*set.AI use
@futurepro62 on GitHub · 2026-11-24 16:56 UTC · original · edited 2026-11-24 17:12 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
813615c(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 751 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.#[test]functions in the diff.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 751 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 18:52 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 unmodifiedmain.)Thanks!
@vakaobr on GitHub · 2026-11-25 18:09 UTC · original
Tested
813615con a Mac, with #794: the window check passes there.Tested (MacBook Pro M5 Pro, macOS 27.2.1, CrossOver 26.3.0, D3DMetal 3.0, Rust 1.100.0
x86_64-pc-windows-gnu, debug), cherry-picked with #794 onto the Mac branch from #258 (vakaobr/xclmac/integration, now5f9a58f), not ontomain.xcl run3 times: all 50 checks pass and it exits with 0, theuser32 …check included. Without the two it failsW: not cloaked.DwmGetWindowAttribute(DWMWA_CLOAKED)returnsE_NOTIMPL(0x80004001) rather than theS_OKwith 0 in the description and commit message. The check already covers that ((hr >= 0 && cloaked != 0) || IsWindowVisible(h) == 0), so only the wording differs.Not tested: Windows,
mainwithout #794.AI use: Claude Code with Claude Opus 5.5 ran the tests and wrote this report.
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.