Repository navigation
arisrv: relay_pair starts its client once the relay serves its room (debug-grpc's arisrv_world_regenerate) - #1567
Merged
Conversation
package-linux / libcvc-debug-grpc has failed arisrv_world_regenerate 3/3 on every master run since the test first ran there (#1537): the client's load gives up after its 10 s join with "admitted no room 'ctest' in time". The relay listens before it loads its --doc, and its room steps (and is sent to clients) only after. world_regen_server.ari's generated world makes its dataset at load: timed in a local Debug build, 5.8 s of load are the world 1.25 s (the roads' grade stage 0.85 s), painting the bundle's 2048x2048 ground.png 3.3 s, encoding it as a PNG 1.2 s, and the GLB 0.07 s. Debug with coverage on CI, under ctest --parallel, takes it past 10 s. arisrv now prints "serving room '<room>'" just before its loop, and relay_pair.py starts the client once it reads that line (or the relay has stopped), within 90 s. Under a job object capping the test at half a core (the relay's load then takes 21 s), the old relay_pair fails exactly as CI does, and the new one passes: the client's 4 tests in 17.4 s, the pair in 40.6 s, inside the test's 120 s.
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.
Fixes the red
package-linux / libcvc-debug-grpcjob on master. It fails only onarisrv_world_regenerate, 3/3 on every master run since the test first ran in that job (#1537). For example, run 45789454487, job 139873382279:What the relay spends the time on
arisrv listens before it loads its
--doc. Its room steps only after the load, and only then is the room sent to clients. A client that joins earlier waits for the room for 10 s (relay_session::join). The relay's log stops atrules:because the next thing it does is load the server document.I timed
world_regen_server.ari's load in a local Debug gRPC build (MSVC /Od, probes not committed). Of 5.8 s:generate_world), mostly the roads'gradestage (0.85 s)ground.png(paint_surface)ground_png)city_bundle_bytes)The world's rules are negligible. Release loads the same document in about 1.3 s. CI's Debug lane also has coverage and runs ctest
--parallel, which takes the load past 10 s.The fix
[arisrv] serving room '<room>': it steps from nowjust before its loop (arisrvx too: samemain.cpp).relay_pair.pystarts the client once it reads that line, or once the relay has stopped, so a relay that fails its load still meets its client as before. It waits at most 90 s, inside these tests' 120 s TIMEOUT.The test's world and the join wait are unchanged. Nothing is skipped in Debug.
Verified
PRs don't run the debug-grpc lane, so I checked locally with a Debug gRPC build (
CVC_ENABLE_GRPC,CVC_ENABLE_WS, assimp on, as CI has them):arisrv_*ctests pass, including the 7 that userelay_pair.py.arisrv_world_regeneratepasses in about 11 s. It passed uncapped before this change too, because the local load (about 5.5 s) fits the 10 s join.relay_pair.pyfails exactly as CI does: client FAIL at 10.65 s, "admitted no room 'ctest' in time".Not run locally: the
arisrvx_*andariglrelay pairs (this build has no Python embedding).pycvc-linuxruns them on this PR.Not in this PR
paint_surfacecheaper, would cut every generated world's load and regenerate.world_ground_sizeis shared with cvcGL's renderer and its tests, so that change belongs in its own PR.CVC_ENABLE_GRPCand withoutCVC_ENABLE_WSdoesn't compilearisrv:reapticksis declared under#if CVC_ENABLE_WS(main.cpp:1516) but used unconditionally (main.cpp:2380).