Skip to content

New RAII-ified C++ classes for MPI objects #29

New RAII-ified C++ classes for MPI objects

New RAII-ified C++ classes for MPI objects #29

Workflow file for this run

name: Sanitizer Checks
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'src/**'
- 'include/**'
- 'test/**'
- 'examples/**'
- 'cmake/**'
- 'CMakeLists.txt'
- '.github/workflows/sanitizers.yml'
push:
branches:
- develop
# Cancel previous runs on the same PR or branch
concurrency:
group: sanitizers-${{ github.ref }}
cancel-in-progress: true
jobs:
sanitizers:
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Spack
uses: spack/setup-spack@v3
- name: Add Spack packages
run: |
spack -e ./test/CI add openmpi@git.main=main +internal-hwloc +internal-libevent +internal-pmix
spack -e ./test/CI add cmake
- name: Concretize Spack packages
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: spack -e ./test/CI concretize
- name: Install Spack packages
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: spack -e ./test/CI install
- name: Push packages to build cache
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
spack -e ./test/CI buildcache push --base-image ubuntu:24.04 \
--allow-missing --update-index fenix-buildcache
if: ${{ !cancelled() }}
- name: Run Sanitizer Tests
shell: spack-bash {0}
run: |
spack env activate --dir ./test/CI
./test/CI/sanitizers.sh
# Always run even if spack steps fail
if: ${{ !cancelled() }}
- name: Upload sanitizer reports on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: sanitizer-reports
path: |
build_memory_asan/memory_reports/
retention-days: 7