Skip to content

arisrv: run the identity and rcon tests in CI (they were never defined there) - #1537

Merged
transfix merged 1 commit into
masterfrom
ci/arisrv-identity-tests
Nov 25, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/arisrv-identity-tests

Conversation

@transfix

Copy link
Copy Markdown
Owner

arisrv's client identity tests have never run in CI. That covers ID1–ID4: arisrv_rcon, arisrv_client_limits, the guest password tests, and GB5's arisrv_world_regenerate from #1527.

Why

The block in src/arisrv/CMakeLists.txt is guarded by if(TARGET ari AND Python3_EXECUTABLE), because tests/relay_pair.py runs the relay and the client. Only pycvc and arisrvx call find_package(Python3 ...). The one CI job that builds arisrv, package-linux / libcvc-release-grpc, builds ari (its ari_server_* tests run) but neither pycvc nor arisrvx. So Python3_EXECUTABLE was empty and none of these tests existed: no failure, no skip, nothing in the log.

Fix

When ari is built and no interpreter is known yet, look one up with find_package(Python3 QUIET COMPONENTS Interpreter). If none is found, say so in a configure message, so the tests can't silently vanish again.

Watch for

This is the first CI run of these tests, so any of them may fail on something that's been broken all along. I'll fix what turns up here. I couldn't run them locally, because this machine's build has no gRPC and so no arisrv.

…ob runs them

The client identity block (arisrv_whoami..., arisrv_rcon, arisrv_client_limits,
arisrv_world_regenerate) needs TARGET ari AND Python3_EXECUTABLE. Only pycvc and
arisrvx look Python up, so package-linux / libcvc-release-grpc, which builds ari
and arisrv but neither of those, never defined these tests. Look up an
interpreter there, and say so when none is found.
@transfix
transfix merged commit db642b6 into master Nov 25, 2026
30 checks passed
@transfix
transfix deleted the ci/arisrv-identity-tests branch November 25, 2026 16:46
transfix added a commit that referenced this pull request Nov 27, 2026
…1567)

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.
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