@joebigelow / wix-1 / commits / 7f2a43f8

Export event logs to try to diagnose E2E test failures.

Sean Hall committed Mar 2, 2022 at 00:09 UTC 7f2a43f8864a0e3c1c939f40620de22d952b084c
2 files changed +12
.github/workflows/build.yml
+10
@@ -53,6 +53,16 @@ jobs:
53 shell: cmd
54 run: 7z a "build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log"
55
56 + - name: Export Application event log
57 + if: always()
58 + shell: cmd
59 + run: wevtutil epl Application build\logs\Application.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]"
60 +
61 + - name: Export System event log
62 + if: always()
63 + shell: cmd
64 + run: wevtutil epl System build\logs\System.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]"
65 +
66 - name: Save logs
67 if: always()
68 uses: actions/upload-artifact@v2
appveyor.yml
+2
@@ -28,6 +28,8 @@ after_build:
28 - 7z a "build\testresults.zip" @src\testresultfilelist.txt
29
30 on_finish:
31 + - wevtutil epl Application build\logs\Application.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]"
32 + - wevtutil epl System build\logs\System.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]"
33 - ps: 7z a ('temp_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') $env:TEMP\*.log $env:TEMP\..\*.log
34 - ps: 7z a ('build_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') build\logs\ build\logs\TestResults\
35 - ps: Push-AppveyorArtifact temp_logs_*.zip