Skip to content

Commit

Permalink
Introducing weekly vs pr cases for CI (NOAA-EMC#1844)
Browse files Browse the repository at this point in the history
* adding cases for weekly tests and tests for each pr
* updated path for cases to cases/pr in the main cron driver script to reflect new tree structor in cases dir in support of weekly vs pr based ci tests

---------

Co-authored-by: Terry McGuinness <[email protected]>
  • Loading branch information
1 parent af876c2 commit 06c2e28
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions ci/cases/weekly/C384C192_hybatmda.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
experiment:
type: gfs
mode: cycled

arguments:
pslot: ${pslot}
app: ATM
resdet: 384
resens: 192
comrot: ${RUNTESTS}/COMROT
expdir: ${RUNTESTS}/EXPDIR
icsdir: /scratch1/NCEPDEV/stmp2/Rahul.Mahajan/ICSDIR/IC_C384
idate: 2023040118
edate: 2023040200
nens: 2
gfs_cyc: 1
start: cold
yaml: ${HOMEgfs_PR}/ci/platforms/gfs_defaults_ci-updates.yaml
17 changes: 17 additions & 0 deletions ci/cases/weekly/C384_atm3DVar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
experiment:
type: gfs
mode: cycled

arguments:
pslot: ${pslot}
app: ATM
resdet: C384
comrot: ${RUNTESTS}/COMROT
expdir: ${RUNTESTS}/EXPDIR
icsdir: /scratch1/NCEPDEV/stmp2/Rahul.Mahajan/ICSDIR/IC_C384
idate: 2023040118
edate: 2023040200
nens: 0
gfs_cyc: 1
start: cold
yaml: ${HOMEgfs_PR}/ci/platforms/gfs_defaults_ci-updates.yaml
4 changes: 2 additions & 2 deletions ci/scripts/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ for pr in ${pr_list}; do
cd "${HOMEgfs_PR}"
pr_sha=$(git rev-parse --short HEAD)

for yaml_config in "${HOMEgfs_PR}/ci/cases/"*.yaml; do
for yaml_config in "${HOMEgfs_PR}/ci/cases/pr/"*.yaml; do
case=$(basename "${yaml_config}" .yaml) || true
pslot="${case}_${pr_sha}"
export pslot
set +e
"${HOMEgfs_PR}/ci/scripts/create_experiment.py" --yaml "${HOMEgfs_PR}/ci/cases/${case}.yaml" --dir "${HOMEgfs_PR}"
"${HOMEgfs_PR}/ci/scripts/create_experiment.py" --yaml "${HOMEgfs_PR}/ci/cases/pr/${case}.yaml" --dir "${HOMEgfs_PR}"
ci_status=$?
set -e
if [[ ${ci_status} -eq 0 ]]; then
Expand Down

0 comments on commit 06c2e28

Please sign in to comment.