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 bc173d6885 HDDS-9744. Set descriptive title for upgrade Robot tests 
(#5708)
bc173d6885 is described below

commit bc173d6885417cacbffca4f1f8192bca173fbd33
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Dec 5 10:41:57 2023 +0100

    HDDS-9744. Set descriptive title for upgrade Robot tests (#5708)
---
 .../non-rolling-upgrade/callbacks/1.3.0/callback.sh      |  6 +++---
 .../non-rolling-upgrade/callbacks/1.4.0/callback.sh      |  8 ++++----
 .../non-rolling-upgrade/callbacks/common/callback.sh     | 10 +++++-----
 .../upgrade/upgrades/non-rolling-upgrade/driver.sh       | 16 ++++++++--------
 4 files changed, 20 insertions(+), 20 deletions(-)

diff --git 
a/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/1.3.0/callback.sh
 
b/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/1.3.0/callback.sh
index eb8f0ba6dc..155395b29f 100755
--- 
a/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/1.3.0/callback.sh
+++ 
b/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/1.3.0/callback.sh
@@ -20,11 +20,11 @@ source "$TEST_DIR"/testlib.sh
 with_this_version_pre_finalized() {
   # New layout features were added in this version, so OM and SCM should be
   # pre-finalized.
-  execute_robot_test "$SCM" --include pre-finalized 
upgrade/check-finalization.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-check-finalization" --include 
pre-finalized upgrade/check-finalization.robot
   # Test that EC is disabled when pre-finalized.
-  execute_robot_test "$SCM" --include pre-finalized-ec-tests 
ec/upgrade-ec-check.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-ec" --include 
pre-finalized-ec-tests ec/upgrade-ec-check.robot
 }
 
 with_this_version_finalized() {
-  execute_robot_test "$SCM" --include post-finalized-ec-tests 
ec/upgrade-ec-check.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-ec" --include 
post-finalized-ec-tests ec/upgrade-ec-check.robot
 }
diff --git 
a/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/1.4.0/callback.sh
 
b/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/1.4.0/callback.sh
index 3136a271aa..95e9a749aa 100644
--- 
a/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/1.4.0/callback.sh
+++ 
b/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/1.4.0/callback.sh
@@ -21,12 +21,12 @@ source "$TEST_DIR"/testlib.sh
 ### CALLBACKS ###
 
 with_this_version_pre_finalized() {
-  execute_robot_test "$SCM" --include pre-finalized 
upgrade/check-finalization.robot
-  execute_robot_test "$SCM" --include pre-finalized-snapshot-tests 
snapshot/upgrade-snapshot-check.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-check-finalization" --include 
pre-finalized upgrade/check-finalization.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-snapshot" --include 
pre-finalized-snapshot-tests snapshot/upgrade-snapshot-check.robot
 }
 
 with_this_version_finalized() {
-  execute_robot_test "$SCM" --include finalized 
upgrade/check-finalization.robot
-  execute_robot_test "$SCM" snapshot/snapshot-sh.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-check-finalization" --include 
finalized upgrade/check-finalization.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-snapshot" 
snapshot/snapshot-sh.robot
 }
 
diff --git 
a/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/common/callback.sh
 
b/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/common/callback.sh
index 76d45deed7..f205553bbe 100755
--- 
a/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/common/callback.sh
+++ 
b/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/callbacks/common/callback.sh
@@ -24,7 +24,7 @@ source "$TEST_DIR"/testlib.sh
 ## @param All parameters after the first one are passed directly to the robot 
command,
 ##        see 
https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#all-command-line-options
 generate() {
-    execute_robot_test "$SCM" -v PREFIX:"$1" ${@:2} upgrade/generate.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-generate-${1}" -v PREFIX:"$1" 
${@:2} upgrade/generate.robot
 }
 
 ## @description Validates that data exists on the cluster.
@@ -32,13 +32,13 @@ generate() {
 ## @param All parameters after the first one are passed directly to the robot 
command,
 ##        see 
https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#all-command-line-options
 validate() {
-    execute_robot_test "$SCM" -v PREFIX:"$1" ${@:2} upgrade/validate.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-validate-${1}" -v PREFIX:"$1" 
${@:2} upgrade/validate.robot
 }
 
 ### CALLBACKS ###
 
 with_old_version() {
-  execute_robot_test "$SCM" --include finalized 
upgrade/check-finalization.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-check-finalization" --include 
finalized upgrade/check-finalization.robot
   generate old1
   validate old1
 }
@@ -55,7 +55,7 @@ with_this_version_pre_finalized() {
 }
 
 with_old_version_downgraded() {
-  execute_robot_test "$SCM" --include finalized 
upgrade/check-finalization.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-check-finalization" --include 
finalized upgrade/check-finalization.robot
   validate old1
   validate new1
 
@@ -68,7 +68,7 @@ with_old_version_downgraded() {
 }
 
 with_this_version_finalized() {
-  execute_robot_test "$SCM" --include finalized 
upgrade/check-finalization.robot
+  execute_robot_test "$SCM" -N "${OUTPUT_NAME}-check-finalization" --include 
finalized upgrade/check-finalization.robot
   validate old1
   validate new1
   validate old2
diff --git 
a/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/driver.sh
 
b/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/driver.sh
index d7aa4cf481..ea59c8d69e 100755
--- 
a/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/driver.sh
+++ 
b/hadoop-ozone/dist/src/main/compose/upgrade/upgrades/non-rolling-upgrade/driver.sh
@@ -45,7 +45,7 @@ set_downgrade_om_args() {
 }
 
 echo "--- SETTING UP OLD VERSION $OZONE_UPGRADE_FROM ---"
-OUTPUT_NAME="$OZONE_UPGRADE_FROM"-original
+OUTPUT_NAME="${OZONE_UPGRADE_FROM}-${OZONE_UPGRADE_TO}-1-original"
 export OM_HA_ARGS='--'
 prepare_for_image "$OZONE_UPGRADE_FROM"
 
@@ -53,34 +53,34 @@ echo "--- RUNNING WITH OLD VERSION $OZONE_UPGRADE_FROM ---"
 start_docker_env
 callback with_old_version
 
-execute_robot_test "$SCM" upgrade/prepare.robot
+execute_robot_test "$SCM" -N "${OUTPUT_NAME}-prepare" upgrade/prepare.robot
 stop_docker_env
 prepare_for_image "$OZONE_UPGRADE_TO"
 export OM_HA_ARGS='--upgrade'
 
 echo "--- RUNNING WITH NEW VERSION $OZONE_UPGRADE_TO PRE-FINALIZED ---"
-OUTPUT_NAME="$OZONE_UPGRADE_TO"-pre-finalized
+OUTPUT_NAME="${OZONE_UPGRADE_FROM}-${OZONE_UPGRADE_TO}-2-pre-finalized"
 OZONE_KEEP_RESULTS=true start_docker_env
 callback with_this_version_pre_finalized
-execute_robot_test "$SCM" upgrade/prepare.robot
+execute_robot_test "$SCM" -N "${OUTPUT_NAME}-prepare" upgrade/prepare.robot
 stop_docker_env
 prepare_for_image "$OZONE_UPGRADE_FROM"
 set_downgrade_om_args
 
 echo "--- RUNNING WITH OLD VERSION $OZONE_UPGRADE_FROM AFTER DOWNGRADE ---"
-OUTPUT_NAME="$OZONE_UPGRADE_FROM"-downgraded
+OUTPUT_NAME="${OZONE_UPGRADE_FROM}-${OZONE_UPGRADE_TO}-3-downgraded"
 OZONE_KEEP_RESULTS=true start_docker_env
 callback with_old_version_downgraded
 
-execute_robot_test "$SCM" upgrade/prepare.robot
+execute_robot_test "$SCM" -N "${OUTPUT_NAME}-prepare" upgrade/prepare.robot
 stop_docker_env
 prepare_for_image "$OZONE_UPGRADE_TO"
 export OM_HA_ARGS='--upgrade'
 
 echo "--- RUNNING WITH NEW VERSION $OZONE_UPGRADE_TO FINALIZED ---"
-OUTPUT_NAME="$OZONE_UPGRADE_TO"-finalized
+OUTPUT_NAME="${OZONE_UPGRADE_FROM}-${OZONE_UPGRADE_TO}-4-finalized"
 OZONE_KEEP_RESULTS=true start_docker_env
 
 # Sends commands to finalize OM and SCM.
-execute_robot_test "$SCM" upgrade/finalize.robot
+execute_robot_test "$SCM" -N "${OUTPUT_NAME}-finalize" upgrade/finalize.robot
 callback with_this_version_finalized


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

Reply via email to