-
Notifications
You must be signed in to change notification settings - Fork 446
add gh/ci eamxx standalone testing #6637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
fac8382
89b7ade
cdaa5c4
d6bf994
da9951a
0012b49
b33da8c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: gh-standalone | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ master ] | ||
| paths: | ||
| # first, yes to these | ||
| - '.github/workflows/eamxx-gh-ci-standalone.yml' | ||
| - 'cime_config/machine/config_machines.xml' | ||
| - 'components/eamxx/**' | ||
| - 'components/homme/**' | ||
| # second, no to these | ||
| - '!components/eamxx/docs/**' | ||
| - '!components/eamxx/mkdocs.yml' | ||
|
|
||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
|
|
||
| ci: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| test: | ||
| - sp | ||
| - opt | ||
| - dbg | ||
| - cov | ||
mahf708 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| container: | ||
| image: ghcr.io/e3sm-project/containers-standalone-ghci:standalone-ghci-0.1.0 | ||
|
|
||
| steps: | ||
| - | ||
| name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| show-progress: false | ||
| submodules: recursive | ||
| - | ||
| name: standalone | ||
| env: | ||
| SHELL: sh | ||
| run: | | ||
| # TODO: get rid of this extra line if we can? | ||
| git config --global safe.directory '*' | ||
| ./components/eamxx/scripts/test-all-scream -m ghci-oci -t ${{ matrix.test }} | ||
| - | ||
| name: Artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| if: ${{ always() }} | ||
| with: | ||
| name: ${{ matrix.test }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May I suggest a name that is a bit longer, so the user knows what they will be downloading? Something like
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's touch up this in the next iteration of edits. We need to establish some standards, I think :) I can explain why I chose short names everywhere (e.g., gh/ci(...) and gh-standalone/ci(opt)) --- mainly for ease of seeing them, on the actions boards... but maybe that's just a minor personal preference...
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am ok with short names for actions names, since they appear at the bottom of the PR page, and long names are problematic. But artifacts are in the action page, and there's plenty of space for a longer name. That said, I think it's very subjective, hence the approval regardless. |
||
| path: | | ||
| components/eamxx/ctest-build/*/Testing/Temporary/Last*.log | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,15 @@ | ||
| include(${CMAKE_CURRENT_LIST_DIR}/common.cmake) | ||
| common_setup() | ||
|
|
||
| set(CMAKE_Fortran_FLAGS "-Wno-maybe-uninitialized -Wno-unused-dummy-argument -fallow-argument-mismatch" CACHE STRING "" FORCE) | ||
| set(CMAKE_CXX_FLAGS "-fvisibility-inlines-hidden -fmessage-length=0 -Wno-use-after-free -Wno-unused-variable -Wno-maybe-uninitialized" CACHE STRING "" FORCE) | ||
|
|
||
| # TODO: figure out a better way to handle this, e.g., | ||
| # TODO: --map-by ppr:1:node:pe=1 doesn't work with mpich, | ||
| # TODO: but -map-by core:1:numa:hwthread=1 may work well? | ||
| # TODO: this will need to be handled in EKAT at some point | ||
| set(EKAT_MPI_NP_FLAG "-np" CACHE STRING "-np") | ||
|
|
||
| # TODO: hack in place to get eamxx to recognize CPRNC | ||
| # TODO: See note in BuildCprnc.cmake... | ||
| set(ENV{CCSM_CPRNC} "/usr/local/packages/bin/cprnc") | ||
mahf708 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Uh oh!
There was an error while loading. Please reload this page.