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 a9af309138 HDDS-8751. Selective checks: skip tests for doc changes in 
compose or k8s (#4828)
a9af309138 is described below

commit a9af30913891a24becda77beb521e32542af08fd
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Wed Jun 7 13:02:52 2023 +0200

    HDDS-8751. Selective checks: skip tests for doc changes in compose or k8s 
(#4828)
---
 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 ce898f5614..b67a471ba6 100644
--- a/dev-support/ci/selective_ci_checks.bats
+++ b/dev-support/ci/selective_ci_checks.bats
@@ -321,6 +321,18 @@ load bats-assert/load.bash
   assert_output -p needs-kubernetes-tests=false
 }
 
+@test "compose README" {
+  run dev-support/ci/selective_ci_checks.sh 85a0700980
+
+  assert_output -p 'basic-checks=["rat"]'
+  assert_output -p needs-build=false
+  assert_output -p needs-compile=false
+  assert_output -p needs-compose-tests=false
+  assert_output -p needs-dependency-check=false
+  assert_output -p needs-integration-tests=false
+  assert_output -p needs-kubernetes-tests=false
+}
+
 @test "other README" {
   run dev-support/ci/selective_ci_checks.sh 5532981a7
 
diff --git a/dev-support/ci/selective_ci_checks.sh 
b/dev-support/ci/selective_ci_checks.sh
index 810685992a..ecc83faf66 100755
--- a/dev-support/ci/selective_ci_checks.sh
+++ b/dev-support/ci/selective_ci_checks.sh
@@ -230,6 +230,7 @@ function get_count_compose_files() {
     )
     local ignore_array=(
         "^hadoop-ozone/dist/src/main/k8s"
+        "\.md$"
     )
     filter_changed_files true
     COUNT_COMPOSE_CHANGED_FILES=${match_count}
@@ -285,6 +286,7 @@ function get_count_kubernetes_files() {
     )
     local ignore_array=(
         "^hadoop-ozone/dist/src/main/compose"
+        "\.md$"
     )
     filter_changed_files true
     COUNT_KUBERNETES_CHANGED_FILES=${match_count}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to