diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2022-03-02 00:09:19 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2022-03-02 11:20:49 -0600 |
| commit | 7f2a43f8864a0e3c1c939f40620de22d952b084c (patch) | |
| tree | 13707f95d7bdee0ea10e7701a5ba38f158fc4bc8 | |
| parent | 89c476396d7ad6ab7c596300ec082dd9c38b9121 (diff) | |
| download | wix-7f2a43f8864a0e3c1c939f40620de22d952b084c.tar.gz wix-7f2a43f8864a0e3c1c939f40620de22d952b084c.tar.bz2 wix-7f2a43f8864a0e3c1c939f40620de22d952b084c.zip | |
Export event logs to try to diagnose E2E test failures.
| -rw-r--r-- | .github/workflows/build.yml | 10 | ||||
| -rw-r--r-- | appveyor.yml | 2 |
2 files changed, 12 insertions, 0 deletions
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: | |||
| 53 | shell: cmd | 53 | shell: cmd |
| 54 | run: 7z a "build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log" | 54 | run: 7z a "build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log" |
| 55 | 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 | |||
| 56 | - name: Save logs | 66 | - name: Save logs |
| 57 | if: always() | 67 | if: always() |
| 58 | uses: actions/upload-artifact@v2 | 68 | 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: | |||
| 28 | - 7z a "build\testresults.zip" @src\testresultfilelist.txt | 28 | - 7z a "build\testresults.zip" @src\testresultfilelist.txt |
| 29 | 29 | ||
| 30 | on_finish: | 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]" | ||
| 31 | - ps: 7z a ('temp_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') $env:TEMP\*.log $env:TEMP\..\*.log | 33 | - ps: 7z a ('temp_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') $env:TEMP\*.log $env:TEMP\..\*.log |
| 32 | - ps: 7z a ('build_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') build\logs\ build\logs\TestResults\ | 34 | - ps: 7z a ('build_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') build\logs\ build\logs\TestResults\ |
| 33 | - ps: Push-AppveyorArtifact temp_logs_*.zip | 35 | - ps: Push-AppveyorArtifact temp_logs_*.zip |
