Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UFS-dev PR#119 #127

Merged
merged 4 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into ufs-dev-PR119
  • Loading branch information
grantfirl committed Mar 15, 2024
commit c9844c39508979e93fc7b250b176cfa5bb063c59
2 changes: 1 addition & 1 deletion FV3
Submodule FV3 updated 1 files
+1 −1 ccpp/physics
22 changes: 0 additions & 22 deletions tests/auto/jobs/rt.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,6 @@ def run(job_obj):
post_process(job_obj, pr_repo_loc, repo_dir_str, branch)


def set_directories(job_obj):
logger = logging.getLogger('RT/SET_DIRECTORIES')
if job_obj.machine == 'hera':
workdir = '/scratch1/NCEPDEV/nems/emc.nemspara/autort/pr'
elif job_obj.machine == 'jet':
workdir = '/lfs4/HFIP/h-nems/emc.nemspara/autort/pr'
elif job_obj.machine == 'gaea':
workdir = '/lustre/f2/pdata/ncep/emc.nemspara/autort/pr'
elif job_obj.machine == 'orion':
workdir = '/work/noaa/nems/emc.nemspara/autort/pr'
elif job_obj.machine == 'derecho':
workdir = '/glade/scratch/dtcufsrt/autort/tests/auto/pr'
else:
print(f'Machine {job_obj.machine} is not supported for this job')
raise KeyError

logger.info(f'machine: {job_obj.machine}')
logger.info(f'workdir: {workdir}')

return workdir


def run_regression_test(job_obj, pr_repo_loc):
logger = logging.getLogger('RT/RUN_REGRESSION_TEST')

