Repository navigation
nav_coph_fleet_test: its own ctest TIMEOUT (900 s), for the long run on slow Debug runners - #1462
Merged
Merged
Conversation
…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
enabled auto-merge (squash)
November 22, 2026 22:31
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).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:
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_testswrapper and the new line verbatim.ctest --timeout 300.--timeout 5, so the property wins over the command line, as ci.yml needs.The full tree was not built locally; this PR's own Debug lane is the full check.