forked from NCAR/ufs-weather-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up self-checks to make them maintainable
- Loading branch information
1 parent
904aa88
commit a9d88f9
Showing
18 changed files
with
201 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
|
||
|
||
# FIXME: THIS FILE SHOULD NOT BE MERGED TO DEVELOP | ||
|
||
# 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 | rrfs | intel | -DAPP=ATM -DCCPP_SUITES=FV3_RAP,FV3_RAP_sfcdiff,FV3_HRRR,FV3_RRFS_v1beta,FV3_RRFS_v1nssl -D32BIT=ON | | fv3 | | ||
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 | rrfs_v1nssl_nohailnoccn | | baseline | | ||
RUN | control_c48.v2.sfc | | baseline | | ||
|
||
# These variants of rrfs_v1beta should always fail, and prevent the workflow from completing. | ||
RUN | rrfs_v1beta_fail_to_copy | | baseline | | ||
RUN | rrfs_v1beta_fail_to_run | | baseline | | ||
# These tests should always fail, and prevent the workflow from completing. | ||
RUN | fail_to_copy | | baseline | | ||
RUN | fail_to_run | | baseline | | ||
|
||
# Removing -DFASTER=ON here ensures results change, but the test runs. The workflow jobs should complete | ||
# 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_faster_dyn32 | intel | -DAPP=ATM -DCCPP_SUITES=FV3_GFS_v17_p8,FV3_GFS_v15_thompson_mynn_lam3km -D32BIT=ON | | fv3 | | ||
RUN | regional_control_faster | | baseline | | ||
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 | | ||
|
||
# The --invalid-argument ensures the compile job will fail. The workflow should not submit the tests jobs for this compile job. | ||
COMPILE | hafsw | intel | -DAPP=HAFSW --invalid-argument -DMOVING_NEST=ON -DCCPP_SUITES=FV3_HAFS_v1_gfdlmp_tedmf,FV3_HAFS_v1_gfdlmp_tedmf_nonsst,FV3_HAFS_v1_thompson_tedmf_gfdlsf,FV3_global_nest_v1 -D32BIT=ON | | fv3 | | ||
RUN | hafs_regional_atm | | baseline | | ||
RUN | hafs_regional_atm_thompson_gfdlsf | | baseline | | ||
RUN | hafs_regional_atm_ocn | | baseline | | ||
RUN | hafs_regional_atm_wav | | baseline | | ||
# 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
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,85 @@ | ||
############################################################################### | ||
# | ||
# Regression test self-test: a job that fails to copy inputs. | ||
# This file was modified from control_c48. | ||
# | ||
############################################################################### | ||
|
||
# A special flag that tells the job to fail at runtime before the job_card: | ||
export JOB_SHOULD_FAIL=WHEN_COPYING | ||
|
||
export TEST_DESCR="The rt.sh workflow shouldn't complete when this test is enabled because run_test.sh will abort before the job_card." | ||
|
||
export CNTL_DIR=control_c48 | ||
|
||
export LIST_FILES="sfcf000.nc \ | ||
sfcf024.nc \ | ||
atmf000.nc \ | ||
atmf024.nc \ | ||
RESTART/20210323.060000.coupler.res \ | ||
RESTART/20210323.060000.fv_core.res.nc \ | ||
RESTART/20210323.060000.fv_core.res.tile1.nc \ | ||
RESTART/20210323.060000.fv_core.res.tile2.nc \ | ||
RESTART/20210323.060000.fv_core.res.tile3.nc \ | ||
RESTART/20210323.060000.fv_core.res.tile4.nc \ | ||
RESTART/20210323.060000.fv_core.res.tile5.nc \ | ||
RESTART/20210323.060000.fv_core.res.tile6.nc \ | ||
RESTART/20210323.060000.fv_srf_wnd.res.tile1.nc \ | ||
RESTART/20210323.060000.fv_srf_wnd.res.tile2.nc \ | ||
RESTART/20210323.060000.fv_srf_wnd.res.tile3.nc \ | ||
RESTART/20210323.060000.fv_srf_wnd.res.tile4.nc \ | ||
RESTART/20210323.060000.fv_srf_wnd.res.tile5.nc \ | ||
RESTART/20210323.060000.fv_srf_wnd.res.tile6.nc \ | ||
RESTART/20210323.060000.fv_tracer.res.tile1.nc \ | ||
RESTART/20210323.060000.fv_tracer.res.tile2.nc \ | ||
RESTART/20210323.060000.fv_tracer.res.tile3.nc \ | ||
RESTART/20210323.060000.fv_tracer.res.tile4.nc \ | ||
RESTART/20210323.060000.fv_tracer.res.tile5.nc \ | ||
RESTART/20210323.060000.fv_tracer.res.tile6.nc \ | ||
RESTART/20210323.060000.phy_data.tile1.nc \ | ||
RESTART/20210323.060000.phy_data.tile2.nc \ | ||
RESTART/20210323.060000.phy_data.tile3.nc \ | ||
RESTART/20210323.060000.phy_data.tile4.nc \ | ||
RESTART/20210323.060000.phy_data.tile5.nc \ | ||
RESTART/20210323.060000.phy_data.tile6.nc \ | ||
RESTART/20210323.060000.sfc_data.tile1.nc \ | ||
RESTART/20210323.060000.sfc_data.tile2.nc \ | ||
RESTART/20210323.060000.sfc_data.tile3.nc \ | ||
RESTART/20210323.060000.sfc_data.tile4.nc \ | ||
RESTART/20210323.060000.sfc_data.tile5.nc \ | ||
RESTART/20210323.060000.sfc_data.tile6.nc" | ||
|
||
export_fv3 | ||
export_tiled | ||
|
||
export INPES=1 | ||
export JNPES=1 | ||
export WRTTASK_PER_GROUP=2 | ||
export NPZ=127 | ||
export NPZP=128 | ||
export NPX=49 | ||
export NPY=49 | ||
export DT_ATMOS=1200 | ||
export SYEAR=2021 | ||
export SMONTH=03 | ||
export SDAY=22 | ||
export SHOUR=06 | ||
export RESTART_INTERVAL=0 | ||
export CDMBWD=${CDMBWD_c48} | ||
export OUTPUT_GRID='gaussian_grid' | ||
export NSTF_NAME='2,0,0,0,0' | ||
export WRITE_DOPOST=.false. | ||
export OUTPUT_FH="6 -1" | ||
export IAER=5111 | ||
export IOVR=3 | ||
export IMO=192 | ||
export JMO=94 | ||
|
||
export FNSMCC_control="'global_soilmgldas.statsgo.t92.192.94.grb'" | ||
export FNMSKH_control="'global_slmask.t62.192.94.grb'" | ||
export FNSMCC=${FNSMCC_control} | ||
export FNMSKH=${FNMSKH_control} | ||
|
||
export FV3_RUN=control_run.IN | ||
export CCPP_SUITE=FV3_GFS_v17_p8 | ||
export INPUT_NML=global_control.nml.IN |
Oops, something went wrong.