From b4c952c81445bf085286ec79832c2e9da0239119 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Wed, 20 Mar 2024 21:37:37 +0200 Subject: [PATCH] Enable deadlock detector for latest dep tests (#10898) --- .../workflows/reusable-test-latest-deps.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/reusable-test-latest-deps.yml b/.github/workflows/reusable-test-latest-deps.yml index 6e1d3f6745..3202d0a5df 100644 --- a/.github/workflows/reusable-test-latest-deps.yml +++ b/.github/workflows/reusable-test-latest-deps.yml @@ -55,6 +55,9 @@ jobs: path: ~/.pnpm-store key: ${{ runner.os }}-test-latest-cache-pnpm-modules + - name: Start deadlock detector + run: .github/scripts/deadlock-detector.sh + - name: List tests env: GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} @@ -87,3 +90,24 @@ jobs: cache-read-only: ${{ inputs.cache-read-only }} # gradle enterprise is used for the build cache gradle-home-cache-excludes: caches/build-cache-1 + + - name: Upload deadlock detector artifacts if any + if: failure() + uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + with: + name: deadlock-detector-test-latest-${{ matrix.test-java-version }}-${{ matrix.vm }}-${{ matrix.test-partition }} + path: /tmp/deadlock-detector-* + if-no-files-found: ignore + + - name: Upload jvm crash dump files if any + if: failure() + uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + with: + name: javacore-test-latest-${{ matrix.test-java-version }}-${{ matrix.test-partition }} + path: | + **/hs_err_pid*.log + **/javacore.*.txt + **/Snap.*.trc + **/core.*.dmp + **/jitdump.*.dmp + if-no-files-found: ignore