Repository navigation
arisrv: builds and tests without CVC_ENABLE_WS (reapticks; ws pairs only with WS) - #1570
Merged
Merged
Conversation
reapticks, the relay loop's cadence for reaping silent connections, was
declared only under #if CVC_ENABLE_WS, but the loop uses it in every build:
for the gRPC reap (state_tp.reap_idle) as well as the WS one. A build with
gRPC on and WS off stopped compiling arisrv at main.cpp ("reapticks:
undeclared identifier"). CI always builds WS on, so nothing caught it.
transfix
enabled auto-merge (squash)
November 26, 2026 22:44
Six relay_pair tests dial the relay's WebSocket, and were defined whether or
not the build has one: arisrv_identity_ws, arisrvx_auth_user_ws,
arisrvx_read_scope_ws, arisrvx_room_call_ws_arix, arisrvx_room_call_arigl_ws
and arisrvx_bridge_arigl_ws. A WS-off build failed them ("relay_pair: the
relay never listened"). They are now defined only with CVC_ENABLE_WS; their
gRPC twins stay.
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.
arisrvand its tests now work in a build withCVC_ENABLE_GRPCon andCVC_ENABLE_WSoff. No CI lane builds WS off, so neither problem showed up. Found while fixing debug-grpc'sarisrv_world_regenerate(#1567).1. arisrv compiles without WS (
src/arisrv/main.cpp)reapticksis the relay loop's cadence for reaping silent connections. It was declared only under#if CVC_ENABLE_WS, but the loop uses it in every build: for the gRPC reap (state_tp.reap_idle) as well as the WS one. It is now declared unconditionally.2. The WebSocket relay pairs exist only with WS (
src/arisrv/CMakeLists.txt,src/arigl/CMakeLists.txt)Six
relay_pair.pytests dial the relay's WebSocket and were defined whether or not the build has one. A WS-off build failed them with "relay_pair: the relay never listened":arisrv_identity_wsarisrvx_auth_user_wsarisrvx_read_scope_wsarisrvx_room_call_ws_arixarisrvx_room_call_arigl_wsarisrvx_bridge_arigl_wsThey are now defined only with
CVC_ENABLE_WS. Their gRPC twins stay. The tests are in-tree only, so the option is read directly.Verified locally (Windows)
arisrvandaricompile and link; before part 1,main.cppstopped at the error above. All 19arisrv_*ctests pass; before part 2,arisrv_identity_wsfailed there.arisrv_identity_grpc,arisrv_identity_ws,arisrv_rconandarisrv_world_regeneratepass.ctest -Ndiffers between WS on and WS off by exactly the six tests above, plus the existingstate_transport_ws_test_NOT_BUILTplaceholder.arisrv_identity_grpc,arisrvx_read_scope,arisrvx_auth_staff,arisrvx_room_call_grpc,arisrvx_room_call_arigl_grpcandarisrvx_bridge_arigl_grpcare still defined with WS off. I didn't build or run the arisrvx/arigl pairs. With WS on (every CI lane), the test list is unchanged;pycvc-linuxruns them.