From 9c2a30923bd0d1e26c1f6b4b2bd94067b951db1f Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Tue, 17 Nov 2026 23:53:26 +0900 Subject: [PATCH] ci: pull-request Debug tier also skips the tests over 200 CPU-s at -O0 #181 took the slow-labelled tests out of the pull-request Debug tier, but its own run still held the Debug jobs for about 1 h 45 min: the remaining 414 tests cost 18,700 CPU-s at -O0 on the Windows runner, and 27 of them (the VIV deck gates, the coupled and threaded C API runs, the azimuth and graded-mesh statics, among others) take 200-1030 CPU-s each, about two thirds of the total. CMakeLists.txt gives those 27 tests the label debug_long (only where the test exists in the build), and a pull request's Debug tier runs ctest -LE 'slow|debug_long': 387 of 432 tests, about 25 minutes of tests at four at once. The skipped tests still run on every pull request in Release on both platforms and on the Prescott kernel, and the full suite runs at -O0 on every push to dev and main. Signed-off-by: Jae Hoon Seo --- .github/workflows/fortran.yml | 9 +++++---- CMakeLists.txt | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fortran.yml b/.github/workflows/fortran.yml index 57c40c7..15d9637 100644 --- a/.github/workflows/fortran.yml +++ b/.github/workflows/fortran.yml @@ -87,9 +87,10 @@ jobs: # 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 + # mooring and statics campaigns) or debug_long (tests over about 200 CPU-s at -O0, listed in + # CMakeLists.txt): the -O0 faults this tier exists for live in code the remaining tests + # reach, and the skipped 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" @@ -97,7 +98,7 @@ jobs: 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 + ctest --test-dir build --output-on-failure --parallel 4 -LE 'slow|debug_long' else ctest --test-dir build --output-on-failure --parallel 4 fi diff --git a/CMakeLists.txt b/CMakeLists.txt index 14e6a0f..fff0998 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3791,3 +3791,41 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") endif() endforeach() endif() + +# Tests over about 200 CPU-s at -O0 on the Windows Debug runner (the CI run of #181). A pull +# request's Debug tier skips them with the slow tests (fortran.yml); Release runs them on every +# pull request and the Debug tier on every push to dev and main. +set(CABLEDYN_DEBUG_LONG_TESTS + viv_coupled + viv_inline_deck + viv_frame_deck + viv_wake_deck + python_package + graded_mesh_statics + viv_riser + viv_step_order + coupled_cable_tolerance + static_current_balance + bending_damping_deck + viv_amplitude_deck + hermite_static_azimuth + ei0_slack_dynamics + arclength_rigid_end + viv_lockin + viv_diameter_deck + torsion_current_start + body_rod_physics + c_api_threads_exit + load_power_deck + driver_axial_damping_ratio + example_lazy_wave_vessel_rao + torsion_orcaflex + monolithic_gates + driver_graded_cross_current + attachment_polish_floor +) +foreach(_t IN LISTS CABLEDYN_DEBUG_LONG_TESTS) + if(TEST ${_t}) + set_property(TEST ${_t} APPEND PROPERTY LABELS debug_long) + endif() +endforeach()