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 b80d2669d8 HDDS-10723. Trigger native check in more cases (#6569)
b80d2669d8 is described below
commit b80d2669d8a88cbbaf269c5a79a7c096b6f12151
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Apr 23 21:31:18 2024 +0200
HDDS-10723. Trigger native check in more cases (#6569)
---
dev-support/ci/selective_ci_checks.bats | 6 +++---
dev-support/ci/selective_ci_checks.sh | 19 ++++++++++++++++++-
2 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/dev-support/ci/selective_ci_checks.bats
b/dev-support/ci/selective_ci_checks.bats
index 69ca1d9f99..a95a981bdd 100644
--- a/dev-support/ci/selective_ci_checks.bats
+++ b/dev-support/ci/selective_ci_checks.bats
@@ -132,7 +132,7 @@ load bats-assert/load.bash
@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
'basic-checks=["rat","bats","checkstyle","findbugs","native"]'
assert_output -p needs-build=true
assert_output -p needs-compile=true
assert_output -p needs-compose-tests=false
@@ -252,7 +252,7 @@ load bats-assert/load.bash
@test "java and compose change" {
run dev-support/ci/selective_ci_checks.sh d0f0f806e
- assert_output -p 'basic-checks=["rat","author","checkstyle","findbugs"]'
+ assert_output -p
'basic-checks=["rat","author","checkstyle","findbugs","native"]'
assert_output -p needs-build=true
assert_output -p needs-compile=true
assert_output -p needs-compose-tests=true
@@ -276,7 +276,7 @@ load bats-assert/load.bash
@test "pom change" {
run dev-support/ci/selective_ci_checks.sh 9129424a9
- assert_output -p 'basic-checks=["rat","checkstyle","findbugs"]'
+ assert_output -p 'basic-checks=["rat","checkstyle","findbugs","native"]'
assert_output -p needs-build=true
assert_output -p needs-compile=true
assert_output -p needs-compose-tests=true
diff --git a/dev-support/ci/selective_ci_checks.sh
b/dev-support/ci/selective_ci_checks.sh
index bb0faa962e..e512b4a5d6 100755
--- a/dev-support/ci/selective_ci_checks.sh
+++ b/dev-support/ci/selective_ci_checks.sh
@@ -306,7 +306,6 @@ 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/native_check.sh"
"src/main/java"
"src/main/resources"
)
@@ -443,6 +442,24 @@ function check_needs_native() {
if [[ ${match_count} != "0" ]]; then
add_basic_check native
+ else
+ local pattern_array=(
+ "^hadoop-ozone/dev-support/checks/junit.sh"
+ # dependencies
+ "^hadoop-hdds/annotations"
+ "^hadoop-hdds/common"
+ "^hadoop-hdds/config"
+ "^hadoop-hdds/hadoop-dependency-client"
+ "^hadoop-hdds/hadoop-dependency-test"
+ "^hadoop-hdds/managed-rocksdb"
+ "^hadoop-hdds/test-utils"
+ "^pom.xml"
+ )
+ filter_changed_files
+
+ if [[ ${match_count} != "0" ]]; then
+ add_basic_check native
+ fi
fi
start_end::group_end
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]