From 3ff2c92ef43e0924108a9ea9db593f1ffef14884 Mon Sep 17 00:00:00 2001 From: Dusan Jovic Date: Tue, 6 Aug 2024 17:36:04 +0000 Subject: [PATCH] Remove setting ecflow labels from submit_and_wait. Let's not complicate things --- tests/rt_utils.sh | 14 -------------- tests/run_test.sh | 12 +++--------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/tests/rt_utils.sh b/tests/rt_utils.sh index 5290cfb416..6a5e094158 100755 --- a/tests/rt_utils.sh +++ b/tests/rt_utils.sh @@ -124,9 +124,6 @@ submit_and_wait() { local -r job_card=$1 - ROCOTO=${ROCOTO:-false} - ECFLOW=${ECFLOW:-false} - case ${SCHEDULER} in pbs) qsubout=$( qsub "${job_card}" ) @@ -150,7 +147,6 @@ submit_and_wait() { local count=0 local job_running='' echo "rt_utils.sh: Job is waiting to enter the queue..." - [[ ${ECFLOW:-false} == true ]] && ecflow_client --label=job_status "Waiting to enter the queue" until [[ ${job_running} == 'true' ]] do case ${SCHEDULER} in @@ -177,10 +173,6 @@ submit_and_wait() { if [[ ${count} -eq 13 ]]; then echo "No job in queue after one minute, exiting..."; exit 2; fi done echo "rt_utils.sh Job (${jobid}) is now in the queue." - if [[ ${ECFLOW:-false} == true ]]; then - ecflow_client --label=job_id "${jobid}" - ecflow_client --label=job_status "Submitted" - fi # wait for the job to finish and compare results local n=1 @@ -247,7 +239,6 @@ submit_and_wait() { F|TO|CA|FAILED|TIMEOUT|CANCELLED) echo "rt_utils.sh: !!!!!!!!!!JOB TERMINATED!!!!!!!!!! status=${status}" job_running=false #Trip the loop to end with these status flags - [[ ${ECFLOW:-false} == true ]] && ecflow_client --label=job_status "Failed" interrupt_job exit 1 ;; @@ -265,7 +256,6 @@ submit_and_wait() { esac echo "${n} min. ${SCHEDULER^} Job ${jobid} Status: ${status_label} (${status})" - [[ ${ECFLOW:-false} == true ]] && ecflow_client --label=job_status "${status_label}" (( n=n+1 )) sleep 60 & wait $! @@ -475,8 +465,6 @@ EOF { echo " task compile_${COMPILE_ID}" echo " label build_options '${MAKE_OPT}'" - echo " label job_id ''" - echo " label job_status ''" echo " inlimit max_builds" } >> "${ECFLOW_RUN}/${ECFLOW_SUITE}.def" } @@ -494,8 +482,6 @@ ${PATHRT}/run_test.sh "${PATHRT}" "${RUNDIR_ROOT}" "${TEST_NAME}" "${TEST_ID}" " EOF { echo " task ${TEST_ID}${RT_SUFFIX}" - echo " label job_id ''" - echo " label job_status ''" echo " inlimit max_jobs" } >> "${ECFLOW_RUN}/${ECFLOW_SUITE}.def" if [[ ${DEP_RUN} != '' ]]; then diff --git a/tests/run_test.sh b/tests/run_test.sh index cfce002bdc..553b0a3d37 100755 --- a/tests/run_test.sh +++ b/tests/run_test.sh @@ -508,15 +508,9 @@ if [[ ${skip_check_results} == false ]]; then echo } >> "${RT_LOG}" - TRIES='' - if [[ ${ECFLOW} == true ]]; then - if [[ ${ECF_TRYNO} -gt 1 ]]; then - TRIES=" Tries: ${ECF_TRYNO}" - fi - fi - echo "Test ${TEST_ID} ${test_status}${TRIES}" >> "${RT_LOG}" - echo >> "${RT_LOG}" - echo "Test ${TEST_ID} ${test_status}${TRIES}" + echo "Test ${TEST_ID} ${test_status}" >> "${RT_LOG}" + echo >> "${RT_LOG}" + echo "Test ${TEST_ID} ${test_status}" echo if [[ ${test_status} = 'FAIL' ]]; then