You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by el...@apache.org on 2020/06/13 22:05:14 UTC

[hadoop-ozone] 02/03: Revert "test acceptance only"

This is an automated email from the ASF dual-hosted git repository.

elek pushed a commit to branch HDDS-3757
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git

commit 4b1cc4bda453db33d1fdf05e84ec78bbf4dd134a
Author: Elek Márton <el...@apache.org>
AuthorDate: Sat Jun 13 17:10:18 2020 +0200

    Revert "test acceptance only"
    
    This reverts commit 9378b0f9839c42fa8f6c65a7672ac7e8714957e2.
---
 .github/workflows/post-commit.yml | 227 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 227 insertions(+)

diff --git a/.github/workflows/post-commit.yml b/.github/workflows/post-commit.yml
index aed008f..807e2b2 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -16,6 +16,87 @@ name: build-branch
 on:
   - push
 jobs:
+  build:
+    name: compile
+    runs-on: ubuntu-18.04
+    steps:
+      - uses: actions/checkout@master
+      - uses: actions/cache@v2
+        with:
+          path: |
+            ~/.pnpm-store
+            **/node_modules
+          key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
+          restore-keys: |
+            ${{ runner.os }}-pnpm-
+      - uses: ./.github/buildenv
+        with:
+          args: ./hadoop-ozone/dev-support/checks/build.sh
+  rat:
+    name: rat
+    runs-on: ubuntu-18.04
+    steps:
+        - uses: actions/checkout@master
+        - uses: ./.github/buildenv
+          with:
+             args: ./hadoop-ozone/dev-support/checks/rat.sh
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: rat
+            path: target/rat
+  author:
+    name: author
+    runs-on: ubuntu-18.04
+    steps:
+        - uses: actions/checkout@master
+        - uses: ./.github/buildenv
+          with:
+             args: ./hadoop-ozone/dev-support/checks/author.sh
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: author
+            path: target/author
+  unit:
+    name: unit
+    runs-on: ubuntu-18.04
+    steps:
+        - uses: actions/checkout@master
+        - uses: ./.github/buildenv
+          with:
+             args: ./hadoop-ozone/dev-support/checks/unit.sh
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: unit
+            path: target/unit
+  checkstyle:
+    name: checkstyle
+    runs-on: ubuntu-18.04
+    steps:
+        - uses: actions/checkout@master
+        - uses: ./.github/buildenv
+          with:
+             args: ./hadoop-ozone/dev-support/checks/checkstyle.sh
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: checkstyle
+            path: target/checkstyle
+  findbugs:
+    name: findbugs
+    runs-on: ubuntu-18.04
+    steps:
+        - uses: actions/checkout@master
+        - uses: ./.github/buildenv
+          with:
+             args: ./hadoop-ozone/dev-support/checks/findbugs.sh
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: findbugs
+            path: target/findbugs
   acceptance:
     name: acceptance
     runs-on: ubuntu-18.04
@@ -62,3 +143,149 @@ jobs:
           rm -rf ~/.m2/repository/org/apache/hadoop/hdds
           rm -rf ~/.m2/repository/org/apache/hadoop/ozone
         if: always()
+  it-freon:
+    name: it-freon
+    runs-on: ubuntu-18.04
+    needs:
+        - build
+    steps:
+        - run: sudo mkdir mnt && sudo mount --bind /mnt `pwd`/mnt && sudo chmod 777 mnt
+        - uses: actions/checkout@master
+          with:
+            path: mnt/ozone
+        - uses: ./mnt/ozone/.github/buildenv
+          with:
+             args: ./mnt/ozone/hadoop-ozone/dev-support/checks/integration.sh -Pfreon
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: it-freon
+            path: mnt/ozone/target/integration
+  it-filesystem:
+    name: it-filesystem
+    runs-on: ubuntu-18.04
+    needs:
+        - build
+    steps:
+        - run: sudo mkdir mnt && sudo mount --bind /mnt `pwd`/mnt && sudo chmod 777 mnt
+        - uses: actions/checkout@master
+          with:
+            path: mnt/ozone
+        - uses: ./mnt/ozone/.github/buildenv
+          with:
+             args: ./mnt/ozone/hadoop-ozone/dev-support/checks/integration.sh -Pfilesystem
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: it-filesystem
+            path: mnt/ozone/target/integration
+  it-filesystem-contract:
+    name: it-filesystem-contract
+    runs-on: ubuntu-18.04
+    needs:
+        - build
+    steps:
+        - run: sudo mkdir mnt && sudo mount --bind /mnt `pwd`/mnt && sudo chmod 777 mnt
+        - uses: actions/checkout@master
+          with:
+            path: mnt/ozone
+        - uses: ./mnt/ozone/.github/buildenv
+          with:
+             args: ./mnt/ozone/hadoop-ozone/dev-support/checks/integration.sh -Pfilesystem-contract
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: it-filesystem-contract
+            path: mnt/ozone/target/integration
+  it-client:
+    name: it-client
+    runs-on: ubuntu-18.04
+    needs:
+        - build
+    steps:
+        - run: sudo mkdir mnt && sudo mount --bind /mnt `pwd`/mnt && sudo chmod 777 mnt
+        - uses: actions/checkout@master
+          with:
+            path: mnt/ozone
+        - uses: ./mnt/ozone/.github/buildenv
+          with:
+             args: ./mnt/ozone/hadoop-ozone/dev-support/checks/integration.sh -Pclient
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: it-client
+            path: mnt/ozone/target/integration
+  it-hdds-om:
+    name: it-hdds-om
+    runs-on: ubuntu-18.04
+    needs:
+        - build
+    steps:
+        - run: sudo mkdir mnt && sudo mount --bind /mnt `pwd`/mnt && sudo chmod 777 mnt
+        - uses: actions/checkout@master
+          with:
+            path: mnt/ozone
+        - uses: ./mnt/ozone/.github/buildenv
+          with:
+             args: ./mnt/ozone/hadoop-ozone/dev-support/checks/integration.sh -Phdds-om
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: it-hdds-om
+            path: mnt/ozone/target/integration
+  it-ozone:
+    name: it-ozone
+    runs-on: ubuntu-18.04
+    needs:
+        - build
+    steps:
+        - run: sudo mkdir mnt && sudo mount --bind /mnt `pwd`/mnt && sudo chmod 777 mnt
+        - uses: actions/checkout@master
+          with:
+            path: mnt/ozone
+        - uses: ./mnt/ozone/.github/buildenv
+          with:
+             args: ./mnt/ozone/hadoop-ozone/dev-support/checks/integration.sh -Pozone
+        - uses: actions/upload-artifact@master
+          if: always()
+          with:
+            name: it-ozone
+            path: mnt/ozone/target/integration
+  coverage:
+    name: coverage
+    runs-on: ubuntu-18.04
+    needs:
+       - it-ozone
+       - it-hdds-om
+       - it-client
+       - it-filesystem-contract
+       - it-filesystem
+       - it-freon
+       - acceptance
+       - 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
+       - uses: ./.github/buildenv
+         if: github.repository == 'apache/hadoop-ozone'
+         with:
+           args: ./hadoop-ozone/dev-support/checks/sonar.sh
+         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
+           path: target/coverage


---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org