Add a WTI rule to catch disks failing to attach (#11886)
Blue committed
Aug 8, 2024 at 18:25 UTC
358449302db3ff842a869683955fe7eaac28cf6c
2 files changed
+16
-1
.github/actions/triage/action.yml
+1
-1
@@ -51,6 +51,6 @@ runs:
51
$maybe_previous_body = @("--previous-issue-body", "previous_body.txt")
52
}
53
54
- curl.exe -L https://github.com/OneBlue/wti/releases/download/v0.1.10/wti.exe -o triage/wti.exe
54
+ curl.exe -L https://github.com/OneBlue/wti/releases/download/v0.1.11/wti.exe -o triage/wti.exe
55
56
cd triage && echo -n $message | .\wti.exe --issue ${{ inputs.issue }} --config config.yml --github-token "${{ inputs.token }}" --ignore-tags @maybe_message @maybe_comment @maybe_previous_body
\ No newline at end of file
triage/config.yml
+15
@@ -228,12 +228,27 @@ rules:
228
field7: error
229
oneshot: true
230
231
+ - logline:
232
+ provider: Microsoft-Windows-VHDMP
233
+ task: VHD_VIRTUAL_DISK_HANDLE_CREATE_TASK
234
+ event: 'Microsoft-Windows-VHDMP/VHD_VIRTUAL_DISK_HANDLE_CREATE_TASK/win:Stop'
235
+ field1: {not: '0x00000000'}
236
+ set:
237
+ name: disk-attach-error
238
+ capture:
239
+ field1: error
240
+ field2: vhdpath
241
+
242
actions:
243
- foreach:
244
var: user-visible-error
245
debug_message: 'Detected user visible error: $error'
246
skip_similar_issues: false
247
248
+ - foreach:
249
+ var: disk-attach-error
250
+ debug_message: 'Found evidence of disk failing to attach. Error: $error, Path: $vhdpath'
251
+
252
- when:
253
condition: 'init-crash'
254
debug_message: 'Found evidence of init crash: $error'