Skip to content

Commit

Permalink
[CELEBORN-1569] Upload unit-tests.log and test-reports when CI fails
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

### Why are the changes needed?
Missing detailed logs when SBT CI fails.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
GA

Closes #2693 from cxzl25/CELEBORN-1569.

Authored-by: sychen <sychen@ctrip.com>
Signed-off-by: mingji <fengmingxiao.fmx@alibaba-inc.com>
  • Loading branch information
cxzl25 authored and FMX committed Aug 19, 2024
1 parent b330b55 commit 4a8723f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ jobs:
with:
name: service-unit-test-log
path: |
**/target/test-reports/**
**/target/unit-tests.log
- name: Upload coverage to Codecov
if: matrix.java == 8
uses: codecov/codecov-action@v3
Expand Down Expand Up @@ -77,6 +79,7 @@ jobs:
with:
name: spark-${{ matrix.spark }}-unit-test-log
path: |
**/target/test-reports/**
**/target/unit-tests.log
spark3:
Expand Down Expand Up @@ -140,6 +143,7 @@ jobs:
with:
name: spark-${{ matrix.spark }}-unit-test-log
path: |
**/target/test-reports/**
**/target/unit-tests.log
flink:
Expand Down Expand Up @@ -179,6 +183,7 @@ jobs:
with:
name: flink-${{ matrix.flink }}-unit-test-log
path: |
**/target/test-reports/**
**/target/unit-tests.log
mr:
Expand Down Expand Up @@ -211,3 +216,5 @@ jobs:
name: mr-unit-test-log
path: |
**/target/test/
**/target/test-reports/**
**/target/unit-tests.log
7 changes: 6 additions & 1 deletion .github/workflows/sbt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
name: service-java-${{ matrix.java }}-scala-${{ matrix.scala }}-unit-test-log
path: |
**/target/test-reports/**
**/target/unit-tests.log
spark2:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -90,7 +91,7 @@ jobs:
name: spark-${{ matrix.spark }}-unit-test-log
path: |
**/target/test-reports/**
**/target/unit-tests.log
spark3:
runs-on: ubuntu-22.04
strategy:
Expand Down Expand Up @@ -193,6 +194,7 @@ jobs:
name: spark-${{ matrix.spark }}-scala-${{ matrix.scala }}-unit-test-log
path: |
**/target/test-reports/**
**/target/unit-tests.log
flink:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -228,6 +230,7 @@ jobs:
name: flink-${{ matrix.flink }}-unit-test-log
path: |
**/target/test-reports/**
**/target/unit-tests.log
mr:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -255,3 +258,5 @@ jobs:
name: mr-unit-test-log
path: |
**/target/test/
**/target/test-reports/**
**/target/unit-tests.log

0 comments on commit 4a8723f

Please sign in to comment.