This is an automated email from the ASF dual-hosted git repository.
elek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new f7e95d9 HDDS-3726. Upload code coverage to Codecov and enable checks
in PR workflow of Github Actions (#1047)
f7e95d9 is described below
commit f7e95d9b015e764ca93cfe2ccfc96d95160931bc
Author: Vivek Ratnavel Subramanian <[email protected]>
AuthorDate: Wed Jun 10 09:35:29 2020 -0700
HDDS-3726. Upload code coverage to Codecov and enable checks in PR workflow
of Github Actions (#1047)
---
.github/workflows/post-commit.yml | 6 +++++
.github/workflows/pr.yml | 32 +++++++++++++++++++++++++-
hadoop-ozone/dev-support/checks/integration.sh | 4 ++--
3 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/post-commit.yml
b/.github/workflows/post-commit.yml
index fc2dda1..4e63f41 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -247,6 +247,12 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v1
+ with:
+ file: ./target/coverage/all.xml
+ name: codecov-umbrella
+ fail_ci_if_error: true
- uses: actions/upload-artifact@master
with:
name: coverage
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index f9a4230..770aab2 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -219,4 +219,34 @@ jobs:
if: always()
with:
name: it-ozone
- path: mnt/ozone/target/integration
\ No newline at end of file
+ path: mnt/ozone/target/integration
+ coverage:
+ name: coverage
+ runs-on: ubuntu-18.04
+ needs:
+ - it-hdds-om
+ - it-ozone
+ - it-client
+ - it-filesystem-contract
+ - it-filesystem
+ - it-freon
+ - unit
+ steps:
+ - uses: actions/checkout@v2
+ - uses: ./.github/buildenv
+ with:
+ args: ./hadoop-ozone/dev-support/checks/build.sh
+ - uses: actions/download-artifact@v2
+ with:
+ path: target/artifacts
+ - run: ./.github/coverage-report.sh
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v1
+ with:
+ file: ./target/coverage/all.xml
+ name: codecov-umbrella
+ fail_ci_if_error: true
+ - uses: actions/upload-artifact@master
+ with:
+ name: coverage
+ path: target/coverage
diff --git a/hadoop-ozone/dev-support/checks/integration.sh
b/hadoop-ozone/dev-support/checks/integration.sh
index db5bf23..e2bf3dc 100755
--- a/hadoop-ozone/dev-support/checks/integration.sh
+++ b/hadoop-ozone/dev-support/checks/integration.sh
@@ -23,8 +23,8 @@ REPORT_DIR=${OUTPUT_DIR:-"$DIR/../../../target/integration"}
mkdir -p "$REPORT_DIR"
export MAVEN_OPTS="-Xmx4096m"
-mvn -B install -DskipTests
-mvn -B -fae test -pl :hadoop-ozone-integration-test,:mini-chaos-tests "$@" \
+mvn -B install -DskipTests -Dskip.yarn
+mvn -B -fae test -Dskip.yarn -pl
:hadoop-ozone-integration-test,:mini-chaos-tests "$@" \
| tee "${REPORT_DIR}/output.log"
rc=$?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]