Skip to content

fix(ci): run the heavy suites serially on push instead of dropping them - #195

Merged
transfix merged 1 commit into
masterfrom
fix/serialize-heavy-suites
Aug 18, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/serialize-heavy-suites

Conversation

@transfix

Copy link
Copy Markdown
Owner

Follow-up to #190, which fixed the wrong axis.

#190 excluded the heavy suites from Debug pushes because they were killing
the hosted runner. Master then went red on package-linux / libcvc-release
with the identical failure, at test ~1510/2257:

1510/2257 Test #1513: SchedulerTest.MaxStepsLimitError ... Passed 0.01 sec
##[error]Process completed with exit code 143
##[error]The runner has received a shutdown signal.

Build config was never the variable — concurrency is

These suites allocate large trees and meshes. Plain --parallel starts one
ctest job per core, and several of them at once exceed the 16 GB on
ubuntu-latest. Debug simply made each allocation bigger, so Debug hit the
ceiling first and made config look like the culprit.

They all pass individually — which is exactly why a run gets ~1500 tests deep
before dying, and why the runner reports a shutdown instead of any test failing.

Change

A push now runs two ctest invocations instead of one:

  1. everything except the heavy suites, --parallel — unchanged behaviour
  2. only the heavy suites, --parallel 1 — one heavy allocation live at a time

This restores the coverage #190 dropped from Debug pushes, rather than
extending the exclusion to Release as well. PRs are untouched and still skip the
set entirely.

event config before this PR after
push Release full set, all parallel → killed light parallel + heavy serial
push Debug heavy set skipped light parallel + heavy serial
pull_request any heavy set skipped unchanged

Verification

  • Both patched blocks pass bash -n with the GitHub expressions substituted.
  • The -E/-R split partitions cleanly — StateLinkBenchmark.* and
    AlgorithmTest.*Performance* go serial; StateExecParserTest.* and
    SchedulerTest.* stay parallel.

#190 excluded the heavy suites from Debug pushes because they killed the
hosted runner. That was the wrong axis. Release then died the same way, at
test ~1510/2257:

    ##[error]Process completed with exit code 143
    ##[error]The runner has received a shutdown signal.

Build config was never the variable -- CONCURRENCY is. These suites allocate
large trees and meshes, plain --parallel starts one ctest job per core, and
several of them at once exceed the 16 GB on ubuntu-latest. Debug just made
each allocation bigger, so Debug hit the ceiling a bit earlier. They all pass
individually, which is why a run gets ~1500 tests deep before dying, and why
the runner reports a shutdown rather than any test failing.

A push now runs two ctest invocations:

  1. everything EXCEPT the heavy suites, --parallel  (unchanged behaviour)
  2. only the heavy suites, --parallel 1             (one allocation at a time)

That restores the coverage #190 dropped from Debug pushes rather than
extending the exclusion to Release. PRs are untouched and still skip the set
entirely.

Verified: both blocks pass `bash -n` with the GH expressions substituted, and
the -E/-R split partitions correctly -- StateLinkBenchmark.* and
AlgorithmTest.*Performance* go serial, StateExecParserTest.* and
SchedulerTest.* stay parallel.
@transfix
transfix merged commit d5a3d5d into master Aug 18, 2026
18 of 19 checks passed
@transfix
transfix deleted the fix/serialize-heavy-suites branch August 18, 2026 20:00
transfix added a commit that referenced this pull request Aug 18, 2026
#195 patched two ctest sites with a line-based script that assumed both had
the same five-line body. The macOS site is written more compactly, so the
patch consumed the `else` line and the first line of its ctest call, and left
the remainder dangling:

                  -R "${STRESS_REGEX}"
                  --output-on-failure --parallel --repeat until-pass:3 ... \
                  -E "${STRESS_REGEX}"
          fi

Two consequences, and the quiet one is worse:

  * On push, the shell reached the orphaned line and tried to run it:
        .../5b22a0c1.sh: line 33: --output-on-failure: command not found
        ##[error]Process completed with exit code 127
    which is how package-macos / libcvc-release failed.

  * On pull_request the `else` branch no longer existed, so the condition was
    false and NOTHING ran. macOS PR jobs would have reported success having
    executed zero tests.

The else branch is restored, so both sites are now identical in behaviour.

Verified by evaluating each block with the GitHub expressions substituted and
ctest stubbed, counting invocations per path:

    push/Release      2   (light --parallel, then heavy --parallel 1)
    push/Debug        1   (light only; heavy excluded)
    pull_request/*    1   (light only)

for BOTH blocks. No path runs zero -- which is the check that would have
caught this, and the one #195 did not make. `bash -n` alone passed on the
broken file, because dangling arguments are valid syntax.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant