Skip to content

Windows parity: Install progress needs a live upgrade from a real Windows asset (testing gap) #742

Open

Description

@coneilen

Current reconciliation - 2026-11-09

The historical beta26 PSModulePath failure was source-fixed by PR #763, merged at 2ccf303a04f995184aae1d4b738a9eca0f71b79e: WindowsUpdateInstall excludes inherited PSModulePath before invoking Windows PowerShell. The four old install failures stay failed and are not reclassified as passes.

Windows beta31 now exists with a verified Windows ZIP, and merged required packaging gates exercise real lifecycle contracts. Still open / Partial: an actual in-app upgrade walkthrough showing progress, extraction, install-directory swap and recovery on the installed source. Release build/Verify/publication and package contracts are not that in-app beta30-to-beta31 execution.


The original report, acceptance criteria and historical evidence below are preserved; the dated scope/progress above supersedes obsolete missing-feature claims.

Is your feature request related to a problem?
Parity row Install progress (Updates and dialogs) in investigation/ui-parity-matrix.md is Partial.

macOS: In-window progress indicator.

Windows today: Progress UI with real download and checksum evidence (macOS DMG used as the test asset).

Gap: No extraction and upgrade of a real Windows ZIP; self-rename of the running install directory is unproven.

Describe the solution you'd like
Upgrade an installed beta26 to a newer Windows prerelease through the in-app path and record progress, extraction and the install-directory swap.

Describe alternatives you've considered
N/A

Additional context
This is a testing gap: Windows implements it; only live/runtime evidence is missing. Unblocked by the beta26 publication. Parity status and the beta25 Dev Box review are recorded in #719.

Activity

  1. added
    windows
    testing gap
    parity
    on Oct 13, 2026
  2. coneilen commented on Oct 13, 2026

    @coneilen
    CollaboratorAuthor

    Live result: Failed. Root cause found and reproduced; a fix PR is coming.

    The Dev Box run on installed beta26 updating to beta27 failed all 4 times. Each attempt went Downloading, Extracting, Installing, then failed after about 1 s with "Installing the update failed. The previous installation was kept." The installation was unchanged each time.

    Root cause

    • The Dev Box harness started the shell from a PowerShell 7 session, so its environment carried PowerShell 7's PSModulePath.
    • WindowsUpdateInstall.runPowerShell passes that environment unchanged to powershell.exe.
    • Windows PowerShell 5.1 then finds PowerShell 7's Core-only Microsoft.PowerShell.Utility first, can't load it, and loses Get-FileHash. GraphCode-Setup.ps1 -Command Upgrade exits 1:
    GraphCode-Setup.ps1 : The term 'Get-FileHash' is not recognized as the name of a cmdlet, function, script file, or operable program.
    

    When pwsh starts powershell.exe itself, it removes its own module paths first. Launching GraphCode from the Start menu inherits Explorer's clean value. That is why running Setup by hand, and the earlier checks, never hit this.

    Not the cause: the event=fatal detail=WriteFailed log lines. They are the harness's own graphcode-windows.exe --version probes with stdout not redirected.

    Why CI missed it: WindowsUpdateInstall.Live.Tests.ps1 never runs a real Upgrade. It stops at ExtractionFailed on a non-ZIP asset.

    Local reproduction. I drove the real beta27 asset through WindowsUpdateInstall.install() into a scratch beta26 install, with the installed shell running and a pwsh 7 PSModulePath:

    • unfixed: UpgradeFailed, and the shell stayed beta26 (71e54930…);
    • with the fix (drop PSModulePath from the child environment): success, and the shell became beta27 (9f3553ad…), the daemon ran from the new install, and graphcode projects worked.

    Still needed to close this: a live in-app upgrade on a build that contains the fix. The leftover rollback directory this exposed is tracked in #758. The generic failure reason is noted on #744.

  3. added
    P2 feature
    on Oct 14, 2026
  4. self-assigned this
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2 featureparitytesting gapwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions