Skip to content

Commit

Permalink
Automatic regression tests (ufs-community#426)
Browse files Browse the repository at this point in the history
Create rt.sh script for automatic regression tests on NOAA HPC systems
  • Loading branch information
kgerheiser authored Apr 13, 2021
1 parent 2462b9b commit 15ccb67
Show file tree
Hide file tree
Showing 30 changed files with 239 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- name: install-dependencies
run: |
echo "/home/runner/mpich/bin" >> $GITHUB_PATH
if [[ ${{ matrix.os }} == "ubuntu-20.04" ]]; then
sudo apt-get update
sudo apt-get install libmpich-dev
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ endif()

# Find packages.
find_package(NetCDF REQUIRED C Fortran)
find_package(MPI REQUIRED)
find_package(MPI REQUIRED C Fortran)
find_package(ESMF MODULE REQUIRED)

if(OPENMP)
Expand Down
8 changes: 5 additions & 3 deletions reg_tests/chgres_cube/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ module use ../../modulefiles
module load build.$target.$compiler
module list

export OUTDIR=/scratch2/NCEPDEV/stmp1/$LOGNAME/chgres_reg_tests
PROJECT_CODE="fv3-cpu"
QUEUE="batch"
export OUTDIR="${WORK_DIR:-/scratch2/NCEPDEV/stmp1/$LOGNAME}"
export OUTDIR="${OUTDIR}/reg-tests/chgres-cube"

PROJECT_CODE="${PROJECT_CODE:-fv3-cpu}"
QUEUE="${QUEUE:-batch}"

#-----------------------------------------------------------------------------
# Should not have to change anything below here. HOMEufs is the root
Expand Down
8 changes: 5 additions & 3 deletions reg_tests/chgres_cube/driver.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ module use ../../modulefiles
module load build.$target.intel
module list

export OUTDIR=/lfs4/HFIP/emcda/$LOGNAME/stmp/chgres_reg_tests
PROJECT_CODE="hfv3gfs"
QUEUE="debug"
export OUTDIR="${WORK_DIR:-/lfs4/HFIP/emcda/$LOGNAME/stmp}"
export OUTDIR="${OUTDIR}/reg-tests/chgres-cube"

PROJECT_CODE="${PROJECT_CODE:-hfv3gfs}"
QUEUE="${QUEUE:-debug}"

#-----------------------------------------------------------------------------
# Should not have to change anything below here. HOMEufs is the root
Expand Down
10 changes: 7 additions & 3 deletions reg_tests/chgres_cube/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ module use ../../modulefiles
module load build.$target.intel
module list

export OUTDIR=/work/noaa/stmp/$LOGNAME/chgres_reg_tests
PROJECT_CODE="fv3-cpu"
QUEUE="debug"
ulimit -s unlimited

export OUTDIR="${WORK_DIR:-/work/noaa/stmp/$LOGNAME}"
export OUTDIR="${OUTDIR}/reg-tests/chgres-cube"

PROJECT_CODE="${PROJECT_CODE:-fv3-cpu}"
QUEUE="${QUEUE:-debug}"

#-----------------------------------------------------------------------------
# Should not have to change anything below here. HOMEufs is the root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ module use ../../modulefiles
module load build.$target.intel
module list

export OUTDIR=/gpfs/hps3/stmp/$LOGNAME/chgres_reg_tests
QUEUE="debug"
PROJECT_CODE="GFS-DEV"
export OUTDIR="${WORK_DIR:-/gpfs/hps3/stmp/$LOGNAME}"
export OUTDIR="${OUTDIR}/reg-tests/chgres-cube"

QUEUE="${QUEUE:-debug}"
PROJECT_CODE="${PROJECT_CODE:-GFS-DEV}"

#-----------------------------------------------------------------------------
# Should not have to change anything below here. HOMEufs is the root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ module use ../../modulefiles
module load build.$target.intel
module list

export OUTDIR=/gpfs/dell1/stmp/$LOGNAME/chgres_reg_tests
QUEUE="debug"
PROJECT_CODE="GFS-DEV"
export OUTDIR="${WORK_DIR:-/gpfs/dell1/stmp/$LOGNAME}"
export OUTDIR="${OUTDIR}/reg-tests/chgres-cube"

QUEUE="${QUEUE:-debug}"
PROJECT_CODE="${PROJECT_CODE:-GFS-DEV}"

#-----------------------------------------------------------------------------
# Should not have to change anything below here. HOMEufs is the root
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/global_cycle/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ module use ../../modulefiles
module load build.$target.$compiler
module list

export DATA=/scratch2/NCEPDEV/stmp1/$LOGNAME/reg_tests.cycle
export DATA="${WORK_DIR:-/scratch2/NCEPDEV/stmp1/$LOGNAME}"
export DATA="${DATA}/reg-tests/global-cycle"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/global_cycle/driver.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ module use ../../modulefiles
module load build.$target.intel
module list

export DATA=/lfs4/HFIP/emcda/$LOGNAME/stmp/reg_tests.cycle
export DATA="${WORK_DIR:-/lfs4/HFIP/emcda/$LOGNAME/stmp}"
export DATA="${DATA}/reg-tests/global-cycle"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down
5 changes: 4 additions & 1 deletion reg_tests/global_cycle/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ module use ../../modulefiles
module load build.$target.intel
module list

export DATA=/work/noaa/stmp/$LOGNAME/reg_tests.cycle
ulimit -s unlimited

export DATA="${WORK_DIR:-/work/noaa/stmp/$LOGNAME}"
export DATA="${DATA}/reg-tests/global-cycle"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ module use ../../modulefiles
module load build.$target.intel
module list

export DATA=/gpfs/hps3/stmp/$LOGNAME/reg_tests.cycle
export DATA="${WORK_DIR:-/gpfs/hps3/stmp/$LOGNAME}"
export DATA="${DATA}/reg-tests/global-cycle"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ module use ../../modulefiles
module load build.$target.intel
module list

export DATA=/gpfs/dell1/stmp/$LOGNAME/reg_tests.cycle
export DATA="${WORK_DIR:-/gpfs/dell1/stmp/$LOGNAME}"
export DATA="${DATA}/reg-tests/global-cycle"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down
7 changes: 4 additions & 3 deletions reg_tests/grid_gen/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ module list

set -x

export WORK_DIR=/scratch2/NCEPDEV/stmp1/$LOGNAME/reg_tests.grid
QUEUE="batch"
PROJECT_CODE="fv3-cpu"
export WORK_DIR="${WORK_DIR:-/scratch2/NCEPDEV/stmp1/$LOGNAME}"
export WORK_DIR="${WORK_DIR}/reg-tests/grid-gen"
QUEUE="${QUEUE:-batch}"
PROJECT_CODE="${PROJECT_CODE:-fv3-cpu}"

#-----------------------------------------------------------------------------
# Should not have to change anything below here.
Expand Down
7 changes: 4 additions & 3 deletions reg_tests/grid_gen/driver.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ module list

set -x

QUEUE="windfall"
PROJECT_CODE="emcda"
export WORK_DIR=/lfs4/HFIP/emcda/$LOGNAME/stmp/reg_tests.grid
QUEUE="${QUEUE:-windfall}"
PROJECT_CODE="${PROJECT_CODE:-emcda}"
export WORK_DIR="${WORK_DIR:-/lfs4/HFIP/emcda/$LOGNAME/stmp}"
export WORK_DIR="${WORK_DIR}/reg-tests/grid-gen"

#-----------------------------------------------------------------------------
# Should not have to change anything below here.
Expand Down
8 changes: 5 additions & 3 deletions reg_tests/grid_gen/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ module load build.$target.intel
module list

set -x
ulimit -s unlimited

export WORK_DIR=/work/noaa/stmp/$LOGNAME/reg_tests.grid
QUEUE="batch"
PROJECT_CODE="fv3-cpu"
export WORK_DIR="${WORK_DIR:-/work/noaa/stmp/$LOGNAME}"
export WORK_DIR="${WORK_DIR}/reg-tests/grid-gen"
QUEUE="${QUEUE:-batch}"
PROJECT_CODE=${PROJECT_CODE:-fv3-cpu}

#-----------------------------------------------------------------------------
# Should not have to change anything below here.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ module list

set -x

QUEUE="debug"
PROJECT_CODE="GFS-DEV"
export WORK_DIR=/gpfs/hps3/stmp/$LOGNAME/reg_tests.grid
QUEUE="${QUEUE:-debug}"
PROJECT_CODE="${PROJECT_CODE:-GFS-DEV}"
export WORK_DIR="${WORK_DIR:-/gpfs/hps3/stmp/$LOGNAME}"
export WORK_DIR="${WORK_DIR}/reg-tests/grid-gen"

#-----------------------------------------------------------------------------
# Should not have to change anything below here.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ module list

set -x

QUEUE="debug"
PROJECT_CODE="GFS-DEV"
export WORK_DIR=/gpfs/dell1/stmp/$LOGNAME/reg_tests.grid
QUEUE="${QUEUE:-debug}"
PROJECT_CODE="${PROJECT_CODE:-GFS-DEV}"
export WORK_DIR="${WORK_DIR:-/gpfs/dell1/stmp/$LOGNAME}"
export WORK_DIR="${WORK_DIR}/reg-tests/grid-gen"

#-----------------------------------------------------------------------------
# Should not have to change anything below here.
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/ice_blend/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ module use ../../modulefiles
module load build.$target.$compiler
module list

export DATA="/scratch2/NCEPDEV/stmp1/$LOGNAME/reg_test.ice_blend"
export DATA="${WORK_DIR:-/scratch2/NCEPDEV/stmp1/$LOGNAME}"
export DATA="${DATA}/reg-tests/ice-blend"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/ice_blend/driver.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ module use ../../modulefiles
module load build.$target.intel
module list

export DATA="/lfs4/HFIP/emcda/$LOGNAME/stmp/reg_test.ice_blend"
export DATA="${WORK_DIR:-/lfs4/HFIP/emcda/$LOGNAME/stmp}"
export DATA="${DATA}/reg-tests/ice-blend"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down
5 changes: 4 additions & 1 deletion reg_tests/ice_blend/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ module use ../../modulefiles
module load build.$target.intel
module list

export DATA="/work/noaa/stmp/$LOGNAME/reg_test.ice_blend"
ulimit -s unlimited

export DATA="${WORK_DIR:-/work/noaa/stmp/$LOGNAME}"
export DATA="${DATA}/reg-tests/ice-blend"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ module use ../../modulefiles
module load build.$target.intel
module list

export DATA=/gpfs/hps3/stmp/$LOGNAME/reg_tests.ice_blend
export DATA="${WORK_DIR:-/gpfs/hps3/stmp/$LOGNAME}"
export DATA="${DATA}/reg-tests/ice-blend"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ module list

set -x

export DATA=/gpfs/dell1/stmp/$LOGNAME/reg_tests.ice_blend
export DATA="${WORK_DIR:-/gpfs/dell1/stmp/$LOGNAME}"
export DATA="${DATA}/reg-tests/ice-blend"

#-----------------------------------------------------------------------------
# Should not have to change anything below.
Expand Down
Loading

0 comments on commit 15ccb67

Please sign in to comment.