Skip to content

Commit

Permalink
Fix various issues with WTI (#11391)
Browse files Browse the repository at this point in the history
  • Loading branch information
OneBlue authored Mar 27, 2024
1 parent 57783aa commit 0e7458e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/triage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ runs:
$maybe_comment = @("--comment", "${{ inputs.comment }}")
}
curl.exe -L https://github.com/OneBlue/wti/releases/download/v0.1.3/wti.exe -o triage/wti.exe
curl.exe -L https://github.com/OneBlue/wti/releases/download/v0.1.4/wti.exe -o triage/wti.exe
cd triage && echo -n $message | .\wti.exe --issue ${{ inputs.issue }} --config config.yml --github-token "${{ inputs.token }}" --ignore-tags @maybe_message @maybe_comment
19 changes: 16 additions & 3 deletions triage/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,60 +153,73 @@ actions:
- foreach:
var: user-visible-error
debug_message: 'Detected user visible error: $error'
skip_similar_issues: false


- when:
condition: 'kernel-panic'
debug_message: 'Found evidence of kernel panic: $kmsg'
skip_similar_issues: false

- when:
condition:
and: ['oom', 'booting']
user_message: 'The logs show that WSL2 ran out of memory. Try increasing wsl2.memory in .wslconfig and see if that solves the issue.'
debug_message: 'Found evidence of OOM kill: $oom-error'
tag: needs-author-feedback
skip_similar_issues: true

- when:
condition:
and: ['vm-failed-to-start', 'hyperv-firmware-expired']
user_message: 'The logs show that your Hyper-V firmware is expired. Please update your Windows build and see if that solves the issue'
tag: needs-author-feedback
skip_similar_issues: true


- when:
condition:
and: ['vm-failed-to-start', 'corrupted-initramfs']
user_message: 'Your WSL installation seems corrupted. Please try to download and install the [latest WSL release](https://github.com/microsoft/WSL/releases/latest)'
tag: needs-author-feedback
skip_similar_issues: true

- when:
condition:
and: [{not: 'service-running'}, 'service-disabled-error']
user_message: 'The logs show that wslservice is disabled. Try to run (elevated command prompt): `sc.exe config wslservice start= demand` and see if that solves the issue'
tag: needs-author-feedback

skip_similar_issues: true

- when:
condition:
and: ['vm-failed-to-start', 'hns-fatal-error']
user_message: 'An HNS error seems to be causing WSL2 to fail to start. Adding network tag'
debug_message: 'Found HNS error: $error'
tag: 'network'

- when:
condition:
and: ['vm-failed-to-start', 'vmswitch-known-issue']
user_message: 'Known vmswitch issue found (error: $error). Adding network tag'
debug_message: 'Found evidence of vmswitch error: $error'
tag: 'network'
skip_similar_issues: true


- when:
condition: 'ext4-error'
user_message: 'The logs shows that a disk mount error occured. Try to [follow these repair instructions](https://learn.microsoft.com/en-us/windows/wsl/disk-space#how-to-repair-a-vhd-mounting-error) and see if that solves the issue.'
debug_message: 'Found evidence of ext4 error: $error'
tag: 'needs-author-feedback'
skip_similar_issues: true


- when:
condition:
not:
or: ['wsl-client-logs', 'wsl-service-logs']
user_message: "The log file doesn't contain any WSL traces. Please make sure **that you reproduced the issue while the log collection was running.**"
debug_message: 'Found no WSL traces in the logs'
tag: 'needs-author-feedback'
tag: 'needs-author-feedback'
skip_similar_issues: false

0 comments on commit 0e7458e

Please sign in to comment.