From 7f2a43f8864a0e3c1c939f40620de22d952b084c Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 2 Mar 2022 00:09:19 -0600 Subject: Export event logs to try to diagnose E2E test failures. --- .github/workflows/build.yml | 10 ++++++++++ appveyor.yml | 2 ++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bee8f654..2a2d0626 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,6 +53,16 @@ jobs: shell: cmd run: 7z a "build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log" + - name: Export Application event log + if: always() + shell: cmd + run: wevtutil epl Application build\logs\Application.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" + + - name: Export System event log + if: always() + shell: cmd + run: wevtutil epl System build\logs\System.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" + - name: Save logs if: always() uses: actions/upload-artifact@v2 diff --git a/appveyor.yml b/appveyor.yml index 7cfc64bf..b69e2974 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -28,6 +28,8 @@ after_build: - 7z a "build\testresults.zip" @src\testresultfilelist.txt on_finish: + - wevtutil epl Application build\logs\Application.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" + - wevtutil epl System build\logs\System.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" - ps: 7z a ('temp_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') $env:TEMP\*.log $env:TEMP\..\*.log - ps: 7z a ('build_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') build\logs\ build\logs\TestResults\ - ps: Push-AppveyorArtifact temp_logs_*.zip -- cgit v1.2.3-55-g6feb