Skip to content

[pull] master from microsoft:master#92

Merged
pull[bot] merged 4 commits into
cgallred:masterfrom
microsoft:master
May 7, 2026
Merged

[pull] master from microsoft:master#92
pull[bot] merged 4 commits into
cgallred:masterfrom
microsoft:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 7, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

tyrielv added 4 commits May 6, 2026 13:47
Add staged upgrade mode to the installer, activated by /KEEPMOUNTED=true
in silent installs or via dialog in interactive mode. Without this flag,
the installer behaves as before.

When staging:
- Most files go to {app}\PendingUpgrade\ instead of replacing in-place
- GVFS.Service.exe is replaced directly (brief stop/start)
- Mount processes continue running on old binaries throughout
- .ready marker written after all files staged (guards against partial)

When not staging (clean upgrade):
- CloseApplications=no prevents Restart Manager from killing processes
- Force-kill GVFS processes if unmount-all fails to clean up
- WaitForServiceProcessToExit polls sc query after sc stop/delete

Assisted-by: Claude Opus 4.6
Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
Add PendingUpgradeHandler to apply staged upgrades using atomic file
moves (old files to PreviousVersion, staged files to install dir).
Skips GVFS.Service.exe (already replaced by installer, locked by
running service).

Safety mechanisms:
- .ready marker: rejects PendingUpgrade if installer was interrupted
- .phase1-complete marker: ensures crash during backup is recoverable
  (incomplete Phase 1 is restored and retried, not skipped)
- Defers if any GVFS.Mount processes are still running

Trigger upgrade in two ways:
- On service start: checks before automount
- After repo unmount: timer-based debounce (5s) so multiple unmounts
  in quick succession result in a single upgrade attempt

Assisted-by: Claude Opus 4.6
Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
Add upgrade-tests.yaml with matrix of 5 scenarios:
- staging-upgrade: LKG -> mount -> stage -> unmount -> verify completion
- clean-upgrade: LKG -> mount -> clean install -> verify
- double-staging: stage twice, verify second overwrites first
- staging-then-clean: stage then clean install removes PendingUpgrade
- mount-safety-deferral: verify upgrade defers while mount is running

Wire into build.yaml as a required check alongside functional tests.

Assisted-by: Claude Opus 4.6
Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
Non-disruptive upgrade: staged install with in-process file copy
@pull pull Bot locked and limited conversation to collaborators May 7, 2026
@pull pull Bot added the ⤵️ pull label May 7, 2026
@pull pull Bot merged commit 3a0f1b2 into cgallred:master May 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant