From 1b5a5909c858a08999f04ae6508107fff8f3fdd3 Mon Sep 17 00:00:00 2001 From: David Huber Date: Thu, 30 Jan 2025 11:03:21 -0500 Subject: [PATCH 1/3] Check if ci/platform/config. exists; raise error if account not specified --- workflow/generate_workflows.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/workflow/generate_workflows.sh b/workflow/generate_workflows.sh index 152e442dece..1f5f878c59c 100755 --- a/workflow/generate_workflows.sh +++ b/workflow/generate_workflows.sh @@ -353,7 +353,15 @@ rm -f stdout [[ "${_debug}" == "true" ]] && set -x set -u machine=${MACHINE_ID} -. "${HOMEgfs}/ci/platforms/config.${machine}" +platform_config="${HOMEgfs}/ci/platforms/config.${machine}" +if [[ -f "${platform_config}" ]]; then + . "${HOMEgfs}/ci/platforms/config.${machine}" +else + if [[ "${_set_account}" == "false" ]] ; then + echo "ERROR Unknown HPC account! Please use the -A option to specify." + exit 11 + fi +fi # If _yaml_dir is not set, set it to $HOMEgfs/ci/cases/pr if [[ -z ${_yaml_dir} ]]; then @@ -446,8 +454,12 @@ EOM done # Update the account if specified -[[ "${_set_account}" == true ]] && export HPC_ACCOUNT=${_hpc_account} && \ - [[ "${_verbose}" == true ]] && printf "Setting HPC account to %s\n\n" "${HPC_ACCOUNT}" +if [[ "${_set_account}" == true ]] ; then + export HPC_ACCOUNT=${_hpc_account} + if [[ "${_verbose}" == true ]]; then + printf "Setting HPC account to %s\n\n" "${HPC_ACCOUNT}" + fi +fi # Create the experiments rm -f "tests.cron" "${_verbose_flag}" @@ -470,7 +482,7 @@ for _case in "${_yaml_list[@]}"; do fi echo "${_message}" rm -f stdout stderr - exit 11 + exit 12 fi rm -f stdout stderr fi From 91c554d9c953272cfa14b0f841f8d0f115ea90ce Mon Sep 17 00:00:00 2001 From: David Huber Date: Thu, 30 Jan 2025 11:14:54 -0500 Subject: [PATCH 2/3] Add gaeac5/6 platform configs --- ci/platforms/{config.gaea => config.gaeac5} | 0 ci/platforms/config.gaeac6 | 8 ++++++++ 2 files changed, 8 insertions(+) rename ci/platforms/{config.gaea => config.gaeac5} (100%) create mode 100644 ci/platforms/config.gaeac6 diff --git a/ci/platforms/config.gaea b/ci/platforms/config.gaeac5 similarity index 100% rename from ci/platforms/config.gaea rename to ci/platforms/config.gaeac5 diff --git a/ci/platforms/config.gaeac6 b/ci/platforms/config.gaeac6 new file mode 100644 index 00000000000..1de7812ee27 --- /dev/null +++ b/ci/platforms/config.gaeac6 @@ -0,0 +1,8 @@ +#!/usr/bin/bash + +export GFS_CI_ROOT=/gpfs/f6/drsa-precip3/scratch/${USER}/GFS_CI_ROOT +export ICSDIR_ROOT=/gpfs/f6/bil-fire8/world-shared/global/glopara/data/ICSDIR +export STMP="/gpfs/f6/drsa-precip3/scratch/${USER}/STMP" +export HPC_ACCOUNT=drsa-precip3 +export max_concurrent_cases=5 +export max_concurrent_pr=4 From a6525beb760feca4361bcb08b5c25f514fd692b1 Mon Sep 17 00:00:00 2001 From: David Huber Date: Thu, 30 Jan 2025 11:50:12 -0500 Subject: [PATCH 3/3] Remove STMP from config files --- ci/platforms/config.gaeac5 | 1 - ci/platforms/config.gaeac6 | 1 - 2 files changed, 2 deletions(-) diff --git a/ci/platforms/config.gaeac5 b/ci/platforms/config.gaeac5 index f4b8cc13ec5..1223bb1cbb5 100644 --- a/ci/platforms/config.gaeac5 +++ b/ci/platforms/config.gaeac5 @@ -2,7 +2,6 @@ export GFS_CI_ROOT=/gpfs/f5/epic/proj-shared/global/GFS_CI_ROOT export ICSDIR_ROOT=/gpfs/f5/epic/proj-shared/global/glopara/data/ICSDIR -export STMP="/gpfs/f5/epic/scratch/${USER}" export HPC_ACCOUNT=ufs-ard export max_concurrent_cases=5 export max_concurrent_pr=4 diff --git a/ci/platforms/config.gaeac6 b/ci/platforms/config.gaeac6 index 1de7812ee27..b5dbe08c523 100644 --- a/ci/platforms/config.gaeac6 +++ b/ci/platforms/config.gaeac6 @@ -2,7 +2,6 @@ export GFS_CI_ROOT=/gpfs/f6/drsa-precip3/scratch/${USER}/GFS_CI_ROOT export ICSDIR_ROOT=/gpfs/f6/bil-fire8/world-shared/global/glopara/data/ICSDIR -export STMP="/gpfs/f6/drsa-precip3/scratch/${USER}/STMP" export HPC_ACCOUNT=drsa-precip3 export max_concurrent_cases=5 export max_concurrent_pr=4