Capture OpenJ9 javacore files for troubleshooting (#3931)

This commit is contained in:
Trask Stalnaker 2021-08-25 01:20:13 -07:00 committed by GitHub
parent 20c72f3e98
commit f2605f9acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 2 deletions

View File

@ -37,7 +37,7 @@ jobs:
- name: Build
run: ./gradlew build --stacktrace
- name: Upload deadlock detector artifacts
- name: Upload deadlock detector artifacts if any
if: always()
uses: actions/upload-artifact@v2
with:
@ -45,6 +45,14 @@ jobs:
path: /tmp/deadlock-detector-*
if-no-files-found: ignore
- name: Upload OpenJ9 javacore files if any
if: always()
uses: actions/upload-artifact@v2
with:
name: javacore-build
path: "**/javacore.*.txt"
if-no-files-found: ignore
test:
runs-on: ubuntu-latest
strategy:
@ -93,7 +101,7 @@ jobs:
- name: Test
run: ./gradlew test -PtestJavaVersion=${{ matrix.test-java-version }} -PtestJavaVM=${{ matrix.vm }} --stacktrace -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false
- name: Upload deadlock detector artifacts
- name: Upload deadlock detector artifacts if any
if: always()
uses: actions/upload-artifact@v2
with:
@ -101,6 +109,14 @@ jobs:
path: /tmp/deadlock-detector-*
if-no-files-found: ignore
- name: Upload OpenJ9 javacore files if any
if: always()
uses: actions/upload-artifact@v2
with:
name: javacore-test-${{ matrix.test-java-version }}
path: "**/javacore.*.txt"
if-no-files-found: ignore
# testLatestDeps is intentionally not included in the PR workflow
# because any time a new library version is released to maven central
# it can fail due to test code incompatibility with the new library version,