Skip to content

Commit

Permalink
Display a special message if the published logs don't contain any WSL…
Browse files Browse the repository at this point in the history
… traces (#11374)

* Display a special message if the published logs don't contain any WSL traces

* Mark wsl-client-logs as oneshot

* Update to 1.0.3
  • Loading branch information
OneBlue authored Mar 26, 2024
1 parent f558725 commit 57783aa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
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.1/wti.exe -o triage/wti.exe
curl.exe -L https://github.com/OneBlue/wti/releases/download/v0.1.3/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: 19 additions & 0 deletions triage/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,17 @@ rules:
name: ext4-error
capture:
field1: error

- logline:
provider: Microsoft.Windows.Lxss.Manager
set: wsl-service-logs
oneshot: true

- logline:
provider: Microsoft.Windows.Subsystem.Lxss
set: wsl-client-logs
oneshot: true

actions:
- foreach:
var: user-visible-error
Expand Down Expand Up @@ -190,4 +201,12 @@ actions:
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'

- 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'

0 comments on commit 57783aa

Please sign in to comment.