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#153 #125

Merged
merged 10 commits into from
Mar 14, 2024
Prev Previous commit
Next Next commit
Merge branch 'main' into ufs-dev-PR153
grantfirl committed Mar 12, 2024
commit 16d29a838ec9094371cf6efd8e8c1ce23e0b7b6b
2 changes: 1 addition & 1 deletion FV3
Submodule FV3 updated 2 files
+2 −4 .gitmodules
+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
@@ -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')

22 changes: 1 addition & 21 deletions tests/auto/rt_auto.py
Original file line number Diff line number Diff line change
@@ -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'):
4 changes: 0 additions & 4 deletions tests/auto/start_rt_auto.sh
Original file line number Diff line number Diff line change
@@ -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
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=20240229

12,710 changes: 7,683 additions & 5,027 deletions tests/logs/RegressionTests_hera.log

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions tests/machine/cheyenne
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
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
ROCOTORUN=$(which rocotorun)
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
8 changes: 2 additions & 6 deletions tests/machine/gaea
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
export PATH=/lustre/f2/pdata/esrl/gsd/contrib/miniconda3/4.8.3/envs/ufs-weather-model/bin:/lustre/f2/pdata/esrl/gsd/contrib/miniconda3/4.8.3/bin:$PATH
export PATH=/lustre/f2/pdata/esrl/gsd/spack-stack/miniconda-3.9.12/bin:$PATH
export PYTHONPATH=/lustre/f2/pdata/esrl/gsd/spack-stack/miniconda-3.9.12/lib/python3.9/site-packages

module use /lustre/f2/dev/Samuel.Trahan/hafs/modulefiles/
module load rocoto
ROCOTORUN=$(which rocotorun)
ROCOTOSTAT=$(which rocotostat)
ROCOTOCOMPLETE=$(which rocotocomplete)
ROCOTO_SCHEDULER=slurm

module use /lustre/f2/pdata/esrl/gsd/spack-stack/modulefiles
module use /lustre/f2/dev/role.epic/contrib/spack-stack/c4/modulefiles
module load ecflow/5.8.4
ECFLOW_START=/lustre/f2/pdata/esrl/gsd/spack-stack/ecflow-5.8.4/bin/ecflow_start.sh
ECFLOW_START=/lustre/f2/dev/role.epic/contrib/spack-stack/c4/ecflow-5.8.4/bin/ecflow_start.sh
ECF_PORT=$(( $(id -u) + 1500 ))

DISKNM=/lustre/f2/pdata/ncep/role.epic/RT
4 changes: 0 additions & 4 deletions tests/machine/hera
Original file line number Diff line number Diff line change
@@ -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

4 changes: 0 additions & 4 deletions tests/machine/hera.ncar
Original file line number Diff line number Diff line change
@@ -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

4 changes: 1 addition & 3 deletions tests/machine/jet
Original file line number Diff line number Diff line change
@@ -4,9 +4,7 @@
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
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
1 change: 0 additions & 1 deletion tests/machine/s4
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@

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 ))
You are viewing a condensed version of this merge commit. You can view the full changes here.