File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,11 @@ jobs:
112
112
- name : Run Tests
113
113
if : matrix.os != 'windows-latest'
114
114
run : |
115
- timeout 5400s mvn -U -B -fae test -Pproxy '-DfailIfNoTests=false' -pl ${{ matrix.module }} || jstack -l $(jps | awk '$2 ~ /surefirebooter/ {print $1}') > thread-dump.txt && exit 1)
115
+ mvn -U -B -fae test -Pproxy '-DfailIfNoTests=false' -pl ${{ matrix.module }} > output.txt &
116
+ sleep 180
117
+ cat output.txt
118
+ $hanging_test_pid=$(jps | awk '$2 ~ /surefirebooter/ {print $1}'
119
+ [ ! -z "$hanging_test_pid" ] && echo "Hanging test found. Pid is $hanging_test_pid" && jstack -l $(jps | awk '$2 ~ /surefirebooter/ {print $1}') | tee thread-dump.txt && exit 1
116
120
- uses : actions/upload-artifact@v4
117
121
if : failure()
118
122
with :
@@ -172,7 +176,11 @@ jobs:
172
176
- name : Run Tests
173
177
if : matrix.os != 'windows-latest'
174
178
run : |
175
- timeout 5400s mvn -U -B -fae test ${{ matrix.proxy }} '-DfailIfNoTests=false' -pl ${{ matrix.module }} -Dtest.ipv6=true || jstack -l $(jps | awk '$2 ~ /surefirebooter/ {print $1}') > thread-dump.txt && exit 1)
179
+ timeout 5400s mvn -U -B -fae test ${{ matrix.proxy }} '-DfailIfNoTests=false' -pl ${{ matrix.module }} -Dtest.ipv6=true
180
+ sleep 180
181
+ cat output.txt
182
+ $hanging_test_pid=$(jps | awk '$2 ~ /surefirebooter/ {print $1}'
183
+ [ ! -z "$hanging_test_pid" ] && echo "Hanging test found. Pid is $hanging_test_pid" && jstack -l $(jps | awk '$2 ~ /surefirebooter/ {print $1}') | tee thread-dump.txt && exit 1
176
184
- uses : actions/upload-artifact@v4
177
185
if : failure()
178
186
with :
You can’t perform that action at this time.
0 commit comments