Skip to content

arisrv: builds and tests without CVC_ENABLE_WS (reapticks; ws pairs only with WS) - #1570

Merged
transfix merged 3 commits into
masterfrom
fix/arisrv-reapticks-without-ws
Nov 27, 2026
Merged

transfix merged 3 commits into
masterfrom
fix/arisrv-reapticks-without-ws

Conversation

@transfix

@transfix transfix commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

arisrv and its tests now work in a build with CVC_ENABLE_GRPC on and CVC_ENABLE_WS off. No CI lane builds WS off, so neither problem showed up. Found while fixing debug-grpc's arisrv_world_regenerate (#1567).

1. arisrv compiles without WS (src/arisrv/main.cpp)

src/arisrv/main.cpp(2380): error C2065: 'reapticks': undeclared identifier

reapticks is 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.py tests 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_ws
  • arisrvx_auth_user_ws
  • arisrvx_read_scope_ws
  • arisrvx_room_call_ws_arix
  • arisrvx_room_call_arigl_ws
  • arisrvx_bridge_arigl_ws

They 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)

  • Debug, gRPC on, WS off: arisrv and ari compile and link; before part 1, main.cpp stopped at the error above. All 19 arisrv_* ctests pass; before part 2, arisrv_identity_ws failed there.
  • Debug, WS on: arisrv_identity_grpc, arisrv_identity_ws, arisrv_rcon and arisrv_world_regenerate pass.
  • Configure only, with arisrvx, arix, ariglx and arigl: ctest -N differs between WS on and WS off by exactly the six tests above, plus the existing state_transport_ws_test_NOT_BUILT placeholder. arisrv_identity_grpc, arisrvx_read_scope, arisrvx_auth_staff, arisrvx_room_call_grpc, arisrvx_room_call_arigl_grpc and arisrvx_bridge_arigl_grpc are 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-linux runs them.

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
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.
@transfix transfix changed the title arisrv: builds without CVC_ENABLE_WS again (reapticks in every build) arisrv: builds and tests without CVC_ENABLE_WS (reapticks; ws pairs only with WS) Nov 26, 2026
@transfix
transfix merged commit 84c6d24 into master Nov 27, 2026
30 checks passed
@transfix
transfix deleted the fix/arisrv-reapticks-without-ws branch November 27, 2026 10:11
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