Skip to content

arisrv as its own cvcpkg package, published by the v* tag - #1016

Merged
transfix merged 5 commits into
masterfrom
feat/arisrv-cvcpkg-recipe
Nov 4, 2026
Merged

transfix merged 5 commits into
masterfrom
feat/arisrv-cvcpkg-recipe

Conversation

@transfix

@transfix transfix commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Why

ari and arigl are cvcpkg packages, but arisrv (the headless Ariadne conference relay) isn't. Anyone hosting a room has to build it from a libcvc checkout. The Ariadne conference deploy does exactly that today: it configures a whole libcvc tree on its build host and builds arisrv's target out of it. After this PR, a v* tag publishes arisrv, and hosting a room becomes cvcpkg install arisrv.

What

cvcpkg/recipes/arisrv (new)

The recipe follows ari's:

  • build.sh and build.ps1 build src/arisrv standalone against the installed libcvc SDK (find_package(cvc CONFIG)) and install only bin/arisrv (bin/arisrv.exe on Windows).

  • depends lists libcvc alone, for both build and runtime. The relay's parts all come from libcvc:

    • the gRPC and WebSocket transports (CVC_ENABLE_GRPC, CVC_ENABLE_WS);
    • the Jolt avatar holon (CVC_WITH_JOLT);
    • the libjpeg-turbo video rungs.

    Those parts' libraries (grpc, protobuf, joltphysics, libjpeg-turbo, ...) are already libcvc's runtime deps, so they come in through libcvc's closure. No cvcGL, VTK or GL is involved.

  • Platforms: linux, macos and windows, the same three where libcvc builds the transports.

  • upstream_version is 3.7.9 (master's project() version since chore: bump libcvc to 3.7.9 #1015), and cvc_revision is 1.

src/arisrv/CMakeLists.txt (standalone mode only)

  • Uses C++20, as src/ari's standalone mode does. libcvc requires 20; the old setting was 17.
  • Stops the configure when the SDK has neither transport. Every libcvc published through 3.7.8 was built without them (Publish the full libcvc: gRPC and WebSocket transports on every platform #943), and an arisrv built on one of those would have no way for a client to join. The check reads cvc::cvc's exported INTERFACE_COMPILE_DEFINITIONS, where both transports are PUBLIC definitions.
  • When the configure passes, it prints arisrv: the libcvc SDK carries the gRPC and WebSocket transports.
  • In-tree builds are unchanged.

publish-cvcpkg.yml

These changes follow how #952 wired in arigl:

  • compute-revisions emits arisrv, giving one revision per release.

  • New steps build, pack and publish arisrv: [Linux] (x86_64 and the experimental arm64 lane), [macOS] and [Windows].

    • Each runs the recipe's own script against the libcvc the same job just built, like ari's steps.
    • Each runs only where ari's runs: release config, the pyver-311 job.
  • Before packing, each binary must open a room on loopback (--state-listen 127.0.0.1:18700 --media-listen 127.0.0.1:18701 --ws-listen 127.0.0.1:18702). Its log must show all of these:

    • relay up with the gRPC listener on :18700;
    • websocket (browser) clients: ws=…:18702;
    • chat: room;
    • avatar physics: Jolt rigid bodies;
    • transcode libjpeg-turbo.

    Jolt and libjpeg-turbo are PRIVATE to cvc, so the running binary is the only thing that can show them. Without them, the relay would still build and pack, just without those features.

  • On Linux (timeout --preserve-status -s TERM) and macOS (SIGTERM by pid, with a SIGKILL watchdog), the relay must also exit 0 on SIGTERM, which is what a service manager sends.

    • On Windows a background process can't be sent a Ctrl+C, so the step stops it by its own pid after the log checks pass.
  • A dry run packs arisrv and stops there, like ari's steps: it uploads nothing to GitHub, since artifact storage is billed.

  • The header comment's package list and platform coverage now include arisrv.

Linux jobs on the glibc floor (ci.yml, ci-recipe.yml, release.yml)

While this PR was open, ubuntu-latest became the ubuntu-26.04 image with gcc 15.2. The jobs on it then failed on std::sort used without <algorithm> in state_compression_registry_test.cpp. No published bundle is built with that toolchain: publish-cvcpkg.yml pins its Linux targets to ubuntu-22.04 (glibc 2.35, gcc 11.4). An artifact built on a newer image carries GLIBC_2.x symbol versions that an older system can't load.

These jobs now run on ubuntu-22.04 too:

  • ci.yml: package-linux and pycvc-linux;
  • ci-recipe.yml: the two Linux lanes, which renames their checks from recipe / ubuntu-latest / … to recipe / ubuntu-22.04 / … (only llm-gate is required);
  • release.yml: linux, which builds the SDK archives attached to a release, and the two Linux sdk-smoke lanes.

Jobs that compile nothing stay on ubuntu-latest: orchestration, llm-gate, and the release-creation job. So do the wasm builds, whose output links no glibc.

docs/ARIADNE.md

One paragraph under the §9 hosts table: each host is its own package, and cvcpkg install arisrv installs a room's server.

Checks

  • The configure guard, locally (Windows, MSVC 14.44). I configured src/arisrv standalone against two installed SDKs:

    • against a cvcpkg-installed libcvc without the transports, it stops with arisrv: the libcvc SDK in …/lib/cmake/cvc was built without CVC_ENABLE_GRPC and CVC_ENABLE_WS …;
    • against one with both, it prints arisrv: the libcvc SDK carries the gRPC and WebSocket transports.
  • Publish dry run with gh workflow run publish-cvcpkg.yml --ref feat/arisrv-cvcpkg-recipe -f dry_run=true: run 41743836532, on 40d3206. That commit predates the 3.7.9 merge, so the packs say 3.7.8. compute-revisions gave arisrv -> +cvc.1. Every arisrv target built, passed the checks below, and packed. That run also uploaded each pack as an artifact, for the local check below; a later commit on this branch removed that upload, so the steps now differ from the run only in not uploading.

    Platform Archive (packed, not published) Checks
    linux x86_64 arisrv-3.7.8+cvc.1-linux-x86_64-release-shared.tar.gz (67 KB) configure: the libcvc SDK carries the gRPC and WebSocket transports; the 5 log lines; exit 0 on SIGTERM
    linux arm64 (experimental lane) arisrv-3.7.8+cvc.1-linux-arm64-release-shared.tar.gz (67 KB) same as x86_64
    windows x86_64 arisrv-3.7.8+cvc.1-windows-x86_64-release-shared.zip (54 KB) configure line; the 5 log lines (stopped by pid)
    macOS arm64 arisrv-3.7.8+cvc.1-macos-arm64-release-shared.tar.gz (45 KB) same as Linux
    macOS x86_64 (experimental lane) arisrv-3.7.8+cvc.1-macos-x86_64-release-shared.tar.gz (45 KB) same as Linux

    Every job in the run passed: all five release lanes, the 312/313 columns and all four debug jobs. The arisrv steps' log on each platform:

    [arisrv] relay up | room='smoke' node='server' | state=127.0.0.1:18700 | media=127.0.0.1:18701
    [arisrv] websocket (browser) clients: ws=127.0.0.1:18702 (bridged to the gRPC room)
    [arisrv] chat: room and direct messages | history in memory: 5000 room messages, 1000 per conversation
    [arisrv] video per viewer: adapted to each link | best full | floor thumb | budget none | transcode libjpeg-turbo
    [arisrv] avatar physics: Jolt rigid bodies
    [arisrv] shutting down (relayed 0 stream(s), 0 frames forwarded)      <- Linux and macOS, on SIGTERM
    
  • The packaged files, installed and run locally. I took that run's artifacts, each holding an arisrv archive and the libcvc-3.7.8+cvc.3 archive from the same job. The prefixes were fresh, built with cvcpkg install libcvc --platform <p> --config release --link shared, which gives libcvc's catalog closure: 46 components on Linux, 47 on Windows. I extracted both archives over each prefix, then ran arisrv --room smoke --state-listen 127.0.0.1:18700 --media-listen 127.0.0.1:18701 --ws-listen 127.0.0.1:18702 under timeout.

    • linux x86_64, in WSL Ubuntu 22.04 (glibc 2.35, the runners' floor):
      • RUNPATH is $ORIGIN/../lib;
      • ldd with LD_LIBRARY_PATH empty finds every library in the prefix (libcvc.so.3, libgrpc++.so.1.68, libJolt.so, libturbojpeg.so.0);
      • all five lines are logged;
      • timeout --preserve-status -s TERM 8 returns arisrv's own exit status, 0.
    • windows x86_64, natively, with PATH cut down to the system directories so every DLL comes from the prefix's bin/: all five lines are logged, and timeout 10 stopped it while it was serving.
    • The pack holds bin/arisrv (or bin/arisrv.exe) and its manifest, nothing else. The manifest's only required dependency is libcvc.

Interaction with the 3.7.9 bump (#1015)

#1015 merged first. Master is merged into this branch (e425b71), and the arisrv recipe is at 3.7.9 like the rest of the family (4d7f3cd). The dry run above ran on the commit before that, which is why its packs say 3.7.8.

v3.7.9 was then tagged at a17ca3f, before this PR, so 3.7.9 ships without arisrv. arisrv first publishes with the next v* tag. The version bump before that tag has to move cvcpkg/recipes/arisrv/recipe.yaml too. ci.yml's upstream_version check covers every recipe, so it fails a bump that misses this one.

Not in this PR

  • No tag and no real publish. arisrv first reaches cvcpkg.org with the first v* tag cut after this merges, or with a dry_run=false dispatch. Both are production releases and need a go-ahead.
  • Switching the Ariadne conference deploy over to cvcpkg install arisrv. That's a follow-up in the deploy's own repository, after arisrv is on the catalog.

arisrv, the headless Ariadne conference relay, gets a recipe (cvcpkg/recipes/arisrv) like ari's:
it builds src/arisrv standalone against the installed libcvc SDK, installs just bin/arisrv, and
depends on libcvc alone, at build and at run time. The gRPC and WebSocket transports, the Jolt
avatar holon and the libjpeg-turbo video rungs are all libcvc's.

publish-cvcpkg.yml builds it with the recipe's own script against the libcvc the same job built,
on linux x86_64 and arm64, macOS and windows, one revision per release from compute-revisions.
Before it packs, the binary must open a room on loopback and log its gRPC and WebSocket
listeners, the chat, "avatar physics: Jolt rigid bodies" and "transcode libjpeg-turbo"; on
Linux and macOS it must also exit 0 on SIGTERM. A dry run keeps each platform's arisrv and the
libcvc it was built against as an artifact for a week.

src/arisrv's standalone configure now uses C++20, as ari's does, and stops on a libcvc SDK built
with neither transport (every published libcvc through 3.7.8, per #943), instead of building a
relay no client can join.
Artifact storage is billed. A dry run now packs arisrv and stops, as ari's steps do; the step ids
only the upload read go with it.
ubuntu-latest became the 26.04 image (gcc 15.2), and the jobs that used it broke on a std::sort
without <algorithm>: a toolchain no published bundle is built with. publish-cvcpkg.yml already
pins its linux targets to ubuntu-22.04 (glibc 2.35, gcc 11.4), because an artifact built on a
newer image carries GLIBC_2.x versions an older system can't load.

Pinned to ubuntu-22.04: ci.yml's package-linux and pycvc-linux, ci-recipe.yml's two linux lanes,
and release.yml's linux job (the SDK archives) and its linux sdk-smoke lanes.
@transfix
transfix merged commit f7a2e6e into master Nov 4, 2026
23 of 28 checks passed
@transfix
transfix deleted the feat/arisrv-cvcpkg-recipe branch November 4, 2026 07:06
transfix added a commit that referenced this pull request Nov 4, 2026
…c:// hostnames on Windows (#1021)

Two bugs kept the native packages from running a conference document that the browser page runs.

The component library: src/cvc installs share/libcvc/ariadne/components on every platform, and
cvc:// looks for it beside the installed library, but the libcvc and libcvc-cuda recipes'
package.files never listed it. No native bundle carried it, so a document importing
cvc://components/room_users.ari or chat.ari loaded without those windows. The install rule also
named no component, so the release tarballs (cpack's libcvc component) left it out too. Both
recipes now list share/libcvc/ariadne/, the rule is COMPONENT libcvc, package-linux fails if its
tarball has no components, and docs/ARIADNE.md notes the CVC_ARIADNE_PATH workaround for older
bundles.

gRPC DNS on Windows: gRPC 1.68.2's c-ares resolver, with c-ares 1.34.8, aborts the process on its
first lookup of a hostname (grpc_polled_fd_windows.cc: "Check failed: *from_len <=
recv_from_source_addr_len_"), so arigl with CVC_ARIADNE_RELAY=grpc://<host>:7700 died at connect
while grpc://<an IP> worked. The gRPC state and stream transports now set GRPC_DNS_RESOLVER=native
on Windows before the process makes its first gRPC object, unless it is already set. New test:
StateTransportGrpcTest.ConnectsToAPeerNamedByHost.

Also carries #1019's branch at 3ab5cd2 so CI could run after ubuntu-latest became 26.04 (GCC 15):
the <algorithm> includes in the tests, Linux CI on ubuntu-22.04 (the same pin #1016 brought to
master), and a pycvc async test fix.
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