From 1534d002069825462949d0bf7b4c1e0c0562893b Mon Sep 17 00:00:00 2001 From: Luca Bertagna Date: Mon, 4 Nov 2024 14:06:01 -0700 Subject: [PATCH] Workflows: added more eamxx workflows * Added coverage workflow * Added sanitizer workflow * Renamed PR testing workflow * Use workflow env var for submit --- .github/workflows/eamxx-sa-coverage.yml | 58 +++++++++++++++++ .github/workflows/eamxx-sa-sanitizer.yml | 62 +++++++++++++++++++ ...alone-testing.yml => eamxx-sa-testing.yml} | 13 ++-- 3 files changed, 125 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/eamxx-sa-coverage.yml create mode 100644 .github/workflows/eamxx-sa-sanitizer.yml rename .github/workflows/{eamxx-standalone-testing.yml => eamxx-sa-testing.yml} (90%) diff --git a/.github/workflows/eamxx-sa-coverage.yml b/.github/workflows/eamxx-sa-coverage.yml new file mode 100644 index 000000000000..aa69d6263e6e --- /dev/null +++ b/.github/workflows/eamxx-sa-coverage.yml @@ -0,0 +1,58 @@ +name: eamxx-sa-coverage + +on: + workflow_dispatch: + + # Add schedule trigger for nightly runs at midnight MT (Standard Time) + schedule: + - cron: '0 7 * * *' # Runs at 7 AM UTC, which is midnight MT during Standard Time + +concurrency: + # Two runs are in the same group if they are testing the same git ref + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + submit: ${{ github.event_name == 'schedule' && 'true' || 'false' }} # Submit to cdash only for nightlies + +jobs: + gcc-openmp: + runs-on: [self-hosted, ghci-snl-cpu, gcc] + name: gcc-openmp / cov + steps: + - name: Check out the repository + uses: actions/checkout@v4 + with: + persist-credentials: false + show-progress: false + submodules: recursive + - name: Show action trigger + uses: ./.github/actions/show-workflow-trigger + - name: Run tests + uses: ./.github/actions/test-all-scream + with: + build_type: cov + machine: ghci-snl-cpu + generate: false + submit: ${{ env.submit }} + cmake-configs: Kokkos_ENABLE_OPENMP=ON + gcc-cuda: + runs-on: [self-hosted, ghci-snl-cuda, cuda, gcc] + name: gcc-cuda / cov + steps: + - name: Check out the repository + uses: actions/checkout@v4 + with: + persist-credentials: false + show-progress: false + submodules: recursive + - name: Show action trigger + uses: ./.github/actions/show-workflow-trigger + - name: Run tests + uses: ./.github/actions/test-all-scream + with: + build_type: cov + machine: ghci-snl-cuda + generate: false + submit: ${{ env.submit }} + cmake-configs: Kokkos_ARCH_VOLTA70=ON;CMAKE_CUDA_ARCHITECTURES=70 diff --git a/.github/workflows/eamxx-sa-sanitizer.yml b/.github/workflows/eamxx-sa-sanitizer.yml new file mode 100644 index 000000000000..7e3a1a49fcfb --- /dev/null +++ b/.github/workflows/eamxx-sa-sanitizer.yml @@ -0,0 +1,62 @@ +name: eamxx-sa-sanitizer + +on: + workflow_dispatch: + + # Add schedule trigger for nightly runs at midnight MT (Standard Time) + schedule: + - cron: '0 7 * * *' # Runs at 7 AM UTC, which is midnight MT during Standard Time + +concurrency: + # Two runs are in the same group if they are testing the same git ref + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + submit: ${{ github.event_name == 'schedule' && 'true' || 'false' }} # Submit to cdash only for nightlies + +jobs: + gcc-openmp: + runs-on: [self-hosted, ghci-snl-cpu, gcc] + name: gcc-openmp / cov + steps: + - name: Check out the repository + uses: actions/checkout@v4 + with: + persist-credentials: false + show-progress: false + submodules: recursive + - name: Show action trigger + uses: ./.github/actions/show-workflow-trigger + - name: Run tests + uses: ./.github/actions/test-all-scream + with: + build_type: valg + machine: ghci-snl-cpu + generate: false + submit: ${{ env.submit }} + cmake-configs: Kokkos_ENABLE_OPENMP=ON + gcc-cuda: + runs-on: [self-hosted, ghci-snl-cuda, cuda, gcc] + strategy: + fail-fast: false + matrix: + build_type: [csm, csr, csi, css] + name: gcc-cuda / ${{ matrix.build_type }} + steps: + - name: Check out the repository + uses: actions/checkout@v4 + with: + persist-credentials: false + show-progress: false + submodules: recursive + - name: Show action trigger + uses: ./.github/actions/show-workflow-trigger + - name: Run tests + uses: ./.github/actions/test-all-scream + with: + build_type: ${{ matrix.build_type }} + machine: ghci-snl-cuda + generate: false + submit: ${{ env.submit }} + cmake-configs: Kokkos_ARCH_VOLTA70=ON;CMAKE_CUDA_ARCHITECTURES=70 diff --git a/.github/workflows/eamxx-standalone-testing.yml b/.github/workflows/eamxx-sa-testing.yml similarity index 90% rename from .github/workflows/eamxx-standalone-testing.yml rename to .github/workflows/eamxx-sa-testing.yml index 4b122e3641d6..12e45514ad09 100644 --- a/.github/workflows/eamxx-standalone-testing.yml +++ b/.github/workflows/eamxx-sa-testing.yml @@ -44,6 +44,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + submit: ${{ github.event_name == 'schedule' && 'true' || 'false' }} # Submit to cdash only for nightlies + jobs: gcc-openmp: runs-on: [self-hosted, ghci-snl-cpu, gcc] @@ -73,11 +76,8 @@ jobs: pr_number: ${{ github.event.pull_request.number }} - name: Set test-all inputs based on event specs run: | - echo "submit=false" >> $GITHUB_ENV echo "generate=false" >> $GITHUB_ENV - if [ "${{ github.event_name }}" == "schedule" ]; then - echo "submit=true" >> $GITHUB_ENV - elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then + if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then if [ "${{ inputs.bless }}" == "true" ]; then echo "generate=true" >> $GITHUB_ENV fi @@ -118,11 +118,8 @@ jobs: pr_number: ${{ github.event.pull_request.number }} - name: Set test-all inputs based on event specs run: | - echo "submit=false" >> $GITHUB_ENV echo "generate=false" >> $GITHUB_ENV - if [ "${{ github.event_name }}" == "schedule" ]; then - echo "submit=true" >> $GITHUB_ENV - elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then + if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then if [ "${{ inputs.bless }}" == "true" ]; then echo "generate=true" >> $GITHUB_ENV fi