Skip to content

tests: ph_convoy_test gets its own ctest timeout, as ocean_ewave_test has - #1300

Merged
transfix merged 2 commits into
masterfrom
fix/ph-convoy-debug-timeout
Nov 16, 2026
Merged

transfix merged 2 commits into
masterfrom
fix/ph-convoy-debug-timeout

Conversation

@transfix

Copy link
Copy Markdown
Owner

ph_convoy_test's tests now get a 1200 s ctest timeout, the same as ocean_ewave_test's. This is one CMake line plus a comment, and no test code changes.

Why

Two tests came with #1227, PhConvoy.TheCompositeIsTheFormationItStandsFor and PhConvoy.FollowLawsOnTheStepAndTheStop. Each takes about 95 s in a Debug build on a usual runner. A PR's Debug ctest runs with --timeout 300 (ci.yml), so any test without a TIMEOUT of its own gets 300 s, and a slow runner misses that.

That is what happened on #1288's package-linux / libcvc-debug (run 43780432462, job 133016147336):

usual runner (run 43781349506) #1288's runner
whole test phase 2338 s (39 min) 5717 s (95 min)
PhConvoy.AFlowInputOnALinkCreepsUnderTheSplitStep 3.5 s 15.3 s
PhConvoy.TheCompositeIsTheFormationItStandsFor 95.0 s timeout at 300 s, 3 tries
PhConvoy.FollowLawsOnTheStepAndTheStop 95.7 s timeout at 300 s, 3 tries

The small test ran about 4.4x slower on that runner, so the two big ones would have needed about 420 s. #1261 fixed the same problem for ocean_ewave_test with PROPERTIES TIMEOUT 1200. This PR gives ph_convoy_test the same budget, so a slow runner fails only on a real hang.

Testing

I built a small CMake project that uses this branch's lines verbatim: the cvc_discover_tests function and the two discovery lines for ph_convoy_test and its unchanged neighbour ph_compose_parity_test. I compiled both targets against googletest and ran ctest -V --timeout 300, as ci.yml does:

  • the ph_convoy_test tests: Test timeout computed to be: 1200;
  • the ph_compose_parity_test tests: Test timeout computed to be: 300.

So the property overrides ci.yml's default only for this target. I didn't build the full libcvc tree locally, so the real PhConvoy run is this PR's CI.

… has

PhConvoy.TheCompositeIsTheFormationItStandsFor and
PhConvoy.FollowLawsOnTheStepAndTheStop take ~95 s each in a Debug build on
a usual runner. A PR's Debug ctest gives a test without a TIMEOUT of its
own 300 s (ci.yml), and on a slow runner both timed out at 300 s: #1288's
run 43780432462, whose test phase took 95 min against 39 min on a usual
one. #1261 gave ocean_ewave_test TIMEOUT 1200 for the same reason; this
gives ph_convoy_test the same budget, so a slow box fails on a real hang
only. No test code changes.
@transfix
transfix enabled auto-merge (squash) November 16, 2026 06:48
#1265 added cvc_discover_tests(ph_microgrid_test) beside ph_convoy_test's
line; both stay.
@transfix
transfix merged commit 80528c1 into master Nov 16, 2026
29 checks passed
@transfix
transfix deleted the fix/ph-convoy-debug-timeout branch November 16, 2026 21:29
transfix added a commit that referenced this pull request Nov 16, 2026
One conflict, in src/cvcGL/CameraController.cpp's includes: this branch's <cassert> and #1257's
<cctype> (sliceAxisOf), both kept.
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