Skip to content

Commit 7bcb321

Browse files
authored
Dump on crash feature has implemented for windows nightly builds. (#1119)
1 parent b76fd07 commit 7bcb321

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/nightly-windows.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868
name: 'SSL'
6969

7070
runs-on: ${{ matrix.vc_boost.image }}
71+
env:
72+
JOB_NAME: Windows_(${{ matrix.vc_boost.name }},${{ matrix.arch.address_model }},${{ matrix.build_type }},${{ matrix.shared_libs.name }}, ${{ matrix.with_openssl.name }})
7173
name: >-
7274
Windows
7375
(${{ matrix.vc_boost.name }}, ${{ matrix.arch.address_model }}, ${{ matrix.build_type }}, ${{ matrix.shared_libs.name }}, ${{ matrix.with_openssl.name }})
@@ -81,6 +83,15 @@ jobs:
8183
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
8284
Invoke-WebRequest https://raw.githubusercontent.com/hazelcast/private-test-artifacts/data/certs.jar -Headers @{"Authorization"="token ${{ secrets.GH_TOKEN }}"} -OutFile hazelcast-enterprise-5.2.0-tests.jar
8385
86+
- name: Install SysInternals
87+
run: |
88+
Invoke-WebRequest `
89+
"https://download.sysinternals.com/files/SysinternalsSuite.zip" `
90+
-OutFile "sys-internals.zip" `
91+
-UserAgent "''"
92+
Expand-Archive sys-internals.zip -DestinationPath sys-internals
93+
ls sys-internals
94+
8495
- uses: nick-fields/retry@v2
8596
name: Install OpenSSL
8697
if: matrix.with_openssl.toggle == 'ON'
@@ -153,7 +164,17 @@ jobs:
153164
HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ secrets.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }}
154165
SSL_CERT_FILE: 'C:\cacert.pem'
155166
run: |
167+
$dump = start-process -NoNewWindow sys-internals\procdump.exe {-accepteula -e -ma -w client_test.exe crash.dmp}
156168
.\scripts\test-windows.bat
169+
$dump | wait-process
170+
171+
- uses: actions/upload-artifact@v3
172+
if: failure()
173+
with:
174+
name: dump-${{ env.JOB_NAME }}
175+
path: |
176+
**/*.pdb
177+
*.dmp
157178
158179
- name: Verify Installation
159180
run: |

0 commit comments

Comments
 (0)