From 8c9883fb4da72d3427a84a026eaf03c7bfc31417 Mon Sep 17 00:00:00 2001 From: Blue Date: Tue, 9 Apr 2024 21:17:30 +0000 Subject: [PATCH] Add WTI logic to identify when VirtualMachinePlatform needs to be enabled (#11438) --- .github/actions/triage/action.yml | 2 +- triage/config.yml | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.github/actions/triage/action.yml b/.github/actions/triage/action.yml index 4420b9b7..aea45507 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.4/wti.exe -o triage/wti.exe + curl.exe -L https://github.com/OneBlue/wti/releases/download/v0.1.5/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 f1126c13..a7255f2d 100644 --- a/triage/config.yml +++ b/triage/config.yml @@ -31,6 +31,13 @@ logs_rules: missing_logs_add_tags: ['needs-author-feedback'] skip_tags: ['feature', 'question', 'emailed-logs', 'network'] +optional_component_rules: + - name: VirtualMachinePlatform + set: vmp-oc-enabled + + - name: Microsoft-Windows-Subsystem-Linux + set: wsl-oc-enabled + tags_rules: - contains: '/question' tag: 'question' @@ -97,7 +104,16 @@ rules: name: vm-failed-to-start capture: field4: error - + + - logline: + provider: Microsoft.Windows.Lxss.Manager + task: Error + field8: '0x8004032D' # 0x8004032D = WSL_E_VIRTUAL_MACHINE_PLATFORM_REQUIRED + set: + name: vmp-required + capture: + field8: error + - logline: provider: Microsoft.Windows.Lxss.Manager set: service-running @@ -232,3 +248,13 @@ actions: debug_message: 'Found no WSL traces in the logs' tag: 'needs-author-feedback' skip_similar_issues: false + + - when: + condition: + and: + - vmp-required + - not: vmp-oc-enabled + debug_message: 'Found evidence of virtual machine platform component missing: $error' + user_message: 'It appears that the VirtualMachinePlatform optional component is not enabled. Please try running: `dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart`, then reboot and see if that solves the issue.' + skip_similar_issues: false + tag: 'needs-author-feedback'