From 57783aabf2a814437762d706d8334ec4315e0d55 Mon Sep 17 00:00:00 2001 From: Blue Date: Tue, 26 Mar 2024 18:37:02 +0000 Subject: [PATCH] Display a special message if the published logs don't contain any WSL 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 --- .github/actions/triage/action.yml | 2 +- triage/config.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/actions/triage/action.yml b/.github/actions/triage/action.yml index c39569e0..12edf55f 100644 --- a/.github/actions/triage/action.yml +++ b/.github/actions/triage/action.yml @@ -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 \ No newline at end of file diff --git a/triage/config.yml b/triage/config.yml index 89acafd2..83b599e1 100644 --- a/triage/config.yml +++ b/triage/config.yml @@ -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 @@ -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' \ No newline at end of file