From cdda6b53917d73af75947612ff7158e25bd448e9 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 10:30:22 -0700 Subject: [PATCH 01/68] Update workflows to use ubuntu-26.04. They were using ubuntu-latest, which previously resolved to ubuntu-24.04. Now it's ubuntu-26.04 -- which break? --- .github/workflows/check-compset-aliases.yml | 2 +- .github/workflows/check-testlists.yml | 2 +- .github/workflows/docker-image-build-publish.yml | 2 +- .github/workflows/docker-image-common.yml | 2 +- .github/workflows/docker-image-get-version.yml | 2 +- .github/workflows/docs-build-and-deploy.yml | 2 +- .github/workflows/docs-common.yml | 2 +- .github/workflows/docs-omnibus.yml | 2 +- .github/workflows/docs-pr-failure-post-comment.yml | 2 +- .github/workflows/docs-update-ctsm_pylib.yml | 2 +- .github/workflows/docs-update-dependency-common.yml | 4 ++-- .github/workflows/docs-update-doc-builder.yml | 2 +- .github/workflows/docs.yml | 4 ++-- .github/workflows/python-tests.yml | 4 ++-- .github/workflows/xml-check.yml | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/check-compset-aliases.yml b/.github/workflows/check-compset-aliases.yml index bdafb7aa9b..2aa18fa649 100644 --- a/.github/workflows/check-compset-aliases.yml +++ b/.github/workflows/check-compset-aliases.yml @@ -22,7 +22,7 @@ on: jobs: check-compset-aliases: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index 172fa6d2f5..ca774fb1cc 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -19,7 +19,7 @@ on: jobs: testlist-supertestlists: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: # Checkout the code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index d22ab701e6..1249a6d04c 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -22,7 +22,7 @@ jobs: # This second job actually builds and publishes the container. push-and-attest: name: Publish and attest - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 # Wait to run this job until after build-image-and-test-docs. If that job fails, something might be wrong with the container, so don't try this one. (It might also have failed because of something wrong with doc-builder or the documentation.) needs: build-image-and-test-docs diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index 86de4fc2f2..a1070422e9 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -22,7 +22,7 @@ env: # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: build-image-and-test-docs: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 # Variables that might be needed by the calling workflow outputs: REGISTRY: ${{ env.REGISTRY }} diff --git a/.github/workflows/docker-image-get-version.yml b/.github/workflows/docker-image-get-version.yml index c405b861b5..27704f562e 100644 --- a/.github/workflows/docker-image-get-version.yml +++ b/.github/workflows/docker-image-get-version.yml @@ -32,7 +32,7 @@ on: jobs: get-check-version: name: Get version number from Dockerfile and check it - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 outputs: VERSION_TAG: ${{ steps.get-check-version.outputs.version_tag }} # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. diff --git a/.github/workflows/docs-build-and-deploy.yml b/.github/workflows/docs-build-and-deploy.yml index f004f688b1..ec76f71f24 100644 --- a/.github/workflows/docs-build-and-deploy.yml +++ b/.github/workflows/docs-build-and-deploy.yml @@ -43,7 +43,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index 974cb489e2..1c659a45a2 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -19,7 +19,7 @@ on: jobs: build-docs: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs-omnibus.yml b/.github/workflows/docs-omnibus.yml index f698478ef3..0b407f493e 100644 --- a/.github/workflows/docs-omnibus.yml +++ b/.github/workflows/docs-omnibus.yml @@ -22,7 +22,7 @@ jobs: # branch(es) that forks may not have. if: ${{ github.repository == 'ESCOMP/CTSM' }} - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs-pr-failure-post-comment.yml b/.github/workflows/docs-pr-failure-post-comment.yml index 2a8928b28c..8714e625f7 100644 --- a/.github/workflows/docs-pr-failure-post-comment.yml +++ b/.github/workflows/docs-pr-failure-post-comment.yml @@ -13,7 +13,7 @@ jobs: if: >- github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 permissions: pull-requests: write actions: read diff --git a/.github/workflows/docs-update-ctsm_pylib.yml b/.github/workflows/docs-update-ctsm_pylib.yml index 18d703a4f7..2074bbc8bb 100644 --- a/.github/workflows/docs-update-ctsm_pylib.yml +++ b/.github/workflows/docs-update-ctsm_pylib.yml @@ -50,7 +50,7 @@ jobs: failure() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') needs: [test-build-docs-ctsm_pylib, test-update-dependency] - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 permissions: contents: read issues: write diff --git a/.github/workflows/docs-update-dependency-common.yml b/.github/workflows/docs-update-dependency-common.yml index 37adc0ff98..b6d8a75d83 100644 --- a/.github/workflows/docs-update-dependency-common.yml +++ b/.github/workflows/docs-update-dependency-common.yml @@ -25,7 +25,7 @@ jobs: # may not have if: ${{ github.repository == 'ESCOMP/CTSM' }} - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: @@ -54,7 +54,7 @@ jobs: ./test_container_eq_ctsm_pylib.sh makefile-method: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs-update-doc-builder.yml b/.github/workflows/docs-update-doc-builder.yml index 1194e1c153..8e539bf4c4 100644 --- a/.github/workflows/docs-update-doc-builder.yml +++ b/.github/workflows/docs-update-doc-builder.yml @@ -26,7 +26,7 @@ jobs: test-rv-setup: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b1a5ce9250..dd7ac809f1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -51,7 +51,7 @@ jobs: test-build-docs-container: if: ${{ always() }} name: With container from registry - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Checkout repository @@ -90,7 +90,7 @@ jobs: check-docs-style: if: ${{ always() }} name: Check documentation against style guide - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Checkout repository diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index a6b0af2b2a..4a75f94746 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -19,7 +19,7 @@ on: jobs: python-unit-tests: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: # Checkout the code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -49,7 +49,7 @@ jobs: conda run -n ctsm_pylib ./run_ctsm_py_tests -u python-lint-and-black: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: # Checkout the code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/xml-check.yml b/.github/workflows/xml-check.yml index d944222dfc..e859b7cf62 100644 --- a/.github/workflows/xml-check.yml +++ b/.github/workflows/xml-check.yml @@ -6,7 +6,7 @@ on: [push, pull_request] # Trigger on push or pull request jobs: check-xml: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 From 20d9a53849478fb4fa07b48fdf9bbeb4c4d21e85 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 10:47:21 -0700 Subject: [PATCH 02/68] Missed one workflow. --- .github/workflows/fleximod_test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fleximod_test.yaml b/.github/workflows/fleximod_test.yaml index d85958f972..aef50d8059 100644 --- a/.github/workflows/fleximod_test.yaml +++ b/.github/workflows/fleximod_test.yaml @@ -11,7 +11,7 @@ on: jobs: fleximod-test: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 strategy: fail-fast: false matrix: From ae99182b3cd2ea7dde2173101e552a077b4dac49 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 10:50:01 -0700 Subject: [PATCH 03/68] Update ctsm_pylib to use python 3.13.13. Was on 3.13.2, but that's not available for ubuntu-26.04. --- .github/workflows/docs-common.yml | 2 +- python/conda_env_ctsm_py.yml | 2 +- python/conda_env_ctsm_py_old_3.13.2.yml | 36 +++++++++++++++++++++++++ python/conda_env_ctsm_py_old_3.7.9.yml | 4 +-- 4 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 python/conda_env_ctsm_py_old_3.13.2.yml diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index 1c659a45a2..1956011342 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -37,7 +37,7 @@ jobs: if: ${{ ! inputs.use_conda }} uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: - python-version: '3.13.2' # needs to be coordinated with version in python/conda_env_ctsm_py.yml + python-version: '3.13.13' # needs to be coordinated with version in python/conda_env_ctsm_py.yml - name: Cache pip if: ${{ ! inputs.use_conda }} uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3 diff --git a/python/conda_env_ctsm_py.yml b/python/conda_env_ctsm_py.yml index 13dec57601..66a739186d 100644 --- a/python/conda_env_ctsm_py.yml +++ b/python/conda_env_ctsm_py.yml @@ -4,7 +4,7 @@ channels: - conda-forge - defaults dependencies: - - python=3.13.2 + - python=3.13.13 - dask=2025.7.0 - xarray=2025.1.2 - tqdm=4.67.1 diff --git a/python/conda_env_ctsm_py_old_3.13.2.yml b/python/conda_env_ctsm_py_old_3.13.2.yml new file mode 100644 index 0000000000..2de08415ac --- /dev/null +++ b/python/conda_env_ctsm_py_old_3.13.2.yml @@ -0,0 +1,36 @@ +# This file is used by py_env_create to install a previous version of the ctsm_pylib environment, +# which used Python 3.13.2. Doing so is only useful for running CTSM python tools in repos from +# before the subsequent ctsm_pylib version (with Python 3.13.13) was introduced. +# +name: ctsm_pylib +channels: + - conda-forge + - defaults +dependencies: + - python=3.13.2 + - dask=2025.7.0 + - xarray=2025.1.2 + - tqdm=4.67.1 + - scipy=1.15.2 + - netcdf4=1.7.2 + - requests=2.32.3 + - xesmf=0.8.8 + - numba=0.61.0 + - pylint=3.3.4 + - black=25.1.0 + - cartopy=0.24.0 + - matplotlib=3.10.1 + - compliance-checker=6.1.0 + - pip=25.0.1 + + # For VS code + # fortls used in FORTRAN-IntelliSense extension, add path to fortls below to the VS setting fort-ls.executablePath + - fortls=3.2.2 + + # For building docs + - pip: + - -r ../doc/ctsm-docs_container/requirements.txt + + # Used in ctsm_postprocessing repo + - pytest=8.3.5 + - coverage=7.8.0 diff --git a/python/conda_env_ctsm_py_old_3.7.9.yml b/python/conda_env_ctsm_py_old_3.7.9.yml index e77bab7634..0e329b84d4 100644 --- a/python/conda_env_ctsm_py_old_3.7.9.yml +++ b/python/conda_env_ctsm_py_old_3.7.9.yml @@ -1,6 +1,6 @@ -# This file is used by py_env_create to install the previous version of the ctsm_pylib environment, +# This file is used by py_env_create to install a previous version of the ctsm_pylib environment, # which used Python 3.7.9. Doing so is only useful for running CTSM python tools in repos from -# before the new ctsm_pylib version (with Python 3.13.2) was introduced. +# before the subsequent ctsm_pylib version (with Python 3.13.2) was introduced. # name: ctsm_pylib_3_7_9 channels: From d7cb90018844beae748cccf7807a6b4f10149382 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 11:15:28 -0700 Subject: [PATCH 04/68] Remove version numbers from conda yml --- python/conda_env_ctsm_py.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/python/conda_env_ctsm_py.yml b/python/conda_env_ctsm_py.yml index 66a739186d..663ddfdf45 100644 --- a/python/conda_env_ctsm_py.yml +++ b/python/conda_env_ctsm_py.yml @@ -4,30 +4,30 @@ channels: - conda-forge - defaults dependencies: - - python=3.13.13 - - dask=2025.7.0 - - xarray=2025.1.2 - - tqdm=4.67.1 - - scipy=1.15.2 - - netcdf4=1.7.2 - - requests=2.32.3 - - xesmf=0.8.8 - - numba=0.61.0 - - pylint=3.3.4 - - black=25.1.0 - - cartopy=0.24.0 - - matplotlib=3.10.1 - - compliance-checker=6.1.0 - - pip=25.0.1 + - python + - dask + - xarray + - tqdm + - scipy + - netcdf4 + - requests + - xesmf + - numba + - pylint + - black + - cartopy + - matplotlib + - compliance-checker + - pip # For VS code # fortls used in FORTRAN-IntelliSense extension, add path to fortls below to the VS setting fort-ls.executablePath - - fortls=3.2.2 + - fortls # For building docs - pip: - -r ../doc/ctsm-docs_container/requirements.txt # Used in ctsm_postprocessing repo - - pytest=8.3.5 - - coverage=7.8.0 + - pytest + - coverage From 5f36f6cd04ee38a3971c86337319f313ce04a88f Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 11:19:57 -0700 Subject: [PATCH 05/68] Update setup-miniconda from v3 to v4.1 --- .github/workflows/check-testlists.yml | 2 +- .github/workflows/docs-common.yml | 2 +- .github/workflows/docs-omnibus.yml | 2 +- .github/workflows/docs-update-dependency-common.yml | 4 ++-- .github/workflows/python-tests.yml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index ca774fb1cc..cc81e5b6fb 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 # Set up the conda environment - - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index 1956011342..af035f3929 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -54,7 +54,7 @@ jobs: # Do this if using conda - name: Set up conda environment if: ${{ inputs.use_conda }} - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 with: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} diff --git a/.github/workflows/docs-omnibus.yml b/.github/workflows/docs-omnibus.yml index 0b407f493e..8f7fdd0810 100644 --- a/.github/workflows/docs-omnibus.yml +++ b/.github/workflows/docs-omnibus.yml @@ -36,7 +36,7 @@ jobs: # Set up conda - name: Set up conda environment - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml diff --git a/.github/workflows/docs-update-dependency-common.yml b/.github/workflows/docs-update-dependency-common.yml index b6d8a75d83..8b981b05e7 100644 --- a/.github/workflows/docs-update-dependency-common.yml +++ b/.github/workflows/docs-update-dependency-common.yml @@ -38,7 +38,7 @@ jobs: bin/git-fleximod update -o - name: Set up conda environment - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 with: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} @@ -67,7 +67,7 @@ jobs: bin/git-fleximod update -o - name: Set up conda environment - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 with: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 4a75f94746..b4a2593c29 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -32,7 +32,7 @@ jobs: bin/git-fleximod update cime # Set up the conda environment - - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml @@ -55,7 +55,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 # Set up the conda environment - - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml From 0a5f6f389435a0705daff95dd21b29bda28f765f Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 11:30:57 -0700 Subject: [PATCH 06/68] Revert "Remove version numbers from conda yml" This reverts commit d7cb90018844beae748cccf7807a6b4f10149382. --- python/conda_env_ctsm_py.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/python/conda_env_ctsm_py.yml b/python/conda_env_ctsm_py.yml index 663ddfdf45..66a739186d 100644 --- a/python/conda_env_ctsm_py.yml +++ b/python/conda_env_ctsm_py.yml @@ -4,30 +4,30 @@ channels: - conda-forge - defaults dependencies: - - python - - dask - - xarray - - tqdm - - scipy - - netcdf4 - - requests - - xesmf - - numba - - pylint - - black - - cartopy - - matplotlib - - compliance-checker - - pip + - python=3.13.13 + - dask=2025.7.0 + - xarray=2025.1.2 + - tqdm=4.67.1 + - scipy=1.15.2 + - netcdf4=1.7.2 + - requests=2.32.3 + - xesmf=0.8.8 + - numba=0.61.0 + - pylint=3.3.4 + - black=25.1.0 + - cartopy=0.24.0 + - matplotlib=3.10.1 + - compliance-checker=6.1.0 + - pip=25.0.1 # For VS code # fortls used in FORTRAN-IntelliSense extension, add path to fortls below to the VS setting fort-ls.executablePath - - fortls + - fortls=3.2.2 # For building docs - pip: - -r ../doc/ctsm-docs_container/requirements.txt # Used in ctsm_postprocessing repo - - pytest - - coverage + - pytest=8.3.5 + - coverage=7.8.0 From be93e39a6375ba590992fd528e264671e10a2b9b Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 11:32:17 -0700 Subject: [PATCH 07/68] Revert "Update workflows to use ubuntu-26.04." This reverts commit cdda6b53917d73af75947612ff7158e25bd448e9. --- .github/workflows/check-compset-aliases.yml | 2 +- .github/workflows/check-testlists.yml | 2 +- .github/workflows/docker-image-build-publish.yml | 2 +- .github/workflows/docker-image-common.yml | 2 +- .github/workflows/docker-image-get-version.yml | 2 +- .github/workflows/docs-build-and-deploy.yml | 2 +- .github/workflows/docs-common.yml | 2 +- .github/workflows/docs-omnibus.yml | 2 +- .github/workflows/docs-pr-failure-post-comment.yml | 2 +- .github/workflows/docs-update-ctsm_pylib.yml | 2 +- .github/workflows/docs-update-dependency-common.yml | 4 ++-- .github/workflows/docs-update-doc-builder.yml | 2 +- .github/workflows/docs.yml | 4 ++-- .github/workflows/python-tests.yml | 4 ++-- .github/workflows/xml-check.yml | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/check-compset-aliases.yml b/.github/workflows/check-compset-aliases.yml index 2aa18fa649..bdafb7aa9b 100644 --- a/.github/workflows/check-compset-aliases.yml +++ b/.github/workflows/check-compset-aliases.yml @@ -22,7 +22,7 @@ on: jobs: check-compset-aliases: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index cc81e5b6fb..89257bac36 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -19,7 +19,7 @@ on: jobs: testlist-supertestlists: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: # Checkout the code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index 1249a6d04c..d22ab701e6 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -22,7 +22,7 @@ jobs: # This second job actually builds and publishes the container. push-and-attest: name: Publish and attest - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest # Wait to run this job until after build-image-and-test-docs. If that job fails, something might be wrong with the container, so don't try this one. (It might also have failed because of something wrong with doc-builder or the documentation.) needs: build-image-and-test-docs diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index a1070422e9..86de4fc2f2 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -22,7 +22,7 @@ env: # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: build-image-and-test-docs: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest # Variables that might be needed by the calling workflow outputs: REGISTRY: ${{ env.REGISTRY }} diff --git a/.github/workflows/docker-image-get-version.yml b/.github/workflows/docker-image-get-version.yml index 27704f562e..c405b861b5 100644 --- a/.github/workflows/docker-image-get-version.yml +++ b/.github/workflows/docker-image-get-version.yml @@ -32,7 +32,7 @@ on: jobs: get-check-version: name: Get version number from Dockerfile and check it - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest outputs: VERSION_TAG: ${{ steps.get-check-version.outputs.version_tag }} # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. diff --git a/.github/workflows/docs-build-and-deploy.yml b/.github/workflows/docs-build-and-deploy.yml index ec76f71f24..f004f688b1 100644 --- a/.github/workflows/docs-build-and-deploy.yml +++ b/.github/workflows/docs-build-and-deploy.yml @@ -43,7 +43,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index af035f3929..0e94773a6f 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -19,7 +19,7 @@ on: jobs: build-docs: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs-omnibus.yml b/.github/workflows/docs-omnibus.yml index 8f7fdd0810..ac44c946ae 100644 --- a/.github/workflows/docs-omnibus.yml +++ b/.github/workflows/docs-omnibus.yml @@ -22,7 +22,7 @@ jobs: # branch(es) that forks may not have. if: ${{ github.repository == 'ESCOMP/CTSM' }} - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs-pr-failure-post-comment.yml b/.github/workflows/docs-pr-failure-post-comment.yml index 8714e625f7..2a8928b28c 100644 --- a/.github/workflows/docs-pr-failure-post-comment.yml +++ b/.github/workflows/docs-pr-failure-post-comment.yml @@ -13,7 +13,7 @@ jobs: if: >- github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest permissions: pull-requests: write actions: read diff --git a/.github/workflows/docs-update-ctsm_pylib.yml b/.github/workflows/docs-update-ctsm_pylib.yml index 2074bbc8bb..18d703a4f7 100644 --- a/.github/workflows/docs-update-ctsm_pylib.yml +++ b/.github/workflows/docs-update-ctsm_pylib.yml @@ -50,7 +50,7 @@ jobs: failure() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') needs: [test-build-docs-ctsm_pylib, test-update-dependency] - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest permissions: contents: read issues: write diff --git a/.github/workflows/docs-update-dependency-common.yml b/.github/workflows/docs-update-dependency-common.yml index 8b981b05e7..59b6c09ef9 100644 --- a/.github/workflows/docs-update-dependency-common.yml +++ b/.github/workflows/docs-update-dependency-common.yml @@ -25,7 +25,7 @@ jobs: # may not have if: ${{ github.repository == 'ESCOMP/CTSM' }} - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: @@ -54,7 +54,7 @@ jobs: ./test_container_eq_ctsm_pylib.sh makefile-method: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs-update-doc-builder.yml b/.github/workflows/docs-update-doc-builder.yml index 8e539bf4c4..1194e1c153 100644 --- a/.github/workflows/docs-update-doc-builder.yml +++ b/.github/workflows/docs-update-doc-builder.yml @@ -26,7 +26,7 @@ jobs: test-rv-setup: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index dd7ac809f1..b1a5ce9250 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -51,7 +51,7 @@ jobs: test-build-docs-container: if: ${{ always() }} name: With container from registry - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - name: Checkout repository @@ -90,7 +90,7 @@ jobs: check-docs-style: if: ${{ always() }} name: Check documentation against style guide - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - name: Checkout repository diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index b4a2593c29..ec98d7ce59 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -19,7 +19,7 @@ on: jobs: python-unit-tests: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: # Checkout the code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -49,7 +49,7 @@ jobs: conda run -n ctsm_pylib ./run_ctsm_py_tests -u python-lint-and-black: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: # Checkout the code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/xml-check.yml b/.github/workflows/xml-check.yml index e859b7cf62..d944222dfc 100644 --- a/.github/workflows/xml-check.yml +++ b/.github/workflows/xml-check.yml @@ -6,7 +6,7 @@ on: [push, pull_request] # Trigger on push or pull request jobs: check-xml: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 From fa32fda58e7f33cd1e14f8d169e6dae4a7c2eeef Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 10:30:22 -0700 Subject: [PATCH 08/68] Update workflows to use ubuntu-26.04. They were using ubuntu-latest, which previously resolved to ubuntu-24.04. Now it's ubuntu-26.04 -- which break? (cherry picked from commit cdda6b53917d73af75947612ff7158e25bd448e9) --- .github/workflows/check-compset-aliases.yml | 2 +- .github/workflows/check-testlists.yml | 2 +- .github/workflows/docker-image-build-publish.yml | 2 +- .github/workflows/docker-image-common.yml | 2 +- .github/workflows/docker-image-get-version.yml | 2 +- .github/workflows/docs-build-and-deploy.yml | 2 +- .github/workflows/docs-common.yml | 2 +- .github/workflows/docs-omnibus.yml | 2 +- .github/workflows/docs-pr-failure-post-comment.yml | 2 +- .github/workflows/docs-update-ctsm_pylib.yml | 2 +- .github/workflows/docs-update-dependency-common.yml | 4 ++-- .github/workflows/docs-update-doc-builder.yml | 2 +- .github/workflows/docs.yml | 4 ++-- .github/workflows/python-tests.yml | 4 ++-- .github/workflows/xml-check.yml | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/check-compset-aliases.yml b/.github/workflows/check-compset-aliases.yml index bdafb7aa9b..2aa18fa649 100644 --- a/.github/workflows/check-compset-aliases.yml +++ b/.github/workflows/check-compset-aliases.yml @@ -22,7 +22,7 @@ on: jobs: check-compset-aliases: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index 89257bac36..cc81e5b6fb 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -19,7 +19,7 @@ on: jobs: testlist-supertestlists: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: # Checkout the code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index d22ab701e6..1249a6d04c 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -22,7 +22,7 @@ jobs: # This second job actually builds and publishes the container. push-and-attest: name: Publish and attest - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 # Wait to run this job until after build-image-and-test-docs. If that job fails, something might be wrong with the container, so don't try this one. (It might also have failed because of something wrong with doc-builder or the documentation.) needs: build-image-and-test-docs diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index 86de4fc2f2..a1070422e9 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -22,7 +22,7 @@ env: # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: build-image-and-test-docs: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 # Variables that might be needed by the calling workflow outputs: REGISTRY: ${{ env.REGISTRY }} diff --git a/.github/workflows/docker-image-get-version.yml b/.github/workflows/docker-image-get-version.yml index c405b861b5..27704f562e 100644 --- a/.github/workflows/docker-image-get-version.yml +++ b/.github/workflows/docker-image-get-version.yml @@ -32,7 +32,7 @@ on: jobs: get-check-version: name: Get version number from Dockerfile and check it - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 outputs: VERSION_TAG: ${{ steps.get-check-version.outputs.version_tag }} # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. diff --git a/.github/workflows/docs-build-and-deploy.yml b/.github/workflows/docs-build-and-deploy.yml index f004f688b1..ec76f71f24 100644 --- a/.github/workflows/docs-build-and-deploy.yml +++ b/.github/workflows/docs-build-and-deploy.yml @@ -43,7 +43,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index 0e94773a6f..af035f3929 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -19,7 +19,7 @@ on: jobs: build-docs: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs-omnibus.yml b/.github/workflows/docs-omnibus.yml index ac44c946ae..8f7fdd0810 100644 --- a/.github/workflows/docs-omnibus.yml +++ b/.github/workflows/docs-omnibus.yml @@ -22,7 +22,7 @@ jobs: # branch(es) that forks may not have. if: ${{ github.repository == 'ESCOMP/CTSM' }} - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs-pr-failure-post-comment.yml b/.github/workflows/docs-pr-failure-post-comment.yml index 2a8928b28c..8714e625f7 100644 --- a/.github/workflows/docs-pr-failure-post-comment.yml +++ b/.github/workflows/docs-pr-failure-post-comment.yml @@ -13,7 +13,7 @@ jobs: if: >- github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 permissions: pull-requests: write actions: read diff --git a/.github/workflows/docs-update-ctsm_pylib.yml b/.github/workflows/docs-update-ctsm_pylib.yml index 18d703a4f7..2074bbc8bb 100644 --- a/.github/workflows/docs-update-ctsm_pylib.yml +++ b/.github/workflows/docs-update-ctsm_pylib.yml @@ -50,7 +50,7 @@ jobs: failure() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') needs: [test-build-docs-ctsm_pylib, test-update-dependency] - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 permissions: contents: read issues: write diff --git a/.github/workflows/docs-update-dependency-common.yml b/.github/workflows/docs-update-dependency-common.yml index 59b6c09ef9..8b981b05e7 100644 --- a/.github/workflows/docs-update-dependency-common.yml +++ b/.github/workflows/docs-update-dependency-common.yml @@ -25,7 +25,7 @@ jobs: # may not have if: ${{ github.repository == 'ESCOMP/CTSM' }} - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: @@ -54,7 +54,7 @@ jobs: ./test_container_eq_ctsm_pylib.sh makefile-method: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs-update-doc-builder.yml b/.github/workflows/docs-update-doc-builder.yml index 1194e1c153..8e539bf4c4 100644 --- a/.github/workflows/docs-update-doc-builder.yml +++ b/.github/workflows/docs-update-doc-builder.yml @@ -26,7 +26,7 @@ jobs: test-rv-setup: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b1a5ce9250..dd7ac809f1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -51,7 +51,7 @@ jobs: test-build-docs-container: if: ${{ always() }} name: With container from registry - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Checkout repository @@ -90,7 +90,7 @@ jobs: check-docs-style: if: ${{ always() }} name: Check documentation against style guide - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Checkout repository diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index ec98d7ce59..b4a2593c29 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -19,7 +19,7 @@ on: jobs: python-unit-tests: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: # Checkout the code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -49,7 +49,7 @@ jobs: conda run -n ctsm_pylib ./run_ctsm_py_tests -u python-lint-and-black: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: # Checkout the code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/xml-check.yml b/.github/workflows/xml-check.yml index d944222dfc..e859b7cf62 100644 --- a/.github/workflows/xml-check.yml +++ b/.github/workflows/xml-check.yml @@ -6,7 +6,7 @@ on: [push, pull_request] # Trigger on push or pull request jobs: check-xml: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 From d8828261dfe96972e44482ce0e051b8cf54a8536 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 11:46:51 -0700 Subject: [PATCH 09/68] Update setup-python from v5.6 to v7.1. Not strictly necessary, but avoids deprecation warnings. --- .github/workflows/docs-common.yml | 2 +- .github/workflows/xml-check.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index af035f3929..d92657077f 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -35,7 +35,7 @@ jobs: # Based on https://github.com/actions/cache/blob/main/examples.md#python---pip - name: Install python if: ${{ ! inputs.use_conda }} - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: '3.13.13' # needs to be coordinated with version in python/conda_env_ctsm_py.yml - name: Cache pip diff --git a/.github/workflows/xml-check.yml b/.github/workflows/xml-check.yml index e859b7cf62..86bc8dae55 100644 --- a/.github/workflows/xml-check.yml +++ b/.github/workflows/xml-check.yml @@ -12,7 +12,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Python - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: '3.x' From 0afb4dc9558d2b522c62117eb9ab5798492bedd2 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 11:48:39 -0700 Subject: [PATCH 10/68] Update actions/checkout from v4.2.2 to v7.0.1 Not strictly necessary, but avoids deprecation warnings. --- .github/workflows/check-compset-aliases.yml | 2 +- .github/workflows/check-testlists.yml | 2 +- .github/workflows/docker-image-build-publish.yml | 2 +- .github/workflows/docker-image-common.yml | 2 +- .github/workflows/docker-image-get-version.yml | 2 +- .github/workflows/docs-build-and-deploy.yml | 2 +- .github/workflows/docs-common.yml | 2 +- .github/workflows/docs-omnibus.yml | 2 +- .github/workflows/docs-update-ctsm_pylib.yml | 2 +- .github/workflows/docs-update-dependency-common.yml | 4 ++-- .github/workflows/docs-update-doc-builder.yml | 2 +- .github/workflows/docs.yml | 4 ++-- .github/workflows/python-tests.yml | 4 ++-- .github/workflows/xml-check.yml | 2 +- 14 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/check-compset-aliases.yml b/.github/workflows/check-compset-aliases.yml index 2aa18fa649..860a1d66a7 100644 --- a/.github/workflows/check-compset-aliases.yml +++ b/.github/workflows/check-compset-aliases.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-26.04 steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Checkout submodules run: | diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index cc81e5b6fb..fd5aa87463 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-26.04 steps: # Checkout the code - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Set up the conda environment - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index 1249a6d04c..73d1e56240 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -42,7 +42,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Log in to the Container registry diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index a1070422e9..fa72810492 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Ensure that the repository part of IMAGE_NAME is lowercase. This is needed because Docker requires image names to be entirely lowercase. Note that the *image name* part, set as IMAGE_BASENAME in the env block above, is *not* converted. This will cause the check-version job to fail if the IMAGE_BASENAME contains capitals. We don't want to silently fix that here; rather, we require the user to specify a lowercase IMAGE_BASENAME. - name: Get image name with lowercase repo diff --git a/.github/workflows/docker-image-get-version.yml b/.github/workflows/docker-image-get-version.yml index 27704f562e..994cb235f3 100644 --- a/.github/workflows/docker-image-get-version.yml +++ b/.github/workflows/docker-image-get-version.yml @@ -42,7 +42,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Get version number from Dockerfile and check it id: get-check-version diff --git a/.github/workflows/docs-build-and-deploy.yml b/.github/workflows/docs-build-and-deploy.yml index ec76f71f24..edccc9e1ff 100644 --- a/.github/workflows/docs-build-and-deploy.yml +++ b/.github/workflows/docs-build-and-deploy.yml @@ -46,7 +46,7 @@ jobs: runs-on: ubuntu-26.04 steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: # Get all history, ensuring all branches are available for checkout fetch-depth: 0 diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index d92657077f..795febdd61 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -21,7 +21,7 @@ jobs: build-docs: runs-on: ubuntu-26.04 steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 lfs: true diff --git a/.github/workflows/docs-omnibus.yml b/.github/workflows/docs-omnibus.yml index 8f7fdd0810..866284303c 100644 --- a/.github/workflows/docs-omnibus.yml +++ b/.github/workflows/docs-omnibus.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-26.04 steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 lfs: true diff --git a/.github/workflows/docs-update-ctsm_pylib.yml b/.github/workflows/docs-update-ctsm_pylib.yml index 2074bbc8bb..459c958ee7 100644 --- a/.github/workflows/docs-update-ctsm_pylib.yml +++ b/.github/workflows/docs-update-ctsm_pylib.yml @@ -55,7 +55,7 @@ jobs: contents: read issues: write steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Create issue uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 diff --git a/.github/workflows/docs-update-dependency-common.yml b/.github/workflows/docs-update-dependency-common.yml index 8b981b05e7..24545706a5 100644 --- a/.github/workflows/docs-update-dependency-common.yml +++ b/.github/workflows/docs-update-dependency-common.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-26.04 steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 lfs: true @@ -56,7 +56,7 @@ jobs: makefile-method: runs-on: ubuntu-26.04 steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 lfs: true diff --git a/.github/workflows/docs-update-doc-builder.yml b/.github/workflows/docs-update-doc-builder.yml index 8e539bf4c4..994745568b 100644 --- a/.github/workflows/docs-update-doc-builder.yml +++ b/.github/workflows/docs-update-doc-builder.yml @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-26.04 steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 lfs: true diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index dd7ac809f1..d6c974e432 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -55,7 +55,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Check out all submodules because we might :literalinclude: something from one - name: Checkout all submodules @@ -94,7 +94,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Disallow fake degree signs if: always() diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index b4a2593c29..83d39ea2b0 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-26.04 steps: # Checkout the code - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: lfs: true @@ -52,7 +52,7 @@ jobs: runs-on: ubuntu-26.04 steps: # Checkout the code - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Set up the conda environment - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 diff --git a/.github/workflows/xml-check.yml b/.github/workflows/xml-check.yml index 86bc8dae55..6471e99e25 100644 --- a/.github/workflows/xml-check.yml +++ b/.github/workflows/xml-check.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-26.04 steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Python uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 From 23bbba01be30f2505a23ba3ff0e5c11a7c31a34e Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 11:49:41 -0700 Subject: [PATCH 11/68] Update actions/cache from v3 to v6.1.0 Not strictly necessary, but avoids deprecation warnings. --- .github/workflows/docs-common.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index 795febdd61..06ac3d5b7b 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -40,7 +40,7 @@ jobs: python-version: '3.13.13' # needs to be coordinated with version in python/conda_env_ctsm_py.yml - name: Cache pip if: ${{ ! inputs.use_conda }} - uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('doc/ctsm-docs_container/requirements.txt') }} From b9414d3a37f7a6fccf4a49f41bd6f70db3883059 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 11:52:58 -0700 Subject: [PATCH 12/68] Fix "Without ctsm_pylib or container" workflow. --- .github/workflows/docs-common.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index 06ac3d5b7b..cad1051866 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -62,6 +62,11 @@ jobs: auto-activate-base: false - name: Print installed Python packages + if: ${{ ! inputs.use_conda }} + run: pip list + + - name: Print installed Python packages (conda) + if: ${{ inputs.use_conda }} run: conda list - name: Build Sphinx docs with makefile From bc2ee100afe2c776f2b154f2f3f5e75f9c202ce8 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:03:44 -0700 Subject: [PATCH 13/68] Bump Dockerfile --- doc/ctsm-docs_container/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ctsm-docs_container/Dockerfile b/doc/ctsm-docs_container/Dockerfile index c38a384f80..0dbe818675 100644 --- a/doc/ctsm-docs_container/Dockerfile +++ b/doc/ctsm-docs_container/Dockerfile @@ -29,4 +29,4 @@ CMD ["/bin/bash", "-l"] LABEL org.opencontainers.image.title="Container for building CTSM documentation" LABEL org.opencontainers.image.source=https://github.com/ESCOMP/CTSM -LABEL org.opencontainers.image.version="v2.0.1a" +LABEL org.opencontainers.image.version="v2.0.1b" From 5ebea93ef2ffd22aa68e22d48d796084932647eb Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:10:19 -0700 Subject: [PATCH 14/68] Add workflow_dispatch trigger to some workflows. --- .github/workflows/check-testlists.yml | 3 +++ .github/workflows/fleximod_test.yaml | 3 +++ .github/workflows/python-tests.yml | 3 +++ .github/workflows/xml-check.yml | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index fd5aa87463..53ab5683fd 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -17,6 +17,9 @@ on: - 'cime_config/testdefs/testlist_clm.xml' - '.github/workflows/check-testlists.yml' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + jobs: testlist-supertestlists: runs-on: ubuntu-26.04 diff --git a/.github/workflows/fleximod_test.yaml b/.github/workflows/fleximod_test.yaml index aef50d8059..2f6299c701 100644 --- a/.github/workflows/fleximod_test.yaml +++ b/.github/workflows/fleximod_test.yaml @@ -9,6 +9,9 @@ on: branches: ['*'] pull_request: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + jobs: fleximod-test: runs-on: ubuntu-26.04 diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 83d39ea2b0..1733047230 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -17,6 +17,9 @@ on: - 'cime_config/buildlib/**' - 'cime_config/buildnml/**' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + jobs: python-unit-tests: runs-on: ubuntu-26.04 diff --git a/.github/workflows/xml-check.yml b/.github/workflows/xml-check.yml index 6471e99e25..9c95f5a8c0 100644 --- a/.github/workflows/xml-check.yml +++ b/.github/workflows/xml-check.yml @@ -2,7 +2,7 @@ name: Check that XML files are well-formed # Only check files in our repo that AREN'T in submodules # Use a Python command to check each file because xmllint isn't available on GH runners -on: [push, pull_request] # Trigger on push or pull request +on: [push, pull_request, workflow_dispatch] # Trigger on push or pull request, or manually jobs: check-xml: From a921887075b304ee8f99413e8492c5516452488c Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:11:02 -0700 Subject: [PATCH 15/68] Revert "Update workflows to use ubuntu-26.04." This reverts commit fa32fda58e7f33cd1e14f8d169e6dae4a7c2eeef. --- .github/workflows/check-compset-aliases.yml | 2 +- .github/workflows/check-testlists.yml | 2 +- .github/workflows/docker-image-build-publish.yml | 2 +- .github/workflows/docker-image-common.yml | 2 +- .github/workflows/docker-image-get-version.yml | 2 +- .github/workflows/docs-build-and-deploy.yml | 2 +- .github/workflows/docs-common.yml | 2 +- .github/workflows/docs-omnibus.yml | 2 +- .github/workflows/docs-pr-failure-post-comment.yml | 2 +- .github/workflows/docs-update-ctsm_pylib.yml | 2 +- .github/workflows/docs-update-dependency-common.yml | 4 ++-- .github/workflows/docs-update-doc-builder.yml | 2 +- .github/workflows/docs.yml | 4 ++-- .github/workflows/python-tests.yml | 4 ++-- .github/workflows/xml-check.yml | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/check-compset-aliases.yml b/.github/workflows/check-compset-aliases.yml index 860a1d66a7..ccad0dba3d 100644 --- a/.github/workflows/check-compset-aliases.yml +++ b/.github/workflows/check-compset-aliases.yml @@ -22,7 +22,7 @@ on: jobs: check-compset-aliases: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index 53ab5683fd..09f4a704b9 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -22,7 +22,7 @@ on: jobs: testlist-supertestlists: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: # Checkout the code - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index 73d1e56240..4c5a64b72f 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -22,7 +22,7 @@ jobs: # This second job actually builds and publishes the container. push-and-attest: name: Publish and attest - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest # Wait to run this job until after build-image-and-test-docs. If that job fails, something might be wrong with the container, so don't try this one. (It might also have failed because of something wrong with doc-builder or the documentation.) needs: build-image-and-test-docs diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index fa72810492..01c678eaa9 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -22,7 +22,7 @@ env: # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: build-image-and-test-docs: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest # Variables that might be needed by the calling workflow outputs: REGISTRY: ${{ env.REGISTRY }} diff --git a/.github/workflows/docker-image-get-version.yml b/.github/workflows/docker-image-get-version.yml index 994cb235f3..5e728cbd85 100644 --- a/.github/workflows/docker-image-get-version.yml +++ b/.github/workflows/docker-image-get-version.yml @@ -32,7 +32,7 @@ on: jobs: get-check-version: name: Get version number from Dockerfile and check it - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest outputs: VERSION_TAG: ${{ steps.get-check-version.outputs.version_tag }} # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. diff --git a/.github/workflows/docs-build-and-deploy.yml b/.github/workflows/docs-build-and-deploy.yml index edccc9e1ff..a6987ea8a2 100644 --- a/.github/workflows/docs-build-and-deploy.yml +++ b/.github/workflows/docs-build-and-deploy.yml @@ -43,7 +43,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index cad1051866..5f4afe5a79 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -19,7 +19,7 @@ on: jobs: build-docs: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/docs-omnibus.yml b/.github/workflows/docs-omnibus.yml index 866284303c..38772941bc 100644 --- a/.github/workflows/docs-omnibus.yml +++ b/.github/workflows/docs-omnibus.yml @@ -22,7 +22,7 @@ jobs: # branch(es) that forks may not have. if: ${{ github.repository == 'ESCOMP/CTSM' }} - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/docs-pr-failure-post-comment.yml b/.github/workflows/docs-pr-failure-post-comment.yml index 8714e625f7..2a8928b28c 100644 --- a/.github/workflows/docs-pr-failure-post-comment.yml +++ b/.github/workflows/docs-pr-failure-post-comment.yml @@ -13,7 +13,7 @@ jobs: if: >- github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest permissions: pull-requests: write actions: read diff --git a/.github/workflows/docs-update-ctsm_pylib.yml b/.github/workflows/docs-update-ctsm_pylib.yml index 459c958ee7..fb174a4fbf 100644 --- a/.github/workflows/docs-update-ctsm_pylib.yml +++ b/.github/workflows/docs-update-ctsm_pylib.yml @@ -50,7 +50,7 @@ jobs: failure() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') needs: [test-build-docs-ctsm_pylib, test-update-dependency] - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest permissions: contents: read issues: write diff --git a/.github/workflows/docs-update-dependency-common.yml b/.github/workflows/docs-update-dependency-common.yml index 24545706a5..fb54dca978 100644 --- a/.github/workflows/docs-update-dependency-common.yml +++ b/.github/workflows/docs-update-dependency-common.yml @@ -25,7 +25,7 @@ jobs: # may not have if: ${{ github.repository == 'ESCOMP/CTSM' }} - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -54,7 +54,7 @@ jobs: ./test_container_eq_ctsm_pylib.sh makefile-method: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/docs-update-doc-builder.yml b/.github/workflows/docs-update-doc-builder.yml index 994745568b..a5ea9477ca 100644 --- a/.github/workflows/docs-update-doc-builder.yml +++ b/.github/workflows/docs-update-doc-builder.yml @@ -26,7 +26,7 @@ jobs: test-rv-setup: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d6c974e432..347b576113 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -51,7 +51,7 @@ jobs: test-build-docs-container: if: ${{ always() }} name: With container from registry - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - name: Checkout repository @@ -90,7 +90,7 @@ jobs: check-docs-style: if: ${{ always() }} name: Check documentation against style guide - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - name: Checkout repository diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 1733047230..fe32161826 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -22,7 +22,7 @@ on: jobs: python-unit-tests: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: # Checkout the code - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -52,7 +52,7 @@ jobs: conda run -n ctsm_pylib ./run_ctsm_py_tests -u python-lint-and-black: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: # Checkout the code - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.github/workflows/xml-check.yml b/.github/workflows/xml-check.yml index 9c95f5a8c0..aa87714306 100644 --- a/.github/workflows/xml-check.yml +++ b/.github/workflows/xml-check.yml @@ -6,7 +6,7 @@ on: [push, pull_request, workflow_dispatch] # Trigger on push or pull request, o jobs: check-xml: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 From fa894870c85acdac0c985343c6d94d48918e3553 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:22:56 -0700 Subject: [PATCH 16/68] Fix an actions/checkout pin --- .github/workflows/fleximod_test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fleximod_test.yaml b/.github/workflows/fleximod_test.yaml index 2f6299c701..925320fb11 100644 --- a/.github/workflows/fleximod_test.yaml +++ b/.github/workflows/fleximod_test.yaml @@ -22,7 +22,7 @@ jobs: python-version: ["3.7", "3.x"] steps: - id: checkout-CTSM - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - id: run-fleximod run: | $GITHUB_WORKSPACE/bin/git-fleximod update -o From 343698cd765da4b9696636fd668b6b319dfe454e Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:30:11 -0700 Subject: [PATCH 17/68] Bump actions/download-artifact to v8.0.2 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs-pr-failure-post-comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-pr-failure-post-comment.yml b/.github/workflows/docs-pr-failure-post-comment.yml index 2a8928b28c..83c9e5d9c6 100644 --- a/.github/workflows/docs-pr-failure-post-comment.yml +++ b/.github/workflows/docs-pr-failure-post-comment.yml @@ -35,7 +35,7 @@ jobs: - name: Download logs if: steps.check.outputs.found == 'true' - uses: actions/download-artifact@v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: ${{ env.DOCS_FAILURE_ARTIFACT }} path: ${{ env.DOCS_FAILURE_ARTIFACT }} From 9a3372bd1a231ccc39b3a396d77d1f0ce8415526 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:30:12 -0700 Subject: [PATCH 18/68] Bump actions/upload-artifact to v7.0.2 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 347b576113..1c6c36076e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -82,7 +82,7 @@ jobs: - name: Upload logs on failure if: failure() && steps.build-docs.outcome == 'failure' - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: test-build-docs-container_failed path: build-logs/ From 683027aded85ebde0c2695377c0cbba86cac4397 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:30:12 -0700 Subject: [PATCH 19/68] Bump actions/attest-build-provenance to v4.2.2 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docker-image-build-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index 4c5a64b72f..14ee79a19d 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -78,7 +78,7 @@ jobs: # This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see [Using artifact attestations to establish provenance for builds](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). - name: Generate artifact attestation - uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2 + uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2 with: subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} subject-digest: ${{ steps.push.outputs.digest }} From b1df128a0090285d1a2c25302e2c554b18289417 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:30:12 -0700 Subject: [PATCH 20/68] Bump actions/configure-pages to v6.0.0 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs-build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-build-and-deploy.yml b/.github/workflows/docs-build-and-deploy.yml index a6987ea8a2..e11a10dc52 100644 --- a/.github/workflows/docs-build-and-deploy.yml +++ b/.github/workflows/docs-build-and-deploy.yml @@ -52,7 +52,7 @@ jobs: fetch-depth: 0 - name: Setup Pages - uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5 + uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 # Check out all submodules because we might :literalinclude: something from one - name: Checkout all submodules From 8e184ed1c5ca4bec37c39d0a53f12b23ef74a3e9 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:30:12 -0700 Subject: [PATCH 21/68] Bump actions/upload-pages-artifact to v5.0.0 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs-build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-build-and-deploy.yml b/.github/workflows/docs-build-and-deploy.yml index e11a10dc52..f801934b55 100644 --- a/.github/workflows/docs-build-and-deploy.yml +++ b/.github/workflows/docs-build-and-deploy.yml @@ -66,7 +66,7 @@ jobs: ./build_docs_to_publish -d --site-root https://escomp.github.io/CTSM - name: Upload artifact - uses: actions/upload-pages-artifact@0252fc4ba7626f0298f0cf00902a25c6afc77fa8 # v3 + uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: # Upload publish dir path: 'doc/_publish' From 864e51f2fd7584a04fcd47729df9d8354b64ca66 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:30:13 -0700 Subject: [PATCH 22/68] Bump actions/deploy-pages to v5.0.1 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs-build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-build-and-deploy.yml b/.github/workflows/docs-build-and-deploy.yml index f801934b55..ad8700c822 100644 --- a/.github/workflows/docs-build-and-deploy.yml +++ b/.github/workflows/docs-build-and-deploy.yml @@ -73,4 +73,4 @@ jobs: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@f33f41b675f0ab2dc5a6863c9a170fe83af3571e # v4 + uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 From d070bff87fe9172639fadc8a31e342fd782f6a7a Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:30:13 -0700 Subject: [PATCH 23/68] Bump docker/login-action to v4.7.0 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docker-image-build-publish.yml | 2 +- .github/workflows/docker-image-common.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index 14ee79a19d..6173e7345f 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -46,7 +46,7 @@ jobs: # Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index 01c678eaa9..365fc45139 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -46,7 +46,7 @@ jobs: # Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} From 666e86f20ee56786ecb0d24aeb9fb9f849844516 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:30:13 -0700 Subject: [PATCH 24/68] Bump docker/metadata-action to v6.2.0 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docker-image-common.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index 365fc45139..b5900d2ee5 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -55,7 +55,7 @@ jobs: # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels. - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0 with: images: ${{ env.REGISTRY }}/${{ steps.set-image-name.outputs.IMAGE_NAME }} From 708f118c70157c3738b989b743aa6dc60f250302 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:30:13 -0700 Subject: [PATCH 25/68] Bump docker/setup-buildx-action to v4.4.1 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docker-image-build-publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index 6173e7345f..db7084d2bb 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -54,9 +54,8 @@ jobs: # This step sets up Docker Buildx, which is needed for the multi-platform build in the next step # https://docs.docker.com/build/ci/github-actions/multi-platform/ - # v3.1.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 # This step uses the `docker/build-push-action` action to build the image, based on the ctsm-docs `Dockerfile`. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository. From e31598abbe785d4cdb26a8e1238eaf697036df23 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:30:13 -0700 Subject: [PATCH 26/68] Bump docker/build-push-action to v7.4.0 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docker-image-build-publish.yml | 3 +-- .github/workflows/docker-image-common.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index db7084d2bb..4d42832878 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -61,10 +61,9 @@ jobs: # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. # Note that we should avoid relying on the "latest" tag for anything, but it's good practice to have one. - # v6.15.0 - name: Push Docker image id: push - uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: context: doc/ctsm-docs_container platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index b5900d2ee5..82ac552772 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -62,10 +62,9 @@ jobs: # This step uses the `docker/build-push-action` action to build the image, based on the ctsm-docs `Dockerfile`. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. - # v6.15.0 - name: Build Docker image id: build-image - uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: context: doc/ctsm-docs_container push: false From bc9170d62c3df2095eec5e3fd06cfa5873c1a7ca Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 12:31:12 -0700 Subject: [PATCH 27/68] Fix version comments on two action pins Co-Authored-By: Claude Opus 5.5 --- .github/workflows/check-testlists.yml | 2 +- .github/workflows/docs-common.yml | 2 +- .github/workflows/docs-omnibus.yml | 2 +- .github/workflows/docs-update-ctsm_pylib.yml | 2 +- .github/workflows/docs-update-dependency-common.yml | 4 ++-- .github/workflows/python-tests.yml | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index 09f4a704b9..c5631a3165 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Set up the conda environment - - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 + - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index 5f4afe5a79..1ce2da0341 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -54,7 +54,7 @@ jobs: # Do this if using conda - name: Set up conda environment if: ${{ inputs.use_conda }} - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} diff --git a/.github/workflows/docs-omnibus.yml b/.github/workflows/docs-omnibus.yml index 38772941bc..63b23d56d1 100644 --- a/.github/workflows/docs-omnibus.yml +++ b/.github/workflows/docs-omnibus.yml @@ -36,7 +36,7 @@ jobs: # Set up conda - name: Set up conda environment - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml diff --git a/.github/workflows/docs-update-ctsm_pylib.yml b/.github/workflows/docs-update-ctsm_pylib.yml index fb174a4fbf..e4bd1800a3 100644 --- a/.github/workflows/docs-update-ctsm_pylib.yml +++ b/.github/workflows/docs-update-ctsm_pylib.yml @@ -58,7 +58,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Create issue - uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 + uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2.9.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/docs-update-dependency-common.yml b/.github/workflows/docs-update-dependency-common.yml index fb54dca978..d5c5f6f925 100644 --- a/.github/workflows/docs-update-dependency-common.yml +++ b/.github/workflows/docs-update-dependency-common.yml @@ -38,7 +38,7 @@ jobs: bin/git-fleximod update -o - name: Set up conda environment - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} @@ -67,7 +67,7 @@ jobs: bin/git-fleximod update -o - name: Set up conda environment - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index fe32161826..5c9f08d318 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -35,7 +35,7 @@ jobs: bin/git-fleximod update cime # Set up the conda environment - - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 + - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml @@ -58,7 +58,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Set up the conda environment - - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1 + - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml From 6b86b4bed4cd6973ec5bd41447fc40391a638f04 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 13:57:08 -0700 Subject: [PATCH 28/68] Change one more workflow back to ubuntu-latest --- .github/workflows/fleximod_test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fleximod_test.yaml b/.github/workflows/fleximod_test.yaml index 925320fb11..bea1aaefb0 100644 --- a/.github/workflows/fleximod_test.yaml +++ b/.github/workflows/fleximod_test.yaml @@ -14,7 +14,7 @@ on: jobs: fleximod-test: - runs-on: ubuntu-26.04 + runs-on: ubuntu-latest strategy: fail-fast: false matrix: From 4e1427ac23c58083cb17caac9df64fda2b58c595 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 14:03:50 -0700 Subject: [PATCH 29/68] Update Dockerfile to use Python 3.13.13. --- doc/ctsm-docs_container/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ctsm-docs_container/Dockerfile b/doc/ctsm-docs_container/Dockerfile index 0dbe818675..84c9c4494b 100644 --- a/doc/ctsm-docs_container/Dockerfile +++ b/doc/ctsm-docs_container/Dockerfile @@ -2,7 +2,7 @@ # A base linux install + packages for building CTSM documentation # ################################################################### -FROM python:3.13.2-alpine +FROM python:3.13.13-alpine # Update the default packages and install some other necessary ones RUN apk update From 0540e12b1abdc81d7f6e4b06ee3c2286d949e36e Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 14:05:18 -0700 Subject: [PATCH 30/68] py_env_create: "Old" is now 3.13.2. --- py_env_create | 6 +++--- python/conda_env_ctsm_py_old_3.13.2.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/py_env_create b/py_env_create index cf34131e41..ac59a1d169 100755 --- a/py_env_create +++ b/py_env_create @@ -17,9 +17,9 @@ cd "${SCRIPT_DIR}" condadir="${SCRIPT_DIR}/python" default_new_env_name=ctsm_pylib -default_old_env_name=ctsm_pylib_3_7_9 +default_old_env_name=ctsm_pylib_3_13_2 default_condafile="${condadir}/conda_env_ctsm_py.yml" -default_condafile_old="${condadir}/conda_env_ctsm_py_old_3.7.9.yml" +default_condafile_old="${condadir}/conda_env_ctsm_py_old_3.13.2.yml" condafile="${default_condafile}" quiet="" @@ -109,7 +109,7 @@ usage() { echo "[-o|--overwrite] " echo " Overwrite existing env with same name, if any. Incompatible with -r/--rename-existing." echo "[--old] " - echo " Install the previous version of ctsm_pylib (Python 3.7.9). Changes these to old-version defaults:" + echo " Install the previous version of ctsm_pylib. Changes these to old-version defaults:" echo " env name: ${default_old_env_name}" echo " file: ${default_condafile_old}" echo "[-q|--quiet] " diff --git a/python/conda_env_ctsm_py_old_3.13.2.yml b/python/conda_env_ctsm_py_old_3.13.2.yml index 2de08415ac..80e3d0ae22 100644 --- a/python/conda_env_ctsm_py_old_3.13.2.yml +++ b/python/conda_env_ctsm_py_old_3.13.2.yml @@ -2,7 +2,7 @@ # which used Python 3.13.2. Doing so is only useful for running CTSM python tools in repos from # before the subsequent ctsm_pylib version (with Python 3.13.13) was introduced. # -name: ctsm_pylib +name: ctsm_pylib_3_13_2 channels: - conda-forge - defaults From 875abb0142cb72d197eb953b173c290c54fdba72 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 14:07:33 -0700 Subject: [PATCH 31/68] push-and-attest job now gets artifact-metadata: write --- .github/workflows/docker-image-build-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index 4d42832878..d3c382a4d6 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -39,6 +39,7 @@ jobs: packages: write attestations: write id-token: write + artifact-metadata: write steps: - name: Checkout repository From 7a6c18a0204f725b037e6c8aea17437e6cc7870d Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 14:09:03 -0700 Subject: [PATCH 32/68] Avoid deprecated option in conda-incubator/setup-miniconda --- .github/workflows/check-testlists.yml | 2 +- .github/workflows/docs-common.yml | 2 +- .github/workflows/docs-omnibus.yml | 2 +- .github/workflows/docs-update-dependency-common.yml | 4 ++-- .github/workflows/python-tests.yml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index c5631a3165..6567c08a40 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -33,7 +33,7 @@ jobs: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages run: conda list diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index 1ce2da0341..e73711cd02 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -59,7 +59,7 @@ jobs: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages if: ${{ ! inputs.use_conda }} diff --git a/.github/workflows/docs-omnibus.yml b/.github/workflows/docs-omnibus.yml index 63b23d56d1..231e6e66c7 100644 --- a/.github/workflows/docs-omnibus.yml +++ b/.github/workflows/docs-omnibus.yml @@ -41,7 +41,7 @@ jobs: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages run: conda list diff --git a/.github/workflows/docs-update-dependency-common.yml b/.github/workflows/docs-update-dependency-common.yml index d5c5f6f925..d6498f1e72 100644 --- a/.github/workflows/docs-update-dependency-common.yml +++ b/.github/workflows/docs-update-dependency-common.yml @@ -43,7 +43,7 @@ jobs: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages run: conda list @@ -72,7 +72,7 @@ jobs: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Check that Makefile method works run: | diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 5c9f08d318..1440729ea9 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -40,7 +40,7 @@ jobs: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages run: conda list @@ -63,7 +63,7 @@ jobs: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages run: conda list From acdc9bcd916d1beae9ecdd63f13443f5b0ca3dc9 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 14:14:48 -0700 Subject: [PATCH 33/68] Simplify "Print installed Python packages" --- .github/workflows/docs-common.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index e73711cd02..d2e157e327 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -62,12 +62,7 @@ jobs: auto-activate: false - name: Print installed Python packages - if: ${{ ! inputs.use_conda }} - run: pip list - - - name: Print installed Python packages (conda) - if: ${{ inputs.use_conda }} - run: conda list + run: ${{ inputs.use_conda && 'conda list' || 'pip list' }} - name: Build Sphinx docs with makefile run: | From d5b84e2cb9748d5499e8a78962db2320f946f912 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 14:19:46 -0700 Subject: [PATCH 34/68] ctsm-docs image is a proper new version. --- doc/ctsm-docs_container/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ctsm-docs_container/Dockerfile b/doc/ctsm-docs_container/Dockerfile index 84c9c4494b..22937da769 100644 --- a/doc/ctsm-docs_container/Dockerfile +++ b/doc/ctsm-docs_container/Dockerfile @@ -29,4 +29,4 @@ CMD ["/bin/bash", "-l"] LABEL org.opencontainers.image.title="Container for building CTSM documentation" LABEL org.opencontainers.image.source=https://github.com/ESCOMP/CTSM -LABEL org.opencontainers.image.version="v2.0.1b" +LABEL org.opencontainers.image.version="v2.0.2" From a9916e7296f124355452472709091f7334b8af75 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 6 Oct 2026 13:21:36 -0600 Subject: [PATCH 35/68] Update doc-builder to v3.5.10. --- .gitmodules | 2 +- doc/Makefile | 3 +-- doc/doc-builder | 2 +- doc/substitutions.py | 6 +++++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitmodules b/.gitmodules index 9d66f4c1c6..34004d6399 100644 --- a/.gitmodules +++ b/.gitmodules @@ -124,7 +124,7 @@ fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial [submodule "doc-builder"] path = doc/doc-builder url = https://github.com/ESMCI/doc-builder -fxtag = v3.2.1 +fxtag = v3.5.10 fxrequired = ToplevelOptional # Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed fxDONOTUSEurl = https://github.com/ESMCI/doc-builder diff --git a/doc/Makefile b/doc/Makefile index d24e5e31aa..5a74413ecc 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -4,9 +4,8 @@ # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build -SPHINXPROJ = clmdoc SOURCEDIR = source -DIRWITHCONFPY = doc-builder +DIRWITHCONFPY = $(if $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))doc-builder),doc-builder,.) BUILDDIR = build # Put it first so that "make" without argument is like "make help". diff --git a/doc/doc-builder b/doc/doc-builder index 15e171dfcf..06c71f9f3d 160000 --- a/doc/doc-builder +++ b/doc/doc-builder @@ -1 +1 @@ -Subproject commit 15e171dfcf77ca2bd85415a99a50ad3994c608c4 +Subproject commit 06c71f9f3db86a35766f411a0e7f252195022d00 diff --git a/doc/substitutions.py b/doc/substitutions.py index 29b6fb54de..ee97ff717d 100644 --- a/doc/substitutions.py +++ b/doc/substitutions.py @@ -60,4 +60,8 @@ "dirmenu_entry": "clmdoc", "description": "One line description of project.", "category": tex_category, -} \ No newline at end of file +} + +############################### +### Purely custom variables ### +############################### From 19a87bf5a4043cd0bc96e59ce4b506f80b4c863e Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 6 Oct 2026 13:48:43 -0600 Subject: [PATCH 36/68] Fix paths to conf.py for two docs test scripts --- doc/test/test_build_docs_-r-v.sh | 2 +- doc/test/test_container_eq_ctsm_pylib.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/test/test_build_docs_-r-v.sh b/doc/test/test_build_docs_-r-v.sh index 6f9415b563..8408eee64e 100755 --- a/doc/test/test_build_docs_-r-v.sh +++ b/doc/test/test_build_docs_-r-v.sh @@ -9,7 +9,7 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "${SCRIPT_DIR}/.." msg="~~~~~ Check that -r -v works" -cmd="./build_docs -r _build -v latest -c --conf-py-path doc-builder/test/conf.py --static-path ../_static --templates-path ../_templates" +cmd="./build_docs -r _build -v latest -c --conf-py-path doc-builder/conf.py --static-path ../_static --templates-path ../_templates" . test/compose_test_cmd.sh set -x diff --git a/doc/test/test_container_eq_ctsm_pylib.sh b/doc/test/test_container_eq_ctsm_pylib.sh index 729f1b723e..f19ebcc5f2 100755 --- a/doc/test/test_container_eq_ctsm_pylib.sh +++ b/doc/test/test_container_eq_ctsm_pylib.sh @@ -25,7 +25,7 @@ cp -a _publish "${d1}" echo "~~~~~ Build all docs using ctsm_pylib" rm -rf _build _publish d2="$PWD/_publish_nocontainer" -conda run -n ctsm_pylib --no-capture-output ./build_docs_to_publish -r _build --site-root "$PWD/_publish" --conf-py-path doc-builder/test/conf.py --static-path ../_static --templates-path ../_templates +conda run -n ctsm_pylib --no-capture-output ./build_docs_to_publish -r _build --site-root "$PWD/_publish" --conf-py-path doc-builder/conf.py --static-path ../_static --templates-path ../_templates # VERSION LINKS WILL NOT RESOLVE IN _publish_nocontainer cp -a _publish "${d2}" From bbb10421609718a1a68cc2836e77a938ae510b4c Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Mon, 2 Nov 2026 16:24:25 -0700 Subject: [PATCH 37/68] Doc test scripts: Fix static and template paths --- doc/test/test_build_docs_-r-v.sh | 2 +- doc/test/test_container_eq_ctsm_pylib.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/test/test_build_docs_-r-v.sh b/doc/test/test_build_docs_-r-v.sh index 8408eee64e..bfeac79840 100755 --- a/doc/test/test_build_docs_-r-v.sh +++ b/doc/test/test_build_docs_-r-v.sh @@ -9,7 +9,7 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "${SCRIPT_DIR}/.." msg="~~~~~ Check that -r -v works" -cmd="./build_docs -r _build -v latest -c --conf-py-path doc-builder/conf.py --static-path ../_static --templates-path ../_templates" +cmd="./build_docs -r _build -v latest -c --conf-py-path doc-builder/conf.py --static-path _static --templates-path _templates" . test/compose_test_cmd.sh set -x diff --git a/doc/test/test_container_eq_ctsm_pylib.sh b/doc/test/test_container_eq_ctsm_pylib.sh index f19ebcc5f2..ea995d7f11 100755 --- a/doc/test/test_container_eq_ctsm_pylib.sh +++ b/doc/test/test_container_eq_ctsm_pylib.sh @@ -25,7 +25,7 @@ cp -a _publish "${d1}" echo "~~~~~ Build all docs using ctsm_pylib" rm -rf _build _publish d2="$PWD/_publish_nocontainer" -conda run -n ctsm_pylib --no-capture-output ./build_docs_to_publish -r _build --site-root "$PWD/_publish" --conf-py-path doc-builder/conf.py --static-path ../_static --templates-path ../_templates +conda run -n ctsm_pylib --no-capture-output ./build_docs_to_publish -r _build --site-root "$PWD/_publish" --conf-py-path doc-builder/conf.py --static-path _static --templates-path _templates # VERSION LINKS WILL NOT RESOLVE IN _publish_nocontainer cp -a _publish "${d2}" From 494bab1bd2295f372e2afdc35ce9268cbaa140e5 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Mon, 2 Nov 2026 16:25:44 -0700 Subject: [PATCH 38/68] Delete CTSM-side _templates/ --- doc/source/_templates/versions.html | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 doc/source/_templates/versions.html diff --git a/doc/source/_templates/versions.html b/doc/source/_templates/versions.html deleted file mode 100644 index d219003644..0000000000 --- a/doc/source/_templates/versions.html +++ /dev/null @@ -1,26 +0,0 @@ -
- - Version: {{ current_version }} - - -
- {% if languages|length >= 1 %} -
-
{{ _('Languages') }}
- {% for the_language, url in languages %} -
{{ the_language }}
- {% endfor %} -
- {% endif %} - {% if versions|length >= 1 %} -
-
{{ _('Versions') }}
- {% for the_version, url in versions %} -
{{ the_version }}
- {% endfor %} -
- {% endif %} -
- -
-
From 8c8dd637757bfaedb74f4eb511141e04375e15ac Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Mon, 2 Nov 2026 16:33:58 -0700 Subject: [PATCH 39/68] Update build_docs* scripts with their doc-builder versions. --- doc/build_docs | 44 +++++++++++++++++++++++++++++++++------ doc/build_docs_to_publish | 30 ++------------------------ 2 files changed, 40 insertions(+), 34 deletions(-) diff --git a/doc/build_docs b/doc/build_docs index 99415e15c4..16bdb3f09d 100755 --- a/doc/build_docs +++ b/doc/build_docs @@ -1,9 +1,31 @@ #!/usr/bin/env bash set -e -if [ ! -f doc-builder/build_docs ]; then - script_dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" - ${script_dir}/../bin/git-fleximod update doc-builder +# $scriptname will already be set if build_docs is getting called from build_docs_to_publish. +# Otherwise, we need to set it to the basename of this script. +if [[ -z "${scriptname}" ]]; then + scriptname="${0##*/}" +fi + +if [ ! -e doc-builder ]; then + # We're in the doc-builder directory itself + script="./tools/${scriptname}.py" + files_to_copy_to_source="conf.py substitutions.py _templates _static" + cp -a ${files_to_copy_to_source} source/ +else + # We're in a repo that *includes* doc-builder + script="./doc-builder/tools/${scriptname}.py" + + # Make sure the doc-builder submodule is checked out. If doc-builder isn't a submodule but is + # instead manually included, we will perform the `else`, which is safe because it's a no-op in + # that situation. + # (Assume that if the repo uses git-fleximod, doc-builder is handled with it.) + git_fleximod_path="$(git rev-parse --show-toplevel)/bin/git-fleximod" + if [[ -e "${git_fleximod_path}" ]]; then + "${git_fleximod_path}" update doc-builder + else + git submodule update --init -- doc-builder + fi fi # Check if --verbose or -V was passed @@ -22,8 +44,18 @@ else fi if $verbose; then - echo "Running: ./doc-builder/build_docs $@" + echo "Running: ${script} $@" +fi +set +e +${script} "$@" +exit_code=$? +set -e + +if [ ! -e doc-builder ]; then + # Clean up these things we copied + for f in ${files_to_copy_to_source}; do + rm -r "source/$f" + done fi -./doc-builder/build_docs "$@" -exit 0 +exit $exit_code diff --git a/doc/build_docs_to_publish b/doc/build_docs_to_publish index bc4075c964..dc176c60fb 100755 --- a/doc/build_docs_to_publish +++ b/doc/build_docs_to_publish @@ -1,32 +1,6 @@ #!/usr/bin/env bash set -e -script_dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" -if [ ! -f doc-builder/build_docs_to_publish ]; then - "${script_dir}"/../bin/git-fleximod update doc-builder -fi +scriptname=build_docs_to_publish -# Check if --verbose or -V was passed -verbose=false -for arg in "$@"; do - case "$arg" in - --verbose|-V) verbose=true; break ;; - esac -done - -cd "${script_dir}" - -if $verbose; then - echo "Running: make fetch-images" - make fetch-images -else - make fetch-images > /dev/null 2>&1 -fi - -if $verbose; then - echo "Running: ./doc-builder/build_docs_to_publish $@" - pwd -fi -./doc-builder/build_docs_to_publish "$@" - -exit 0 +. ./build_docs From d058190a94f78fc467dc0a33d6d51f8e30e29b39 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Mon, 2 Nov 2026 17:11:46 -0700 Subject: [PATCH 40/68] Update doc-builder to v3.5.11. No real changes, but rebuild needed because requirements.txt now resolve dependency versions that produce different results from before. This was causing failures in a CTSM doc-building test; see ESCOMP/CTSM#4267. --- .gitmodules | 2 +- doc/doc-builder | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 34004d6399..f7b402acdf 100644 --- a/.gitmodules +++ b/.gitmodules @@ -124,7 +124,7 @@ fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial [submodule "doc-builder"] path = doc/doc-builder url = https://github.com/ESMCI/doc-builder -fxtag = v3.5.10 +fxtag = v3.5.11 fxrequired = ToplevelOptional # Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed fxDONOTUSEurl = https://github.com/ESMCI/doc-builder diff --git a/doc/doc-builder b/doc/doc-builder index 06c71f9f3d..e84013e41a 160000 --- a/doc/doc-builder +++ b/doc/doc-builder @@ -1 +1 @@ -Subproject commit 06c71f9f3db86a35766f411a0e7f252195022d00 +Subproject commit e84013e41aeace610414b3dbb70232d3bbf4ee84 From e74679bc18a2a60e09fadfe78585ad2c581dba11 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 09:55:42 -0700 Subject: [PATCH 41/68] Point refs to docs requirements.txt to doc-builder # Conflicts: # .github/workflows/docs-update-ctsm_pylib.yml --- .github/workflows/check-testlists.yml | 5 +++++ .github/workflows/docs-common.yml | 5 +++-- .github/workflows/docs-omnibus.yml | 1 + .github/workflows/docs-update-ctsm_pylib.yml | 4 ++-- .github/workflows/docs-update-dependency-common.yml | 2 ++ .github/workflows/python-tests.yml | 10 ++++++++++ .../vscode-doc-editing-setup.md | 4 ++-- py_env_create | 3 +++ python/conda_env_ctsm_py.yml | 2 +- 9 files changed, 29 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index 6567c08a40..3a04a5efb2 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -27,6 +27,11 @@ jobs: # Checkout the code - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + # Check out doc-builder to get requirements.txt + - name: Checkout doc-builder submodule + run: | + bin/git-fleximod update doc-builder + # Set up the conda environment - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index d2e157e327..fbeee70108 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -27,6 +27,7 @@ jobs: lfs: true # Check out all submodules because we might :literalinclude: something from one + # Also, we need doc-builder for its requirements.txt - name: Checkout all submodules run: | bin/git-fleximod update -o @@ -43,13 +44,13 @@ jobs: uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('doc/ctsm-docs_container/requirements.txt') }} + key: ${{ runner.os }}-pip-${{ hashFiles('doc/doc-builder/doc-build-container/requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- - name: Install Python requirements if: ${{ ! inputs.use_conda }} run: | - pip install -r doc/ctsm-docs_container/requirements.txt + pip install -r doc/doc-builder/doc-build-container/requirements.txt # Do this if using conda - name: Set up conda environment diff --git a/.github/workflows/docs-omnibus.yml b/.github/workflows/docs-omnibus.yml index 231e6e66c7..f3e6d1f1e7 100644 --- a/.github/workflows/docs-omnibus.yml +++ b/.github/workflows/docs-omnibus.yml @@ -30,6 +30,7 @@ jobs: lfs: true # Check out all submodules because we might :literalinclude: something from one + # Also, we need doc-builder for its requirements.txt - name: Checkout all submodules run: | bin/git-fleximod update -o diff --git a/.github/workflows/docs-update-ctsm_pylib.yml b/.github/workflows/docs-update-ctsm_pylib.yml index e4bd1800a3..02a957e801 100644 --- a/.github/workflows/docs-update-ctsm_pylib.yml +++ b/.github/workflows/docs-update-ctsm_pylib.yml @@ -6,7 +6,7 @@ on: branches: ['*'] paths: - 'python/conda_env_ctsm_py.yml' - - 'doc/ctsm-docs_container/requirements.txt' + - 'doc/doc-builder' - '.github/workflows/docs-common.yml' - '.github/workflows/docs-update-dependency-common.yml' @@ -14,7 +14,7 @@ on: # Run on pull requests that change the listed files paths: - 'python/conda_env_ctsm_py.yml' - - 'doc/ctsm-docs_container/requirements.txt' + - 'doc/doc-builder' - '.github/workflows/docs-common.yml' - '.github/workflows/docs-update-dependency-common.yml' diff --git a/.github/workflows/docs-update-dependency-common.yml b/.github/workflows/docs-update-dependency-common.yml index d6498f1e72..5609e64d60 100644 --- a/.github/workflows/docs-update-dependency-common.yml +++ b/.github/workflows/docs-update-dependency-common.yml @@ -33,6 +33,7 @@ jobs: lfs: true # Check out all submodules because we might :literalinclude: something from one + # Also, we need doc-builder for its requirements.txt - name: Checkout all submodules run: | bin/git-fleximod update -o @@ -62,6 +63,7 @@ jobs: lfs: true # Check out all submodules because we might :literalinclude: something from one + # Also, we need doc-builder for its requirements.txt - name: Checkout all submodules run: | bin/git-fleximod update -o diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 1440729ea9..61ab2b267f 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -34,6 +34,11 @@ jobs: run: | bin/git-fleximod update cime + # Check out doc-builder to get requirements.txt + - name: Checkout doc-builder submodule + run: | + bin/git-fleximod update doc-builder + # Set up the conda environment - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: @@ -57,6 +62,11 @@ jobs: # Checkout the code - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + # Check out doc-builder to get requirements.txt + - name: Checkout doc-builder submodule + run: | + bin/git-fleximod update doc-builder + # Set up the conda environment - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: diff --git a/doc/source/users_guide/working-with-documentation/vscode-doc-editing-setup.md b/doc/source/users_guide/working-with-documentation/vscode-doc-editing-setup.md index 4a531b7647..c0af7b10ee 100644 --- a/doc/source/users_guide/working-with-documentation/vscode-doc-editing-setup.md +++ b/doc/source/users_guide/working-with-documentation/vscode-doc-editing-setup.md @@ -3,7 +3,7 @@ # Recommended setup for editing docs in VS Code ## Set up Python -The Python packages needed for this setup are listed at `doc/ctsm-docs_container/requirements.txt`. If you recently installed [the `ctsm_pylib` conda environment](https://escomp.github.io/CTSM/users_guide/using-clm-tools/using-ctsm-pylib.html), they will already be included there. Check like so: +The Python packages needed for this setup are listed at `doc/doc-builder/doc-build-container/requirements.txt`. If you recently installed [the `ctsm_pylib` conda environment](https://escomp.github.io/CTSM/users_guide/using-clm-tools/using-ctsm-pylib.html), they will already be included there. Check like so: ```shell conda activate ctsm_pylib pip show myst-parser @@ -11,7 +11,7 @@ pip show myst-parser If you see `WARNING: Package(s) not found: myst-parser`, you'll need to install the doc-building Python modules. With your conda environment activated (or in whatever other environment you want to use), from the top level of a CTSM checkout, do: ```shell -pip install -r doc/ctsm-docs_container/requirements.txt +pip install -r doc/doc-builder/doc-build-container/requirements.txt ``` You will need to provide the path to your Python binary in various VS Code settings detailed below. You can get that with `which python` (after loading the relevant conda environment, if needed). diff --git a/py_env_create b/py_env_create index ac59a1d169..88284c0fa4 100755 --- a/py_env_create +++ b/py_env_create @@ -237,6 +237,9 @@ if [[ ${dry_run} -ne 0 ]]; then exit 0 fi +# Check out doc-builder to ensure we have the latest version of its requirements.txt +bin/git-fleximod update doc-builder + # Rename or overwrite existing if [[ ${conda_env_does_exist} -gt 0 ]]; then if [[ "${new_name_for_existing}" != "" ]]; then diff --git a/python/conda_env_ctsm_py.yml b/python/conda_env_ctsm_py.yml index 66a739186d..f692210958 100644 --- a/python/conda_env_ctsm_py.yml +++ b/python/conda_env_ctsm_py.yml @@ -26,7 +26,7 @@ dependencies: # For building docs - pip: - - -r ../doc/ctsm-docs_container/requirements.txt + - -r ../doc/doc-builder/doc-build-container/requirements.txt # Used in ctsm_postprocessing repo - pytest=8.3.5 From 5102d020d9894165c99750d88deb95ef9d725c68 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 3 Nov 2026 09:56:17 -0700 Subject: [PATCH 42/68] Remove ctsm-docs container stuff --- .../workflows/docker-image-build-publish.yml | 85 ---------------- .github/workflows/docker-image-build.yml | 28 ------ .github/workflows/docker-image-common.yml | 96 ------------------- .../workflows/docker-image-get-version.yml | 72 -------------- doc/ctsm-docs_container/Dockerfile | 32 ------- doc/ctsm-docs_container/README.md | 91 ------------------ doc/ctsm-docs_container/get_version.sh | 26 ----- doc/ctsm-docs_container/requirements.txt | 6 -- python/conda_env_ctsm_py_old_3.13.2.yml | 6 +- 9 files changed, 5 insertions(+), 437 deletions(-) delete mode 100644 .github/workflows/docker-image-build-publish.yml delete mode 100644 .github/workflows/docker-image-build.yml delete mode 100644 .github/workflows/docker-image-common.yml delete mode 100644 .github/workflows/docker-image-get-version.yml delete mode 100644 doc/ctsm-docs_container/Dockerfile delete mode 100644 doc/ctsm-docs_container/README.md delete mode 100755 doc/ctsm-docs_container/get_version.sh delete mode 100644 doc/ctsm-docs_container/requirements.txt diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml deleted file mode 100644 index d3c382a4d6..0000000000 --- a/.github/workflows/docker-image-build-publish.yml +++ /dev/null @@ -1,85 +0,0 @@ -# Based on https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#publishing-a-package-using-an-action (last accessed 2025-05-09) -name: Build and publish ctsm-docs Docker image - -on: - # Run this whenever a change to certain files gets pushed to master - push: - branches: ['master'] - paths: - - 'doc/ctsm-docs_container/**' - - '!doc/ctsm-docs_container/README.md' - - # Run this whenever it's manually called - workflow_dispatch: - -jobs: - # This first job checks that the container can be built, and that we can use it to build the docs without error. - build-image-and-test-docs: - name: Build image and test docs - uses: ./.github/workflows/docker-image-common.yml - secrets: inherit - - # This second job actually builds and publishes the container. - push-and-attest: - name: Publish and attest - runs-on: ubuntu-latest - - # Wait to run this job until after build-image-and-test-docs. If that job fails, something might be wrong with the container, so don't try this one. (It might also have failed because of something wrong with doc-builder or the documentation.) - needs: build-image-and-test-docs - - # Variables output by the build-image-and-test-docs job. - env: - REGISTRY: ${{ needs.build-image-and-test-docs.outputs.REGISTRY }} - IMAGE_NAME: ${{ needs.build-image-and-test-docs.outputs.IMAGE_NAME }} - VERSION_TAG: ${{ needs.build-image-and-test-docs.outputs.version_tag }} - - # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. - permissions: - contents: read - packages: write - attestations: write - id-token: write - artifact-metadata: write - - steps: - - name: Checkout repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - # Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - - name: Log in to the Container registry - uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - # This step sets up Docker Buildx, which is needed for the multi-platform build in the next step - # https://docs.docker.com/build/ci/github-actions/multi-platform/ - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 - - # This step uses the `docker/build-push-action` action to build the image, based on the ctsm-docs `Dockerfile`. - # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository. - # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. - # Note that we should avoid relying on the "latest" tag for anything, but it's good practice to have one. - - name: Push Docker image - id: push - uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 - with: - context: doc/ctsm-docs_container - platforms: linux/amd64,linux/arm64 - push: true - load: false - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - ${{ env.VERSION_TAG }} - labels: "" - - # This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see [Using artifact attestations to establish provenance for builds](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). - - name: Generate artifact attestation - uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2 - with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - subject-digest: ${{ steps.push.outputs.digest }} - push-to-registry: true - diff --git a/.github/workflows/docker-image-build.yml b/.github/workflows/docker-image-build.yml deleted file mode 100644 index 6d38e12c8b..0000000000 --- a/.github/workflows/docker-image-build.yml +++ /dev/null @@ -1,28 +0,0 @@ -# Modified from https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#publishing-a-package-using-an-action (last accessed 2025-05-09) -name: Build and test ctsm-docs container - -# Configures this workflow to run every time a change in the Docker container setup is pushed or included in a PR -on: - push: - # Run when a change to these files is pushed to any branch. Without the "branches:" line, for some reason this will be run whenever a tag is pushed, even if the listed files aren't changed. - branches: ['*'] - paths: - - 'doc/ctsm-docs_container/**' - - '!doc/ctsm-docs_container/README.md' - - '.github/workflows/docker-image-common.yml' - - pull_request: - # Run on pull requests that change the listed files - paths: - - 'doc/ctsm-docs_container/**' - - '!doc/ctsm-docs_container/README.md' - - '.github/workflows/docker-image-common.yml' - - workflow_dispatch: - -# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. -jobs: - build-image-and-test-docs: - name: Build image and test docs - uses: ./.github/workflows/docker-image-common.yml - secrets: inherit diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml deleted file mode 100644 index 82ac552772..0000000000 --- a/.github/workflows/docker-image-common.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: Workflow used by docker-image workflows - -on: - workflow_call: - outputs: - REGISTRY: - description: "Container registry" - value: ${{ jobs.build-image-and-test-docs.outputs.REGISTRY }} - IMAGE_NAME: - description: "Docker image name" - value: ${{ jobs.build-image-and-test-docs.outputs.IMAGE_NAME }} - version_tag: - description: "Version tag from Dockerfile" - value: ${{ jobs.check-version.outputs.VERSION_TAG }} - -# Defines custom environment variables for the workflow. -env: - REGISTRY: ghcr.io - IMAGE_BASENAME: ctsm-docs - REPO: ${{ github.repository }} - -# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. -jobs: - build-image-and-test-docs: - runs-on: ubuntu-latest - # Variables that might be needed by the calling workflow - outputs: - REGISTRY: ${{ env.REGISTRY }} - IMAGE_NAME: ${{ steps.set-image-name.outputs.IMAGE_NAME }} - # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. - permissions: - contents: read - - steps: - - - name: Checkout repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - # Ensure that the repository part of IMAGE_NAME is lowercase. This is needed because Docker requires image names to be entirely lowercase. Note that the *image name* part, set as IMAGE_BASENAME in the env block above, is *not* converted. This will cause the check-version job to fail if the IMAGE_BASENAME contains capitals. We don't want to silently fix that here; rather, we require the user to specify a lowercase IMAGE_BASENAME. - - name: Get image name with lowercase repo - id: set-image-name - run: | - lowercase_repo=$(echo $REPO | tr '[:upper:]' '[:lower:]') - echo "IMAGE_NAME=${lowercase_repo}/${IMAGE_BASENAME}" >> $GITHUB_ENV - echo "IMAGE_NAME=${lowercase_repo}/${IMAGE_BASENAME}" >> $GITHUB_OUTPUT - - # Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - - name: Log in to the Container registry - uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels. - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0 - with: - images: ${{ env.REGISTRY }}/${{ steps.set-image-name.outputs.IMAGE_NAME }} - - # This step uses the `docker/build-push-action` action to build the image, based on the ctsm-docs `Dockerfile`. - # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository. - # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. - - name: Build Docker image - id: build-image - uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 - with: - context: doc/ctsm-docs_container - push: false - load: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - - # Check out all submodules because we might :literalinclude: something from one - - name: Checkout all submodules - run: | - bin/git-fleximod update -o - - - name: Set image tag for docs build - id: set-image-tag - run: | - echo "IMAGE_TAG=$(echo '${{ steps.meta.outputs.tags }}' | head -n 1 | cut -d',' -f1)" >> $GITHUB_ENV - - - name: Build docs using Docker (Podman has trouble on GitHub runners) - id: build-docs - run: | - cd doc && ./build_docs -b ${PWD}/_build -c -d -i $IMAGE_TAG - - - check-version: - needs: build-image-and-test-docs - uses: ./.github/workflows/docker-image-get-version.yml - with: - registry: ${{ needs.build-image-and-test-docs.outputs.REGISTRY }} - image_name: ${{ needs.build-image-and-test-docs.outputs.IMAGE_NAME }} diff --git a/.github/workflows/docker-image-get-version.yml b/.github/workflows/docker-image-get-version.yml deleted file mode 100644 index 5e728cbd85..0000000000 --- a/.github/workflows/docker-image-get-version.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: Get and check version specified in a Dockerfile - -on: - workflow_call: - inputs: - registry: - required: true # Require any workflows calling this one to provide input - type: string - default: 'ghcr.io' # Provide default so this workflow works standalone too - image_name: - required: true # Require any workflows calling this one to provide input - type: string - default: 'escomp/ctsm/ctsm-docs' # Provide default so this workflow works standalone too - outputs: - VERSION_TAG: - description: "Tag to be pushed to container registry" - value: ${{ jobs.get-check-version.outputs.VERSION_TAG }} - workflow_dispatch: - inputs: - registry: - description: 'Container registry' - required: false - type: string - default: 'ghcr.io' - image_name: - description: 'Image name' - required: false - type: string - default: 'escomp/ctsm/ctsm-docs' - -# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. -jobs: - get-check-version: - name: Get version number from Dockerfile and check it - runs-on: ubuntu-latest - outputs: - VERSION_TAG: ${{ steps.get-check-version.outputs.version_tag }} - # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. - permissions: - contents: read - packages: read - - steps: - - name: Check out repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Get version number from Dockerfile and check it - id: get-check-version - run: | - set -e - set -o pipefail - set -u - VERSION="$(doc/ctsm-docs_container/get_version.sh)" - VERSION_TAG="${{ inputs.registry }}/${{ inputs.image_name }}:${VERSION}" - - # Store the manifest inspect result and output - set +e - INSPECT_RESULT="$(docker manifest inspect "$VERSION_TAG" 2>&1)" - INSPECT_STATUS=$? - set -e - - if [[ "${INSPECT_RESULT}" == *"schemaVersion"* ]]; then - echo "Tag $VERSION_TAG already exists!" >&2 - exit 123 - elif [[ "${INSPECT_RESULT}" != "manifest unknown" ]]; then - # "manifest unknown" means the tag doesn't exist, which is what we want - echo -e "Error checking manifest for $VERSION_TAG:\n${INSPECT_RESULT}" >&2 - exit $INSPECT_STATUS - fi - - echo "Setting version_tag to $VERSION_TAG" - echo "version_tag=$VERSION_TAG" >> $GITHUB_OUTPUT diff --git a/doc/ctsm-docs_container/Dockerfile b/doc/ctsm-docs_container/Dockerfile deleted file mode 100644 index 22937da769..0000000000 --- a/doc/ctsm-docs_container/Dockerfile +++ /dev/null @@ -1,32 +0,0 @@ -################################################################### -# A base linux install + packages for building CTSM documentation # -################################################################### - -FROM python:3.13.13-alpine - -# Update the default packages and install some other necessary ones -RUN apk update -RUN apk add --no-cache git sudo -RUN apk add --no-cache git-lfs -RUN apk add --no-cache make -ADD requirements.txt requirements.txt -RUN pip3 install --break-system-packages -r requirements.txt - -# Add user etc. -RUN addgroup escomp -RUN adduser -h /home/user -G escomp -s /bin/bash -D user -RUN echo 'export USER=$(whoami)' >> /etc/profile.d/escomp.sh -RUN echo 'export PS1="[\u@escomp \W]\$ "' >> /etc/profile.d/escomp.sh -RUN echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/escomp - -ENV SHELL=/bin/bash \ - LANG=C.UTF-8 \ - LC_ALL=C.UTF-8 - -USER user -WORKDIR /home/user -CMD ["/bin/bash", "-l"] - -LABEL org.opencontainers.image.title="Container for building CTSM documentation" -LABEL org.opencontainers.image.source=https://github.com/ESCOMP/CTSM -LABEL org.opencontainers.image.version="v2.0.2" diff --git a/doc/ctsm-docs_container/README.md b/doc/ctsm-docs_container/README.md deleted file mode 100644 index 2c8110275d..0000000000 --- a/doc/ctsm-docs_container/README.md +++ /dev/null @@ -1,91 +0,0 @@ -# The ctsm-docs container -This directory and its Dockerfile are used to build a container for building the CTSM documentation. Unless you're a developer working on the container, you probably don't need to care about anything in here. - -## Introduction - -This Readme tells you how to update the ctsm-docs container if a need to do so arises—for example, adding a Python module that brings new functionality in the build. After you've followed all these instructions, you will probably want to push an update to [doc-builder](https://github.com/ESMCI/doc-builder) that updates `DEFAULT_IMAGE` in [build_commands.py](https://github.com/ESMCI/doc-builder/blob/master/doc_builder/build_commands.py) to point to the new tag. - -## Building - -If you actually want to build the container, you will need to have Podman installed. We previously used Docker for this, but had to move away from it due to licensing issues. Note that these issues have to do specifically with Docker Desktop, which is required to get the Docker Engine on some platforms. The Docker Engine itself is open-source, so our ctsm-docs container testing and publishing workflows are fine to continue using it. We are also fine to use the Docker Engine via Podman for local builds, which is what's described here. - -Once you have Podman installed, you can do: -```shell -podman build --no-cache -t ctsm-docs . -``` - -To use your new version for local testing, you'll need to tell doc-builder to use that image. Call `podman images`, which should return something like this: -```shell -REPOSITORY TAG IMAGE ID CREATED SIZE -localhost/ctsm-docs latest 6464f26339bc 22 seconds ago 241 MB -... -``` - -To test, you can tell `build_docs` to use your new version by adding `--container-image IMAGE_ID` to your call, where in the example above `IMAGE_ID` is `6464f26339bc`. - -## Publishing automatically - -The `docker-image-build-publish.yml` workflow makes it so that new versions of the workflow will be published to the GitHub Container Registry whenever changes to the container setup are merged to CTSM's `master` branch. This will fail (as will a similar, no-publish workflow that happens on PRs) unless you specify exactly one new version number in the Dockerfile. This version number will be used as a tag that can be referenced by, e.g., doc-builder. - -Lots of container instructions tell you to use the `latest` tag, and indeed the workflow will add that tag automatically. However, actually _using_ `latest` can lead to support headaches as users think they have the right version but actually don't. Instead, you'll make a new version number incremented from the [previous one](https://github.com/ESCOMP/CTSM/pkgs/container/ctsm%2Fctsm-docs/versions), in the `vX.Y.Z` format. - -Here's where you need to specify the version number in the Dockerfile: -```docker -LABEL org.opencontainers.image.version="vX.Y.Z" -``` -The string there can technically be anything as long as (a) it starts with a lowercase `v` and (b) it hasn't yet been used on a published version of the container. You may need to "bump" the version string in order for various tests to pass; if so, just add a lowercase letter at the end. - -You can check the results of the automatic publication on the [container's GitHub page](https://github.com/ESCOMP/CTSM/pkgs/container/ctsm%2Fctsm-docs). - -### Updating doc-builder -After the new version of the container is published, you will probably want to tell [doc-builder](https://github.com/ESMCI/doc-builder) to use the new one. Open a PR where you change the tag (the part after the colon) in the definition of `DEFAULT_IMAGE` in `doc_builder/build_commands.py`. Remember, **use the version number**, not "latest". - -## Publishing manually - -It's vastly preferable to let GitHub build and publish the new repo using the `docker-image-build-publish.yml` workflow as described above. However, you may need to publish manually if, for instance, you introduce a change that breaks `doc-builder`. You could work around that by first merging a CTSM `master` PR that updates the container, then updating `doc-builder` to use it, then updating CTSM to use the new `doc-builder`. That's not always practical, though, so here's how to publish the container manually. - -### Building the multi-architecture version - -When publishing our container, we need to make sure it can run on either arm64 or amd64 processor architecture. This requires a special build process: -```shell -podman manifest rm ctsm-docs-manifest 2>/dev/null -podman manifest create ctsm-docs-manifest -podman build --platform linux/amd64,linux/arm64 --manifest ctsm-docs-manifest . -``` - -### Pushing to GitHub Container Registry -If you want to publish the container, you first need a [GitHub Personal Access Token (Classic)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic) with the `write:packages` permissions. You can see your existing PAT(C)s [here](https://github.com/settings/tokens). If you don't have one with the right permissions, [this link](https://github.com/settings/tokens/new?scopes=write:packages) should start the setup process for you. - -Once you have a PAT(C), you can authenticate in your shell session like so: - -```bash -# bash: Make it so that, in this session, commands with a leading space are not saved to terminal history -export HISTCONTROL=ignoreboth - -# Include leading spaces so that your secret PAT(C) isn't included in terminal history - echo YOUR_PERSONAL_ACCESS_TOKEN_CLASSIC | podman login ghcr.io -u YOUR_USERNAME --password-stdin -``` - -### Tagging -You'll next need to tag the image. Lots of container instructions tell you to use the `latest` tag, and Podman may actually add that for you. However, using `latest` in `doc-builder` can lead to support headaches as users think they have the right version but actually don't. So in addition to `latest`, you'll make a new version number incremented from the [previous one](https://github.com/ESCOMP/CTSM/pkgs/container/ctsm%2Fctsm-docs/versions), in the `vX.Y.Z` format. - -Tag the manifest with your version number like so: -```shell -podman tag ctsm-docs-manifest ghcr.io/escomp/ctsm/ctsm-docs:v2.0.1 -``` - -Push to the repo: -```shell -podman manifest push --all ctsm-docs-manifest ghcr.io/escomp/ctsm/ctsm-docs:vX.Y.Z -podman manifest push --all ctsm-docs-manifest ghcr.io/escomp/ctsm/ctsm-docs:latest -``` - -Then browse to the [container's GitHub page](https://github.com/ESCOMP/CTSM/pkgs/container/ctsm%2Fctsm-docs) to make sure this all worked and the image is public. - -### Updating doc-builder -See "Updating doc-builder" in the "Publishing automatically" section above. - -## See also - -- [GitHub: Working with the container registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry) -- [GitHub: Connecting a repository to a package](https://docs.github.com/en/packages/learn-github-packages/connecting-a-repository-to-a-package) \ No newline at end of file diff --git a/doc/ctsm-docs_container/get_version.sh b/doc/ctsm-docs_container/get_version.sh deleted file mode 100755 index 485e720eff..0000000000 --- a/doc/ctsm-docs_container/get_version.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash -set -e -cd doc/ctsm-docs_container - -# Extract version from Dockerfile -version="$(grep "org.opencontainers.image.version" Dockerfile | cut -d'"' -f2 | sort |uniq)" -n_found=$(echo $version | wc -w) - -# Error if anything other than exactly one version tag was found -if [[ ${n_found} -gt 1 ]]; then - echo -e "Multiple version tags found:\n${version}" >&2 - exit 2 -elif [[ ${n_found} -lt 1 ]]; then - echo "Expected 1 but found 0 version tags" >&2 - exit -1 -fi - -# Error if version doesn't start with v -if [[ "${version}" != "v"* ]]; then - echo "Version '${version}' doesn't start with v" >&2 - exit 22 -fi - -echo ${version} - -exit 0 diff --git a/doc/ctsm-docs_container/requirements.txt b/doc/ctsm-docs_container/requirements.txt deleted file mode 100644 index 19872cb9c0..0000000000 --- a/doc/ctsm-docs_container/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -# Python packages used for building docs -rst2pdf == 0.103.1 -sphinx == 8.2.3 -sphinxcontrib_programoutput == 0.18 -myst-parser == 5.0.0 -sphinx_rtd_theme == 3.0.2 diff --git a/python/conda_env_ctsm_py_old_3.13.2.yml b/python/conda_env_ctsm_py_old_3.13.2.yml index 80e3d0ae22..93b95cca9b 100644 --- a/python/conda_env_ctsm_py_old_3.13.2.yml +++ b/python/conda_env_ctsm_py_old_3.13.2.yml @@ -29,7 +29,11 @@ dependencies: # For building docs - pip: - - -r ../doc/ctsm-docs_container/requirements.txt + - rst2pdf == 0.103.1 + - sphinx == 8.2.3 + - sphinxcontrib_programoutput == 0.18 + - myst-parser == 5.0.0 + - sphinx_rtd_theme == 3.0.2 # Used in ctsm_postprocessing repo - pytest=8.3.5 From e3b5ffbd7fff4f69849e90845cd0bb89b9a30475 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 4 Nov 2026 08:49:53 -0700 Subject: [PATCH 43/68] Add note about deprecating conda_env_ctsm_py.yml --- python/conda_env_ctsm_py.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/conda_env_ctsm_py.yml b/python/conda_env_ctsm_py.yml index f692210958..dd2e524f02 100644 --- a/python/conda_env_ctsm_py.yml +++ b/python/conda_env_ctsm_py.yml @@ -24,7 +24,9 @@ dependencies: # fortls used in FORTRAN-IntelliSense extension, add path to fortls below to the VS setting fort-ls.executablePath - fortls=3.2.2 - # For building docs + # For building docs. + # NOTE: When this YML file is deprecated, the versions from this file should be copied in here instead of relying on the requirements.txt file staying the same forever! + # NOTE: This YML file should be deprecated whenever the requirements.txt file changes! - pip: - -r ../doc/doc-builder/doc-build-container/requirements.txt From cfe83a8f41d45862c8dc85e333047bca4ab34109 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 4 Nov 2026 09:57:22 -0700 Subject: [PATCH 44/68] Update doc-builder to v3.5.12. Update Python in container from 3.13.2 to 3.13.13, to follow ctsm_pylib. --- .gitmodules | 2 +- doc/doc-builder | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index f7b402acdf..430c0bf916 100644 --- a/.gitmodules +++ b/.gitmodules @@ -124,7 +124,7 @@ fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial [submodule "doc-builder"] path = doc/doc-builder url = https://github.com/ESMCI/doc-builder -fxtag = v3.5.11 +fxtag = v3.5.12 fxrequired = ToplevelOptional # Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed fxDONOTUSEurl = https://github.com/ESMCI/doc-builder diff --git a/doc/doc-builder b/doc/doc-builder index e84013e41a..eed50e746f 160000 --- a/doc/doc-builder +++ b/doc/doc-builder @@ -1 +1 @@ -Subproject commit e84013e41aeace610414b3dbb70232d3bbf4ee84 +Subproject commit eed50e746f527ba19f43dd8a7c699a0a7a5bc54d From 76b483c3f2321508b473ac0862b33c0112130243 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 4 Nov 2026 11:51:19 -0700 Subject: [PATCH 45/68] Docs build test scripts: Remove redundant flags These now match the build_docs defaults. --- doc/test/test_build_docs_-r-v.sh | 2 +- doc/test/test_container_eq_ctsm_pylib.sh | 3 +-- doc/test/testing.sh | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/test/test_build_docs_-r-v.sh b/doc/test/test_build_docs_-r-v.sh index bfeac79840..ed419b7ceb 100755 --- a/doc/test/test_build_docs_-r-v.sh +++ b/doc/test/test_build_docs_-r-v.sh @@ -9,7 +9,7 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "${SCRIPT_DIR}/.." msg="~~~~~ Check that -r -v works" -cmd="./build_docs -r _build -v latest -c --conf-py-path doc-builder/conf.py --static-path _static --templates-path _templates" +cmd="./build_docs -r _build -v latest -c" . test/compose_test_cmd.sh set -x diff --git a/doc/test/test_container_eq_ctsm_pylib.sh b/doc/test/test_container_eq_ctsm_pylib.sh index ea995d7f11..3463237b7d 100755 --- a/doc/test/test_container_eq_ctsm_pylib.sh +++ b/doc/test/test_container_eq_ctsm_pylib.sh @@ -14,7 +14,6 @@ rm -rf _publish* # Build all docs using container echo "~~~~~ Build all docs using container" -# Also do a custom --conf-py-path rm -rf _build _publish d1="$PWD/_publish_container" ./build_docs_to_publish -r _build -d --site-root "$PWD/_publish" @@ -25,7 +24,7 @@ cp -a _publish "${d1}" echo "~~~~~ Build all docs using ctsm_pylib" rm -rf _build _publish d2="$PWD/_publish_nocontainer" -conda run -n ctsm_pylib --no-capture-output ./build_docs_to_publish -r _build --site-root "$PWD/_publish" --conf-py-path doc-builder/conf.py --static-path _static --templates-path _templates +conda run -n ctsm_pylib --no-capture-output ./build_docs_to_publish -r _build --site-root "$PWD/_publish" # VERSION LINKS WILL NOT RESOLVE IN _publish_nocontainer cp -a _publish "${d2}" diff --git a/doc/test/testing.sh b/doc/test/testing.sh index 2e91025e6c..9755b1a0e7 100755 --- a/doc/test/testing.sh +++ b/doc/test/testing.sh @@ -10,7 +10,6 @@ cd "${SCRIPT_DIR}/" ./test_container_eq_ctsm_pylib.sh # Check that -r -v works (Docker) -# Also do a custom --conf-py-path and other stuff cd "${SCRIPT_DIR}/" rm -rf _build ./test_build_docs_-r-v.sh docker From 2778023b0661d1d680b32d76cabdfd1c3ac47983 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 4 Nov 2026 13:09:24 -0700 Subject: [PATCH 46/68] Update doc-builder to v3.5.13. Forgot to bump DEFAULT_IMAGE. --- .gitmodules | 2 +- doc/doc-builder | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 430c0bf916..add4224d5d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -124,7 +124,7 @@ fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial [submodule "doc-builder"] path = doc/doc-builder url = https://github.com/ESMCI/doc-builder -fxtag = v3.5.12 +fxtag = v3.5.13 fxrequired = ToplevelOptional # Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed fxDONOTUSEurl = https://github.com/ESMCI/doc-builder diff --git a/doc/doc-builder b/doc/doc-builder index eed50e746f..b2735be2ba 160000 --- a/doc/doc-builder +++ b/doc/doc-builder @@ -1 +1 @@ -Subproject commit eed50e746f527ba19f43dd8a7c699a0a7a5bc54d +Subproject commit b2735be2ba1fc361087ab8694fab13c04419f612 From c7d857efaf9dfa8c4a6e9d727b125ac82ebbe076 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 4 Nov 2026 13:33:06 -0700 Subject: [PATCH 47/68] Ensure build_docs* wrappers are run from correct dir. --- doc/build_docs | 5 +++++ doc/build_docs_to_publish | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/doc/build_docs b/doc/build_docs index 16bdb3f09d..c980366c79 100755 --- a/doc/build_docs +++ b/doc/build_docs @@ -1,6 +1,11 @@ #!/usr/bin/env bash set -e +# Ensure we're running from the correct directory. +# Custom addition for CTSM to avoid needing to deal with https://github.com/ESMCI/doc-builder/issues/71 right now. Doesn't fix the "relative paths resolve incorrectly" issue. +SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")" +cd "${SCRIPT_DIR}" + # $scriptname will already be set if build_docs is getting called from build_docs_to_publish. # Otherwise, we need to set it to the basename of this script. if [[ -z "${scriptname}" ]]; then diff --git a/doc/build_docs_to_publish b/doc/build_docs_to_publish index dc176c60fb..768bc9682b 100755 --- a/doc/build_docs_to_publish +++ b/doc/build_docs_to_publish @@ -3,4 +3,9 @@ set -e scriptname=build_docs_to_publish +# Ensure we're running from the correct directory. +# Custom addition for CTSM to avoid needing to deal with https://github.com/ESMCI/doc-builder/issues/71 right now. Doesn't fix the "relative paths resolve incorrectly" issue. +SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")" +cd "${SCRIPT_DIR}" + . ./build_docs From 2057907a0396f1c0b5a24aa6de0af2c59b0cf2af Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 4 Nov 2026 13:40:01 -0700 Subject: [PATCH 48/68] Avoid duplicated workflow run on doc-builder updates. --- .github/workflows/docs-update-doc-builder.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/docs-update-doc-builder.yml b/.github/workflows/docs-update-doc-builder.yml index a5ea9477ca..7eda11e0b3 100644 --- a/.github/workflows/docs-update-doc-builder.yml +++ b/.github/workflows/docs-update-doc-builder.yml @@ -6,23 +6,17 @@ on: branches: ['*'] paths: - 'doc/doc-builder' - - '.github/workflows/docs-update-dependency-common.yml' pull_request: # Run on pull requests that change the listed files paths: - 'doc/doc-builder' - - '.github/workflows/docs-update-dependency-common.yml' workflow_dispatch: permissions: contents: read jobs: - test-update-dependency: - - name: Tests to run when either docs dependency is updated - uses: ./.github/workflows/docs-update-dependency-common.yml test-rv-setup: From 481773c665981bdc9e683928e6750783bafa8b3e Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 4 Nov 2026 13:40:21 -0700 Subject: [PATCH 49/68] docs-update-ctsm_pylib.yml: Explain inclusion of doc-builder --- .github/workflows/docs-update-ctsm_pylib.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-update-ctsm_pylib.yml b/.github/workflows/docs-update-ctsm_pylib.yml index 02a957e801..fa769d94d1 100644 --- a/.github/workflows/docs-update-ctsm_pylib.yml +++ b/.github/workflows/docs-update-ctsm_pylib.yml @@ -1,4 +1,4 @@ -name: Docs tests to run when ctsm_pylib is updated +name: Docs tests to run when ctsm_pylib is (or might be) updated on: push: @@ -6,6 +6,7 @@ on: branches: ['*'] paths: - 'python/conda_env_ctsm_py.yml' + # Include all of doc-builder due to dependence of ctsm_pylib on doc-builder's requirements.txt. Since doc-builder is a submodule, we can't point to that file specifically. - 'doc/doc-builder' - '.github/workflows/docs-common.yml' - '.github/workflows/docs-update-dependency-common.yml' @@ -14,6 +15,7 @@ on: # Run on pull requests that change the listed files paths: - 'python/conda_env_ctsm_py.yml' + # Include all of doc-builder due to dependence of ctsm_pylib on doc-builder's requirements.txt. Since doc-builder is a submodule, we can't point to that file specifically. - 'doc/doc-builder' - '.github/workflows/docs-common.yml' - '.github/workflows/docs-update-dependency-common.yml' From 6ef6579c7b35b47f8a6b021055172061b2016e0c Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 4 Nov 2026 14:20:21 -0700 Subject: [PATCH 50/68] building-docs-multiple-versions: Fix path to doc/build* --- .../building-docs-multiple-versions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/users_guide/working-with-documentation/building-docs-multiple-versions.rst b/doc/source/users_guide/working-with-documentation/building-docs-multiple-versions.rst index e8a3e2f4df..94f99c3f91 100644 --- a/doc/source/users_guide/working-with-documentation/building-docs-multiple-versions.rst +++ b/doc/source/users_guide/working-with-documentation/building-docs-multiple-versions.rst @@ -3,7 +3,7 @@ Building multiple versions of the documentation =============================================== -There is a menu in the lower left of the webpage that lets readers switch between different versions of the documentation. To build a website with this menu properly set up—so that all our versions appear and all the links work—you need to use ``docs/build_docs_to_publish`` instead of ``docs/build_docs``. +There is a menu in the lower left of the webpage that lets readers switch between different versions of the documentation. To build a website with this menu properly set up—so that all our versions appear and all the links work—you need to use ``doc/build_docs_to_publish`` instead of ``doc/build_docs``. **Note that this is not necessary in order for you to contribute an update to the documentation.** GitHub will test this automatically when you open a PR. But if you'd like to try, this will generate a local site for you in ``_publish/`` and then open it: From 8c21ab950fad5e88519a122677da60132b9a875a Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 4 Nov 2026 14:39:27 -0700 Subject: [PATCH 51/68] Move sub defs from substitutions.rst to substitutions.py. --- ...olutions-or-New-Files-to-the-build-namelist-Database.rst | 2 -- .../adding-new-resolutions/Adding-Resolution-Names.rst | 2 -- .../Adding-or-Changing-Default-Filenames.rst | 2 -- doc/source/users_guide/adding-new-resolutions/index.rst | 2 -- doc/source/users_guide/index.rst | 1 - doc/source/users_guide/overview/getting-help.rst | 2 -- doc/source/users_guide/overview/index.rst | 2 -- doc/source/users_guide/overview/introduction.rst | 2 -- doc/source/users_guide/overview/quickstart.rst | 2 -- doc/source/users_guide/overview/scientific_validation.rst | 2 -- .../running-single-points/generic-single-point-regional.rst | 2 -- doc/source/users_guide/running-single-points/index.rst | 2 -- .../running-single-points/intro-to-single-pt-regional.rst | 2 -- .../predefined-single-point-regional-resolutions.rst | 2 -- .../running-single-points/supported-tower-sites.rst | 2 -- .../Running-the-prognostic-crop-model.rst | 2 -- ...MOAR-data-as-atmospheric-forcing-to-spinup-the-model.rst | 2 -- .../running-special-cases/Running-with-anomaly-forcing.rst | 2 -- .../Running-with-custom-crop-calendars.rst | 2 -- .../Running-with-excess-ground-ice.rst | 2 -- .../running-special-cases/Running-with-irrigation.rst | 2 -- .../running-special-cases/Running-with-tillage.rst | 2 -- ...imulation-as-atmospheric-forcing-to-spinup-the-model.rst | 2 -- ...inning-up-the-Satellite-Phenology-Model-ClmSp-spinup.rst | 2 -- .../Spinning-up-the-biogeochemistry-Bgc-spinup.rst | 2 -- .../running-special-cases/What-is-a-special-case.rst | 2 -- doc/source/users_guide/running-special-cases/index.rst | 2 -- .../setting-up-and-running-a-case/choosing-a-compset.rst | 2 -- .../customizing-the-clm-configuration.rst | 2 -- .../customizing-the-clm-namelist.rst | 2 -- .../customizing-the-datm-namelist.rst | 2 -- .../customizing-the-mizuRoute-namelist.rst | 2 -- .../users_guide/setting-up-and-running-a-case/index.rst | 2 -- doc/source/users_guide/substitutions.rst | 5 ----- doc/source/users_guide/testing/index.rst | 2 -- doc/source/users_guide/testing/testing.rst | 2 -- doc/source/users_guide/trouble-shooting/index.rst | 2 -- .../users_guide/trouble-shooting/trouble-shooting.rst | 2 -- doc/source/users_guide/using-clm-tools/cprnc.rst | 2 -- .../creating-input-for-surface-dataset-generation.rst | 2 -- .../using-clm-tools/creating-surface-datasets.rst | 2 -- doc/source/users_guide/using-clm-tools/index.rst | 2 -- .../using-clm-tools/modifying-surface-datasets.rst | 2 -- .../using-clm-tools/observational-sites-datasets.rst | 2 -- doc/source/users_guide/using-clm-tools/using-ctsm-pylib.rst | 2 -- .../users_guide/using-clm-tools/what-are-the-clm-tools.rst | 2 -- .../users_guide/using-mesh-maker/how-to-make-mesh.rst | 2 -- doc/source/users_guide/using-mesh-maker/index.rst | 2 -- .../users_guide/using-mesh-maker/run-mesh-mask-modifier.rst | 2 -- doc/source/users_guide/working-with-documentation/index.rst | 2 -- doc/substitutions.py | 6 ++++++ 51 files changed, 6 insertions(+), 102 deletions(-) delete mode 100644 doc/source/users_guide/substitutions.rst diff --git a/doc/source/users_guide/adding-new-resolutions/Adding-New-Resolutions-or-New-Files-to-the-build-namelist-Database.rst b/doc/source/users_guide/adding-new-resolutions/Adding-New-Resolutions-or-New-Files-to-the-build-namelist-Database.rst index 5b22f8a706..1e8f34449a 100644 --- a/doc/source/users_guide/adding-new-resolutions/Adding-New-Resolutions-or-New-Files-to-the-build-namelist-Database.rst +++ b/doc/source/users_guide/adding-new-resolutions/Adding-New-Resolutions-or-New-Files-to-the-build-namelist-Database.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _adding-resolutions: ======================== diff --git a/doc/source/users_guide/adding-new-resolutions/Adding-Resolution-Names.rst b/doc/source/users_guide/adding-new-resolutions/Adding-Resolution-Names.rst index ea10a3c409..4794ff1028 100644 --- a/doc/source/users_guide/adding-new-resolutions/Adding-Resolution-Names.rst +++ b/doc/source/users_guide/adding-new-resolutions/Adding-Resolution-Names.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _adding-resolution-names: ========================= diff --git a/doc/source/users_guide/adding-new-resolutions/Adding-or-Changing-Default-Filenames.rst b/doc/source/users_guide/adding-new-resolutions/Adding-or-Changing-Default-Filenames.rst index 47cbad9dc6..05741ff466 100644 --- a/doc/source/users_guide/adding-new-resolutions/Adding-or-Changing-Default-Filenames.rst +++ b/doc/source/users_guide/adding-new-resolutions/Adding-or-Changing-Default-Filenames.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _changing-default-filenames: ============================ diff --git a/doc/source/users_guide/adding-new-resolutions/index.rst b/doc/source/users_guide/adding-new-resolutions/index.rst index f524461395..2a26bb339a 100644 --- a/doc/source/users_guide/adding-new-resolutions/index.rst +++ b/doc/source/users_guide/adding-new-resolutions/index.rst @@ -3,8 +3,6 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -.. include:: ../substitutions.rst - .. _adding-new-resolutions-section: ##################################### diff --git a/doc/source/users_guide/index.rst b/doc/source/users_guide/index.rst index 7824ed4dfc..fb9888016e 100644 --- a/doc/source/users_guide/index.rst +++ b/doc/source/users_guide/index.rst @@ -5,7 +5,6 @@ .. _users-guide: -.. include:: substitutions.rst ###################### |version| User's Guide diff --git a/doc/source/users_guide/overview/getting-help.rst b/doc/source/users_guide/overview/getting-help.rst index 12aec3c7be..cdcc057a0c 100644 --- a/doc/source/users_guide/overview/getting-help.rst +++ b/doc/source/users_guide/overview/getting-help.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _getting-help: ============== diff --git a/doc/source/users_guide/overview/index.rst b/doc/source/users_guide/overview/index.rst index b0dcfcdd96..1f31037460 100644 --- a/doc/source/users_guide/overview/index.rst +++ b/doc/source/users_guide/overview/index.rst @@ -3,8 +3,6 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -.. include:: ../substitutions.rst - .. _overview_section: ##################################### diff --git a/doc/source/users_guide/overview/introduction.rst b/doc/source/users_guide/overview/introduction.rst index ff3ed5f619..f0c5701cf8 100644 --- a/doc/source/users_guide/overview/introduction.rst +++ b/doc/source/users_guide/overview/introduction.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _introduction: **User's Guide to version |version| of the Community Land Model (CLM)** diff --git a/doc/source/users_guide/overview/quickstart.rst b/doc/source/users_guide/overview/quickstart.rst index 3fb68183cd..c5d1f7f6ef 100644 --- a/doc/source/users_guide/overview/quickstart.rst +++ b/doc/source/users_guide/overview/quickstart.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _quickstart: ============ diff --git a/doc/source/users_guide/overview/scientific_validation.rst b/doc/source/users_guide/overview/scientific_validation.rst index 1040b25ba0..031a6637a4 100644 --- a/doc/source/users_guide/overview/scientific_validation.rst +++ b/doc/source/users_guide/overview/scientific_validation.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _scientific-validiation: ======================== diff --git a/doc/source/users_guide/running-single-points/generic-single-point-regional.rst b/doc/source/users_guide/running-single-points/generic-single-point-regional.rst index e4473c3f74..258601afed 100644 --- a/doc/source/users_guide/running-single-points/generic-single-point-regional.rst +++ b/doc/source/users_guide/running-single-points/generic-single-point-regional.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _generic_single_point_runs: **************************************** diff --git a/doc/source/users_guide/running-single-points/index.rst b/doc/source/users_guide/running-single-points/index.rst index 1b503acc87..390dbb433b 100644 --- a/doc/source/users_guide/running-single-points/index.rst +++ b/doc/source/users_guide/running-single-points/index.rst @@ -3,8 +3,6 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -.. include:: ../substitutions.rst - .. _running-single-points: ####################################### diff --git a/doc/source/users_guide/running-single-points/intro-to-single-pt-regional.rst b/doc/source/users_guide/running-single-points/intro-to-single-pt-regional.rst index 23279aac23..2baf0ffb5a 100644 --- a/doc/source/users_guide/running-single-points/intro-to-single-pt-regional.rst +++ b/doc/source/users_guide/running-single-points/intro-to-single-pt-regional.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _single-point-regional-configurations: ***************************************************** diff --git a/doc/source/users_guide/running-single-points/predefined-single-point-regional-resolutions.rst b/doc/source/users_guide/running-single-points/predefined-single-point-regional-resolutions.rst index 0774319cd1..d57e9bef69 100644 --- a/doc/source/users_guide/running-single-points/predefined-single-point-regional-resolutions.rst +++ b/doc/source/users_guide/running-single-points/predefined-single-point-regional-resolutions.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _pre-defined-single-pt-regional-resolutions: **************************************************** diff --git a/doc/source/users_guide/running-single-points/supported-tower-sites.rst b/doc/source/users_guide/running-single-points/supported-tower-sites.rst index ba7a9fde35..03f52e055b 100644 --- a/doc/source/users_guide/running-single-points/supported-tower-sites.rst +++ b/doc/source/users_guide/running-single-points/supported-tower-sites.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _supported-tower-sites: ******************************************** diff --git a/doc/source/users_guide/running-special-cases/Running-the-prognostic-crop-model.rst b/doc/source/users_guide/running-special-cases/Running-the-prognostic-crop-model.rst index 90e95b7d74..120ae227aa 100644 --- a/doc/source/users_guide/running-special-cases/Running-the-prognostic-crop-model.rst +++ b/doc/source/users_guide/running-special-cases/Running-the-prognostic-crop-model.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _running-prognostic-crop-model: =================================== diff --git a/doc/source/users_guide/running-special-cases/Running-with-MOAR-data-as-atmospheric-forcing-to-spinup-the-model.rst b/doc/source/users_guide/running-special-cases/Running-with-MOAR-data-as-atmospheric-forcing-to-spinup-the-model.rst index c0c801b36c..5badb22cba 100644 --- a/doc/source/users_guide/running-special-cases/Running-with-MOAR-data-as-atmospheric-forcing-to-spinup-the-model.rst +++ b/doc/source/users_guide/running-special-cases/Running-with-MOAR-data-as-atmospheric-forcing-to-spinup-the-model.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _running-with-moar-data: ======================== diff --git a/doc/source/users_guide/running-special-cases/Running-with-anomaly-forcing.rst b/doc/source/users_guide/running-special-cases/Running-with-anomaly-forcing.rst index a8197d836c..bd090a5338 100644 --- a/doc/source/users_guide/running-special-cases/Running-with-anomaly-forcing.rst +++ b/doc/source/users_guide/running-special-cases/Running-with-anomaly-forcing.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _running-with-anomaly-forcing: ============================== diff --git a/doc/source/users_guide/running-special-cases/Running-with-custom-crop-calendars.rst b/doc/source/users_guide/running-special-cases/Running-with-custom-crop-calendars.rst index 5e2b1998cc..60a5d76db2 100644 --- a/doc/source/users_guide/running-special-cases/Running-with-custom-crop-calendars.rst +++ b/doc/source/users_guide/running-special-cases/Running-with-custom-crop-calendars.rst @@ -1,7 +1,5 @@ .. running-with-custom-crop-calendars: -.. include:: ../substitutions.rst - ======================================= Running with custom crop calendars ======================================= diff --git a/doc/source/users_guide/running-special-cases/Running-with-excess-ground-ice.rst b/doc/source/users_guide/running-special-cases/Running-with-excess-ground-ice.rst index 3ad949724f..58ff66c3a2 100644 --- a/doc/source/users_guide/running-special-cases/Running-with-excess-ground-ice.rst +++ b/doc/source/users_guide/running-special-cases/Running-with-excess-ground-ice.rst @@ -1,7 +1,5 @@ .. _running-with-excess-ground-ice: -.. include:: ../substitutions.rst - =================================== Running with excess ground ice =================================== diff --git a/doc/source/users_guide/running-special-cases/Running-with-irrigation.rst b/doc/source/users_guide/running-special-cases/Running-with-irrigation.rst index cb5139f23a..f2b6eb5551 100644 --- a/doc/source/users_guide/running-special-cases/Running-with-irrigation.rst +++ b/doc/source/users_guide/running-special-cases/Running-with-irrigation.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _running-with-irrigation: =================================== diff --git a/doc/source/users_guide/running-special-cases/Running-with-tillage.rst b/doc/source/users_guide/running-special-cases/Running-with-tillage.rst index d38cbe1fb9..c38ec37722 100644 --- a/doc/source/users_guide/running-special-cases/Running-with-tillage.rst +++ b/doc/source/users_guide/running-special-cases/Running-with-tillage.rst @@ -1,7 +1,5 @@ .. _running-with-tillage: -.. include:: ../substitutions.rst - ===================== Running with tillage ===================== diff --git a/doc/source/users_guide/running-special-cases/Running-with-your-own-previous-simulation-as-atmospheric-forcing-to-spinup-the-model.rst b/doc/source/users_guide/running-special-cases/Running-with-your-own-previous-simulation-as-atmospheric-forcing-to-spinup-the-model.rst index a59e82b159..dbacdba81b 100644 --- a/doc/source/users_guide/running-special-cases/Running-with-your-own-previous-simulation-as-atmospheric-forcing-to-spinup-the-model.rst +++ b/doc/source/users_guide/running-special-cases/Running-with-your-own-previous-simulation-as-atmospheric-forcing-to-spinup-the-model.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _running-with-previous-simulation-forcing: ============================================================= diff --git a/doc/source/users_guide/running-special-cases/Spinning-up-the-Satellite-Phenology-Model-ClmSp-spinup.rst b/doc/source/users_guide/running-special-cases/Spinning-up-the-Satellite-Phenology-Model-ClmSp-spinup.rst index a1ec71fb23..3bd78fbd88 100644 --- a/doc/source/users_guide/running-special-cases/Spinning-up-the-Satellite-Phenology-Model-ClmSp-spinup.rst +++ b/doc/source/users_guide/running-special-cases/Spinning-up-the-Satellite-Phenology-Model-ClmSp-spinup.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _spinning-up-sp: =========================================== diff --git a/doc/source/users_guide/running-special-cases/Spinning-up-the-biogeochemistry-Bgc-spinup.rst b/doc/source/users_guide/running-special-cases/Spinning-up-the-biogeochemistry-Bgc-spinup.rst index a51652c9ab..56700dc6f7 100644 --- a/doc/source/users_guide/running-special-cases/Spinning-up-the-biogeochemistry-Bgc-spinup.rst +++ b/doc/source/users_guide/running-special-cases/Spinning-up-the-biogeochemistry-Bgc-spinup.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _spinning-up-clm-bgc: ===================== diff --git a/doc/source/users_guide/running-special-cases/What-is-a-special-case.rst b/doc/source/users_guide/running-special-cases/What-is-a-special-case.rst index eece6aab51..b4d077003f 100644 --- a/doc/source/users_guide/running-special-cases/What-is-a-special-case.rst +++ b/doc/source/users_guide/running-special-cases/What-is-a-special-case.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _what is a special case: ========================= diff --git a/doc/source/users_guide/running-special-cases/index.rst b/doc/source/users_guide/running-special-cases/index.rst index e8384ebd49..2ac9c7fccf 100644 --- a/doc/source/users_guide/running-special-cases/index.rst +++ b/doc/source/users_guide/running-special-cases/index.rst @@ -3,8 +3,6 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -.. include:: ../substitutions.rst - .. _running-special-cases-section: ##################################### diff --git a/doc/source/users_guide/setting-up-and-running-a-case/choosing-a-compset.rst b/doc/source/users_guide/setting-up-and-running-a-case/choosing-a-compset.rst index b052a6ea3d..d3da76c175 100644 --- a/doc/source/users_guide/setting-up-and-running-a-case/choosing-a-compset.rst +++ b/doc/source/users_guide/setting-up-and-running-a-case/choosing-a-compset.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _choosing-a-compset: ==================== diff --git a/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-clm-configuration.rst b/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-clm-configuration.rst index 5baf7f5723..d60c179499 100644 --- a/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-clm-configuration.rst +++ b/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-clm-configuration.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _configuring-clm: ******************************** diff --git a/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-clm-namelist.rst b/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-clm-namelist.rst index 33689563b0..339892408b 100644 --- a/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-clm-namelist.rst +++ b/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-clm-namelist.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _customizing-a-case: ============================ diff --git a/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-datm-namelist.rst b/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-datm-namelist.rst index 0aba609298..14f8f8581f 100644 --- a/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-datm-namelist.rst +++ b/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-datm-namelist.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _customizing-the-datm-namelist: =============================== diff --git a/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-mizuRoute-namelist.rst b/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-mizuRoute-namelist.rst index d97147355c..30774526af 100644 --- a/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-mizuRoute-namelist.rst +++ b/doc/source/users_guide/setting-up-and-running-a-case/customizing-the-mizuRoute-namelist.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _customizing-the-mizuRoute-namelist: =================================== diff --git a/doc/source/users_guide/setting-up-and-running-a-case/index.rst b/doc/source/users_guide/setting-up-and-running-a-case/index.rst index 0b07e30a89..4782d50e07 100644 --- a/doc/source/users_guide/setting-up-and-running-a-case/index.rst +++ b/doc/source/users_guide/setting-up-and-running-a-case/index.rst @@ -3,8 +3,6 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -.. include:: ../substitutions.rst - .. _customizing_section: ##################################### diff --git a/doc/source/users_guide/substitutions.rst b/doc/source/users_guide/substitutions.rst deleted file mode 100644 index dca7e440fe..0000000000 --- a/doc/source/users_guide/substitutions.rst +++ /dev/null @@ -1,5 +0,0 @@ -.. |cesmrelease| replace:: CESM2.2 beta - -.. |ctsm_gh| replace:: https://github.com/ESCOMP/ctsm - -.. |cesm_gh| replace:: https://github.com/ESCOMP/cesm diff --git a/doc/source/users_guide/testing/index.rst b/doc/source/users_guide/testing/index.rst index b7baedc04f..63d0cc834c 100644 --- a/doc/source/users_guide/testing/index.rst +++ b/doc/source/users_guide/testing/index.rst @@ -3,8 +3,6 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -.. include:: ../substitutions.rst - .. _testing_section: ##################################### diff --git a/doc/source/users_guide/testing/testing.rst b/doc/source/users_guide/testing/testing.rst index 0534226f84..ce1e25c54b 100644 --- a/doc/source/users_guide/testing/testing.rst +++ b/doc/source/users_guide/testing/testing.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _testing: ******* diff --git a/doc/source/users_guide/trouble-shooting/index.rst b/doc/source/users_guide/trouble-shooting/index.rst index c92a7e3ba8..eb6983ace5 100644 --- a/doc/source/users_guide/trouble-shooting/index.rst +++ b/doc/source/users_guide/trouble-shooting/index.rst @@ -3,8 +3,6 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -.. include:: ../substitutions.rst - .. _troubleshooting-index: ##################################### diff --git a/doc/source/users_guide/trouble-shooting/trouble-shooting.rst b/doc/source/users_guide/trouble-shooting/trouble-shooting.rst index 0e1a5e241f..7d51dfce32 100644 --- a/doc/source/users_guide/trouble-shooting/trouble-shooting.rst +++ b/doc/source/users_guide/trouble-shooting/trouble-shooting.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _trouble-shooting: ********************************************* diff --git a/doc/source/users_guide/using-clm-tools/cprnc.rst b/doc/source/users_guide/using-clm-tools/cprnc.rst index bae6982fd6..9e005a0341 100644 --- a/doc/source/users_guide/using-clm-tools/cprnc.rst +++ b/doc/source/users_guide/using-clm-tools/cprnc.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _comparing-history-files: ========================= diff --git a/doc/source/users_guide/using-clm-tools/creating-input-for-surface-dataset-generation.rst b/doc/source/users_guide/using-clm-tools/creating-input-for-surface-dataset-generation.rst index 0949236164..6bd577323b 100644 --- a/doc/source/users_guide/using-clm-tools/creating-input-for-surface-dataset-generation.rst +++ b/doc/source/users_guide/using-clm-tools/creating-input-for-surface-dataset-generation.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _creating-maps-for-mksurfdata: ********************************************* diff --git a/doc/source/users_guide/using-clm-tools/creating-surface-datasets.rst b/doc/source/users_guide/using-clm-tools/creating-surface-datasets.rst index 6a2709e0be..7da958c6ec 100644 --- a/doc/source/users_guide/using-clm-tools/creating-surface-datasets.rst +++ b/doc/source/users_guide/using-clm-tools/creating-surface-datasets.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _creating-surface-datasets: Creating Surface Datasets diff --git a/doc/source/users_guide/using-clm-tools/index.rst b/doc/source/users_guide/using-clm-tools/index.rst index 5023157d65..66dba57e33 100644 --- a/doc/source/users_guide/using-clm-tools/index.rst +++ b/doc/source/users_guide/using-clm-tools/index.rst @@ -3,8 +3,6 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -.. include:: ../substitutions.rst - .. _using-clm-tools-section: ##################################### diff --git a/doc/source/users_guide/using-clm-tools/modifying-surface-datasets.rst b/doc/source/users_guide/using-clm-tools/modifying-surface-datasets.rst index 8b5357d1a9..ca56db2a5f 100644 --- a/doc/source/users_guide/using-clm-tools/modifying-surface-datasets.rst +++ b/doc/source/users_guide/using-clm-tools/modifying-surface-datasets.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _modifying-surface-datasets: =========================== diff --git a/doc/source/users_guide/using-clm-tools/observational-sites-datasets.rst b/doc/source/users_guide/using-clm-tools/observational-sites-datasets.rst index 54c48e5e03..ebdceef25e 100644 --- a/doc/source/users_guide/using-clm-tools/observational-sites-datasets.rst +++ b/doc/source/users_guide/using-clm-tools/observational-sites-datasets.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _observational-sites-datasets: ******************************* diff --git a/doc/source/users_guide/using-clm-tools/using-ctsm-pylib.rst b/doc/source/users_guide/using-clm-tools/using-ctsm-pylib.rst index 8975556596..3fba01d5e5 100644 --- a/doc/source/users_guide/using-clm-tools/using-ctsm-pylib.rst +++ b/doc/source/users_guide/using-clm-tools/using-ctsm-pylib.rst @@ -1,5 +1,3 @@ - -.. include:: ../substitutions.rst .. _using-ctsm-pylib: Installing the CTSM Python environment diff --git a/doc/source/users_guide/using-clm-tools/what-are-the-clm-tools.rst b/doc/source/users_guide/using-clm-tools/what-are-the-clm-tools.rst index 6c947f42b1..915f1ecada 100644 --- a/doc/source/users_guide/using-clm-tools/what-are-the-clm-tools.rst +++ b/doc/source/users_guide/using-clm-tools/what-are-the-clm-tools.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _what-are-the-clm-tools: ======================== diff --git a/doc/source/users_guide/using-mesh-maker/how-to-make-mesh.rst b/doc/source/users_guide/using-mesh-maker/how-to-make-mesh.rst index b21b9760ab..f65f53317d 100644 --- a/doc/source/users_guide/using-mesh-maker/how-to-make-mesh.rst +++ b/doc/source/users_guide/using-mesh-maker/how-to-make-mesh.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _how-to-make-mesh: =============================================== diff --git a/doc/source/users_guide/using-mesh-maker/index.rst b/doc/source/users_guide/using-mesh-maker/index.rst index c716156193..e9b8ecfa31 100644 --- a/doc/source/users_guide/using-mesh-maker/index.rst +++ b/doc/source/users_guide/using-mesh-maker/index.rst @@ -3,8 +3,6 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -.. include:: ../substitutions.rst - .. _using-mesh-maker-index: ####################################### diff --git a/doc/source/users_guide/using-mesh-maker/run-mesh-mask-modifier.rst b/doc/source/users_guide/using-mesh-maker/run-mesh-mask-modifier.rst index 5e1d6bd2b1..557a9f35d3 100644 --- a/doc/source/users_guide/using-mesh-maker/run-mesh-mask-modifier.rst +++ b/doc/source/users_guide/using-mesh-maker/run-mesh-mask-modifier.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _run-mesh-mask-modifier: ======================================== diff --git a/doc/source/users_guide/working-with-documentation/index.rst b/doc/source/users_guide/working-with-documentation/index.rst index 7bb4755bee..217368f42f 100644 --- a/doc/source/users_guide/working-with-documentation/index.rst +++ b/doc/source/users_guide/working-with-documentation/index.rst @@ -1,5 +1,3 @@ -.. include:: ../substitutions.rst - .. _working-with-docs: ####################################### diff --git a/doc/substitutions.py b/doc/substitutions.py index ee97ff717d..b4a721e61b 100644 --- a/doc/substitutions.py +++ b/doc/substitutions.py @@ -65,3 +65,9 @@ ############################### ### Purely custom variables ### ############################### + +cesmrelease = "CESM2.2 beta" + +ctsm_gh = "https://github.com/ESCOMP/ctsm" + +cesm_gh = "https://github.com/ESCOMP/cesm" From 9b6632501bc645374bc6e03c0d9713afa83654c6 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Wed, 4 Nov 2026 15:18:04 -0700 Subject: [PATCH 52/68] Docs docs: Add tips for substitutions. --- .../tips-for-working-with-markdown.md | 29 ++++++++++++++++++- .../tips-for-working-with-rst.rst | 15 ++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/doc/source/users_guide/working-with-documentation/tips-for-working-with-markdown.md b/doc/source/users_guide/working-with-documentation/tips-for-working-with-markdown.md index f22a6b68d4..c0b6926b94 100644 --- a/doc/source/users_guide/working-with-documentation/tips-for-working-with-markdown.md +++ b/doc/source/users_guide/working-with-documentation/tips-for-working-with-markdown.md @@ -1,3 +1,9 @@ +--- +myst: + substitutions: + key1: "I'm a **substitution**" +--- + (tips-for-working-with-markdown)= # Tips for working with Markdown @@ -168,4 +174,25 @@ Becomes: :lineno-match: ``` -See [the MyST Markdown documentation for the `include` directive](https://mystmd.org/guide/directives#directive-include) for more information (all options apply to `literalinclude` as well). \ No newline at end of file +See [the MyST Markdown documentation for the `include` directive](https://mystmd.org/guide/directives#directive-include) for more information (all options apply to `literalinclude` as well). + +## Markdown: Using substitutions +Substitutions allow us to associate a text string with a variable name, then to use that variable name throughout our documentation. This has the advantage of only needing to update the text string in one place but getting that propagated everywhere. + +Our global substitutions are defined in `doc/substitutions.py`. For example, including `{{ version }}` in a Markdown documentation file will render as "{{ version }}" (no quotes) because of this in `doc/substitutions.py`: +```{literalinclude} ../../../substitutions.py +:language: python +:linenos: +:start-at: version = +:end-at: version = +:lineno-match: +``` + +You can also, using "front matter," define substitutions that will apply in just one file. For example, the beginning of this file contains + +```{literalinclude} tips-for-working-with-markdown.md +:linenos: +:lines: 1-5 +``` + +Thus, `{{ key1 }}` gets rendered as "{{ key1 }}" (no quotes), but this wouldn't work on any other page. diff --git a/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst b/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst index 12dda6d1f8..39d8017d23 100644 --- a/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst +++ b/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst @@ -217,3 +217,18 @@ reStructuredText: Common error messages and how to handle them -------------------------------------------------------------- See :ref:`common-rst-errors`. + + +reStructuredText: Using substitutions +------------------------------------- + +Substitutions allow us to associate a text string with a variable name, then to use that variable name throughout our documentation. This has the advantage of only needing to update the text string in one place but getting that propagated everywhere. + +Our global substitutions are defined in ``doc/substitutions.py``. For example, including ``|version|`` in a reStructuredText documentation file will render as "|version|" (no quotes) because of this in ``doc/substitutions.py``: + +.. literalinclude:: ../../../substitutions.py + :language: python + :linenos: + :start-at: version = + :end-at: version = + :lineno-match: From 624daf07cd072c77921df2612950b73f6f736075 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 09:26:41 -0700 Subject: [PATCH 53/68] rST tips: Include in-page sub definition. --- .../tips-for-working-with-rst.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst b/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst index 39d8017d23..65f2ffcb0d 100644 --- a/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst +++ b/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst @@ -1,5 +1,7 @@ .. _tips-for-working-with-rst: +.. |key1| replace:: I'm a **substitution** + Tips for working with reStructuredText ======================================== @@ -232,3 +234,14 @@ Our global substitutions are defined in ``doc/substitutions.py``. For example, i :start-at: version = :end-at: version = :lineno-match: + +You can also define substitutions that will apply in just one file. For example, this file contains this line: + +.. literalinclude:: tips-for-working-with-rst.rst + :language: reStructuredText + :linenos: + :start-at: key1 + :end-at: key1 + :lineno-match: + +Thus, ``|key1|`` gets rendered as "|key1|" (no quotes), but this wouldn't work on any other page. From 617745ff51333bfb9498fe30d3e82b165b1d39a1 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 09:45:12 -0700 Subject: [PATCH 54/68] Fix tips-for-working-with-rst cross-refs --- .../working-with-documentation/tips-for-working-with-rst.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst b/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst index 65f2ffcb0d..66aae6af5c 100644 --- a/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst +++ b/doc/source/users_guide/working-with-documentation/tips-for-working-with-rst.rst @@ -1,10 +1,10 @@ .. _tips-for-working-with-rst: -.. |key1| replace:: I'm a **substitution** - Tips for working with reStructuredText ======================================== +.. |key1| replace:: I'm a **substitution** + If you've never used reStructuredText before, you should be aware that its syntax is pretty different from anything you've ever used before. We recommend the following resources as references for the syntax: - `Sphinx's reStructuredText Primer `_ From 477bfb5c60e0f07fed79570f830cfb8f550a59db Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 11:06:43 -0700 Subject: [PATCH 55/68] docs-common.yml: Avoid repeating requirements.txt path --- .github/workflows/docs-common.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index fbeee70108..be3b76a950 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -17,6 +17,9 @@ on: default: "" secrets: {} +env: + DOCS_REQUIREMENTS_FILE: doc/doc-builder/doc-build-container/requirements.txt + jobs: build-docs: runs-on: ubuntu-latest @@ -44,13 +47,13 @@ jobs: uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('doc/doc-builder/doc-build-container/requirements.txt') }} + key: ${{ runner.os }}-pip-${{ hashFiles(env.DOCS_REQUIREMENTS_FILE) }} restore-keys: | ${{ runner.os }}-pip- - name: Install Python requirements if: ${{ ! inputs.use_conda }} run: | - pip install -r doc/doc-builder/doc-build-container/requirements.txt + pip install -r "$DOCS_REQUIREMENTS_FILE" # Do this if using conda - name: Set up conda environment From dd415643521c964ff5ad5f75912557a938687e64 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 11:34:03 -0700 Subject: [PATCH 56/68] fleximod-test workflow job now actually tests Python 3.7 and latest. Previously there was never a setup-python step, so it was just using whatever Python came with the runner. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/fleximod_test.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fleximod_test.yaml b/.github/workflows/fleximod_test.yaml index bea1aaefb0..808b9d6de4 100644 --- a/.github/workflows/fleximod_test.yaml +++ b/.github/workflows/fleximod_test.yaml @@ -14,15 +14,24 @@ on: jobs: fleximod-test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: # oldest supported and latest supported - python-version: ["3.7", "3.x"] + include: + # setup-python has no 3.7 builds for Ubuntu newer than 22.04 + - python-version: "3.7" + os: ubuntu-22.04 + - python-version: "3.x" + os: ubuntu-latest steps: - id: checkout-CTSM uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - id: setup-python + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 + with: + python-version: ${{matrix.python-version}} - id: run-fleximod run: | $GITHUB_WORKSPACE/bin/git-fleximod update -o From 6ab6a55358e0231931de05bfb1bf8681a3f527fa Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 15:38:55 -0700 Subject: [PATCH 57/68] py_env_create should now work in CESM checkouts. --- py_env_create | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/py_env_create b/py_env_create index 88284c0fa4..b4ab42e3b2 100755 --- a/py_env_create +++ b/py_env_create @@ -237,8 +237,11 @@ if [[ ${dry_run} -ne 0 ]]; then exit 0 fi -# Check out doc-builder to ensure we have the latest version of its requirements.txt -bin/git-fleximod update doc-builder +# Check out doc-builder to ensure we have the latest version of its requirements.txt. +# Don't use git-fleximod, because it won't work in CESM checkouts. Regular git submodule command +# should be safe to use here, at least on sanctioned CTSM branches, because we have a GitHub +# Workflow ensuring the git submodule version matches the .gitmodules entry. +git submodule update --init -- doc/doc-builder # Rename or overwrite existing if [[ ${conda_env_does_exist} -gt 0 ]]; then From 0b4ab3684fd435513ec8ae180b59082f0c1203a0 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 15:44:29 -0700 Subject: [PATCH 58/68] vscode-doc-editing-setup.md: Check out doc-builder --- .../working-with-documentation/vscode-doc-editing-setup.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/source/users_guide/working-with-documentation/vscode-doc-editing-setup.md b/doc/source/users_guide/working-with-documentation/vscode-doc-editing-setup.md index c0af7b10ee..a8e7a7c4d4 100644 --- a/doc/source/users_guide/working-with-documentation/vscode-doc-editing-setup.md +++ b/doc/source/users_guide/working-with-documentation/vscode-doc-editing-setup.md @@ -11,6 +11,7 @@ pip show myst-parser If you see `WARNING: Package(s) not found: myst-parser`, you'll need to install the doc-building Python modules. With your conda environment activated (or in whatever other environment you want to use), from the top level of a CTSM checkout, do: ```shell +bin/git-fleximod update doc-builder pip install -r doc/doc-builder/doc-build-container/requirements.txt ``` From 28ca521ebf138fafa0a81d7743caac59977a8752 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 15:49:01 -0700 Subject: [PATCH 59/68] tips-for-working-with-markdown.md: Render an embed as YAML. --- .../working-with-documentation/tips-for-working-with-markdown.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/source/users_guide/working-with-documentation/tips-for-working-with-markdown.md b/doc/source/users_guide/working-with-documentation/tips-for-working-with-markdown.md index c0b6926b94..c646d5340e 100644 --- a/doc/source/users_guide/working-with-documentation/tips-for-working-with-markdown.md +++ b/doc/source/users_guide/working-with-documentation/tips-for-working-with-markdown.md @@ -191,6 +191,7 @@ Our global substitutions are defined in `doc/substitutions.py`. For example, inc You can also, using "front matter," define substitutions that will apply in just one file. For example, the beginning of this file contains ```{literalinclude} tips-for-working-with-markdown.md +:language: yaml :linenos: :lines: 1-5 ``` From 921c24047a49303712d92db150a846543188b55a Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 16:13:45 -0700 Subject: [PATCH 60/68] Remove build_docs test with -r -v options Now lives in doc-builder workflows --- .github/workflows/docs-update-doc-builder.yml | 37 ------------------- doc/doc-builder | 2 +- doc/test/test_build_docs_-r-v.sh | 18 --------- doc/test/testing.sh | 5 --- 4 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 .github/workflows/docs-update-doc-builder.yml delete mode 100755 doc/test/test_build_docs_-r-v.sh diff --git a/.github/workflows/docs-update-doc-builder.yml b/.github/workflows/docs-update-doc-builder.yml deleted file mode 100644 index 7eda11e0b3..0000000000 --- a/.github/workflows/docs-update-doc-builder.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Docs tests to run when doc-builder is updated - -on: - push: - # Run when a change to these files is pushed to any branch. Without the "branches:" line, for some reason this will be run whenever a tag is pushed, even if the listed files aren't changed. - branches: ['*'] - paths: - - 'doc/doc-builder' - - pull_request: - # Run on pull requests that change the listed files - paths: - - 'doc/doc-builder' - - workflow_dispatch: - -permissions: - contents: read -jobs: - - test-rv-setup: - - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - fetch-depth: 0 - lfs: true - - # Check out all submodules because we might :literalinclude: something from one - - name: Checkout all submodules - run: | - bin/git-fleximod update -o - - - name: build_docs rv method - run: | - cd doc/test/ && ./test_build_docs_-r-v.sh docker diff --git a/doc/doc-builder b/doc/doc-builder index b2735be2ba..a6dfefd191 160000 --- a/doc/doc-builder +++ b/doc/doc-builder @@ -1 +1 @@ -Subproject commit b2735be2ba1fc361087ab8694fab13c04419f612 +Subproject commit a6dfefd191f102abfef315dacf8d531f1194f461 diff --git a/doc/test/test_build_docs_-r-v.sh b/doc/test/test_build_docs_-r-v.sh deleted file mode 100755 index ed419b7ceb..0000000000 --- a/doc/test/test_build_docs_-r-v.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -# Fail on any non-zero exit code -set -e - -cli_tool="$1" - -SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" -cd "${SCRIPT_DIR}/.." - -msg="~~~~~ Check that -r -v works" -cmd="./build_docs -r _build -v latest -c" - -. test/compose_test_cmd.sh -set -x -$cmd - -exit 0 diff --git a/doc/test/testing.sh b/doc/test/testing.sh index 9755b1a0e7..28900c328b 100755 --- a/doc/test/testing.sh +++ b/doc/test/testing.sh @@ -9,11 +9,6 @@ cd "${SCRIPT_DIR}/" # Compare docs built with container vs. ctsm_pylib ./test_container_eq_ctsm_pylib.sh -# Check that -r -v works (Docker) -cd "${SCRIPT_DIR}/" -rm -rf _build -./test_build_docs_-r-v.sh docker - # Check that Makefile method works cd "${SCRIPT_DIR}/" rm -rf _build From dc5482d584c22026bb202325d19314652d4ec3f5 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 16:20:38 -0700 Subject: [PATCH 61/68] Delete script that just tested `./build_docs -b _build -c` Was adding no new coverage. Also allowed deleting compose_test_cmd.sh, which became unused. --- doc/test/compose_test_cmd.sh | 13 ------------- doc/test/test_build_docs_-b.sh | 18 ------------------ doc/test/testing.sh | 5 ----- 3 files changed, 36 deletions(-) delete mode 100755 doc/test/compose_test_cmd.sh delete mode 100755 doc/test/test_build_docs_-b.sh diff --git a/doc/test/compose_test_cmd.sh b/doc/test/compose_test_cmd.sh deleted file mode 100755 index 2b2fd3cf67..0000000000 --- a/doc/test/compose_test_cmd.sh +++ /dev/null @@ -1,13 +0,0 @@ -# This should only be run locally within another shell - -if [[ "${cli_tool}" == "" ]]; then - echo "${msg} (no container)" -else - cmd="${cmd} -d" - if [[ "${cli_tool}" != "default" ]]; then - cmd="${cmd} --container-cli-tool ${cli_tool}" - fi - echo "${msg} (container: ${cli_tool})" -fi - -echo cmd diff --git a/doc/test/test_build_docs_-b.sh b/doc/test/test_build_docs_-b.sh deleted file mode 100755 index 8b49e2f7aa..0000000000 --- a/doc/test/test_build_docs_-b.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -# Fail on any non-zero exit code -set -e - -cli_tool="$1" - -SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" -cd "${SCRIPT_DIR}/.." - -msg="~~~~~ Check that -b works" -cmd="./build_docs -b _build -c" - -. test/compose_test_cmd.sh -set -x -$cmd - -exit 0 diff --git a/doc/test/testing.sh b/doc/test/testing.sh index 28900c328b..4c692d7abb 100755 --- a/doc/test/testing.sh +++ b/doc/test/testing.sh @@ -14,11 +14,6 @@ cd "${SCRIPT_DIR}/" rm -rf _build conda run --no-capture-output -n ctsm_pylib ./test_makefile_method.sh -# Check that -b works -cd "${SCRIPT_DIR}/" -rm -rf _build -./test_build_docs_-b.sh docker - # Check that doc-builder tests pass # Don't run if on a GitHub runner; failing 🤷. Trust that doc-builder does this test. if [[ "${GITHUB_ACTIONS}" == "" ]]; then From 6ecd0ed7d14e9614cebce91571edcdf398223f7d Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 16:30:42 -0700 Subject: [PATCH 62/68] Delete script that just called doc-builder Python tests. --- .gitmodules | 4 ++-- doc/doc-builder | 2 +- doc/test/test_doc-builder_tests.sh | 14 -------------- doc/test/testing.sh | 7 ------- 4 files changed, 3 insertions(+), 24 deletions(-) delete mode 100755 doc/test/test_doc-builder_tests.sh diff --git a/.gitmodules b/.gitmodules index add4224d5d..ba17b34063 100644 --- a/.gitmodules +++ b/.gitmodules @@ -123,8 +123,8 @@ fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial [submodule "doc-builder"] path = doc/doc-builder -url = https://github.com/ESMCI/doc-builder -fxtag = v3.5.13 +url = https://github.com/samsrabin/doc-builder +fxtag = e22ed1b809c4a9cf6f03d2fb6b1df2754382c554 fxrequired = ToplevelOptional # Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed fxDONOTUSEurl = https://github.com/ESMCI/doc-builder diff --git a/doc/doc-builder b/doc/doc-builder index a6dfefd191..e22ed1b809 160000 --- a/doc/doc-builder +++ b/doc/doc-builder @@ -1 +1 @@ -Subproject commit a6dfefd191f102abfef315dacf8d531f1194f461 +Subproject commit e22ed1b809c4a9cf6f03d2fb6b1df2754382c554 diff --git a/doc/test/test_doc-builder_tests.sh b/doc/test/test_doc-builder_tests.sh deleted file mode 100755 index 07cfa73ea1..0000000000 --- a/doc/test/test_doc-builder_tests.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -# Fail on any non-zero exit code -set -e - -SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" -cd "${SCRIPT_DIR}" - -echo "~~~~~ Check that doc-builder tests pass" -cd ../doc-builder/test -set -x -conda run --no-capture-output -n ctsm_pylib make test - -exit 0 diff --git a/doc/test/testing.sh b/doc/test/testing.sh index 4c692d7abb..dfe29fd2b3 100755 --- a/doc/test/testing.sh +++ b/doc/test/testing.sh @@ -14,11 +14,4 @@ cd "${SCRIPT_DIR}/" rm -rf _build conda run --no-capture-output -n ctsm_pylib ./test_makefile_method.sh -# Check that doc-builder tests pass -# Don't run if on a GitHub runner; failing 🤷. Trust that doc-builder does this test. -if [[ "${GITHUB_ACTIONS}" == "" ]]; then - cd "${SCRIPT_DIR}/" - ./test_doc-builder_tests.sh -fi - exit 0 From 9fd259a9d747358495745ce4e3436bd18190e6e5 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 5 Nov 2026 16:35:43 -0700 Subject: [PATCH 63/68] Point doc-builder to merged tag --- .gitmodules | 4 ++-- doc/doc-builder | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index ba17b34063..f576f11a85 100644 --- a/.gitmodules +++ b/.gitmodules @@ -123,8 +123,8 @@ fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial [submodule "doc-builder"] path = doc/doc-builder -url = https://github.com/samsrabin/doc-builder -fxtag = e22ed1b809c4a9cf6f03d2fb6b1df2754382c554 +url = https://github.com/ESMCI/doc-builder +fxtag = v3.5.14 fxrequired = ToplevelOptional # Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed fxDONOTUSEurl = https://github.com/ESMCI/doc-builder diff --git a/doc/doc-builder b/doc/doc-builder index e22ed1b809..03f8ea9c00 160000 --- a/doc/doc-builder +++ b/doc/doc-builder @@ -1 +1 @@ -Subproject commit e22ed1b809c4a9cf6f03d2fb6b1df2754382c554 +Subproject commit 03f8ea9c00b9c7a2bee3501e743ab188626e1e40 From 2d954a51da92f4c42777a45710eea47bee5e54b2 Mon Sep 17 00:00:00 2001 From: wwieder Date: Fri, 6 Nov 2026 12:58:07 -0700 Subject: [PATCH 64/68] sum mortaility terms --- src/biogeochem/CNVegCarbonFluxType.F90 | 84 ++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/src/biogeochem/CNVegCarbonFluxType.F90 b/src/biogeochem/CNVegCarbonFluxType.F90 index 03d14b2922..8c71018158 100644 --- a/src/biogeochem/CNVegCarbonFluxType.F90 +++ b/src/biogeochem/CNVegCarbonFluxType.F90 @@ -358,6 +358,8 @@ module CNVegCarbonFluxType real(r8), pointer :: agnpp_patch (:) ! (gC/m2/s) aboveground NPP real(r8), pointer :: bgnpp_patch (:) ! (gC/m2/s) belowground NPP real(r8), pointer :: litfall_patch (:) ! (gC/m2/s) patch litterfall (leaves and fine roots) + real(r8), pointer :: veg_litter_mort_c_patch (:) ! (gC/m2/s) patch vegetation C to litter from non-fire mortality + real(r8), pointer :: veg_litter_fire_c_patch (:) ! (gC/m2/s) patch vegetation C to litter from fire mortality real(r8), pointer :: wood_harvestc_patch (:) ! (gC/m2/s) patch-level wood harvest (to product pools) real(r8), pointer :: wood_harvestc_col (:) ! (gC/m2/s) column-level wood harvest (to product pools) (p2c) real(r8), pointer :: slash_harvestc_patch (:) ! (gC/m2/s) patch-level slash from harvest (to litter) @@ -1122,6 +1124,8 @@ subroutine InitAllocate(this, bounds, carbon_type, alloc_full_veg) allocate(this%agnpp_patch (begp:endp)) ; this%agnpp_patch (:) = nan allocate(this%bgnpp_patch (begp:endp)) ; this%bgnpp_patch (:) = nan allocate(this%litfall_patch (begp:endp)) ; this%litfall_patch (:) = nan + allocate(this%veg_litter_mort_c_patch (begp:endp)) ; this%veg_litter_mort_c_patch (:) = nan + allocate(this%veg_litter_fire_c_patch (begp:endp)) ; this%veg_litter_fire_c_patch (:) = nan allocate(this%wood_harvestc_patch (begp:endp)) ; this%wood_harvestc_patch (:) = nan allocate(this%slash_harvestc_patch (begp:endp)) ; this%slash_harvestc_patch (:) = nan allocate(this%cinputs_patch (begp:endp)) ; this%cinputs_patch (:) = nan @@ -2149,6 +2153,16 @@ subroutine InitHistory(this, bounds, carbon_type) avgflag='A', long_name='litterfall (leaves and fine roots)', & ptr_patch=this%litfall_patch) + this%veg_litter_mort_c_patch(begp:endp) = spval + call hist_addfld1d (fname='VEG_LITTER_MORT_C', units='gC/m^2/s', & + avgflag='A', long_name='vegetation carbon to litter from non-fire mortality', & + ptr_patch=this%veg_litter_mort_c_patch) + + this%veg_litter_fire_c_patch(begp:endp) = spval + call hist_addfld1d (fname='VEG_LITTER_FIRE_C', units='gC/m^2/s', & + avgflag='A', long_name='vegetation carbon to litter from fire mortality', & + ptr_patch=this%veg_litter_fire_c_patch) + this%wood_harvestc_patch(begp:endp) = spval call hist_addfld1d (fname='WOOD_HARVESTC', units='gC/m^2/s', & avgflag='A', long_name='wood harvest carbon (to product pools)', & @@ -2319,6 +2333,16 @@ subroutine InitHistory(this, bounds, carbon_type) avgflag='A', long_name='C13 litterfall (leaves and fine roots)', & ptr_patch=this%litfall_patch, default='inactive') + this%veg_litter_mort_c_patch(begp:endp) = spval + call hist_addfld1d (fname='C13_VEG_LITTER_MORT_C', units='gC13/m^2/s', & + avgflag='A', long_name='C13 vegetation carbon to litter from non-fire mortality', & + ptr_patch=this%veg_litter_mort_c_patch, default='inactive') + + this%veg_litter_fire_c_patch(begp:endp) = spval + call hist_addfld1d (fname='C13_VEG_LITTER_FIRE_C', units='gC13/m^2/s', & + avgflag='A', long_name='C13 vegetation carbon to litter from fire mortality', & + ptr_patch=this%veg_litter_fire_c_patch, default='inactive') + this%fire_closs_patch(begp:endp) = spval call hist_addfld1d (fname='C13_PFT_FIRE_CLOSS', units='gC13/m^2/s', & avgflag='A', long_name='C13 total patch-level fire C loss', & @@ -3372,6 +3396,16 @@ subroutine InitHistory(this, bounds, carbon_type) avgflag='A', long_name='C14 litterfall (leaves and fine roots)', & ptr_patch=this%litfall_patch, default='inactive') + this%veg_litter_mort_c_patch(begp:endp) = spval + call hist_addfld1d (fname='C14_VEG_LITTER_MORT_C', units='gC14/m^2/s', & + avgflag='A', long_name='C14 vegetation carbon to litter from non-fire mortality', & + ptr_patch=this%veg_litter_mort_c_patch, default='inactive') + + this%veg_litter_fire_c_patch(begp:endp) = spval + call hist_addfld1d (fname='C14_VEG_LITTER_FIRE_C', units='gC14/m^2/s', & + avgflag='A', long_name='C14 vegetation carbon to litter from fire mortality', & + ptr_patch=this%veg_litter_fire_c_patch, default='inactive') + this%fire_closs_patch(begp:endp) = spval call hist_addfld1d (fname='C14_PFT_FIRE_CLOSS', units='gC14/m^2/s', & avgflag='A', long_name='C14 total patch-level fire C loss', & @@ -4732,6 +4766,8 @@ subroutine SetValues ( this, nvegcpool, & this%agnpp_patch(i) = value_patch this%bgnpp_patch(i) = value_patch this%litfall_patch(i) = value_patch + this%veg_litter_mort_c_patch(i) = value_patch + this%veg_litter_fire_c_patch(i) = value_patch this%wood_harvestc_patch(i) = value_patch this%slash_harvestc_patch(i) = value_patch this%cinputs_patch(i) = value_patch @@ -5067,6 +5103,54 @@ subroutine Summary_carbonflux(this, & this%cpool_to_deadcrootc_patch(p) + & this%deadcrootc_xfer_to_deadcrootc_patch(p) + ! vegetation carbon to litter from non-fire mortality (VEG_LITTER_MORT_C) + + this%veg_litter_mort_c_patch(p) = & + this%m_leafc_to_litter_patch(p) + & + this%m_leafc_storage_to_litter_patch(p) + & + this%m_leafc_xfer_to_litter_patch(p) + & + this%m_frootc_to_litter_patch(p) + & + this%m_frootc_storage_to_litter_patch(p) + & + this%m_frootc_xfer_to_litter_patch(p) + & + this%m_livestemc_to_litter_patch(p) + & + this%m_livestemc_storage_to_litter_patch(p) + & + this%m_livestemc_xfer_to_litter_patch(p) + & + this%m_deadstemc_to_litter_patch(p) + & + this%m_deadstemc_storage_to_litter_patch(p) + & + this%m_deadstemc_xfer_to_litter_patch(p) + & + this%m_livecrootc_to_litter_patch(p) + & + this%m_livecrootc_storage_to_litter_patch(p) + & + this%m_livecrootc_xfer_to_litter_patch(p) + & + this%m_deadcrootc_to_litter_patch(p) + & + this%m_deadcrootc_storage_to_litter_patch(p) + & + this%m_deadcrootc_xfer_to_litter_patch(p) + & + this%m_gresp_storage_to_litter_patch(p) + & + this%m_gresp_xfer_to_litter_patch(p) + + ! vegetation carbon to litter from fire mortality (VEG_LITTER_FIRE_C) + + this%veg_litter_fire_c_patch(p) = & + this%m_leafc_to_litter_fire_patch(p) + & + this%m_leafc_storage_to_litter_fire_patch(p) + & + this%m_leafc_xfer_to_litter_fire_patch(p) + & + this%m_livestemc_to_litter_fire_patch(p) + & + this%m_livestemc_storage_to_litter_fire_patch(p) + & + this%m_livestemc_xfer_to_litter_fire_patch(p) + & + this%m_deadstemc_to_litter_fire_patch(p) + & + this%m_deadstemc_storage_to_litter_fire_patch(p) + & + this%m_deadstemc_xfer_to_litter_fire_patch(p) + & + this%m_frootc_to_litter_fire_patch(p) + & + this%m_frootc_storage_to_litter_fire_patch(p) + & + this%m_frootc_xfer_to_litter_fire_patch(p) + & + this%m_livecrootc_to_litter_fire_patch(p) + & + this%m_livecrootc_storage_to_litter_fire_patch(p) + & + this%m_livecrootc_xfer_to_litter_fire_patch(p) + & + this%m_deadcrootc_to_litter_fire_patch(p) + & + this%m_deadcrootc_storage_to_litter_fire_patch(p) + & + this%m_deadcrootc_xfer_to_litter_fire_patch(p) + & + this%m_gresp_storage_to_litter_fire_patch(p) + & + this%m_gresp_xfer_to_litter_fire_patch(p) + ! litterfall (LITFALL) this%litfall_patch(p) = & From 36311b032aa2ee8f56ff1ff068ca332380427dac Mon Sep 17 00:00:00 2001 From: wwieder Date: Fri, 6 Nov 2026 15:15:23 -0700 Subject: [PATCH 65/68] explicit litfall fluxes --- src/biogeochem/CNVegCarbonFluxType.F90 | 14 +-- src/biogeochem/CNVegNitrogenFluxType.F90 | 103 ++++++++++++++++++++++- 2 files changed, 109 insertions(+), 8 deletions(-) diff --git a/src/biogeochem/CNVegCarbonFluxType.F90 b/src/biogeochem/CNVegCarbonFluxType.F90 index 8c71018158..c343736ef4 100644 --- a/src/biogeochem/CNVegCarbonFluxType.F90 +++ b/src/biogeochem/CNVegCarbonFluxType.F90 @@ -2149,8 +2149,8 @@ subroutine InitHistory(this, bounds, carbon_type) ptr_patch=this%bgnpp_patch) this%litfall_patch(begp:endp) = spval - call hist_addfld1d (fname='LITFALL', units='gC/m^2/s', & - avgflag='A', long_name='litterfall (leaves and fine roots)', & + call hist_addfld1d (fname='LITFALLC', units='gC/m^2/s', & + avgflag='A', long_name='total C litterfall (all vegetation C fluxes to litter)', & ptr_patch=this%litfall_patch) this%veg_litter_mort_c_patch(begp:endp) = spval @@ -2329,8 +2329,8 @@ subroutine InitHistory(this, bounds, carbon_type) ptr_patch=this%bgnpp_patch, default='inactive') this%litfall_patch(begp:endp) = spval - call hist_addfld1d (fname='C13_LITFALL', units='gC13/m^2/s', & - avgflag='A', long_name='C13 litterfall (leaves and fine roots)', & + call hist_addfld1d (fname='C13_LITFALLC', units='gC13/m^2/s', & + avgflag='A', long_name='C13 total litterfall (all vegetation C13 fluxes to litter)', & ptr_patch=this%litfall_patch, default='inactive') this%veg_litter_mort_c_patch(begp:endp) = spval @@ -3392,8 +3392,8 @@ subroutine InitHistory(this, bounds, carbon_type) ptr_patch=this%bgnpp_patch, default='inactive') this%litfall_patch(begp:endp) = spval - call hist_addfld1d (fname='C14_LITFALL', units='gC14/m^2/s', & - avgflag='A', long_name='C14 litterfall (leaves and fine roots)', & + call hist_addfld1d (fname='C14_LITFALLC', units='gC14/m^2/s', & + avgflag='A', long_name='C14 total litterfall (all vegetation C14 fluxes to litter)', & ptr_patch=this%litfall_patch, default='inactive') this%veg_litter_mort_c_patch(begp:endp) = spval @@ -5151,7 +5151,7 @@ subroutine Summary_carbonflux(this, & this%m_gresp_storage_to_litter_fire_patch(p) + & this%m_gresp_xfer_to_litter_fire_patch(p) - ! litterfall (LITFALL) + ! litterfall (LITFALLC) this%litfall_patch(p) = & this%leafc_to_litter_patch(p) + & diff --git a/src/biogeochem/CNVegNitrogenFluxType.F90 b/src/biogeochem/CNVegNitrogenFluxType.F90 index 788be23137..fbbfee8182 100644 --- a/src/biogeochem/CNVegNitrogenFluxType.F90 +++ b/src/biogeochem/CNVegNitrogenFluxType.F90 @@ -15,7 +15,8 @@ module CNVegNitrogenFluxType igrain,igrain_st,igrain_xf,iretransn,ioutn use clm_varpar , only : mxharvests use clm_varcon , only : spval, ispval, dzsoi_decomp - use clm_varctl , only : use_nitrif_denitrif, use_crop + use clm_varctl , only : use_nitrif_denitrif, use_crop, use_grainproduct + use pftconMod , only : is_prognostic_crop use CNSharedParamsMod , only : use_fun, use_matrixcn use decompMod , only : bounds_type use abortutils , only : endrun @@ -124,6 +125,7 @@ module CNVegNitrogenFluxType real(r8), pointer :: m_deadcrootn_xfer_to_litter_fire_patch (:) ! patch (gN/m2/s) from deadcrootn_xfer to deadcrootn due to fire real(r8), pointer :: m_retransn_to_litter_fire_patch (:) ! patch (gN/m2/s) from retransn to deadcrootn due to fire real(r8), pointer :: fire_nloss_patch (:) ! patch total patch-level fire N loss (gN/m2/s) + real(r8), pointer :: litfalln_patch (:) ! patch total N litterfall, all veg N fluxes to litter (gN/m2/s) real(r8), pointer :: fire_nloss_col (:) ! col total column-level fire N loss (gN/m2/s) real(r8), pointer :: fire_nloss_p2c_col (:) ! col patch2col column-level fire N loss (gN/m2/s) (p2c) real(r8), pointer :: fire_mortality_n_to_cwdn_col (:,:) ! col N fluxes associated with fire mortality to CWD pool (gN/m3/s) @@ -921,6 +923,7 @@ subroutine InitAllocate(this, bounds, alloc_full_veg) allocate(this%ndeploy_patch (begp:endp)) ; this%ndeploy_patch (:) = nan allocate(this%wood_harvestn_patch (begp:endp)) ; this%wood_harvestn_patch (:) = nan allocate(this%fire_nloss_patch (begp:endp)) ; this%fire_nloss_patch (:) = nan + allocate(this%litfalln_patch (begp:endp)) ; this%litfalln_patch (:) = nan allocate(this%npool_to_reproductiven_patch (begp:endp, nrepr)) ; this%npool_to_reproductiven_patch (:,:) = nan allocate(this%npool_to_reproductiven_storage_patch(begp:endp, nrepr)); this%npool_to_reproductiven_storage_patch (:,:) = nan allocate(this%livestemn_to_litter_patch (begp:endp)) ; this%livestemn_to_litter_patch (:) = nan @@ -1532,6 +1535,11 @@ subroutine InitHistory(this, bounds) avgflag='A', long_name='total patch-level fire N loss', & ptr_patch=this%fire_nloss_patch) + this%litfalln_patch(begp:endp) = spval + call hist_addfld1d (fname='LITFALLN', units='gN/m^2/s', & + avgflag='A', long_name='total N litterfall (all vegetation N fluxes to litter)', & + ptr_patch=this%litfalln_patch) + if (use_crop) then this%fert_patch(begp:endp) = spval call hist_addfld1d (fname='NFERTILIZATION', units='gN/m^2/s', & @@ -2448,6 +2456,7 @@ subroutine SetValues ( this,nvegnpool, & this%ndeploy_patch(i) = value_patch this%wood_harvestn_patch(i) = value_patch this%fire_nloss_patch(i) = value_patch + this%litfalln_patch(i) = value_patch this%crop_seedn_to_leaf_patch(i) = value_patch this%crop_harvestn_to_cropprodn_patch(i) = value_patch @@ -2701,6 +2710,98 @@ subroutine Summary_nitrogenflux(this, bounds, num_soilc, filter_soilc, num_soilp this%gru_livecrootn_xfer_to_atm_patch(p) + & this%gru_deadcrootn_xfer_to_atm_patch(p) + ! total N litterfall (LITFALLN); analogous to LITFALLC for carbon, plus + ! the retranslocated N pool terms that have no carbon equivalent + this%litfalln_patch(p) = & + ! phenology + this%leafn_to_litter_patch(p) + & + this%frootn_to_litter_patch(p) + & + ! gap mortality + this%m_leafn_to_litter_patch(p) + & + this%m_leafn_storage_to_litter_patch(p) + & + this%m_leafn_xfer_to_litter_patch(p) + & + this%m_frootn_to_litter_patch(p) + & + this%m_frootn_storage_to_litter_patch(p) + & + this%m_frootn_xfer_to_litter_patch(p) + & + this%m_livestemn_to_litter_patch(p) + & + this%m_livestemn_storage_to_litter_patch(p) + & + this%m_livestemn_xfer_to_litter_patch(p) + & + this%m_deadstemn_to_litter_patch(p) + & + this%m_deadstemn_storage_to_litter_patch(p) + & + this%m_deadstemn_xfer_to_litter_patch(p) + & + this%m_livecrootn_to_litter_patch(p) + & + this%m_livecrootn_storage_to_litter_patch(p) + & + this%m_livecrootn_xfer_to_litter_patch(p) + & + this%m_deadcrootn_to_litter_patch(p) + & + this%m_deadcrootn_storage_to_litter_patch(p) + & + this%m_deadcrootn_xfer_to_litter_patch(p) + & + this%m_retransn_to_litter_patch(p) + & + ! fire mortality + this%m_leafn_to_litter_fire_patch(p) + & + this%m_leafn_storage_to_litter_fire_patch(p) + & + this%m_leafn_xfer_to_litter_fire_patch(p) + & + this%m_livestemn_to_litter_fire_patch(p) + & + this%m_livestemn_storage_to_litter_fire_patch(p) + & + this%m_livestemn_xfer_to_litter_fire_patch(p) + & + this%m_deadstemn_to_litter_fire_patch(p) + & + this%m_deadstemn_storage_to_litter_fire_patch(p) + & + this%m_deadstemn_xfer_to_litter_fire_patch(p) + & + this%m_frootn_to_litter_fire_patch(p) + & + this%m_frootn_storage_to_litter_fire_patch(p) + & + this%m_frootn_xfer_to_litter_fire_patch(p) + & + this%m_livecrootn_to_litter_fire_patch(p) + & + this%m_livecrootn_storage_to_litter_fire_patch(p) + & + this%m_livecrootn_xfer_to_litter_fire_patch(p) + & + this%m_deadcrootn_to_litter_fire_patch(p) + & + this%m_deadcrootn_storage_to_litter_fire_patch(p) + & + this%m_deadcrootn_xfer_to_litter_fire_patch(p) + & + this%m_retransn_to_litter_fire_patch(p) + & + ! harvest + this%hrv_leafn_to_litter_patch(p) + & + this%hrv_leafn_storage_to_litter_patch(p) + & + this%hrv_leafn_xfer_to_litter_patch(p) + & + this%hrv_frootn_to_litter_patch(p) + & + this%hrv_frootn_storage_to_litter_patch(p) + & + this%hrv_frootn_xfer_to_litter_patch(p) + & + this%hrv_livestemn_to_litter_patch(p) + & + this%hrv_livestemn_storage_to_litter_patch(p) + & + this%hrv_livestemn_xfer_to_litter_patch(p) + & + this%hrv_deadstemn_storage_to_litter_patch(p) + & + this%hrv_deadstemn_xfer_to_litter_patch(p) + & + this%hrv_livecrootn_to_litter_patch(p) + & + this%hrv_livecrootn_storage_to_litter_patch(p) + & + this%hrv_livecrootn_xfer_to_litter_patch(p) + & + this%hrv_deadcrootn_to_litter_patch(p) + & + this%hrv_deadcrootn_storage_to_litter_patch(p) + & + this%hrv_deadcrootn_xfer_to_litter_patch(p) + & + this%hrv_retransn_to_litter_patch(p) + & + ! gross unrepresented landcover change + this%gru_leafn_to_litter_patch(p) + & + this%gru_frootn_to_litter_patch(p) + & + this%gru_livecrootn_to_litter_patch(p) + & + this%gru_deadcrootn_to_litter_patch(p) + & + this%gru_retransn_to_litter_patch(p) + + if ( use_crop .and. is_prognostic_crop(patch%itype(p)) ) then + this%litfalln_patch(p) = & + this%litfalln_patch(p) + & + this%livestemn_to_litter_patch(p) + + if (.not. use_grainproduct) then + do k = repr_grain_min, repr_grain_max + this%litfalln_patch(p) = & + this%litfalln_patch(p) + & + this%repr_grainn_to_food_patch(p,k) + end do + end if + + do k = repr_structure_min, repr_structure_max + this%litfalln_patch(p) = & + this%litfalln_patch(p) + & + this%repr_structuren_to_litter_patch(p,k) + end do + end if + end do call p2c(bounds, num_soilc, filter_soilc, & From 08f28f9aebe0be48e6280bdf8e49f5505d1f8787 Mon Sep 17 00:00:00 2001 From: Samuel Levis Date: Mon, 9 Nov 2026 15:55:15 -0700 Subject: [PATCH 66/68] Replace long sums with the corresponding new variables --- src/biogeochem/CNVegCarbonFluxType.F90 | 44 ++------------------------ 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/src/biogeochem/CNVegCarbonFluxType.F90 b/src/biogeochem/CNVegCarbonFluxType.F90 index c343736ef4..26b5ba941a 100644 --- a/src/biogeochem/CNVegCarbonFluxType.F90 +++ b/src/biogeochem/CNVegCarbonFluxType.F90 @@ -5156,47 +5156,9 @@ subroutine Summary_carbonflux(this, & this%litfall_patch(p) = & this%leafc_to_litter_patch(p) + & this%frootc_to_litter_patch(p) + & - this%m_leafc_to_litter_patch(p) + & - this%m_leafc_storage_to_litter_patch(p) + & - this%m_leafc_xfer_to_litter_patch(p) + & - this%m_frootc_to_litter_patch(p) + & - this%m_frootc_storage_to_litter_patch(p) + & - this%m_frootc_xfer_to_litter_patch(p) + & - this%m_livestemc_to_litter_patch(p) + & - this%m_livestemc_storage_to_litter_patch(p) + & - this%m_livestemc_xfer_to_litter_patch(p) + & - this%m_deadstemc_to_litter_patch(p) + & - this%m_deadstemc_storage_to_litter_patch(p) + & - this%m_deadstemc_xfer_to_litter_patch(p) + & - this%m_livecrootc_to_litter_patch(p) + & - this%m_livecrootc_storage_to_litter_patch(p) + & - this%m_livecrootc_xfer_to_litter_patch(p) + & - this%m_deadcrootc_to_litter_patch(p) + & - this%m_deadcrootc_storage_to_litter_patch(p) + & - this%m_deadcrootc_xfer_to_litter_patch(p) + & - this%m_gresp_storage_to_litter_patch(p) + & - this%m_gresp_xfer_to_litter_patch(p) + & - - this%m_leafc_to_litter_fire_patch(p) + & - this%m_leafc_storage_to_litter_fire_patch(p) + & - this%m_leafc_xfer_to_litter_fire_patch(p) + & - this%m_livestemc_to_litter_fire_patch(p) + & - this%m_livestemc_storage_to_litter_fire_patch(p) + & - this%m_livestemc_xfer_to_litter_fire_patch(p) + & - this%m_deadstemc_to_litter_fire_patch(p) + & - this%m_deadstemc_storage_to_litter_fire_patch(p) + & - this%m_deadstemc_xfer_to_litter_fire_patch(p) + & - this%m_frootc_to_litter_fire_patch(p) + & - this%m_frootc_storage_to_litter_fire_patch(p) + & - this%m_frootc_xfer_to_litter_fire_patch(p) + & - this%m_livecrootc_to_litter_fire_patch(p) + & - this%m_livecrootc_storage_to_litter_fire_patch(p) + & - this%m_livecrootc_xfer_to_litter_fire_patch(p) + & - this%m_deadcrootc_to_litter_fire_patch(p) + & - this%m_deadcrootc_storage_to_litter_fire_patch(p) + & - this%m_deadcrootc_xfer_to_litter_fire_patch(p) + & - this%m_gresp_storage_to_litter_fire_patch(p) + & - this%m_gresp_xfer_to_litter_fire_patch(p) + & + + this%veg_litter_mort_c_patch(p) + & + this%veg_litter_fire_c_patch(p) + & this%hrv_leafc_to_litter_patch(p) + & this%hrv_leafc_storage_to_litter_patch(p) + & From 8f02b0540f26f895497e2c5c42e6e0b6001818e1 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 12 Nov 2026 14:43:06 -0700 Subject: [PATCH 67/68] Initial ChangeLog/Sum updates. --- doc/ChangeLog | 46 ++++++++++++++++++++++++++++++++++++++++++++++ doc/ChangeSum | 1 + 2 files changed, 47 insertions(+) diff --git a/doc/ChangeLog b/doc/ChangeLog index 194adbab1c..f6a1befbb7 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,4 +1,50 @@ =============================================================== +Tag name: ctsm5.4.069 +Originator(s): samrabin (Sam Rabin) +Date: Thu Nov 12 12:03:59 MST 2026 +One-line Summary: Merge b4b-dev to master 2026-11-12 + +Purpose and description of changes +---------------------------------- + +Merge b4b-dev to master. Includes: +- [ESCOMP/CTSM Pull Request #4297: Get workflows to work with ubuntu 26.04 by samsrabin](https://github.com/ESCOMP/CTSM/pull/4297) +- [ESCOMP/CTSM Pull Request #4301: fleximod-test workflow job now actually tests Python 3.7 and latest by samsrabin](https://github.com/ESCOMP/CTSM/pull/4301) +- [ESCOMP/CTSM Pull Request #4246: Update doc-builder to latest version by samsrabin](https://github.com/ESCOMP/CTSM/pull/4246) +- [ESCOMP/CTSM Pull Request #4304: sum mortaility terms by wwieder](https://github.com/ESCOMP/CTSM/pull/4304) + + +Bugs fixed +---------- + +List of CTSM issues fixed (include CTSM Issue # and description): +- Resolves [ESCOMP/CTSM Issue #3367: Doc build tests: Always check ESCOMP's containers, not fork's](https://github.com/ESCOMP/CTSM/issues/3367) +- Resolves [ESCOMP/CTSM Issue #3941: Fix doc builder image version checks on forks](https://github.com/ESCOMP/CTSM/issues/3941) +- Resolves [ESCOMP/CTSM Issue #4267: ctsm_pylib docs build test failed](https://github.com/ESCOMP/CTSM/issues/4267) + + +Testing summary: +---------------- + + [PASS means all tests PASS; OK means tests PASS other than expected fails.] + + regular tests (aux_clm: https://github.com/ESCOMP/CTSM/wiki/System-Testing-Guide#pre-merge-system-testing): + + derecho ----- + izumi ------- + + +Other details +------------- + +List any git submodules updated (cime, rtm, mosart, cism, fates, etc.): +- doc-builder: Updated from v3.2.1 to v3.5.14 + +Pull Requests that document the changes (include PR ids): +- [ESCOMP/CTSM Pull Request #4315: ctsm5.4.069: b4b-dev merge 2026-11-12 by samsrabin](https://github.com/ESCOMP/CTSM/pull/4315) + +=============================================================== +=============================================================== Tag name: ctsm5.4.068 Originator(s): slevis (Samuel Levis,UCAR/TSS, slevis@ucar.edu) Date: Tue Nov 3 03:03:43 AM MST 2026 diff --git a/doc/ChangeSum b/doc/ChangeSum index e4dae66cc4..3057305abc 100644 --- a/doc/ChangeSum +++ b/doc/ChangeSum @@ -1,5 +1,6 @@ Tag Who Date Summary ============================================================================================================================ + ctsm5.4.069 samrabin 11/12/2026 Merge b4b-dev to master 2026-11-12 ctsm5.4.068 slevis 11/03/2026 Move CTSM tests from gx (POP) grids to tx (MOM) grids ctsm5.4.067 slevis 10/30/2026 Merge b4b-dev to master ctsm5.4.066 rgknox 10/24/2026 Add bc_out to FATES restart and remove litter flux recalculations From 74f7a4b277852e19878e3fabf123c7fa0c700b79 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Fri, 13 Nov 2026 13:36:24 -0700 Subject: [PATCH 68/68] Finish ChangeLog update. --- doc/ChangeLog | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index f6a1befbb7..440a564e6e 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -23,6 +23,19 @@ List of CTSM issues fixed (include CTSM Issue # and description): - Resolves [ESCOMP/CTSM Issue #4267: ctsm_pylib docs build test failed](https://github.com/ESCOMP/CTSM/issues/4267) +Notes of particular relevance for developers: +--------------------------------------------- + +Initially failed due to https://github.com/ESCOMP/CTSM/issues/3360; worked on resubmit: +- `ERP_D_P64x2_Ld3.f10_f10_mt201.I2000Clm50BgcCru.derecho_intel.clm-noFUN_flexCN--clm-matrixcnOn_ignore_warnings` + +Failed due to walltime; worked after bumping and resubmitting: +- `ERP_P64x2_D_Ld5.f10_f10_mt201.I1850Clm50Bgc.derecho_intel.clm-ciso--clm-matrixcnOn_ignore_warnings` +- `ERI_D_Ld9_P48x1.f10_f10_mt201.I2000Clm50Bgc.izumi_nag.clm-reduceOutput` +- `ERS_D_Ld5_Mmpi-serial.1x1_vancouverCAN.I1PtClm50SpRsGs.izumi_nag.clm-CLM1PTStartDate` +- `SMS_Ly1_D_Mmpi-serial.CLM_USRDAT.IHist1PtClm60BgcRsGs.izumi_nag.clm-default--clm-PLUMBER2-ARSLu` + + Testing summary: ---------------- @@ -30,8 +43,8 @@ Testing summary: regular tests (aux_clm: https://github.com/ESCOMP/CTSM/wiki/System-Testing-Guide#pre-merge-system-testing): - derecho ----- - izumi ------- + derecho ----- OK + izumi ------- OK Other details