Skip to content

Commit 7cafe35

Browse files
committed
8255352: Archive important test outputs in submit workflow
Reviewed-by: rwestberg, ihse
1 parent 888086f commit 7cafe35

File tree

1 file changed

+92
-9
lines changed

1 file changed

+92
-9
lines changed

.github/workflows/submit.yml

Lines changed: 92 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,39 @@ jobs:
351351
if: always()
352352
run: echo "logsuffix=`echo ${{ matrix.test }} | sed -e 's!/!_!'g -e 's! !_!'g`" >> $GITHUB_ENV
353353

354-
- name: Persist test logs
354+
- name: Package test results
355+
if: always()
356+
working-directory: build/run-test-prebuilt/test-results/
357+
run: >
358+
zip -r9
359+
"$HOME/linux-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip"
360+
.
361+
continue-on-error: true
362+
363+
- name: Package test support
364+
if: always()
365+
working-directory: build/run-test-prebuilt/test-support/
366+
run: >
367+
zip -r9
368+
"$HOME/linux-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip"
369+
.
370+
-i *.jtr
371+
-i hs_err*
372+
-i replay*
373+
continue-on-error: true
374+
375+
- name: Persist test results
376+
if: always()
377+
uses: actions/upload-artifact@v2
378+
with:
379+
path: ~/linux-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip
380+
continue-on-error: true
381+
382+
- name: Persist test outputs
355383
if: always()
356384
uses: actions/upload-artifact@v2
357385
with:
358-
name: linux-x64${{ matrix.artifact }}_testlogs_${{ env.logsuffix }}
359-
path: build/*/test-results
386+
path: ~/linux-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip
360387
continue-on-error: true
361388

362389
linux_x32_build:
@@ -735,12 +762,41 @@ jobs:
735762
if: always()
736763
run: echo ("logsuffix=" + ("${{ matrix.test }}" -replace "/", "_" -replace " ", "_")) | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
737764

738-
- name: Persist test logs
765+
- name: Package test results
766+
if: always()
767+
working-directory: build/run-test-prebuilt/test-results/
768+
run: >
769+
$env:Path = "$HOME\cygwin\cygwin64\bin;$env:Path" ;
770+
zip -r9
771+
"$HOME/windows-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip"
772+
.
773+
continue-on-error: true
774+
775+
- name: Package test support
776+
if: always()
777+
working-directory: build/run-test-prebuilt/test-support/
778+
run: >
779+
$env:Path = "$HOME\cygwin\cygwin64\bin;$env:Path" ;
780+
zip -r9
781+
"$HOME/windows-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip"
782+
.
783+
-i *.jtr
784+
-i hs_err*
785+
-i replay*
786+
continue-on-error: true
787+
788+
- name: Persist test results
789+
if: always()
790+
uses: actions/upload-artifact@v2
791+
with:
792+
path: ~/windows-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip
793+
continue-on-error: true
794+
795+
- name: Persist test outputs
739796
if: always()
740797
uses: actions/upload-artifact@v2
741798
with:
742-
name: windows-x64${{ matrix.artifact }}_testlogs_${{ env.logsuffix }}
743-
path: build/*/test-results
799+
path: ~/windows-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip
744800
continue-on-error: true
745801

746802
macos_x64_build:
@@ -990,12 +1046,39 @@ jobs:
9901046
if: always()
9911047
run: echo "logsuffix=`echo ${{ matrix.test }} | sed -e 's!/!_!'g -e 's! !_!'g`" >> $GITHUB_ENV
9921048

993-
- name: Persist test logs
1049+
- name: Package test results
1050+
if: always()
1051+
working-directory: build/run-test-prebuilt/test-results/
1052+
run: >
1053+
zip -r9
1054+
"$HOME/macos-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip"
1055+
.
1056+
continue-on-error: true
1057+
1058+
- name: Package test support
1059+
if: always()
1060+
working-directory: build/run-test-prebuilt/test-support/
1061+
run: >
1062+
zip -r9
1063+
"$HOME/macos-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip"
1064+
.
1065+
-i *.jtr
1066+
-i hs_err*
1067+
-i replay*
1068+
continue-on-error: true
1069+
1070+
- name: Persist test results
1071+
if: always()
1072+
uses: actions/upload-artifact@v2
1073+
with:
1074+
path: ~/macos-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip
1075+
continue-on-error: true
1076+
1077+
- name: Persist test outputs
9941078
if: always()
9951079
uses: actions/upload-artifact@v2
9961080
with:
997-
name: macos-x64${{ matrix.artifact }}_testlogs_${{ env.logsuffix }}
998-
path: build/*/test-results
1081+
path: ~/macos-x64${{ matrix.artifact }}_testsupport_${{ env.logsuffix }}.zip
9991082
continue-on-error: true
10001083

10011084
artifacts:

0 commit comments

Comments
 (0)