Skip to content

fix(self): every scenario runs, and self uninstall on Windows leaves no manifest behind - #1106

Merged
David-Noble-at-work merged 7 commits into
developfrom
fix/1045-self-uninstall-on-windows-leaves
Oct 20, 2026
Merged

David-Noble-at-work merged 7 commits into
developfrom
fix/1045-self-uninstall-on-windows-leaves

Conversation

@David-Noble-at-work

@David-Noble-at-work David-Noble-at-work commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Lane 31 of #949. Two defects, found 2026-10-19 auditing #949. The fix for the first is the test that proves the second.

  • Every scenario runs (self uninstall on Windows leaves its manifest behind, and the scenario that would have caught it never runs #1045).
  • On Windows, the manifest goes with the running image.
    • An uninstall from the installed copy handed the running .exe to a detached cmd.exe and rewrote the manifest to record it; cmd.exe deleted the .exe, and nothing deleted the manifest.
    • Now runSelfUninstall removes every other recorded file first. When the .exe is all that remains, cmd.exe deletes the manifest, then its directory if empty, once the .exe is gone.
    • If the deletion never succeeds, the manifest stays recording the .exe. If other files were kept, it stays recording them.
    • Ruled 2026-10-20, D2: "Yes, cmd.exe deletes the manifest."
  • Plan: docs/plans/fix/1045-self-uninstall-on-windows-leaves.md.

Resolves #1045

Test plan

  • make test fails for the scenario left out, then passes with it named; make test-scenario here runs the uninstall scenario and it passes on Linux
  • danoble-wd11-3 (windows/arm64), make test-scenario:
    • at 1e910ac1 (the scenario run, without the fix), lore, star and writ each "left its manifest behind after uninstall";
    • at 6fd484c6, every scenario passes.
  • make vet-all on linux, darwin and windows
  • This script's pre-flight: CI's whole quality gate, the install.ps1 suite off Windows, make test-race and make test-scenario
  • CI on this pull request, every leg: the scenario legs on windows-amd64 and windows-arm64 run the uninstall scenario for the first time

Written with AI assistance.

Signed-off-by: David Noble [email protected]
Assisted-by: Claude Code

Time

Marker UTC Elapsed
opened (first commit) 2026-10-20T18:34:54Z —
submitted (PR opened) 2026-10-20T19:02:02Z 0.5 h after opened
merged 2026-10-20T19:38:04Z 0.6 h after submitted; 1.1 h in all

Computed by the algorithm of noblefactor-ops#188 at merge.

@David-Noble-at-work
David-Noble-at-work merged commit 720b3db into develop Oct 20, 2026
21 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the fix/1045-self-uninstall-on-windows-leaves branch October 20, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

self uninstall on Windows leaves its manifest behind, and the scenario that would have caught it never runs

1 participant