Skip to content

Commit cb29f19

Browse files
authored
HDDS-15518. Selective checks: skip acceptance for test-utils changes (#10476)
1 parent e7c5a70 commit cb29f19

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

dev-support/ci/selective_ci_checks.bats

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,28 @@ load bats-assert/load.bash
187187
assert_output -p needs-kubernetes-tests=false
188188
}
189189

190+
@test "mini-cluster" {
191+
run dev-support/ci/selective_ci_checks.sh f0388a195411e68aac360de8ab95735b2eb295de
192+
193+
assert_output -p 'basic-checks=["rat","author","checkstyle","findbugs","pmd"]'
194+
assert_output -p needs-build=true
195+
assert_output -p needs-compile=true
196+
assert_output -p needs-compose-tests=false
197+
assert_output -p needs-integration-tests=true
198+
assert_output -p needs-kubernetes-tests=false
199+
}
200+
201+
@test "test-utils" {
202+
run dev-support/ci/selective_ci_checks.sh 60e4ab121853c182e1272b04fd1a93d55b12cfc7
203+
204+
assert_output -p 'basic-checks=["rat","author","checkstyle","findbugs","pmd"]'
205+
assert_output -p needs-build=true
206+
assert_output -p needs-compile=true
207+
assert_output -p needs-compose-tests=false
208+
assert_output -p needs-integration-tests=true
209+
assert_output -p needs-kubernetes-tests=false
210+
}
211+
190212
@test "native only" {
191213
run dev-support/ci/selective_ci_checks.sh 5b1319a8c2
192214

dev-support/ci/selective_ci_checks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ function get_count_doc_files() {
260260
function get_count_integration_files() {
261261
start_end::group_start "Count integration test files"
262262
local pattern_array=(
263+
"^hadoop-hdds/test-utils"
263264
"^hadoop-ozone/dev-support/checks/_mvn_unit_report.sh"
264265
"^hadoop-ozone/dev-support/checks/integration.sh"
265266
"^hadoop-ozone/dev-support/checks/junit.sh"

0 commit comments

Comments
 (0)