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 f523a20a56a HDDS-17146. Run each acceptance test in separate split 
(#11722)
f523a20a56a is described below

commit f523a20a56a0cf1230aeff7082694219e68e1146
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Wed Oct 28 12:47:15 2026 +0100

    HDDS-17146. Run each acceptance test in separate split (#11722)
---
 .github/ci.md                                 |  2 +-
 .github/workflows/check.yml                   | 15 ++++++++++++++-
 .github/workflows/ci.yml                      |  9 ++++++---
 dev-support/ci/acceptance_suites.sh           |  8 +++++---
 hadoop-ozone/dev-support/checks/acceptance.sh | 10 +++++-----
 hadoop-ozone/dist/src/main/compose/testlib.sh |  6 +++++-
 6 files changed, 36 insertions(+), 14 deletions(-)

diff --git a/.github/ci.md b/.github/ci.md
index f2bfb537cc5..2f767b324a0 100644
--- a/.github/ci.md
+++ b/.github/ci.md
@@ -60,7 +60,7 @@ Performs unit tests (if necessary) in two parts:
 If they don't match, it describes how to make the updates to include the 
changes, (if they are intentional).  Otherwise, the changes should be removed.
 
 #### acceptance job
-[Runs](../hadoop-ozone/dev-support/checks/acceptance.sh) smoketests using 
robot framework and a real docker compose cluster.  There are three iterations, 
"secure", "unsecure", and "misc", each running in parallel, as different matrix 
configs.
+[Runs](../hadoop-ozone/dev-support/checks/acceptance.sh) smoketests using 
robot framework and a real docker compose cluster.
 
 #### kubernetes job
 [Runs](../hadoop-ozone/dev-support/checks/kubernetes.sh) k8s tests
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index fa178120518..f744f4ffeb9 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -147,7 +147,9 @@ env:
   OZONE_IMAGE: ghcr.io/apache/ozone
   OZONE_RUNNER_IMAGE: ghcr.io/apache/ozone-runner
   OZONE_VOLUME_OWNER: 1000
+  DISPLAY_NAME: ${{ inputs.display-name }}
   SCRIPT: ${{ inputs.script }}
+  SPLIT: ${{ inputs.split }}
 
 permissions: { }
 
@@ -276,12 +278,23 @@ jobs:
           fi
           hadoop-ozone/dev-support/checks/_summary.sh 
target/$SCRIPT/summary.txt
 
+      - name: Calculate artifact name
+        id: artifact-name
+        if: ${{ !cancelled() }}
+        run: |
+          job="${DISPLAY_NAME:-$SCRIPT}"
+          split=""
+          if [[ -n "${SPLIT:-}" ]]; then
+            split=$(echo "-$SPLIT" | sed -e 's!/!-!g' -e 's/.sh$//')
+          fi
+          echo "ARTIFACT=${job}${split}" >> $GITHUB_ENV
+
       - name: Archive build results
         id: archive
         if: ${{ !cancelled() }}
         uses: actions/upload-artifact@v7
         with:
-          name: ${{ (inputs.split && format('{0}-{1}', (inputs.display-name || 
inputs.script), inputs.split)) || inputs.display-name || inputs.script }}
+          name: ${{ env.ARTIFACT }}
           # please keep path as a single item; move to that directory all 
files needed in the artifact
           path: target/${{ inputs.script }}
         continue-on-error: true
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 906abeeb12c..6df048746d5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -327,14 +327,15 @@ jobs:
       script-args: ${{ matrix.suite }}
       sha: ${{ needs.build-info.outputs.sha }}
       split: ${{ matrix.suite }}
-      timeout-minutes: 150
+      timeout-minutes: 60
       with-coverage: ${{ fromJSON(needs.build-info.outputs.with-coverage) }}
     strategy:
       matrix:
         suite: ${{ fromJson(needs.build-info.outputs.acceptance-suites) }}
         exclude:
-          - suite: compat-old
+          - suite: xcompat/test-old.sh
       fail-fast: false
+      max-parallel: 10
 
   # acceptance (compat-old), split by old Ozone version
   compat-old:
@@ -353,7 +354,7 @@ jobs:
       needs-ozone-binary-tarball: true
       ratis-args: ${{ inputs.ratis_args }}
       script: acceptance
-      script-args: compat-old ${{ matrix.version }}
+      script-args: xcompat/test-old.sh ${{ matrix.version }}
       sha: ${{ needs.build-info.outputs.sha }}
       split: compat-old-${{ matrix.version }}
       timeout-minutes: 30
@@ -362,6 +363,7 @@ jobs:
       matrix:
         version: ${{ fromJson(needs.build-info.outputs.acceptance-versions) }}
       fail-fast: false
+      max-parallel: 3
 
   kubernetes:
     needs:
@@ -387,6 +389,7 @@ jobs:
       matrix:
         suite: ${{ fromJson(needs.build-info.outputs.kubernetes-suites) }}
       fail-fast: false
+      max-parallel: 3
 
   # runs only ozone-integration-test, split by profiles
   integration:
diff --git a/dev-support/ci/acceptance_suites.sh 
b/dev-support/ci/acceptance_suites.sh
index 3fd9788aa41..d0a558e78c8 100755
--- a/dev-support/ci/acceptance_suites.sh
+++ b/dev-support/ci/acceptance_suites.sh
@@ -19,9 +19,11 @@
 # shellcheck source=dev-support/ci/lib/_script_init.sh
 . dev-support/ci/lib/_script_init.sh
 
-SUITES=$(grep --no-filename -r '^#suite:' hadoop-ozone/dist/src/main/compose \
-  | sort -u | cut -f2 -d':' | grep -v 'failing')
-VERSIONS=$(grep '^old_versions=' 
hadoop-ozone/dist/src/main/compose/xcompat/lib.sh \
+cd hadoop-ozone/dist/src/main/compose
+SUITES=$(find . -mindepth 2 -maxdepth 2 -name 'test*.sh' | cut -c3- \
+  | grep -Fv -e 'testlib.sh' -e 'test-failures' \
+  | sort)
+VERSIONS=$(grep '^old_versions=' xcompat/lib.sh \
   | cut -f2 -d'"')
 
 initialization::ga_output suites \
diff --git a/hadoop-ozone/dev-support/checks/acceptance.sh 
b/hadoop-ozone/dev-support/checks/acceptance.sh
index ae8415a8110..df8d729bec3 100755
--- a/hadoop-ozone/dev-support/checks/acceptance.sh
+++ b/hadoop-ozone/dev-support/checks/acceptance.sh
@@ -22,12 +22,12 @@ cd "$DIR/../../.." || exit 1
 OZONE_ROOT=$(pwd -P)
 
 : ${HADOOP_AWS_DIR:=""}
-: ${OZONE_ACCEPTANCE_SUITE:="${1:-}"}
-: ${OZONE_TEST_SELECTOR:=""}
+: ${OZONE_ACCEPTANCE_SUITE:=""}
+: ${OZONE_TEST_SELECTOR:="${1:-}"}
 : ${OZONE_ACCEPTANCE_TEST_TYPE:="robot"}
 : ${OZONE_WITH_COVERAGE:="false"}
 
-if [[ "${OZONE_ACCEPTANCE_SUITE}" == "compat-old" ]]; then
+if [[ "${OZONE_TEST_SELECTOR}" == "xcompat/test-old.sh" ]]; then
   : ${OZONE_OLD_VERSIONS:="${2:-}"}
   export OZONE_OLD_VERSIONS
 fi
@@ -56,7 +56,7 @@ create_aws_dir
 
 mkdir -p "$REPORT_DIR"
 
-if [[ "${OZONE_ACCEPTANCE_SUITE}" == "s3a" ]]; then
+if [[ "${OZONE_ACCEPTANCE_SUITE}" == "s3a" ]] || [[ "${OZONE_TEST_SELECTOR}" 
=~ "test-s3a.sh" ]]; then
   OZONE_ACCEPTANCE_TEST_TYPE="maven"
 
   if [[ -z "${HADOOP_AWS_DIR}" ]]; then
@@ -89,7 +89,7 @@ if [[ "${OZONE_ACCEPTANCE_SUITE}" == "s3a" ]]; then
   fi
 fi
 
-export OZONE_ACCEPTANCE_SUITE OZONE_ACCEPTANCE_TEST_TYPE
+export OZONE_ACCEPTANCE_SUITE OZONE_ACCEPTANCE_TEST_TYPE OZONE_TEST_SELECTOR
 
 cd "$DIST_DIR/compose" || exit 1
 ./test-all.sh 2>&1 | tee "${REPORT_DIR}/output.log"
diff --git a/hadoop-ozone/dist/src/main/compose/testlib.sh 
b/hadoop-ozone/dist/src/main/compose/testlib.sh
index e3e178a947b..74acbd793cd 100755
--- a/hadoop-ozone/dist/src/main/compose/testlib.sh
+++ b/hadoop-ozone/dist/src/main/compose/testlib.sh
@@ -102,7 +102,11 @@ find_tests(){
       exit 1
     fi
   elif [[ -n "${OZONE_TEST_SELECTOR:-}" ]]; then
-    tests=$(all_tests_in_immediate_child_dirs | grep "${OZONE_TEST_SELECTOR}" 
|| echo "")
+    if [[ -f "${OZONE_TEST_SELECTOR}" ]] && [[ "$(realpath 
"${OZONE_TEST_SELECTOR}")" == "$(pwd -P)/${OZONE_TEST_SELECTOR}" ]]; then
+      tests="${OZONE_TEST_SELECTOR}"
+    else
+      tests=$(all_tests_in_immediate_child_dirs | grep 
"${OZONE_TEST_SELECTOR}" || echo "")
+    fi
 
     if [[ -z "${tests}" ]]; then
       echo "No tests found for filter ${OZONE_TEST_SELECTOR}"


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

Reply via email to