aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2022-03-07 17:36:17 -0600
committerSean Hall <r.sean.hall@gmail.com>2022-03-07 19:53:35 -0600
commit67274acee7b9b4d989cf354f7cc3f1665d12b80c (patch)
treeebdf9615d9f0bf723257d6c9a95042bba9bc8c6e
parentfc41b90c2746c78ec7b1d7f9a14686ddc09fed12 (diff)
downloadwix-67274acee7b9b4d989cf354f7cc3f1665d12b80c.tar.gz
wix-67274acee7b9b4d989cf354f7cc3f1665d12b80c.tar.bz2
wix-67274acee7b9b4d989cf354f7cc3f1665d12b80c.zip
Configure crash dumps and get them and pdbs in the logs artifact
-rw-r--r--.github/workflows/build.yml12
-rw-r--r--appveyor.yml7
-rw-r--r--src/Directory.Build.props2
-rw-r--r--src/build_init.cmd1
-rw-r--r--src/test/burn/test_burn.cmd3
5 files changed, 20 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index de2d426f..f7385584 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -30,6 +30,18 @@ jobs:
30 # shell: cmd 30 # shell: cmd
31 # run: ./src/vs_config.cmd 31 # run: ./src/vs_config.cmd
32 32
33 - name: Configure automated logging and crash dumps
34 shell: cmd
35 run: |
36 reg add HKLM\Software\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f
37 reg add HKLM\Software\WOW6432Node\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f
38 reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_EXPAND_SZ /v DumpFolder /d "%CD%\build\logs\crashdumps" /f
39 reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpCount /d 10 /f
40 reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 1 /f
41 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_EXPAND_SZ /v DumpFolder /d "%CD%\build\logs\crashdumps" /f
42 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpCount /d 10 /f
43 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 1
44
33 - name: Build wix4 45 - name: Build wix4
34 shell: cmd 46 shell: cmd
35 run: ./src/build_official.cmd 47 run: ./src/build_official.cmd
diff --git a/appveyor.yml b/appveyor.yml
index c8446afd..9ff158b4 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -2,7 +2,6 @@
2 2
3branches: 3branches:
4 only: 4 only:
5 - master
6 - develop 5 - develop
7 6
8image: Visual Studio 2022 7image: Visual Studio 2022
@@ -23,6 +22,12 @@ environment:
23install: 22install:
24 - reg add HKLM\Software\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f 23 - reg add HKLM\Software\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f
25 - reg add HKLM\Software\WOW6432Node\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f 24 - reg add HKLM\Software\WOW6432Node\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f
25 - reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_EXPAND_SZ /v DumpFolder /d "%CD%\build\logs\crashdumps" /f
26 - reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpCount /d 10 /f
27 - reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 1 /f
28 - reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_EXPAND_SZ /v DumpFolder /d "%CD%\build\logs\crashdumps" /f
29 - reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpCount /d 10 /f
30 - reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 1
26 31
27build_script: 32build_script:
28 - src\build_official.cmd 33 - src\build_official.cmd
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index 36a8c7bd..90de177c 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -11,7 +11,7 @@
11 <ProjectName Condition=" '$(ProjectName)' == '' ">$(MSBuildProjectName)</ProjectName> 11 <ProjectName Condition=" '$(ProjectName)' == '' ">$(MSBuildProjectName)</ProjectName>
12 <RootBuildFolder>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\build\))</RootBuildFolder> 12 <RootBuildFolder>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\build\))</RootBuildFolder>
13 <RootPackagesFolder>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\packages\))</RootPackagesFolder> 13 <RootPackagesFolder>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\packages\))</RootPackagesFolder>
14 <PdbsFolder>$(RootBuildFolder)pdbs\$(Configuration)\</PdbsFolder> 14 <PdbsFolder>$(RootBuildFolder)logs\pdbs\$(Configuration)\</PdbsFolder>
15 <ArtifactsFolder>$(RootBuildFolder)artifacts\</ArtifactsFolder> 15 <ArtifactsFolder>$(RootBuildFolder)artifacts\</ArtifactsFolder>
16 <ToolsFolder>$(RootBuildFolder).tools</ToolsFolder> 16 <ToolsFolder>$(RootBuildFolder).tools</ToolsFolder>
17 <PackageOutputPath>$(ArtifactsFolder)</PackageOutputPath> 17 <PackageOutputPath>$(ArtifactsFolder)</PackageOutputPath>
diff --git a/src/build_init.cmd b/src/build_init.cmd
index 980dc327..c9c27c57 100644
--- a/src/build_init.cmd
+++ b/src/build_init.cmd
@@ -2,6 +2,7 @@
2@pushd %~dp0 2@pushd %~dp0
3 3
4md ..\build\artifacts 4md ..\build\artifacts
5md ..\build\logs\crashdumps
5md ..\build\logs\TestResults 6md ..\build\logs\TestResults
6 7
7msbuild -Restore internal\SetBuildNumber\SetBuildNumber.proj -nologo 8msbuild -Restore internal\SetBuildNumber\SetBuildNumber.proj -nologo
diff --git a/src/test/burn/test_burn.cmd b/src/test/burn/test_burn.cmd
index f8153a2e..83401614 100644
--- a/src/test/burn/test_burn.cmd
+++ b/src/test/burn/test_burn.cmd
@@ -16,9 +16,6 @@ msbuild -t:Build -Restore TestData\TestData.proj -p:Configuration=%_C% -m -bl:%_
16 16
17@if not "%RuntimeTestsEnabled%"=="true" goto :LExit 17@if not "%RuntimeTestsEnabled%"=="true" goto :LExit
18 18
19reg add HKLM\Software\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f
20reg add HKLM\Software\WOW6432Node\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f
21
22dotnet test -c %_C% --no-build WixToolsetTest.BurnE2E -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.BurnE2E.trx" || exit /b 19dotnet test -c %_C% --no-build WixToolsetTest.BurnE2E -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.BurnE2E.trx" || exit /b
23 20
24:LExit 21:LExit