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 04d337952a3 HDDS-14000. Require existing build for 
acceptance/kubernetes check (#9377)
04d337952a3 is described below

commit 04d337952a3cd9b915e0f763622c8c9c2e22d617
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Thu Dec 4 18:14:18 2025 +0100

    HDDS-14000. Require existing build for acceptance/kubernetes check (#9377)
---
 hadoop-ozone/dev-support/checks/acceptance.sh |  8 ++++++--
 hadoop-ozone/dev-support/checks/kubernetes.sh | 15 ++++++++++-----
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/hadoop-ozone/dev-support/checks/acceptance.sh 
b/hadoop-ozone/dev-support/checks/acceptance.sh
index ac007337587..dc56906cfdf 100755
--- a/hadoop-ozone/dev-support/checks/acceptance.sh
+++ b/hadoop-ozone/dev-support/checks/acceptance.sh
@@ -39,8 +39,12 @@ 
DIST_DIR="${OZONE_ROOT}/hadoop-ozone/dist/target/ozone-$OZONE_VERSION"
 export COMPOSE_PARALLEL_LIMIT=1
 
 if [ ! -d "$DIST_DIR" ]; then
-    echo "Distribution dir is missing. Doing a full build"
-    "$DIR/build.sh" -Pcoverage
+  echo "Error: distribution dir not found: $DIST_DIR"
+  echo "Please build Ozone first."
+  if [[ "${CI:-}" == "true" ]]; then
+    ls -la "${OZONE_ROOT}/hadoop-ozone/dist/target"
+  fi
+  exit 1
 fi
 
 create_aws_dir
diff --git a/hadoop-ozone/dev-support/checks/kubernetes.sh 
b/hadoop-ozone/dev-support/checks/kubernetes.sh
index d5ef2554bbc..8a7de14cabe 100755
--- a/hadoop-ozone/dev-support/checks/kubernetes.sh
+++ b/hadoop-ozone/dev-support/checks/kubernetes.sh
@@ -19,9 +19,11 @@ set -u -o pipefail
 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
 cd "$DIR/../../.." || exit 1
 
+OZONE_ROOT=$(pwd -P)
+
 export KUBECONFIG
 
-REPORT_DIR=${OUTPUT_DIR:-"$DIR/../../../target/kubernetes"}
+REPORT_DIR=${OUTPUT_DIR:-"${OZONE_ROOT}/target/kubernetes"}
 mkdir -p "$REPORT_DIR"
 REPORT_FILE="$REPORT_DIR/summary.txt"
 
@@ -35,12 +37,15 @@ else
 fi
 
 OZONE_VERSION=$(mvn help:evaluate -Dexpression=ozone.version -q -DforceStdout 
-Dscan=false)
-DIST_DIR="$DIR/../../dist/target/ozone-$OZONE_VERSION"
+DIST_DIR="${OZONE_ROOT}/hadoop-ozone/dist/target/ozone-$OZONE_VERSION"
 
 if [ ! -d "$DIST_DIR" ]; then
-    echo "Distribution dir is missing. Doing a full build"
-    "$DIR/build.sh" -Pcoverage
-    mkdir -p "$REPORT_DIR" # removed by full build
+  echo "Error: distribution dir not found: $DIST_DIR"
+  echo "Please build Ozone first."
+  if [[ "${CI:-}" == "true" ]]; then
+    ls -la "${OZONE_ROOT}/hadoop-ozone/dist/target"
+  fi
+  exit 1
 fi
 
 create_aws_dir


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

Reply via email to