forked from ufs-community/ufs-weather-model
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into land_upgrade_hr4
- Loading branch information
Showing
77 changed files
with
3,234 additions
and
2,319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
help([[ | ||
loads UFS Model prerequisites for Frontera/Intel | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/work2/06146/tg854455/frontera/spack-stack/modulefiles") | ||
load("ecflow/5.8.4") | ||
|
||
prepend_path("MODULEPATH", "/work2/01118/tg803972/frontera/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core") | ||
|
||
stack_intel_ver=os.getenv("stack_intel_ver") or "19.1.1.217" | ||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
|
||
stack_impi_ver=os.getenv("stack_impi_ver") or "2020.4.304" | ||
load(pathJoin("stack-intel-mpi", stack_impi_ver)) | ||
|
||
cmake_ver=os.getenv("cmake_ver") or "3.24.2" | ||
load(pathJoin("cmake", cmake_ver)) | ||
--load("cmake/3.24.2") | ||
|
||
load("ufs_common") | ||
|
||
stack_python_ver=os.getenv("stack_python_ver") or "3.10.13" | ||
load(pathJoin("stack-python", stack_python_ver)) | ||
|
||
nccmp_ver=os.getenv("nccmp_ver") or "1.9.0.1" | ||
load(pathJoin("nccmp", nccmp_ver)) | ||
|
||
setenv("CC", "mpiicc") | ||
setenv("CXX", "mpiicpc") | ||
setenv("FC", "mpiifort") | ||
setenv("CMAKE_Platform", "frontera.intel") | ||
|
||
whatis("Description: UFS build environment") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export BL_DATE=20240614 | ||
export BL_DATE=20240718 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
pipeline { | ||
agent none | ||
stages { | ||
stage('Run ORTs') { | ||
agent { | ||
label 'built-in' | ||
} | ||
steps { | ||
script { | ||
for (label in pullRequest.labels) { | ||
if ((label.matches("orion"))) { | ||
env.CHOICE_NODE='orion' | ||
} | ||
else if ((label.matches("hera"))) { | ||
env.CHOICE_NODE='hera' | ||
} | ||
else if ((label.matches("hercules"))) { | ||
env.CHOICE_NODE='hercules' | ||
} | ||
else if ((label.matches("jet"))) { | ||
env.CHOICE_NODE='jet' | ||
} | ||
else { | ||
env.CHOICE_NODE='none' | ||
} | ||
} | ||
// Why do I need another if..block, because it just works this way. | ||
|
||
if (CHOICE_NODE == 'orion') { | ||
echo "Starting up orion ${CHOICE_NODE}...this might take 5-10 minutes...please be patient." | ||
|
||
} | ||
else if (CHOICE_NODE == 'jet') { | ||
echo "Starting up jet ${CHOICE_NODE}...this might take 5-10 minutes...please be patient." | ||
} | ||
else if (CHOICE_NODE == 'hercules') { | ||
echo "Starting up hera ${CHOICE_NODE}...this might take 5-10 minutes...please be patient." | ||
} | ||
else if (CHOICE_NODE == 'hera') { | ||
echo "Starting up hera ${CHOICE_NODE}...this might take 5-10 minutes...please be patient." | ||
} | ||
else { | ||
echo "${CHOICE_NODE} is NOT a platform, moving on..." | ||
} | ||
} | ||
} | ||
} | ||
stage('Run ORT on Hera') { | ||
agent { | ||
label "hera" | ||
} | ||
environment { | ||
ACCNR = 'epic' | ||
NODE_PATH = '/scratch2/NAGAPE/epic/role.epic/' | ||
} | ||
steps { | ||
|
||
cleanWs() | ||
checkout scm | ||
sh ''' | ||
git submodule update --init --recursive | ||
cd tests/fv3_conf | ||
sed 's/#SBATCH --time=.*/#SBATCH --time=02:00:00/g' -i fv3_slurm.IN_hera | ||
cd .. | ||
export machine=${NODE_NAME} | ||
export PATH=$PATH:~/bin | ||
echo $CHANGE_ID | ||
export SSH_ORIGIN=$(curl --silent https://api.github.com/repos/ufs-community/ufs-weather-model/pulls/$CHANGE_ID | jq -r '.head.repo.ssh_url') | ||
export FORK_BRANCH=$(curl --silent https://api.github.com/repos/ufs-community/ufs-weather-model/pulls/$CHANGE_ID | jq -r '.head.ref') | ||
pwd | ||
sed "s|intel|gnu|g" -i opnReqTest | ||
export ACCNR=epic | ||
./opnReqTest -n regional_control -a ${ACCNR} -c bit,dcp,thr | ||
cd logs/ | ||
cp OpnReqTests_regional_control_hera.log /scratch2/NAGAPE/epic/role.epic/jenkins/workspace | ||
cd .. | ||
./opnReqTest -n cpld_control_nowave_noaero_p8 -a ${ACCNR} -c dbg,rst | ||
cd logs/ | ||
cp OpnReqTests_cpld_control_nowave_noaero_p8_hera.log /scratch2/NAGAPE/epic/role.epic/jenkins/workspace | ||
cd .. | ||
./opnReqTest -n control_p8 -a ${ACCNR} -c std,dbg,bit,mpi,rst,thr,dcp | ||
cd logs/ | ||
cp OpnReqTests_control_p8_hera.log /scratch2/NAGAPE/epic/role.epic/jenkins/workspace | ||
git remote -v | ||
git fetch --no-recurse-submodules origin | ||
git reset FETCH_HEAD --hard | ||
cd .. && cd .. && cd .. | ||
cp OpnReqTests_control_p8_hera.log $WORKSPACE/tests/logs/ | ||
cp OpnReqTests_regional_control_hera.log $WORKSPACE/tests/logs/ | ||
cp OpnReqTests_cpld_control_nowave_noaero_p8_hera.log $WORKSPACE/tests/logs/ | ||
cd $WORKSPACE/tests/ | ||
git config user.email "ecc.platform@noaa.gov" | ||
git config user.name "epic-cicd-jenkins" | ||
echo "Testing concluded...removing labels for $machine from $GIT_URL" | ||
|
||
export machine_name_logs=$(echo $machine | awk '{ print tolower($1) }') | ||
git remote -v | grep -w sshorigin > /dev/null 2>&1 && git remote remove sshorigin > /dev/null 2>&1 | ||
git remote add sshorigin $SSH_ORIGIN > /dev/null 2>&1 | ||
git add logs/OpnReqTests_control_p8_hera.log logs/OpnReqTests_regional_control_hera.log logs/OpnReqTests_cpld_control_nowave_noaero_p8_hera.log | ||
git commit -m "ORT Jobs Completed.\n\n\n on-behalf-of @ufs-community <ecc.platform@noaa.gov>" | ||
git pull sshorigin $FORK_BRANCH | ||
git push sshorigin HEAD:$FORK_BRANCH | ||
''' | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This file is an alternative to rt.conf that tests whether the regression test system rt.sh can detect failure conditions. | ||
# | ||
# ./rt.sh [options] -l error-test.conf | ||
# | ||
# If the rt.sh detects errors correctly, the workflow shouldn't finish. Some jobs should be failed or not submitted, and some should succeed. | ||
# See details below. | ||
|
||
# This should succeed | ||
COMPILE | atm_dyn32 | intel | -DAPP=ATM -DCCPP_SUITES=FV3_GFS_v16,FV3_GFS_v16_flake,FV3_GFS_v17_p8,FV3_GFS_v17_p8_rrtmgp,FV3_GFS_v15_thompson_mynn_lam3km,FV3_WoFS_v0,FV3_GFS_v17_p8_mynn,FV3_GFS_v17_p8_ugwpv1 -D32BIT=ON | | fv3 | | ||
|
||
# This should succeed | ||
RUN | control_c48.v2.sfc | | baseline | | ||
|
||
# These tests should always fail, and prevent the workflow from completing. | ||
RUN | fail_to_copy | | baseline | | ||
RUN | fail_to_run | | baseline | | ||
|
||
# Using 64-bit dynamics ensures results change, but the test runs. The workflow jobs should complete | ||
# for the COMPILE and RUN, but the results should change. | ||
COMPILE | atm_dyn64 | intel | -DAPP=ATM -DCCPP_SUITES=FV3_GFS_v16,FV3_GFS_v16_flake,FV3_GFS_v17_p8,FV3_GFS_v17_p8_rrtmgp,FV3_GFS_v15_thompson_mynn_lam3km,FV3_WoFS_v0,FV3_GFS_v17_p8_mynn,FV3_GFS_v17_p8_ugwpv1 | | fv3 | | ||
RUN | control_c48 | | baseline | | ||
|
||
# This compile job should fail, and prevent the workflow from completing. | ||
COMPILE | fail_to_compile | intel | --invalid-argument -DAPP=ATM -DCCPP_SUITES=whatever | | fv3 | | ||
|
||
# This test should not be submitted, because its compile job has failed. | ||
RUN | dependency_unmet | | baseline | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.