Repository navigation
arigl joins a relay from a document's relay: block and --relay, in a browser page too - #1231
Merged
Merged
Conversation
…browser page too Stock arigl (a window, --terminal), ariglx and arigl-web now take the relay: block and the --relay* flags as ari does: they join the relay, mirror the namespaces the block subscribes to, present --relay-credential (an OIDC sign-in's token), and reach the server's functions with room-call. Until now they joined only in conference mode (CVC_ARIADNE_RELAY), whose shard applies conf alone, so a graphics client never received a published namespace. CVC_ARIADNE_RELAY still wins when it is set. - attach_host_relay (relay_session.h): the join a host's flags ask for, moved out of ari's main so ari and arigl share it. - In a browser page the page's WebSocket dials ws:// and wss://. Nothing there may wait for the socket, which the page's event loop opens: the dial opens it and the frames look for the relay's Hello (10 s), so every join in a page is begun at the load. - arisrvx_room_call_arigl_grpc / _ws: arigl snapshot of tests/relay_arigl.ari against arisrvx (call_service.py): the mirror of svc, a typed room-call, relay.status. relay_pair.py takes --client-command; pycvc-linux builds arigl.
# Conflicts: # .github/workflows/ci.yml
transfix
enabled auto-merge (squash)
November 14, 2026 19:32
transfix
added a commit
that referenced
this pull request
Nov 15, 2026
Master's #1217 keeps nothing per thread in state_exec: a native's context (call_args::context()) carries its group, registry and stream, async_host::call and begin_external take it, and the pool drops in_pump_all() and the one-argument run_on_host. - async_host.h: begin_external takes the context, as on master, and keeps this branch's note that a call is finished through the host it was made on. - script_engine.cpp: the sliced form finds the calling program's group from the call's context (exec_group::current(ctx)), else group 0, and reads its data step from the context. - ariadne.cpp: file-pick opens its picker through run_on_host for the group its verbs were bound for (the env's, as its host is), and inline in group 0 and the init lane. - exec_pool: in_pump_all() is back, for the host-thread calls' debug assertion and ScriptLane::run's refusal, read from the pool's calls (their callers' and pumpers' thread ids) under its mutex rather than from thread-locals. - ariadne_runtime_test: the init lane's cycles test no longer compares against the calling thread's own registry, which master removed; it is AriadneInit.RunsAScriptThatLeavesCycles. - ci.yml: the sanitizer's required list names the test by its new name. - STATE_EXEC_THREADED.md: B29-B31 and the file-pick and sliced-call notes name the context-based calls.
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.
What
Stock
arigl(in a window and--terminal),ariglxandarigl-webnow join a relay from a document'srelay:block and the--relay*flags, asariandarixalready do. A graphics client can then:relay: subscribe:);--relay-credential NAME, an OIDC sign-in's token (token: oidc:NAME);room-call.Until now arigl joined only in conference mode (
CVC_ARIADNE_RELAY). That shard appliesconfalone, so a graphics client never received a published namespace, and it had no way to present a credential.CVC_ARIADNE_RELAYstill wins when it is set: the block is then read and not joined, and--relayis ignored with a note.How
attach_host_relay(relay_session.h): the join a host's flags ask for, moved out ofari'smain.cppunchanged, soariandariglshare one helper.__EMSCRIPTEN__):ws://andwss://; TLS is the browser's.relay.status; the load does not fail."flags": ["--relay", "{ws_origin}/<path>"]names the relay, and"fragment_env": {"token": "CVC_ARIADNE_ROOM_TOKEN"}carries a room token.Tests
arisrvx_room_call_arigl_grpcandarisrvx_room_call_arigl_ws:arigl snapshotof the newsrc/arisrv/tests/relay_arigl.ariagainst arisrvx runningcall_service.pyandcall_server.ari. The client:svcto be mirrored;echoand checks that the value kept its type and that the caller is its own pid;relay.statusandrelay.joins.src/arigl/CMakeLists.txtnext to the other arigl window tests, and pycvc-linux (which has Xvfb) now buildsarigl.relay_pair.pytakes--client-command(teststays the default; arigl has none, so it runssnapshot).Run locally (Linux, cp312 from cvcpkg, Xvfb and mesa from cvcpkg): both new tests pass, and so does the scripting-host regex pycvc-linux runs. Two local failures were environmental:
ariglx_python_program: this build had no pycvc_gl.arisrvx_startup_fails: it passes withPYTHONNOUSERSITE=1; without it,~/.local's starlette leaked into the embedded interpreter.The browser path (
__EMSCRIPTEN__) is compiled in CI's wasm jobs; I did not run it in a page.Docs