Expand Down
22 changes: 1 addition & 21 deletions tests/auto/rt_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,27 +264,7 @@ def job_failed(self, logger, job_name, exception=None, STDOUT=False,
# if exception is not None:
# raise

def setup_env():
hostname = os.getenv('HOSTNAME')
if bool(re.match(re.compile('hfe.+'), hostname)):
machine = 'hera'
elif bool(re.match(re.compile('hecflow.+'), hostname)):
machine = 'hera'
elif bool(re.match(re.compile('fe.+'), hostname)):
machine = 'jet'
os.environ['ACCNR'] = 'h-nems'
elif bool(re.match(re.compile('gaea.+'), hostname)):
machine = 'gaea'
os.environ['ACCNR'] = 'nggps_emc'
elif bool(re.match(re.compile('Orion-login.+'), hostname)):
machine = 'orion'
elif bool(re.match(re.compile('chadmin.+'), hostname)):
machine = 'derecho'
os.environ['ACCNR'] = 'P48503002'
else:
raise KeyError(f'Hostname: {hostname} does not match '\
'for a supported system. Exiting.')

def setup_env(git_cfg):
# Dictionary of GitHub repositories to check

if not git_cfg.get('repo'):
Expand Down
4 changes: 0 additions & 4 deletions tests/auto/start_rt_auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ elif [[ $machine == jet ]]; then
elif [[ $machine == gaea ]]; then
export PATH=/lustre/f2/pdata/esrl/gsd/contrib/miniconda3/4.8.3/envs/ufs-weather-model/bin:$PATH
export PYTHONPATH=/lustre/f2/pdata/esrl/gsd/contrib/miniconda3/4.8.3/lib/python3.8/site-packages
<<<<<<< HEAD
elif [[ $machine == cheyenne ]]; then
=======
elif [[ $HOSTNAME == *chadmin* ]]; then
export MACHINE_ID=derecho
>>>>>>> 991d6527da22d11016df035998ec1352d0449875
export PATH=/glade/p/ral/jntp/tools/miniconda3/4.8.3/envs/ufs-weather-model/bin:/glade/p/ral/jntp/tools/miniconda3/4.8.3/bin:$PATH
export PATH=/glade/work/epicufsrt/contrib/derecho/rocoto/bin:$PATH
export PYTHONPATH=/glade/p/ral/jntp/tools/miniconda3/4.8.3/envs/ufs-weather-model/lib/python3.8/site-packages:/glade/p/ral/jntp/tools/miniconda3/4.8.3/lib/python3.8/site-packages
Expand Down
2 changes: 1 addition & 1 deletion tests/bl_date.ncar.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export BL_DATE=20240131
export BL_DATE=20240313

12,770 changes: 7,742 additions & 5,028 deletions tests/logs/RegressionTests_hera.log

Large diffs are not rendered by default.

24 changes: 0 additions & 24 deletions tests/machine/cheyenne

This file was deleted.

2 changes: 0 additions & 2 deletions tests/machine/cheyenne.ncar
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
source bl_date.ncar.conf
export PATH=/glade/work/jedipara/cheyenne/spack-stack/miniconda-3.9.12/bin:$PATH
export PYTHONPATH=/glade/work/jedipara/cheyenne/spack-stack/miniconda-3.9.12/lib/python3.9/site-packages

module use /gpfs/fs1/work/strahan/rocoto/modulefiles
module load rocoto/1.3.3
Expand Down
21 changes: 21 additions & 0 deletions tests/machine/derecho
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export PATH=/glade/p/ral/jntp/tools/miniconda3/4.8.3/envs/ufs-weather-model/bin:/glade/p/ral/jntp/tools/miniconda3/4.8.3/bin:$PATH
export PATH=/glade/work/epicufsrt/contrib/derecho/rocoto/bin:$PATH
export PYTHONPATH=/glade/p/ral/jntp/tools/miniconda3/4.8.3/envs/ufs-weather-model/lib/python3.8/site-packages:/glade/p/ral/jntp/tools/miniconda3/4.8.3/lib/python3.8/site-packages
ECFLOW_START=/glade/p/ral/jntp/tools/miniconda3/4.8.3/envs/ufs-weather-model/bin/ecflow_start.sh
ECF_PORT=$(( $(id -u) + 1500 ))

QUEUE=main
COMPILE_QUEUE=main
PARTITION=
dprefix=/glade/derecho/scratch
DISKNM=/glade/derecho/scratch/epicufsrt/ufs-weather-model/RT/
STMP=$dprefix
PTMP=$dprefix
SCHEDULER=pbs
cp fv3_conf/fv3_qsub.IN_derecho fv3_conf/fv3_qsub.IN
cp fv3_conf/compile_qsub.IN_derecho fv3_conf/compile_qsub.IN

ROCOTORUN=$(which rocotorun)
ROCOTOSTAT=$(which rocotostat)
ROCOTOCOMPLETE=$(which rocotocomplete)
ROCOTO_SCHEDULER=pbspro
24 changes: 0 additions & 24 deletions tests/machine/gaea

This file was deleted.

24 changes: 24 additions & 0 deletions tests/machine/gaea-c5
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module use /lustre/f2/dev/role.epic/contrib/C5/rocoto/modulefiles
module load rocoto
ROCOTORUN=$(which rocotorun)
ROCOTOSTAT=$(which rocotostat)
ROCOTOCOMPLETE=$(which rocotocomplete)
ROCOTO_SCHEDULER=slurm

module load PrgEnv-intel/8.3.3
module load intel-classic/2023.1.0
module load cray-mpich/8.1.25
module load python/3.9.12
module use /lustre/f2/dev/wpo/role.epic/contrib/spack-stack/c5/modulefiles
module load ecflow/5.8.4
ECFLOW_START=/lustre/f2/dev/wpo/role.epic/contrib/spack-stack/c5/ecflow-5.8.4/bin/ecflow_start.sh
ECF_PORT=$(( $(id -u) + 1500 ))

DISKNM=/lustre/f2/pdata/ncep/role.epic/C5/RT
QUEUE=normal
COMPILE_QUEUE=normal
PARTITION=c5
STMP=/lustre/f2/scratch
PTMP=/lustre/f2/scratch

SCHEDULER=slurm
4 changes: 0 additions & 4 deletions tests/machine/hera
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
ROCOTOCOMPLETE=$(which rocotocomplete)
ROCOTO_SCHEDULER=slurm

PYTHONHOME=/scratch1/NCEPDEV/jcsda/jedipara/spack-stack/miniconda-3.9.12
export PATH=$PYTHONHOME/bin:$PATH
export PYTHONPATH=$PYTHONHOME/lib/python3.9/site-packages

module load ecflow/5.5.3
ECFLOW_START=ecflow_start.sh

Expand Down
4 changes: 0 additions & 4 deletions tests/machine/hera.ncar
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
ROCOTOCOMPLETE=$(which rocotocomplete)
ROCOTO_SCHEDULER=slurm

PYTHONHOME=/scratch1/NCEPDEV/jcsda/jedipara/spack-stack/miniconda-3.9.12
export PATH=$PYTHONHOME/bin:$PATH
export PYTHONPATH=$PYTHONHOME/lib/python3.9/site-packages

module load ecflow/5.5.3
ECFLOW_START=ecflow_start.sh

Expand Down
6 changes: 2 additions & 4 deletions tests/machine/jet
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
module load rocoto/1.3.2
module load rocoto/1.3.6
ROCOTORUN=$(which rocotorun)
ROCOTOSTAT=$(which rocotostat)
ROCOTOCOMPLETE=$(which rocotocomplete)
ROCOTO_SCHEDULER=slurm

export PATH=/lfs4/HFIP/hfv3gfs/spack-stack/apps/miniconda/py39_4.12.0/bin:$PATH
export PYTHONPATH=/lfs4/HFIP/hfv3gfs/spack-stack/apps/miniconda/py39_4.12.0/lib/python3.9/site-packages
module load ecflow
module load ecflow/5.5.3
ECFLOW_START=/apps/ecflow/5.5.3/bin/ecflow_start.sh

QUEUE=batch
Expand Down
11 changes: 4 additions & 7 deletions tests/machine/orion
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
module load git/2.28.0

module load gcc/8.3.0
module load gcc/10.2.0
module load python/3.9.2

module load contrib rocoto/1.3.1
ROCOTORUN=$(which rocotorun)
ROCOTOSTAT=$(which rocotostat)
ROCOTOCOMPLETE=$(which rocotocomplete)
export PATH=/work/noaa/da/role-da/spack-stack/miniconda-3.9.7/bin:$PATH
export PYTHONPATH=/work/noaa/da/role-da/spack-stack/miniconda-3.9.7/lib/python3.9/site-packages

module use /work/noaa/da/role-da/spack-stack/modulefiles
module load miniconda/3.9.7
module use /work/noaa/epic/role-epic/spack-stack/orion/modulefiles
module load ecflow/5.8.4
ECFLOW_START=/work/noaa/da/role-da/spack-stack/ecflow-5.8.4/bin/ecflow_start.sh
ECFLOW_START=/work/noaa/epic/role-epic/spack-stack/orion/ecflow-5.8.4/bin/ecflow_start.sh
ECF_PORT=$(( $(id -u) + 1500 ))

QUEUE=batch
Expand Down
4 changes: 2 additions & 2 deletions tests/machine/s4
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module load rocoto/1.3.2
module load ecflow/5.6.0
module load miniconda/3.8-s4
ROCOTORUN=$(which rocotorun)
ROCOTOSTAT=$(which rocotostat)
ROCOTOCOMPLETE=$(which rocotocomplete)
ROCOTO_SCHEDULER=slurm

module load git/2.30.0
module use /data/prod/jedi/spack-stack/modulefiles
module load miniconda/3.9.12
module load ecflow/5.8.4
ECFLOW_START=/data/prod/jedi/spack-stack/ecflow-5.8.4/bin/ecflow_start.sh
ECF_PORT=$(( $(id -u) + 1500 ))
Expand Down
8 changes: 4 additions & 4 deletions tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,11 @@ if [[ $ROCOTO == true ]]; then
QUEUE=batch
COMPILE_QUEUE=batch
ROCOTO_SCHEDULER=slurm
elif [[ $MACHINE_ID = cheyenne ]]; then
elif [[ $MACHINE_ID = derecho ]]; then
QUEUE=regular
COMPILE_QUEUE=regular
ROCOTO_SCHEDULER=pbspro
elif [[ $MACHINE_ID = gaea ]]; then
elif [[ $MACHINE_ID = gaea-c5 ]]; then
QUEUE=normal
COMPILE_QUEUE=normal
ROCOTO_SCHEDULER=slurm
Expand Down Expand Up @@ -463,9 +463,9 @@ EOF
QUEUE=batch
elif [[ $MACHINE_ID = s4 ]]; then
QUEUE=s4
elif [[ $MACHINE_ID = gaea ]]; then
elif [[ $MACHINE_ID = gaea* ]]; then
QUEUE=normal
elif [[ $MACHINE_ID = cheyenne ]]; then
elif [[ $MACHINE_ID = derecho ]]; then
QUEUE=regular
else
die "ecFlow is not supported on this machine $MACHINE_ID"
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.