From 997b2f4b1a7db4c4d793456117246cdcea9d3b97 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Tue, 17 Nov 2026 21:54:31 +0900 Subject: [PATCH] ci: pull requests run the Debug tier without the slow-labelled tests The two Debug (-O0) jobs held every pull request for about 2 h 10 min against 30-50 min for the rest of CI. Their purpose is the -O0 fault class (an absent OPTIONAL reached through a non-short-circuited .AND./.OR.), which lives in code the fast tests already reach; most of their time went to the 18 tests labelled slow (the long lazy-wave, mooring and statics campaigns, about 6500 of 21900 CPU-s on the Windows Debug job). A pull request now runs the Debug tier with -LE slow (an estimated 64 min at four tests at once, in step with the Release jobs). The slow tests still run on every pull request in Release on both platforms and on the Prescott kernel, and every push to dev and main runs the full suite at -O0, so each merge stays hardened without holding the PR. Signed-off-by: Jae Hoon Seo --- .github/workflows/fortran.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fortran.yml b/.github/workflows/fortran.yml index 40e46d0f..57c40c79 100644 --- a/.github/workflows/fortran.yml +++ b/.github/workflows/fortran.yml @@ -85,10 +85,22 @@ jobs: # at once, so each runs single-threaded: OpenMP and OpenBLAS would otherwise start a # thread per core in every test and oversubscribe the runner. Tests that check # threading set their own thread counts. + # + # A pull request runs the Debug tier without the tests labelled slow (the long lazy-wave, + # mooring and statics campaigns, about 6500 CPU-s of a 21900 CPU-s Debug suite): the -O0 + # faults this tier exists for live in code the remaining tests reach, and the slow tests + # still run in Release on both platforms and on the Prescott kernel. Every push to dev + # and main runs the full suite at -O0, so each merge is hardened without holding the PR. env: OMP_NUM_THREADS: "1" OPENBLAS_NUM_THREADS: "1" - run: ctest --test-dir build --output-on-failure --parallel 4 + FAST_DEBUG: ${{ matrix.build_type == 'Debug' && github.event_name == 'pull_request' }} + run: | + if [ "$FAST_DEBUG" = "true" ]; then + ctest --test-dir build --output-on-failure --parallel 4 -LE slow + else + ctest --test-dir build --output-on-failure --parallel 4 + fi # Round-off fragility: a result that depends on the BLAS kernel fails here although every # job above, on the runner's own kernel, passes. Prescott, an SSE3 kernel of the conda-forge