-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #304 from jedwards4b/derecho_workflow
new workflow and compset aliases
- Loading branch information
Showing
25 changed files
with
339 additions
and
75 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
compiler: | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
test: | ||
# This statement avoids failures in another instance (another compiler) to cancel this run | ||
# it also prevents canceling the run using the cancel button on the github website | ||
# another form (if: success() || failure()) should allow the cancel button to work but tests with that form didnt act as expected | ||
if: always() | ||
env: | ||
CC: mpicc | ||
FC: mpifort | ||
CXX: mpicxx | ||
CIME_MODEL: cesm | ||
CIME_DRIVER: nuopc | ||
# Since self runners can only run one step at a time this needs statement is not required | ||
# needs: setup | ||
runs-on: hpc-runner | ||
defaults: | ||
run: | ||
shell: bash {0} | ||
steps: | ||
- name: Run ${{ inputs.compiler }} tests | ||
# Allows the next step to run even if this one fails | ||
continue-on-error: true | ||
run: | | ||
pwd | ||
cd cime/scripts | ||
module load cmake | ||
# Need to use main queue to avoid memory overflow errors | ||
qcmd -q main -v PROJECT=P93300606 -A P93300606 -l walltime=02:00:00 -- ./create_test --xml-machine derecho\ | ||
--xml-category github --no-run --compiler ${{ inputs.compiler }} --test-id ${GITHUB_RUN_ID}${{ inputs.compiler }} | ||
- name: check status | ||
run: | | ||
cd $SCRATCH | ||
# if no fails and no passes in expected fails then cleanup and exit 0 otherwise exit 1 | ||
./cs.status.${GITHUB_RUN_ID}${{ inputs.compiler }} --fails-only --expected-fails-file $GITHUB_WORKSPACE/cime_config/testfiles/ExpectedTestFails.xml | grep FAIL | grep -v FAILURE | ||
retcode=$? | ||
if [ $retcode -eq 0 ]; then | ||
exit 1 | ||
fi | ||
# tests pass, clean up | ||
rm -fr *.${GITHUB_RUN_ID}${{ inputs.compiler }} | ||
exit 0 |
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,32 @@ | ||
name: cesm-derecho-hosted | ||
run-name: ${{ github.actor }} is testing the project | ||
|
||
on: | ||
pull_request: | ||
branches: [ cesm3.0-alphabranch ] | ||
types: [ labeled ] | ||
|
||
jobs: | ||
|
||
setup: | ||
# only run this workflow if the label run-pr-tests is applied | ||
if: ${{ github.event.label.name == 'run-pr-tests' }} | ||
# currently hpc-runner is derecho.hpc.ucar.edu | ||
runs-on: hpc-runner | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Run git-fleximod | ||
run: | | ||
pwd | ||
module list | ||
./bin/git-fleximod update | ||
build: | ||
strategy: | ||
matrix: | ||
compiler: [gnu, intel, intel-oneapi, nvhpc] | ||
uses: ./.github/workflows/build.yaml | ||
with: | ||
compiler: ${{ matrix.compiler }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Submodule ccs_config
updated
14 files
+0 −664 | component_grids_mct.xml | |
+0 −59 | config_grids_mct.xml | |
+4 −16 | config_inputdata.xml | |
+12 −3 | machines/Depends.intel-oneapi | |
+18 −3 | machines/Depends.nvhpc | |
+0 −1 | machines/cmake_macros/intel-oneapi.cmake | |
+63 −0 | machines/cmake_macros/intel-oneapi.cmake | |
+16 −18 | machines/cmake_macros/nvhpc.cmake | |
+1 −1 | machines/derecho/config_batch.xml | |
+4 −5 | machines/derecho/config_machines.xml | |
+3 −1 | machines/derecho/nvhpc_derecho.cmake | |
+1 −0 | machines/izumi/nag_izumi.cmake | |
+0 −1,220 | maps_mct.xml | |
+0 −1,261 | modelgrid_aliases_mct.xml | |
+6 −3 | modelgrid_aliases_nuopc.xml |
Submodule cime
updated
40 files
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.