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 1f29c4b5c3 HDDS-8244. Selective checks: handle change in junit.sh
(#4450)
1f29c4b5c3 is described below
commit 1f29c4b5c3467d666f6217600c83a9fd3122ee4b
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Sat Mar 25 06:38:21 2023 +0100
HDDS-8244. Selective checks: handle change in junit.sh (#4450)
---
dev-support/ci/selective_ci_checks.bats | 12 ++++++++++++
dev-support/ci/selective_ci_checks.sh | 2 ++
2 files changed, 14 insertions(+)
diff --git a/dev-support/ci/selective_ci_checks.bats
b/dev-support/ci/selective_ci_checks.bats
index 2fcc056de2..fa05bceefb 100644
--- a/dev-support/ci/selective_ci_checks.bats
+++ b/dev-support/ci/selective_ci_checks.bats
@@ -117,6 +117,18 @@ load bats-assert/load.bash
assert_output -p needs-kubernetes-tests=false
}
+@test "script change including junit.sh" {
+ run dev-support/ci/selective_ci_checks.sh 66093e52c6
+
+ assert_output -p 'basic-checks=["rat","bats","checkstyle","findbugs","unit"]'
+ assert_output -p needs-build=true
+ assert_output -p needs-compile=true
+ 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 "unit only" {
run dev-support/ci/selective_ci_checks.sh 1dd1d0ba3
diff --git a/dev-support/ci/selective_ci_checks.sh
b/dev-support/ci/selective_ci_checks.sh
index 5cdcdda015..bbe50d93c2 100755
--- a/dev-support/ci/selective_ci_checks.sh
+++ b/dev-support/ci/selective_ci_checks.sh
@@ -253,6 +253,7 @@ function get_count_integration_files() {
local pattern_array=(
"^hadoop-ozone/dev-support/checks/_mvn_unit_report.sh"
"^hadoop-ozone/dev-support/checks/integration.sh"
+ "^hadoop-ozone/dev-support/checks/junit.sh"
"^hadoop-ozone/integration-test"
"^hadoop-ozone/fault-injection-test/mini-chaos-tests"
"src/test/java"
@@ -434,6 +435,7 @@ function check_needs_unit_test() {
local pattern_array=(
"^hadoop-ozone/dev-support/checks/_mvn_unit_report.sh"
"^hadoop-ozone/dev-support/checks/unit.sh"
+ "^hadoop-ozone/dev-support/checks/junit.sh"
"src/test/java"
"src/test/resources"
)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]