-
Notifications
You must be signed in to change notification settings - Fork 87
Adding hooks for running on-prem automated WE2E tests. #676
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
Merged
JeffBeck-NOAA
merged 1 commit into
ufs-community:develop
from
christinaholtNOAA:on_prem_test_script
Feb 15, 2022
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| grid_RRFS_CONUS_25km_ics_FV3GFS_lbcs_FV3GFS_suite_GSD_SAR |
This file contains hidden or 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 @@ | ||
| grid_RRFS_CONUS_25km_ics_FV3GFS_lbcs_FV3GFS_suite_GSD_SAR |
This file contains hidden or 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 hidden or 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,91 @@ | ||
| #!/bin/bash -l | ||
|
|
||
| #---------------------------------------------------------------------- | ||
| # Wrapper for the automation of UFS Short Range Weather App Workflow | ||
| # End to End Tests. | ||
| # | ||
| # The wrapper loads the appropriate workflow environment for the | ||
| # machine, and sets the machine test suite file before invoking the | ||
| # run_WE2E_tests.sh. | ||
| # | ||
| # The script is dependent on a successful build of this repo using the | ||
| # test/build.sh script in the ufs-srweather-app repository. The UFS | ||
| # build must be completed in a particular manner for this script to | ||
| # function properly, notably the location of the build and bin | ||
| # directories: | ||
| # BUILD_DIR=${APP_DIR}/build_${compiler} | ||
| # BIN_DIR=${APP_DIR}/bin_${compiler} | ||
| # | ||
| # Example: ./end_to_end_tests.sh hera zrtrr | ||
| #---------------------------------------------------------------------- | ||
|
|
||
| #----------------------------------------------------------------------- | ||
| # Set variables | ||
| #----------------------------------------------------------------------- | ||
|
|
||
| function usage { | ||
| echo | ||
| echo "Usage: $0 machine slurm_account | -h" | ||
| echo | ||
| echo " machine [required] is one of: ${machines[@]}" | ||
| echo " slurm_account [required] case sensitive name of the user-specific slurm account" | ||
| echo " -h display this help" | ||
| echo | ||
| exit 1 | ||
|
|
||
| } | ||
|
|
||
| machines=( hera jet ) | ||
|
|
||
| if [ "$1" = "-h" ] ; then usage ; fi | ||
| [[ $# -le 1 ]] && usage | ||
|
|
||
| machine=$1 | ||
| machine=$(echo "${machine}" | tr '[A-Z]' '[a-z]') # scripts in sorc need lower case machine name | ||
|
|
||
| account=$2 | ||
|
|
||
| #----------------------------------------------------------------------- | ||
| # Set directories | ||
| #----------------------------------------------------------------------- | ||
| scrfunc_fp=$( readlink -f "${BASH_SOURCE[0]}" ) | ||
| scrfunc_fn=$( basename "${scrfunc_fp}" ) | ||
| scrfunc_dir=$( dirname "${scrfunc_fp}" ) | ||
|
|
||
| TESTS_DIR=$( dirname "${scrfunc_dir}" ) | ||
| REGIONAL_WORKFLOW_DIR=$( dirname "${TESTS_DIR}" ) | ||
| SRW_APP_DIR=$( dirname "${REGIONAL_WORKFLOW_DIR}" ) | ||
| TOP_DIR=$( dirname "${SRW_APP_DIR}" ) | ||
|
|
||
| EXPTS_DIR=${TOP_DIR}/expt_dirs | ||
|
|
||
| #----------------------------------------------------------------------- | ||
| # Set the path to the machine-specific test suite file. | ||
| #----------------------------------------------------------------------- | ||
|
|
||
| auto_file=${scrfunc_dir}/machine_suites/${machine}.txt | ||
|
|
||
| #---------------------------------------------------------------------- | ||
| # Use exec_subdir consistent with the automated build. | ||
| #---------------------------------------------------------------------- | ||
|
|
||
| exec_subdir='bin_intel/bin' | ||
|
|
||
| #----------------------------------------------------------------------- | ||
| # Run E2E Tests | ||
| #----------------------------------------------------------------------- | ||
|
|
||
| # Load Python Modules | ||
| env_file="${SRW_APP_DIR}/env/wflow_${machine}.env" | ||
| source ${env_file} | ||
| echo "-- Load environment =>" $env_file | ||
|
|
||
| module list | ||
|
|
||
| # Run the E2E Workflow tests | ||
| ./run_WE2E_tests.sh \ | ||
| tests_file=${auto_file} \ | ||
| machine=${machine} \ | ||
| account=${account} \ | ||
| exec_subdir=${exec_subdir} | ||
|
|
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.