Continuous integration

Every pull request runs ci.yml and docs.yml.

.github/workflows/ci.yml

Job

What it does

CPU (GCC Release, Clang Release)

Builds with Open MPI, runs ctest -L "unit|smoke" (4-rank tests on 2 cores with --oversubscribe), and checks that the tests left the working tree clean. Both Linux jobs trap floating-point exceptions; Clang builds with -ffp-exception-behavior=maytrap, so it does not add invalid operations of its own.

Single precision

Compiles only. The steady stop needs double precision.

CUDA sm_90

Compiles only, for the H100. Hosted runners have no GPU.

Windows MSVC Release

Builds with MSVC, no MPI and FFTW from vcpkg, and runs ctest -L "unit|smoke". The job installs numpy but not PyYAML or scipy, so the tests that need those are not registered there; the tests that run a bash script are not registered on Windows either. MSVC does not trap floating-point exceptions; that check stays with the Linux jobs.

Windows CUDA sm_90

Compiles only, with cl and nvcc (CUDA 12.6, Windows SDK 10.0.22621.0).

HIP gfx90a

Compiles only, with ROCm 6.2.4 and rocFFT, for AMD GPUs (MI250X).

SYCL

Compiles only, with Intel icpx and oneMKL, for Intel GPUs.

extern_erf drift check

Runs the drift check’s self-tests and the check itself against a clone of ERF, and lists upstream ERF changes to copied files (Code from other projects).

Spelling and whitespace

codespell (settings in .codespellrc) and no trailing whitespace.

.github/workflows/debug-nightly.yml

GCC Debug with AMReX_TESTING runs ctest -L "unit|smoke". The job does not install numpy, PyYAML or scipy, so the tests that need them are not registered there (Testing). It takes about five hours, so it runs nightly on main or by hand (workflow_dispatch), not on pull requests.

.github/workflows/docs.yml

Job

What it does

Build documentation

make -C docs html with warnings as errors, and uploads the HTML as a workflow artifact.

Build PDF

make -C docs latexpdf with the LaTeX packages of the deploy job below, and uploads steer.pdf as a workflow artifact. A change that stops the PDF fails the pull request.

Link check

make -C docs linkcheck. It reaches third-party sites, so a failure can come from outside this repository.

.github/workflows/static.yml

On every push to main (or by hand), the deploy job builds the documentation as above, with warnings as errors, builds the PDF (make -C docs latexpdf), copies it into the HTML as steer.pdf (linked from the front page), and publishes docs/_build/html to GitHub Pages. Only the built pages and the PDF are uploaded, not the repository. The repository’s Pages source must be GitHub Actions (Settings → Pages → Build and deployment); with Deploy from a branch, GitHub publishes the repository root instead of the Sphinx pages.

Kestrel

The hosted runners have no GPU, so the CUDA, HIP and SYCL jobs above only compile. tools/kestrel/nightly_gpu.sh runs the smoke tests on Kestrel H100s:

tools/kestrel/nightly_gpu.sh run      # inside a GPU allocation (salloc --gpus=4 --ntasks=4 --mem=240G)
tools/kestrel/nightly_gpu.sh submit   # the same as a batch job (STEER_ACCOUNT=<allocation>)
tools/kestrel/nightly_gpu.sh status   # the result of the latest run

The job clones the repository at a branch or commit into its work directory, builds it with build_kestrel.sh gpu and runs ctest -L smoke with one rank per GPU (STEER_MPIEXEC_PREFLAGS=--gpus-per-task=1;--gpu-bind=none: every rank sees every GPU and AMReX picks one per rank; with each rank confined to its own GPU, Cray MPICH’s GPU IPC fails between ranks). Before the tests it checks that every smoke run of steer carries amrex.the_arena_init_size=0 amrex.init_snan=1 amrex.fpe_trap_invalid=1. kestrel_dryrun is left out: it runs steer_refavg without srun, which Cray MPICH refuses inside an allocation, and it tests a CPU script (CI runs it). The smoke tests include the 2-D hill restart chain over terrain (rt_steady_hill2d_restart_*) and the 2-D hill with Coriolis run twice, compared at zero tolerance (rt_coriolis_repeat_*). Each run writes logs/<date>_<sha>/ (info, build.log, ctest.log, junit.xml, status: pass or fail: <step>); a clone or fetch that fails writes logs/<date>_nofetch/ with fail: fetch. One run at a time holds the work directory (flock where it exists, as on Kestrel, and --dependency=singleton for batch jobs).

Variable

Default

Effect

STEER_ACCOUNT

none

Kestrel allocation; required for submit

STEER_NIGHTLY_WORK

/scratch/$USER/steer-nightly

Work directory (clone, build, logs, job scripts)

STEER_NIGHTLY_REPO

https://github.com/erf-model/steer.git

Repository to test (also set on an existing clone)

STEER_NIGHTLY_REF

main

Branch or commit

STEER_NIGHTLY_GPUS

4

GPUs requested, 3 or 4 (the smoke tests use up to 3 ranks, except rt_nest_faces_hill_np4 and rt_nest_shapes_cube_r4_np4, which use 4)

STEER_NIGHTLY_MAIL

none

Mail address for a failed batch job

STEER_NIGHTLY_KEEP

30

Run logs kept, failed runs included

STEER_BUILD_JOBS

SLURM_CPUS_ON_NODE, else 16

Parallel build jobs

Under the solver’s old name (GUST, until December 2026) these variables were called GUST_*; the Kestrel scripts (nightly_gpu.sh, build_kestrel.sh, erf_references.sh) still read a GUST_* variable when its STEER_* one is unset. The default work directories moved from /scratch/$USER/gust-nightly and gust-refs to steer-nightly and steer-refs: set STEER_NIGHTLY_WORK or STEER_REF_WORK to keep using an existing one.

The job is started by cron on a login node (scrontab is disabled on Kestrel), not from GitHub Actions: a self-hosted runner on Kestrel would need the HPC center’s approval. The cron line starts a login shell, so that sbatch and module are defined, and the job script is a login shell too:

0 1 * * * bash -lc 'STEER_ACCOUNT=<account> /path/to/steer/tools/kestrel/nightly_gpu.sh submit'

Results are read on Kestrel (status) and are not reported to pull requests.

The longer regression tests (labels regression alone and nightly) are not run by a workflow or a Kestrel script yet. Performance tests do not exist yet.