Skip to content

Publish the full libcvc: gRPC and WebSocket transports on every platform - #943

Merged
transfix merged 4 commits into
masterfrom
feat/publish-full-libcvc
Nov 1, 2026
Merged

transfix merged 4 commits into
masterfrom
feat/publish-full-libcvc

Conversation

@transfix

Copy link
Copy Markdown
Owner

The bug

Every published libcvc, through 3.7.5+cvc.2 and on every platform, shipped without the conference transports:

  • publish-cvcpkg.yml inlines its own libcvc configure (it doesn't run the recipe's build scripts) and never set CVC_ENABLE_GRPC or CVC_ENABLE_WS. Both default to OFF.
  • The recipe's build.sh and build.ps1 set -DCVC_ENABLE_GRPC=OFF outright, as they have since the recipe was added (609b48d0).
  • Yet the recipe declares grpc, protobuf, abseil and re2 as runtime deps, so consumers install them and never use them.

The result: an arigl or arisrv built against the published SDK silently compiles the conference out. On Windows, cvc.dll from 3.7.5+cvc.2 links neither grpc++ nor protobuf. So no native client built from the catalog can join a room, including the one the arigl recipe (#887) would produce. ci.yml even claimed the publish shipped gRPC on Linux; it didn't. This is the same drift the workflow's comments already describe for XMLRPC.

The fix

  • publish-cvcpkg.yml: -DCVC_ENABLE_GRPC=ON -DCVC_ENABLE_WS=ON in all four libcvc configures (CPU Linux/macOS, CPU Windows, CUDA Linux, CUDA Windows). The CPU job now asserts both, alongside the Ariadne terminal backends, before the long build, so it can't silently ship without them again.
  • src/cvc/CMakeLists.txt: prints cvc::state: gRPC transport ENABLED / cvc::state: WebSocket transport ENABLED for that assert. The defines were already exported PUBLIC on cvc, so a standalone arigl or arisrv picks them up from the SDK with no further change.
  • cvcpkg/recipes/libcvc/build.{sh,ps1}: both transports on, matching the publish.
  • ci.yml: the macOS and Windows gRPC lanes now also build WebSocket, which is what the publish ships (Linux lanes already did). The stale comment is corrected.

No manual revision bump is needed: the next publish takes libcvc to 3.7.5+cvc.3 through next-revision, and cvcgl and pycvc in the same run build against it.

Verification

  • Both workflows parse as YAML.
  • This PR's CI exercises gRPC+WS on Linux, macOS and Windows through the gRPC lanes.
  • A local cvcpkg build libcvc with the updated recipe on Windows (shared, MSVC) is running to confirm the full variant builds and stays under cvc.dll's export limit. The result follows in a comment.

Not in this PR

arigl and arigl-web aren't wired into the publish workflow yet (their recipes exist since #887), so cvcpkg install cvc/arigl has nothing to fetch. That's a separate follow-up.

Every published libcvc through 3.7.5+cvc.2 shipped WITHOUT the conference
transports. publish-cvcpkg.yml inlines its own configure (it does not run the
recipe's build scripts) and never set CVC_ENABLE_GRPC or CVC_ENABLE_WS, whose
defaults are OFF; the recipe scripts set CVC_ENABLE_GRPC=OFF outright. Yet the
recipe declares grpc, protobuf, abseil and re2 as runtime deps, so consumers
installed them and never used them. An arigl or arisrv built against the SDK
compiled the conference out (the Windows cvc.dll links neither grpc++ nor
protobuf), so no native client from the catalog could join a room. ci.yml
even said the publish shipped gRPC on Linux; it did not.

- publish-cvcpkg.yml: CVC_ENABLE_GRPC=ON and CVC_ENABLE_WS=ON in all four
  libcvc configures (CPU Linux/macOS and Windows, CUDA Linux and Windows), and
  the CPU job asserts both, beside the Ariadne backends, before the long build.
- src/cvc/CMakeLists.txt prints "cvc::state: gRPC transport ENABLED" and
  "cvc::state: WebSocket transport ENABLED" for that assert.
- The libcvc recipe's build.sh and build.ps1 turn both on, matching the publish.
- ci.yml: the macOS and Windows gRPC lanes also build WS (what publish now
  ships; Linux already did), and the comment that claimed publish shipped gRPC
  says what is now true.

The next publish takes libcvc to 3.7.5+cvc.3 by itself (next-revision); cvcgl
and pycvc in the same run build against it.
@transfix

Copy link
Copy Markdown
Owner Author

Local verification (sandipaws, Windows, MSVC, through cvcpkg with this branch's recipes):

  • cvcpkg build libcvc configures with cvc::state: gRPC transport ENABLED and cvc::state: WebSocket transport ENABLED, and links within cvc.dll's export limit. gRPC and protobuf link statically on Windows (the catalog's grpc bundle ships static .libs), so cvc.dll gains only cares.dll among third-party DLLs.
  • cvcgl must be rebuilt against the full libcvc. A standalone arigl built on the published cvcgl 3.7.5+cvc.2 fails to link with AriRuntime::enable_net unresolved: cvcGL compiles it only when cvc has the transports. The publish builds cvcgl against the fresh libcvc in the same run, so +cvc.3 of both lines up. After cvcpkg build cvcgl, cvcpkg build arigl links.
  • That arigl joined the production relay (grpc://38.57.161.19:7700, cyberpcangel.com/cyprty's relay, 6977af2) with a synthetic camera and mic: 41 ms RTT, ~686 kb/s up (video + Opus). It left cleanly, with no relay or client errors.

…eaper test

QuietClientAnsweringPingsIsNotReaped reaped its client on macOS (idle 0.2 s against a 150 ms
limit). The probe thread pings on a 50 ms tick, so the 20 ms interval never applied, and a loaded
runner can leave a couple of hundred ms between Pongs. Reap at 750 ms over ~2 s instead: still
well past the limit, so a client that did not answer would be reaped (RelayReapsIdleConnection).
On macOS (package-macos release-grpc jobs) the held-out calibration closes the dissipation to
0.152 against a 0.15 bound and its calibrated step's twist is 1% over the uncalibrated one's, and
the gradient check's beta and gamma (a quarter of alpha there) flip sign against Jolt's finite
differences while the gradient as a whole agrees (ratio 0.92). The calibration's margins are 0.2
and 5%; the per-bias checks apply to components at least a third of the largest (all three on
Windows), and the whole-gradient check is unchanged.
@transfix
transfix merged commit fd2648f into master Nov 1, 2026
27 checks passed
@transfix
transfix deleted the feat/publish-full-libcvc branch November 1, 2026 19:02
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