Repository navigation
fix(desktop): wait for the NSIS uninstaller copy in the Windows smoke test - #441
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
… test The smoke test ran `Uninstall.exe /S` and gave the uninstall a fixed 60 s. That launcher only copies itself to %TEMP%, starts the copy with `_?=<dir>` and exits 0 at once; the copy does the real work. On a runner as slow as windows-11-arm (install about 135 s), the copy needs about 75-80 s, so the test failed with "Uninstall.exe was not self-removed" while the uninstall was still running and later finished cleanly. - Smoke test: wait for the launcher, find its ` _?=` child by ParentProcessId, wait up to 10 min for it, and fail on its exit code (listing leftover files) before the existing file/registry checks. - Uninstaller: exit 1 when Uninstall.exe is still there after the final Delete. Before, a locked Uninstall.exe left the copy exiting 0. - Tests pin the exit-1 block, the silent-mode MessageBox guards, the child wait in the workflow. Co-Authored-By: Claude Opus 5.5 <[email protected]>
929c677 to
2094707
Compare
Summary
The desktop dry run from
main(46233085390) failed in "Smoke-test silent NSIS install and uninstall" withUninstall.exe was not self-removed after silent uninstall. The installer came with #432, and no CI run reached this step before.The uninstaller works. The smoke test stopped waiting too early:
_?=child byParentProcessId. It waits up to 10 minutes for the child and fails on a non-zero exit code, with a list of the files left. All the old file and registry checks still run after that.Uninstall.exeis still there after the finalDelete. Before, a lockedUninstall.exeleft the copy exiting 0, so the failure was silent.Verification
I ran the exact step script on a real Windows 11 ARM64 machine, over SSH (non-interactive, like the runner). The payload was the v0.0.24 app (7,618 files, 1.86 GB, signatures stripped). A CPU cap made the install as slow as on CI (~140 s against ~135 s).
Un.exestill running, finished ~78 s after startUninstall.exeheld openUninstall.exeheld openSilent NSIS uninstall failed with exit code 1, files listedMessageBoxin silent mode: every box sits under${IfNot} ${Silent}.vp test packages/desktop/__test__/windows-nsis.test.ts: 14 passed. The new tests fail when their part of the fix is reverted.yarn typecheck, lint andvp fmt --checkpass on the touched files.desktop-releaseenvironment allows onlymainandv*tags. A dry run frommainafter the merge is the real check.Review decisions (no change)
Un.exethat exits before the first process query. It cannot in practice.Un.exedeletes about 8,400 manifest entries, which took 13-22 s at full speed and 75-80 s at CI speed on the test machine. The process query runs less than 1 s after the launcher exits. AWin32_ProcessStopTracesubscription needs admin rights and makes the test more complex, for a window that does not occur.🤖 Generated with Claude Code