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 266a9e8 HDDS-3464. Use dedicated build partition for acceptance tests
in github actions environment
266a9e8 is described below
commit 266a9e82363f9e3fb925d0be30d4d2d618ceb9fc
Author: Elek Márton <[email protected]>
AuthorDate: Thu Apr 23 18:23:35 2020 +0200
HDDS-3464. Use dedicated build partition for acceptance tests in github
actions environment
Closes #846
---
.github/workflows/post-commit.yml | 62 +++++++++++++++++++++++++--------------
.github/workflows/pr.yml | 62 +++++++++++++++++++++++++--------------
2 files changed, 80 insertions(+), 44 deletions(-)
diff --git a/.github/workflows/post-commit.yml
b/.github/workflows/post-commit.yml
index daed5b0..5a920e5 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -109,103 +109,121 @@ jobs:
# remove its big parent build image
- run: docker image rm apache/ozone-build || true
- run: sudo pip install robotframework
- - run: sudo chown runner -R .
- - run: cd ./hadoop-ozone/dist/target/ozone-*/ && mkdir .aws && sudo
chown 1000 .aws
- - run: ./hadoop-ozone/dev-support/checks/acceptance.sh
+ - run: sudo mv ./hadoop-ozone/dist/target/ozone-* /mnt/ozone && sudo
chown runner -R /mnt/ozone
+ - run: cd /mnt/ozone && mkdir .aws && sudo chown 1000 .aws
+ - run: cd /mnt/ozone/compose && ./test-all.sh
env:
KEEP_IMAGE: false
- uses: actions/upload-artifact@master
if: always()
with:
name: acceptance
- path: target/acceptance
+ path: /mnt/ozone/compose/result
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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh -Pfreon
+ 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: target/integration
+ 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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh
-Pfilesystem
+ 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: target/integration
+ 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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh
-Pfilesystem-contract
+ 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: target/integration
+ 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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh -Pclient
+ 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: target/integration
+ 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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh -Phdds-om
+ 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: target/integration
+ 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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh -Pozone
+ 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: target/integration
+ path: mnt/ozone/target/integration
\ No newline at end of file
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 1f5ea3c..f9a4230 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -102,103 +102,121 @@ jobs:
# remove its big parent build image
- run: docker image rm apache/ozone-build || true
- run: sudo pip install robotframework
- - run: sudo chown runner -R .
- - run: cd ./hadoop-ozone/dist/target/ozone-*/ && mkdir .aws && sudo
chown 1000 .aws
- - run: ./hadoop-ozone/dev-support/checks/acceptance.sh
+ - run: sudo mv ./hadoop-ozone/dist/target/ozone-* /mnt/ozone && sudo
chown runner -R /mnt/ozone
+ - run: cd /mnt/ozone && mkdir .aws && sudo chown 1000 .aws
+ - run: cd /mnt/ozone/compose && ./test-all.sh
env:
KEEP_IMAGE: false
- uses: actions/upload-artifact@master
if: always()
with:
name: acceptance
- path: target/acceptance
+ path: /mnt/ozone/compose/result
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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh -Pfreon
+ 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: target/integration
+ 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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh
-Pfilesystem
+ 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: target/integration
+ 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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh
-Pfilesystem-contract
+ 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: target/integration
+ 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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh -Pclient
+ 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: target/integration
+ 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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh -Phdds-om
+ 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: target/integration
+ 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
- - uses: ./.github/buildenv
with:
- args: ./hadoop-ozone/dev-support/checks/integration.sh -Pozone
+ 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: target/integration
+ path: mnt/ozone/target/integration
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]