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 2abac7ef124 HDDS-14449. Selective checks: skip javadoc if possible 
(#9650)
2abac7ef124 is described below

commit 2abac7ef124784e250256964f0813ed9e3ca2281
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Jan 20 17:32:15 2026 +0100

    HDDS-14449. Selective checks: skip javadoc if possible (#9650)
---
 .github/workflows/ci.yml                |  1 +
 dev-support/ci/selective_ci_checks.bats | 13 ++++++++++++-
 dev-support/ci/selective_ci_checks.sh   |  7 +++++--
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e6e173ece3e..83e8338ff73 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -203,6 +203,7 @@ jobs:
     needs:
       - build-info
       - build
+    if: needs.build-info.outputs.needs-compile == 'true'
     uses: ./.github/workflows/check.yml
     secrets: inherit
     with:
diff --git a/dev-support/ci/selective_ci_checks.bats 
b/dev-support/ci/selective_ci_checks.bats
index 0a6621ccdf1..092ab497e3c 100644
--- a/dev-support/ci/selective_ci_checks.bats
+++ b/dev-support/ci/selective_ci_checks.bats
@@ -132,12 +132,23 @@ load bats-assert/load.bash
   assert_output -p needs-kubernetes-tests=false
 }
 
+@test "script change including javadoc.sh" {
+  run dev-support/ci/selective_ci_checks.sh 
bad6cfdb6fea57b0940ea05c69aa122c6be08932
+
+  assert_output -p 'basic-checks=["rat","bats","checkstyle","findbugs","pmd"]'
+  assert_output -p needs-build=true
+  assert_output -p needs-compile=true
+  assert_output -p needs-compose-tests=false
+  assert_output -p needs-integration-tests=true
+  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"]'
   assert_output -p needs-build=true
-  assert_output -p needs-compile=true
+  assert_output -p needs-compile=false
   assert_output -p needs-compose-tests=false
   assert_output -p needs-integration-tests=true
   assert_output -p needs-kubernetes-tests=false
diff --git a/dev-support/ci/selective_ci_checks.sh 
b/dev-support/ci/selective_ci_checks.sh
index 363357cfd42..7b6539a32ad 100755
--- a/dev-support/ci/selective_ci_checks.sh
+++ b/dev-support/ci/selective_ci_checks.sh
@@ -306,6 +306,7 @@ function get_count_robot_files() {
 function check_needs_build() {
     start_end::group_start "Check if build is needed"
     local pattern_array=(
+        "^hadoop-ozone/dev-support/checks/_build.sh"
         "^hadoop-ozone/dev-support/checks/build.sh"
         "^hadoop-ozone/dev-support/checks/dependency.sh"
         "^hadoop-ozone/dist/src/main/license/update-jar-report.sh"
@@ -323,9 +324,11 @@ function check_needs_build() {
 }
 
 function check_needs_compile() {
-    start_end::group_start "Check if compile is needed"
+    start_end::group_start "Check if compile or javadoc is needed"
     local pattern_array=(
-        "^hadoop-ozone/dev-support/checks/build.sh"
+        "^hadoop-ozone/dev-support/checks/_build.sh"
+        "^hadoop-ozone/dev-support/checks/compile.sh"
+        "^hadoop-ozone/dev-support/checks/javadoc.sh"
         "src/..../java"
         "src/..../proto"
         "pom.xml"


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

Reply via email to