Repository navigation
fix(tests): exercise no-Vulkan shutdown during DLL teardown - #14215
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The CMake change gives the no-Vulkan test an unwrapped Windows executable so it can cover DLL teardown; the source and supplied focused Windows evidence support that purpose.
What I ran
Reviewed head a568bd9d04e3f3a25eddbb5f0c4fa7ff4fd7ee6b. Current main was cc26ab44380db3cd7b53715b84f13945227ce28b; the PR API still reports base SHA 14b9cc5a8c6bef60cd82b5e3b067139b549380a8. The current-main merge preview was clean. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5; no compiler or build was run locally.
git diff --check cc26ab44380db3cd7b53715b84f13945227ce28b...a568bd9d04e3f3a25eddbb5f0c4fa7ff4fd7ee6b
python3 tools/check_conventions.py --base refs/remotes/upstream/main --head a568bd9d04e3f3a25eddbb5f0c4fa7ff4fd7ee6b --title 'fix(tests): exercise no-Vulkan shutdown during DLL teardown' --body /tmp/anyps5-14215-body.md
python3 tools/pr_stack_check.py 14215 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-14215-latestResults
| Check | Result |
|---|---|
git diff --check |
Passed; no output. |
| Repository conventions and PR template | Passed. |
| Current-main merge preview | Clean; no declared dependency. |
| Hosted checks | Conventions, intake, and labels were pending at the last check. |
| Focused Windows build and CTest | Author-reported pass on the exact PR head; not run locally. |
Unedited output from local checks
git diff --check produced no output and exited successfully.
All conventions checks passed.
# PR stack check — fresh
Target: https://github.com/boykopovar/AnyPS5/pull/14215
Target branch tip: `cc26ab44380db3cd7b53715b84f13945227ce28b`
All heads unchanged: **True**
Dependency order: #14215
## Individual merge previews
- PR #14215: **clean** against current base; head `a568bd9d04e3f3a25eddbb5f0c4fa7ff4fd7ee6b`; changed paths: none reported
## Dependency relationships
No declared PR dependencies were found in the target PR chain.
## Limits
Merge previews apply each exact PR head independently to the current base. A dependency head that is absent from its dependent is reported separately from merge conflicts; file overlap is only a signal and does not prove a conflict. This tool does not build, resolve conflicts, publish comments, or update branches.
Negative control
The author reports that restoring the historical profile-output Stop() call made the unwrapped no-Vulkan test fail during DLL teardown in three of three runs. I did not reproduce that mutation locally.
Sources
- Changed Windows test registration at the reviewed head
- Windows test wrapper at the reviewed head
- Driver destructor and shutdown path at the reviewed head
Not verified
- I did not build or run CTest locally; the focused Windows results and teardown mutation are author-reported, not independently reproduced.
- Linux/macOS behavior and console behavior were not exercised. The added registration is Windows-only.
- The repository precheck's test-quality helper could not run because that helper script is not present in the isolated PR snapshot; this CMake-only change does not modify a C++ test source.
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
What
The no-Vulkan WQHD regression test returned 77 through
WindowsTestExit, which calls libc termination before DLL detach. Consequently it no longer exercised the AGC destructor or caught the original profile-output thread creation during process exit.Build the existing test source as a separate Windows executable without that wrapper and route only the no-Vulkan case through it. Reuse the existing dependencies, unwind configuration, timeout, skip code and test environment.
Fixes #14149.
Tested
Windows 10 Home 10.0.19045, AMD Ryzen 7 5800X, 32 GiB RAM; WinLibs GCC 15.2.0 UCRT POSIX (release 15.2.0posix-14.0.0-ucrt-r7), CMake 4.3.1, Ninja 1.13.2, Python 3.14.5. Tests ran at medium integrity. No retail title was used.
guest_video_out_wqhd_detection_testsandguest_video_out_wqhd_detection_exit_testspassed.mainat8a4fc62318a4b73b6895bf20a024c625efeb7c3b. Candidate:a568bd9d04e3f3a25eddbb5f0c4fa7ff4fd7ee6b. Both run the same focused CTest pattern withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationand the same local validation-layer build (Khronos nightly commit16a40098c4279a6caf24204bf388c744bc6c30cf). NoVUID-errors or missing-requested-layer warnings in either log.b08c539c505c48341146c705bc72d9b603cdb3a7, before rebasing.Driver/Lifecycle.cppis unchanged between that base and the current base. A stop probe ending the process with code 42 was missed by the original wrapped no-Vulkan test and detected by the unwrapped one.ProfileOutput_nid_no_patch().Stop()call makes the existing wrapped case still skip, while the unwrapped case fails withSt12system_errorduring DLL teardown in 3/3 runs. The final registeredguest_video_out_wqhd_detection_no_vulkancase also detects that mutation (0.13 s). The mutation and probes were removed and the clean driver rebuilt.python tools/check_conventions.py --base origin/mainandgit diff --checkpass.python tools/pr_overlap.py --branch fix/14149-shutdown-regression --base main --repo boykopovar/AnyPS5 --jobs 6inspected 1,697 open PRs. It reported five unverified shared-file comparisons because those PRs conflict with the base. I manually reviewed their VideoOut CMake diffs: feat(aot): consolidate native ARM64 compiler, runtime and consumers #5021 (native graphics gating), feat(pad): complete DualSense adaptive trigger support #10112 (DualSense status test), build(videoout): link one SDL copy on macOS #11119 (macOS SDL linking), feat(videoout): add ANYPS5_FPS_LIMIT to cap the rate the window presents #12536 (FPS limit test), and feat(libSceVideoOut): opt-in host pause with a key or on focus loss #12863 (host pause). None changes this WQHD block or implements this shutdown fix. No dependency was found.Elevated Vulkan loaders may ignore the missing-ICD overrides and take the successful-open path; the missing-device reproduction here was verified at medium integrity. Full repository CI has not been run locally; this evidence covers the focused build and tests.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Fresh main baseline
Rebased candidate, first of three clean runs
Original regression: wrapped case skips, unwrapped case fails (initial base)
Historical mutation detected by final test registration (initial base)
100-run clean missing-ICD stress summary (initial base)