Use wsl --update --web-download on windows-2022 GHA - #87
Open
SebTardif wants to merge 1 commit into
Open
Conversation
On github-hosted windows-2022 runners this action always runs platform `wsl --update` for WSL2. The default Store path intermittently fails with Forbidden (403) (issue Vampire#72). Prefer --web-download so the update uses the public CDN, matching the workaround consumers already apply in CI.
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
On github-hosted windows-2022 runners this action always runs platform
wsl --updatefor WSL2 before installing a distro. That path hits the Microsoft Store and intermittently fails with Forbidden (403) (see #72).This change passes
--web-downloadso the update uses the public CDN instead of the Store path.Motivation / evidence
In patchloom CI the failure reproduced twice on main after a green stretch:
wsl.exe --update→Forbidden (403).(exit 4294967295)update: falseonly skips distro apt upgrade, not this platform updateConsumer workaround that succeeded on the same image class: run
wsl --update --web-downloadfirst; the action's subsequent Store update then reported "most recent version already installed". Encoding--web-downloadhere removes the need for every consumer to pre-step.Change
Only affects the existing win22 / X64 / github-hosted / WSL2≠1 branch.
Test plan
Refs: #72