Skip to content

nav_coph_fleet_test: its own ctest TIMEOUT (900 s), for the long run on slow Debug runners - #1462

Merged
transfix merged 1 commit into
masterfrom
tfx/coph-fleet-debug-headroom
Nov 23, 2026
Merged

transfix merged 1 commit into
masterfrom
tfx/coph-fleet-debug-headroom

Conversation

@transfix

Copy link
Copy Markdown
Owner

CophFleet.TheEnergyAccountStaysAtRoundOffOverALongRun (added by #1413) times out in package-linux / libcvc-debug whenever the runner is slow. It runs the crossing until both agents reach their goals (767 and 784 ticks).

long run golden cases channel-delay test
Release ~4 s
Debug, normal runner (#1413, job 137148518817) 69.65 s ~5 s 7.2 s
Debug, slow runner (#1452, run 45049798289, job 137292269354) timed out at 300 s, three tries ~24 s 30 s

On the slow runner this executable's other cases ran 4.2–4.7 times slower, so the long run would have needed about 290–330 s. A PR's Debug ctest gives a test without a TIMEOUT of its own 300 s (ci.yml). nav isn't involved in the failing PR, so any PR can hit this.

Change. cvc_discover_tests(nav_coph_fleet_test PROPERTIES TIMEOUT 900), with a comment saying why. That is how this file already handles other slow Debug tests: 900 s for the segmentation action test (about 100 s in Debug), 1200 s for ocean_ewave and ph_convoy. 900 s is 13 times the normal Debug time and about 2.8 times what the slow runner needed. The test code is unchanged.

Options not taken:

  • Shortening the run in Debug: the test checks that both agents reach their goals with no hit and the energy residual at round-off, so a shorter run would check less.
  • A cheaper step: at /Od the learner's updates take about 60 % of the run, the actions 19 % and the exports 15 %. All of them must match GRL-SNAM's G12 golden bit for bit, so speeding them up is learner work, not a test fix.

Checked on Windows. I built the test from its sources in a Debug configuration (/Zi /Ob0 /Od /RTC1, release runtime to match the deps) in a small CMake project. That project uses this file's cvc_discover_tests wrapper and the new line verbatim.

  • Every discovered case gets TIMEOUT 900.
  • All eight cases pass under ctest --timeout 300.
  • The long run also passes under --timeout 5, so the property wins over the command line, as ci.yml needs.
  • The long run took 17.5 s there (35 s with the machine loaded).

The full tree was not built locally; this PR's own Debug lane is the full check.

…on slow Debug runners

CophFleet.TheEnergyAccountStaysAtRoundOffOverALongRun runs the crossing until both agents are
at their goals (767 and 784 ticks). It takes about 4 s in Release and 69.65 s in
package-linux / libcvc-debug on a normal runner (#1413's job 137148518817). A PR's Debug ctest
gives a test without a TIMEOUT of its own 300 s, and on #1452's run 45049798289 (job
137292269354) it timed out on all three tries. On that runner this executable's other cases ran
4.2-4.7 times slower than on #1413's (the golden cases 24 s against 5, the channel-delay test 30
against 7.2), so the long run would have needed about 290-330 s.

The executable gets TIMEOUT 900, as the segmentation action test has for a Debug time of about
100 s: 13 times the normal Debug time, about 2.8 times that slow runner's. The test is
unchanged.

Not shortened in Debug: both agents reaching their goals, with no hit and the energy residual
at round-off, is what the test checks. Not made cheaper: at /Od the learner's updates are about
60 % of the run, the actions 19 % and the exports 15 %, all held bit for bit to GRL-SNAM's G12
golden, so a cheaper step is learner work rather than a test fix.

Checked on Windows with the test built from its sources in a Debug configuration (/Od /Ob0
/RTC1) and this file's cvc_discover_tests wrapper and line: every discovered case has TIMEOUT
900, the eight pass under ctest --timeout 300, and the long run passes under --timeout 5 (the
property wins over the command line). The long run took 17.5 s there, 35 s with the machine
loaded.
@transfix
transfix enabled auto-merge (squash) November 22, 2026 22:31
@transfix
transfix merged commit ae0e9e1 into master Nov 23, 2026
31 checks passed
@transfix
transfix deleted the tfx/coph-fleet-debug-headroom branch November 23, 2026 00:29
transfix added a commit that referenced this pull request Nov 23, 2026
#1413 landed as a squash, and nav/coph-c5b took master in (f32c670). The one conflict,
src/cvc/tests/CMakeLists.txt, keeps master's TIMEOUT for nav_coph_fleet_test (#1462) and
nav/coph-c5b's for nav_coph_cars_test, and gives nav_coph_driver_test the same 900 s.

#1461's first run failed package-linux / libcvc-debug on two timeouts at the PR Debug ctest's
300 s default, on a runner about 5x slower than usual (the fleet's goldens took 25 s against 5):
CophFleet.TheEnergyAccountStaysAtRoundOffOverALongRun, which #1462 fixes, and
CophDriver.ABlockSensedLateIsNeverHit. CophDriver.TwoCarsCrossTheField passed there in 298 s.
transfix added a commit that referenced this pull request Nov 23, 2026
…-segment

volume_grid_quad.png conflicted (both sides re-rendered it); kept ours until
CI renders the merged panel.
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