Repository navigation
test: add WSL import failure diagnostics - #337242
Merged
Merged
Conversation
Capture WSL, virtualization, service, reboot, and recent event state without masking the original import exit code. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The diagnostic probes are bounded, independently guarded, and preserve the original failure context.
Review effort: Balanced
Findings: None
What changed in this PR
Adds failure-only diagnostics to Windows WSL smoke-test provisioning.
Changes:
- Reports WSL, virtualization, feature, service, reboot, and recent event state.
- Preserves the original import exit code when diagnostics fail.
| File | Description |
|---|---|
test/smoke/wslDevContainer.ps1 |
Collects guarded diagnostics after failed WSL2 imports. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Christof Marti (chrmarti)
marked this pull request as ready for review
September 22, 2026 13:03
Christof Marti (chrmarti)
enabled auto-merge (squash)
September 22, 2026 13:03
Henning Dieterichs (hediet)
approved these changes
Sep 22, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
wsl --importexit code even when individual diagnostics failThis adds actionable failure output for cases such as the Windows Electron-Smoke failure on #337233, where
wsl --import --version 2returned exit code-1withThe interface is unknownon one hosted VM while an identical concurrent runner succeeded.Diagnostic sections are failure-only and independently guarded. Missing event channels, unavailable services, or insufficient permissions produce warnings instead of replacing the original import error. Event output is limited to 10 entries per channel from the previous 10 minutes.
Validation
test/smoke/wslDevContainer.ps1with the PowerShell parsergit diff --checkA full WSL smoke setup was not run locally because it modifies host WSL distributions and firewall state and downloads the CI test assets.