Skip to content

ci: fit master's push-only heavy suites to the hosted runners - #854

Merged
transfix merged 4 commits into
masterfrom
ci/heavy-suites-fit-runners
Oct 28, 2026
Merged

transfix merged 4 commits into
masterfrom
ci/heavy-suites-fit-runners

Conversation

@transfix

@transfix transfix commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Every master push since at least 10-24 (391b46b) has failed package-linux / libcvc-release* and all three package-windows lanes, and held their runners for 4-6 hours. PR runs pass those lanes, because they skip the heavy suites (STRESS_REGEX: Stress, Convergence, Benchmark, Performance, ...). This PR fixes the two causes in how the heavy suites run on push.

Root causes

1. Two ES experiments that don't fit a CI lane. NavPlantConvergence.EsFinetuneOnJoltReach and EsEnergyAtHeldReachOnJolt fine-tune a policy by ES on Jolt. In master 83b6020's push run (40529398170), run alone in the serial heavy pass:

package-linux / libcvc-release package-macos / libcvc-release-grpc
EsFinetuneOnJoltReach > 3600 s: timed out 3 times (3 h) 3004 s
EsEnergyAtHeldReachOnJolt 2390 s 1823 s

On Windows both timed out three times. Their one check, best_validation >= trace[0].validation, holds by construction: es_finetune_on_plant seeds the best with the start and replaces it only with a higher score (nav_es.cpp). NavPlant.EsFinetuneOnPlantMechanics already checks the mechanics (iterations, validation, the energy fitness, determinism) in every build. They now run only with CVC_NAV_ES_EXPERIMENTS=1; docs/NAV_TRAINING.md says so.

2. package-windows ran the heavy suites in parallel with everything else. Linux and macOS run the rest with --parallel and then the heavy suites with --parallel 1, because several at once don't fit the runner (the comments in their steps). Windows ran one ctest --parallel over everything. On the 4-vCPU runner the Jolt suites and the large-tree benchmarks starved the tests beside them. In 40529398170:

  • libcvc-release-grpc failed 25 and -grpc-static 21 of the 48 StateTransportGrpc* tests. A typical one is tB.connect_to_peer(tA.listen_address(), 2000 ms) returning false, in 7.5 s for a test that takes well under one.
  • Six RoomRelay/StreamBridge loopback tests failed per gRPC lane.
  • cvcgl_lod_cache failed its threaded-teardown bound on all 3 attempts (destroyed with 8 builds queued in 906 ms, where one build took 120 ms). On this box, unloaded: 48-52 ms against 58-70 ms.
  • StateLinkBenchmark.Resolve*LargeTree took 880-2071 s and failed attempts.
  • Windows PR runs, which skip the heavy suites, pass all of these (e.g. 40484146445 and 40494020761: all three Windows lanes green).

Windows now runs the rest in parallel, then the heavy suites serially, with CVC_DISTRIBUTED_STATE_BENCH=1 only for the heavy pass as on Linux. Both passes run even if the first fails, and the step fails if either did.

Not a cause: the ##[error]The runner has received a shutdown signal lines in the package-linux logs are the Linux step's own comments, echoed with its script. The Linux lanes ran to completion and failed tests.

Also

