Capture OpenJ9 javacore files for troubleshooting
MODIFY
.github/workflows/pr.yml
.github/workflows/pr.yml
@@ -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,

Capture OpenJ9 javacore files for troubleshooting (#3931)