This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new c5fb612 HDDS-6140. Selective checks: skip unit check for
integration-test changes (#2948)
c5fb612 is described below
commit c5fb612790ba15a757ae2339f446d0d7918b04ff
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Feb 8 15:31:49 2022 +0100
HDDS-6140. Selective checks: skip unit check for integration-test changes
(#2948)
---
.gitignore | 3 ++-
dev-support/ci/selective_ci_checks.bats | 13 ++++++++++++-
dev-support/ci/selective_ci_checks.sh | 2 ++
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index a302cc0..1ec550b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -68,6 +68,7 @@ hadoop-ozone/recon/node_modules
.mvn
.dev-tools
-
+dev-support/ci/bats-assert
+dev-support/ci/bats-support
hadoop-ozone/dist/src/main/license/current.txt
diff --git a/dev-support/ci/selective_ci_checks.bats
b/dev-support/ci/selective_ci_checks.bats
index be0f704..8093123 100644
--- a/dev-support/ci/selective_ci_checks.bats
+++ b/dev-support/ci/selective_ci_checks.bats
@@ -88,10 +88,21 @@ load bats-assert/load.bash
assert_output -p needs-kubernetes-tests=true
}
+@test "integration and unit" {
+ run dev-support/ci/selective_ci_checks.sh 9aebf6e25
+
+ assert_output -p
'basic-checks=["rat","author","checkstyle","findbugs","unit"]'
+ assert_output -p needs-build=false
+ assert_output -p needs-compose-tests=false
+ assert_output -p needs-dependency-check=false
+ assert_output -p needs-integration-tests=true
+ assert_output -p needs-kubernetes-tests=false
+}
+
@test "integration only" {
run dev-support/ci/selective_ci_checks.sh 61396ba9f
- assert_output -p
'basic-checks=["rat","author","checkstyle","findbugs","unit"]'
+ assert_output -p 'basic-checks=["rat","author","checkstyle","findbugs"]'
assert_output -p needs-build=false
assert_output -p needs-compose-tests=false
assert_output -p needs-dependency-check=false
diff --git a/dev-support/ci/selective_ci_checks.sh
b/dev-support/ci/selective_ci_checks.sh
index 25e7082..3989afe 100755
--- a/dev-support/ci/selective_ci_checks.sh
+++ b/dev-support/ci/selective_ci_checks.sh
@@ -405,6 +405,8 @@ function check_needs_unit_test() {
)
local ignore_array=(
"^hadoop-ozone/dist"
+ "^hadoop-ozone/fault-injection-test/mini-chaos-tests"
+ "^hadoop-ozone/integration-test"
)
filter_changed_files
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]