ci/full/** is added to the push branches, so a branch pushed there gets the push run, heavy suites included. That is how this PR's evidence below was produced before merging. Nothing else runs on such a push (the other workflows' push triggers are master or tags).

Evidence

  • Local (Windows, MSVC 14.44 Release): nav_plant_test --gtest_filter=NavPlantConvergence.Es*:NavPlant.EsFinetuneOnPlantMechanics. The mechanics test passes, and both experiments skip with "set CVC_NAV_ES_EXPERIMENTS=1 to run it". With CVC_NAV_ES_EXPERIMENTS=1, EsFinetuneOnJoltReach starts and runs (stopped after 20 s).
  • CI: a PR run can't show this, because it skips the heavy suites. The push run of this PR and the other three fixes together, on ci/full/package-lanes (master 072ab18 + the four), is 40615210987 (results to follow).

Not in this PR

  • PlantLogPowerConvergence.FitsTheLedgerAndPredictsHeldOutSeeds fails on package-linux only, deterministically: the RoboRacer's held-out tick r² is 0.598 against > 0.8 (0.91 on Windows when it was written; macOS passes). That needs Linux per-run data; it is a separate PR.
  • AlgorithmTest.FindTetsContainingPointPerformanceLargeMesh on macOS is a point-location bug: geometry: fix point location in meshes over 10,000 elements #853.

History

Two things kept every master push red on package-linux release and
package-windows, and held their runners for 4-6 hours:

- package-windows ran the heavy suites (STRESS_REGEX) in parallel with
  everything else, where Linux and macOS run them serially after the rest.
  On the 4-vCPU runner the Jolt convergence suites and the large-tree
  benchmarks starved the tests beside them. Master 83b6020 failed 21-25 of
  the 48 StateTransportGrpc tests per gRPC lane (connect_to_peer missed its
  2 s deadline), RoomRelay and StreamBridge loopbacks, and cvcgl_lod_cache's
  threaded teardown (906 ms against one 120 ms build; 48 ms against 60-70 ms
  on an idle box). Windows PR runs, which skip the heavy suites, pass all of
  them. Windows now runs the rest in parallel and then the heavy suites
  serially, and reports both passes.

- NavPlantConvergence.EsFinetuneOnJoltReach and EsEnergyAtHeldReachOnJolt
  are ES experiments. Run alone they took over 3600 s and 2390 s on
  package-linux, and 3004 s and 1823 s on package-macos. The first timed out
  three times on every Linux push (3 h), and both timed out on Windows. Their
  one check, best >= start, holds by construction: es_finetune_on_plant
  seeds the best with the start. NavPlant.EsFinetuneOnPlantMechanics covers
  the mechanics in every build. They now run only with
  CVC_NAV_ES_EXPERIMENTS=1.

A branch pushed to ci/full/** now gets the push run, heavy suites included,
so a change to them can be proved before it merges.
…er steps

AsyncCalls.StepCostSetsTheDefaultRate has failed on optimized builds since #843 (072ab18). It
requires kDefaultAsyncStepsPerCpuMs to stay within a factor of four of what a scheduler step costs.
#843 made steps 2.5 to 4 times cheaper, and the default stayed at P3's 2000:
- package-macos / libcvc-release-grpc (run 40616573869): 8,253 to 10,711 steps per CPU ms; failed
  3/3, 2000 against lowest / 4 = 2063 to 2369.
- package-windows / libcvc-release and -release-grpc: 8,387 to 9,340; failed once, then passed on a
  retry.
- Locally (MSVC 14.44 Release, a loaded 22-thread box): 4,962 to 9,566.

The default is now 5000, about the slowest of these. That is within a factor of four of every
measurement, with room both ways. An async call's CPU time is now charged 2.5 times the steps it
was, which is what that CPU buys in DSL steps since #843. Ariadne's default 5000-step action cap is
now 1 ms of a kernel's CPU, not 2.5 ms.

The async-calls tests whose bounds assumed 2000 (AS-18/26, AS-21 and AS-27, and the Python AS-21)
now state them in terms of kDefaultAsyncStepsPerCpuMs. The docs give the new default and its
measurements.
@transfix transfix changed the title ci: fit master's push-only heavy suites to the hosted runners ci: fit master's push-only heavy suites to the hosted runners; re-measure the async step rate Oct 28, 2026
…s cheaper steps"

This reverts commit ab73041. #861 carries the step-rate fix. It also updates pycvc.i's own
declaration of kDefaultAsyncStepsPerCpuMs, which ab73041 missed, so Python would have computed
charges at 2000 while the library charged 5000.
@transfix transfix changed the title ci: fit master's push-only heavy suites to the hosted runners; re-measure the async step rate ci: fit master's push-only heavy suites to the hosted runners Oct 28, 2026
@transfix
transfix merged commit 4cb6166 into master Oct 28, 2026
23 of 25 checks passed
@transfix
transfix deleted the ci/heavy-suites-fit-runners branch October 29, 2026 20:51
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