Skip to content

Commit

Permalink
Upload JVM error logs if present on CI failure (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinrsmith authored Oct 30, 2021
1 parent 15938aa commit a881738
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/check-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,11 @@ jobs:
with:
name: check-ci-reports
path: '**/build/reports/tests/**'

- name: Upload JVM Error Logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: check-ci-jvm-err
path: '*_pid*.log'
if-no-files-found: ignore
10 changes: 9 additions & 1 deletion .github/workflows/long-check-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,12 @@ jobs:
if: always()
with:
name: long-check-ci-reports
path: '**/build/reports/tests/**'
path: '**/build/reports/tests/**'

- name: Upload JVM Error Logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: long-check-ci-jvm-err
path: '*_pid*.log'
if-no-files-found: ignore
32 changes: 32 additions & 0 deletions .github/workflows/nightly-check-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ jobs:
name: nightly-check-ci-reports
path: '**/build/reports/tests/**'

- name: Upload JVM Error Logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: nightly-check-ci-jvm-err
path: '*_pid*.log'
if-no-files-found: ignore

- name: Publish Test Results
uses: scacap/action-surefire-report@v1
if: ${{ github.repository_owner == 'deephaven' }}
Expand Down Expand Up @@ -128,6 +136,14 @@ jobs:
name: nightly-testSerial-ci-reports
path: '**/build/reports/tests/**'

- name: Upload JVM Error Logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: nightly-testSerial-ci-jvm-err
path: '*_pid*.log'
if-no-files-found: ignore

- name: Publish Test Results
uses: scacap/action-surefire-report@v1
if: ${{ github.repository_owner == 'deephaven' }}
Expand Down Expand Up @@ -196,6 +212,14 @@ jobs:
name: nightly-testParallel-ci-reports
path: '**/build/reports/tests/**'

- name: Upload JVM Error Logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: nightly-testParallel-ci-jvm-err
path: '*_pid*.log'
if-no-files-found: ignore

- name: Publish Test Results
uses: scacap/action-surefire-report@v1
if: ${{ github.repository_owner == 'deephaven' }}
Expand Down Expand Up @@ -264,6 +288,14 @@ jobs:
name: nightly-testOutOfBand-ci-reports
path: '**/build/reports/tests/**'

- name: Upload JVM Error Logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: nightly-testOutOfBand-ci-jvm-err
path: '*_pid*.log'
if-no-files-found: ignore

- name: Publish Test Results
uses: scacap/action-surefire-report@v1
if: ${{ github.repository_owner == 'deephaven' }}
Expand Down

0 comments on commit a881738

Please sign in to comment.