Repository navigation
ci: fit master's push-only heavy suites to the hosted runners - #854
Merged
Merged
Conversation
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.
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.
Every master push since at least 10-24 (391b46b) has failed
package-linux / libcvc-release*and all threepackage-windowslanes, 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.EsFinetuneOnJoltReachandEsEnergyAtHeldReachOnJoltfine-tune a policy by ES on Jolt. In master 83b6020's push run (40529398170), run alone in the serial heavy pass:On Windows both timed out three times. Their one check,
best_validation >= trace[0].validation, holds by construction:es_finetune_on_plantseeds the best with the start and replaces it only with a higher score (nav_es.cpp).NavPlant.EsFinetuneOnPlantMechanicsalready checks the mechanics (iterations, validation, the energy fitness, determinism) in every build. They now run only withCVC_NAV_ES_EXPERIMENTS=1;docs/NAV_TRAINING.mdsays so.2. package-windows ran the heavy suites in parallel with everything else. Linux and macOS run the rest with
--paralleland then the heavy suites with--parallel 1, because several at once don't fit the runner (the comments in their steps). Windows ran onectest --parallelover everything. On the 4-vCPU runner the Jolt suites and the large-tree benchmarks starved the tests beside them. In 40529398170:libcvc-release-grpcfailed 25 and-grpc-static21 of the 48StateTransportGrpc*tests. A typical one istB.connect_to_peer(tA.listen_address(), 2000 ms)returning false, in 7.5 s for a test that takes well under one.cvcgl_lod_cachefailed 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*LargeTreetook 880-2071 s and failed attempts.Windows now runs the rest in parallel, then the heavy suites serially, with
CVC_DISTRIBUTED_STATE_BENCH=1only 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 signallines 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
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". WithCVC_NAV_ES_EXPERIMENTS=1,EsFinetuneOnJoltReachstarts and runs (stopped after 20 s).ci/full/package-lanes(master 072ab18 + the four), is 40615210987 (results to follow).Not in this PR
PlantLogPowerConvergence.FitsTheLedgerAndPredictsHeldOutSeedsfails 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.FindTetsContainingPointPerformanceLargeMeshon macOS is a point-location bug: geometry: fix point location in meshes over 10,000 elements #853.History
pycvc.i's copy of the constant, which ab73041 missed.