Repository navigation
fix(self): every scenario runs, and self uninstall on Windows leaves no manifest behind - #1106
Merged
David-Noble-at-work merged 7 commits intoOct 20, 2026
Conversation
David-Noble-at-work
deleted the
fix/1045-self-uninstall-on-windows-leaves
branch
October 20, 2026 19:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
make test-scenarionamed four scenario tests and notTestSelfUninstallFromInstalledCopyScenario(self uninstall on Windows leaves the running .exe behind, calls it modified, and deletes the manifest that recorded it #1003), so it never ran, though Schedule: the install scripts tell the truth, upgrade fetches, and Windows has an installer #949's lane 26 reported it passing in CI. It runs now.make test,TestScenarioTargetRunsEveryScenario, parsescmd/scenarioandcmd/writ. It finds every test that readsDEVLORE_SCENARIO_RUNorWRIT_SCENARIO_RUN, itself or through a function it calls (the writ scenarios gate in helpers), and fails for each that no-runpattern of the recipe runs..exeto a detachedcmd.exeand rewrote the manifest to record it;cmd.exedeleted the.exe, and nothing deleted the manifest.runSelfUninstallremoves every other recorded file first. When the.exeis all that remains,cmd.exedeletes the manifest, then its directory if empty, once the.exeis gone..exe. If other files were kept, it stays recording them.docs/plans/fix/1045-self-uninstall-on-windows-leaves.md.Resolves #1045
Test plan
make testfails for the scenario left out, then passes with it named;make test-scenariohere runs the uninstall scenario and it passes on Linuxmake test-scenario:1e910ac1(the scenario run, without the fix), lore, star and writ each "left its manifest behind after uninstall";6fd484c6, every scenario passes.make vet-allon linux, darwin and windowsmake test-raceandmake test-scenarioWritten with AI assistance.
Signed-off-by: David Noble [email protected]
Assisted-by: Claude Code
Time
Computed by the algorithm of noblefactor-ops#188 at merge.