Skip to content
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

Preview namelist ci #307

Merged
merged 18 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,20 @@ jobs:
# 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()
if: ${{ ! cancelled() }}
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
# Allows the check status step to run even if this one fails
continue-on-error: true
run: |
pwd
Expand All @@ -45,4 +43,4 @@ jobs:
fi
# tests pass, clean up
rm -fr *.${GITHUB_RUN_ID}${{ inputs.compiler }}
exit 0
exit 0
2 changes: 2 additions & 0 deletions .github/workflows/derecho.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:

build:
strategy:
# run all matrix members even if one fails
fail-fast: false
matrix:
compiler: [gnu, intel, intel-oneapi, nvhpc]
uses: ./.github/workflows/build.yaml
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/preview_namelist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
branches: [ master, cesm3.0-alphabranch ]
pull_request:
branches: [ master, cesm3.0-alphabranch ]

jobs:
preview_namelists:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Lots of python versions, pare down if we don't support a version
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
config:
- {"compset": "BLT1850", "res": "ne30pg3_t232"} # fully coupled
- {"compset": "C_JRA", "res": "TL319_t232"} # ocean only
- {"compset": "C1850MARBL_JRA", "res": "TL319_t232"} # ocean only, with BGC
- {"compset": "DTEST", "res": "TL319_t232"} # ice only
- {"compset": "I1850Clm60SpCru", "res": "f10_f10_mg37"} # land only
- {"compset": "QPC6HIST", "res": "f09_f09_mg17"} # atm only
- {"compset": "T1850Gg", "res": "f09_g17_gris4"} # glc only
steps:
- uses: actions/checkout@v4

- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Set up non-python environment (need xmllint and a fake ESMF make file)
run: |
git config --global user.email "testing@github.actions"
git config --global user.name "Github Actions Testing"
echo "ESMFMKFILE=$HOME/esmf.mk" >> ${GITHUB_ENV}
echo "ESMF_VERSION_MAJOR=8" > ${HOME}/esmf.mk
echo "ESMF_VERSION_MINOR=8" >> ${HOME}/esmf.mk
sudo apt-get install libxml2-utils


- name: Checkout CESM
run: |
$GITHUB_WORKSPACE/bin/git-fleximod update

- name: Create new cases, run case.setup, and then preview namelists
run: |
cd $GITHUB_WORKSPACE/cime/scripts
./create_newcase --run-unsupported --mach ubuntu-latest --compset ${{ matrix.config.compset }} --res ${{ matrix.config.res }} --case $GITHUB_WORKSPACE/cases/${{ matrix.config.compset }}_${{ matrix.python-version }}
cd $GITHUB_WORKSPACE/cases/${{ matrix.config.compset }}_${{ matrix.python-version }}
./case.setup
./preview_namelists
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
path = ccs_config
url = https://github.com/ESMCI/ccs_config_cesm.git
fxDONOTUSEurl = https://github.com/ESMCI/ccs_config_cesm.git
fxtag = ccs_config_cesm1.0.12
fxtag = ccs_config_cesm1.0.15
fxrequired = ToplevelRequired

[submodule "cime"]
Expand Down Expand Up @@ -73,7 +73,7 @@
url = https://github.com/ESCOMP/CESM_CICE
fxDONOTUSEurl = https://github.com/ESCOMP/CESM_CICE
fxrequired = ToplevelRequired
fxtag = cesm_cice6_6_0_1
fxtag = cesm3_cice6_6_0_2

[submodule "mom"]
path = components/mom
Expand Down
2 changes: 1 addition & 1 deletion ccs_config
2 changes: 1 addition & 1 deletion components/cice
2 changes: 1 addition & 1 deletion components/clm
Submodule clm updated 125 files
Loading