Skip to content

Publish arigl and arigl-web to cvcpkg.org on a v* tag - #952

Merged
transfix merged 3 commits into
masterfrom
ci/publish-arigl
Nov 1, 2026
Merged

transfix merged 3 commits into
masterfrom
ci/publish-arigl

Conversation

@transfix

@transfix transfix commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Why

The arigl and arigl-web recipes have been on master since #887, but no workflow builds or publishes either package. So cvcpkg install arigl and cvcpkg install arigl-web --platform wasm have nothing to fetch. Because of that, the .ari clients still build their hosts from libcvc master:

  • cy-pca/cypkg's browser job builds ari's single-threaded wasm page.
  • cy-pca/nicotina's CI and its cyberpcangel deploy build arigl and arigl-web.

These clients are supposed to run on packaged hosts. With this PR, a v* tag publishes both packages, and those jobs can install them.

What a v* tag now publishes

arigl (publish-cvcpkg.yml)

It's built the same way as ari:

  • One revision per release, from compute-revisions (emit arigl arigl).
  • Built with the recipe's own script (build.sh / build.ps1), against the libcvc (stage) and shared cvcGL (stage-cvcgl) the same job builds, and the VTK, imgui and SDL3 the cvcgl step linked.
  • Platforms: linux x86_64, linux arm64 (the experimental lane, where cvcgl already publishes) and windows x86_64.
  • macOS is left out. The workflow doesn't build cvcgl there, and the arigl recipe has no macOS entry.
  • Runs only if cvcgl built (new step ids cvcgl-linux / cvcgl-windows).
  • The Linux step is the last Linux step. Its smoke installs Mesa next to VTK's libglvnd, and placing it last means no other build links against that Mesa.

The checks before it packs are set up so that a package with stubbed-out backends fails the step instead of publishing:

  • Configure asserts. The .ari loader and the FTXUI/tvision backends are libcvc's, and libcvc's configure already asserts them. The ImGui overlay and the SDL3 input seam are cvcGL's. They're now asserted in the installed cvcGL config that arigl links (CVC_ENABLE_IMGUI in cvcGLTargets.cmake, find_dependency(SDL3 in cvcGLConfig.cmake).
  • The binary reports its own backends. arigl info --terminal --json must report "yaml": true, "ftxui": true and "tvision": true.
  • Linux: it renders. This uses cvcpkg's Mesa (llvmpipe) under cvcpkg's Xvfb, the same setup package-linux uses for arigl's ctests. The checks are:
    • a terminal snapshot of terminal_tour.ari must show agents: 64;
    • a terminal snapshot of terminal_scene.ari must show Show mesh;
    • a window snapshot of hello.ari must produce a non-empty PNG.
  • Windows: it loads a document. The hosted image has no OpenGL 3.2 driver, so it runs arigl check --terminal terminal_tour.ari instead of rendering.

arigl-web (publish-cvcgl-wasm.yml, new arigl-web job)

It's built the same way as libcvc-examples-web: the recipe's own build-wasm.sh, against a closure installed before the build.

  • One matrix leg per flavour, wasm and wasm-mt, on separate runners with fail-fast: false.
  • The closure is the recipe's own list (cvcpkg install-deps cvcpkg/recipes/arigl-web, as ci.yml's arigl-web job does), so the workflow can't drift from the recipe. Every dep is on the catalog for both flavours (wasm32/static).
  • build-wasm.sh already fails if the configure misses the .ari loader, FTXUI, ImGui, SDL3 or ImageMagick.
  • Extra checks on the wasm leg:
    • The Ariadne: tvision terminal backend ENABLED line must be present. Without it the script quietly builds no ari_tvision page, even though tvision is a declared wasm dep that's on the catalog.
    • ari.html, ari_tvision.html, ari-web.* and xterm/ must all be in the package.
    • xterm.js must come from the prefix's xterm-js packages.
    • arigl_web_smoke.mjs runs in headless Chrome against the staged share/arigl-web.
  • wasm-mt gets file checks only. It needs a cross-origin-isolated page, which the smoke doesn't serve. It also must not carry ari's page, which is single-threaded only.
  • Publishing is by archive path, with the recipe's cvc_revision. A version the catalog already has for that flavour is skipped. The skip check now also matches the platform column, so a wasm bundle can't be mistaken for a wasm-mt one.

A workflow_dispatch is still a dry run by default in both workflows: build and pack, no publish.

Dry-run results (this branch)

All were workflow_dispatch runs with dry_run=true: build and pack, no publish. Every arigl target built, passed its checks and packed.

Package Platform Archive (packed, not published) Checks
arigl linux x86_64 arigl-3.7.6+cvc.1-linux-x86_64-release-shared.tar.gz (112 KB) cvcGL asserts; info yaml/ftxui/tvision true; tour agents: 64; scene Show mesh with the scene drawn behind it; window PNG under Xvfb + llvmpipe
arigl linux arm64 arigl-3.7.6+cvc.1-linux-arm64-release-shared.tar.gz (109 KB) same as x86_64
arigl windows x86_64 arigl-3.7.6+cvc.1-windows-x86_64-release-shared.zip (90 KB) cvcGL asserts; info yaml/ftxui/tvision true; check --terminal
arigl-web wasm arigl-web-3.7.6+cvc.1-wasm-wasm32-release-static.tar.gz (30.1 MB) build-wasm.sh configure asserts + tvision line; ari, ari_tvision and xterm/ present; headless Chrome all 11 cases passed (arigl-web ×5, ari ×5, ari_tvision ×1)
arigl-web wasm-mt arigl-web-3.7.6+cvc.1-wasm-mt-wasm32-release-static.tar.gz (15.3 MB) build-wasm.sh configure asserts; files present, no ari page

compute-revisions gave arigl -> +cvc.1. Module sizes (raw / brotli): wasm arigl.wasm 51.3 MB / 9.7 MB, ari.wasm 23.8 MB / 5.4 MB; wasm-mt arigl.wasm 54.9 MB / 10.0 MB.

Runs:

  • publish-cvcgl-wasm 41266334717: both arigl-web legs passed.
  • publish-cvcpkg 41266333242: Windows arigl passed.
    • Both Linux arigl steps died with SIGBUS (exit 135) while installing the smoke's Mesa/Xvfb into $PY. The family-deps step puts $PY/lib on the job's LD_LIBRARY_PATH, so cvcpkg's own Python had $PY/lib/libz loaded while it overwrote that file.
    • Fixed in b29f1b1: that one install now runs as env -u LD_LIBRARY_PATH cvcpkg install ....
    • The run was cancelled after its Windows result, while its macOS jobs (which don't build arigl) were still queued.
  • publish-cvcpkg 41269296623, with the fix: arigl passed on linux x86_64, linux arm64 and windows. Every other Linux and Windows release job passed too (libcvc, cvcgl, libcvc-examples, ari, pycvc cp311/312/313, pycvc-gl). Its macOS lanes were still in the hosted queue when this was written. They don't touch arigl.

PR CI: every required check passes. package-linux / libcvc-debug-grpc was red at first: cvcgl_ariadne_realize's heat-stop check, which is flaky and was fixed on master by #953. Master is now merged into this branch (4b6d0d3), and debug-grpc passes on it. This PR changes no source and not ci.yml.

Interaction with #943

#943 edits publish-cvcpkg.yml too: the libcvc configure lines, the backend-assert step and the CUDA configures. This PR doesn't touch any of those lines. git merge-tree of the two heads merges cleanly.

Once #943 lands, arigl is built against a libcvc that has gRPC and WebSocket. That's what lets a packaged arigl join a conference room. Nothing here depends on it.

Not in this PR

  • No tag and no real publish. The packages first reach cvcpkg.org on the next v* tag, or a dispatch with dry_run=false. Both are production releases and need a go-ahead.
    • v3.7.7 was tagged (chore: bump libcvc to 3.7.7 #954) before this PR merged, so 3.7.7 ships without arigl and arigl-web.
    • After merge, they arrive with the next tag (3.7.8).
    • Alternatively, dry_run=false dispatches on master would publish them as 3.7.7+cvc.1. publish-cvcgl-wasm would skip what 3.7.7 already has and add only arigl-web. publish-cvcpkg would republish the whole native family at the next revision.
  • macOS arigl. The catalog has an old vtk 9.5.0+cvc.1 macos/arm64 bundle. cvcgl, and then arigl, could be tried there as their own change.
  • nicotina builds arigl-web lean (CVC_ARIGL_WEB_LEAN=1, about 34 MB of wasm instead of 49 MB raw). This package is the full build. Whether nicotina switches to it or wants a lean variant is a decision for that repo.

publish-cvcpkg.yml now builds, smoke-tests, packs and publishes `arigl`
(linux x86_64 and arm64, windows x86_64) from its recipe's own build
script, against the libcvc and cvcGL the same job builds, exactly as it
does `ari`. One revision per release comes from compute-revisions.
Before it packs:
- cvcGL's installed config must carry the ImGui overlay and the SDL3
  seam (the loader and terminal backends are already asserted at
  libcvc's configure);
- `arigl info --terminal --json` must report yaml, ftxui and tvision;
- on Linux it renders: a terminal snapshot of the tour and of a scene
  document, and a window snapshot to PNG on cvcpkg's Mesa under Xvfb.
  Windows has no GL 3.2 driver on the hosted image, so it loads a
  document instead.
macOS stays out: neither cvcgl nor the arigl recipe build there yet.

publish-cvcgl-wasm.yml gains an arigl-web job, one leg per flavour
(wasm, wasm-mt). Each installs the recipe's declared closure with
`cvcpkg install-deps`, builds with the recipe's build-wasm.sh (which
already fails on a missing loader, FTXUI, ImGui, SDL3 or ImageMagick),
and packs. The single-threaded leg also requires the ari and
ari_tvision pages and xterm.js from the prefix, then runs
arigl_web_smoke.mjs in headless Chrome. Publishing skips a version the
catalog already has for that flavour, as libcvc-examples-web does.

A dispatch is still a dry run by default in both workflows.
…_PATH

The family-deps step puts $PY/lib on LD_LIBRARY_PATH for the rest of the
job, so cvcpkg's own Python loaded $PY/lib's libz and then overwrote it in
place while installing xvfb and mesa there: SIGBUS (exit 135) on both
Linux lanes of the first dry run.
@transfix
transfix marked this pull request as ready for review November 1, 2026 05:59
@transfix
transfix merged commit 720afa6 into master Nov 1, 2026
28 checks passed
@transfix
transfix deleted the ci/publish-arigl branch November 1, 2026 09:18
transfix added a commit to cy-pca/cypkg that referenced this pull request Nov 1, 2026
…t from libcvc (#9)

libcvc 3.7.8 publishes arigl-web (transfix/libcvc#952), and its single-threaded wasm package
carries ari's xterm.js page in share/arigl-web/: ari.html, ari.js, ari.wasm, ari-web.* and
xterm/, what tools/site.sh takes. So the browser job installs it with cvcpkg, as a site would,
and drops the libcvc checkout, the emsdk and wasm deps, the cmake build and its cache.

tools/libcvc.sh and tools/libcvc-resolve.py only fed that build, so they go, with the
LIBCVC_REF/LIBCVC_PRS/LIBCVC_WEB_PRS env and the dispatch inputs. The test job's name is
spelled out: it is still the required check main-protect lists.

The packaged page is the full build: ari.wasm is 23.8 MB raw, 7.7 MB gzipped, against 8.8 MB
and 3.1 MB for the lean one CI built. The install also lays down the static wasm libraries
the page was linked from (about 126 MB of downloads in all); the site uses none of them.

Co-authored-by: tfx <[email protected]>
transfix added a commit to cy-pca/nicotina that referenced this pull request Nov 1, 2026
…lt from libcvc (#15)

nicotina targets the stock, packaged hosts, and libcvc 3.7.8 publishes all three it uses: ari,
arigl (transfix/libcvc#952) and arigl-web. So nothing here builds libcvc any more.

- ci.yml: unit and integration each install ari and arigl with ci/install-hosts.sh, which runs
  `cvcpkg install ari arigl` into ~/nicotina-ci/deps and checks ari has the .ari loader, FTXUI,
  tvision and HTTP, and that neither host misses a library. The hosts job, its libcvc checkout,
  the PR merges and the cache go.
- deploy-cyberpcangel.yml: installs the single-threaded arigl-web package into the runner's
  existing wasm prefix (its static deps are already there) and stages its share/arigl-web. The
  libcvc checkout, the wasm deps list, the emsdk build and libcvc_prs go. The .built-from
  fingerprint takes the arigl-web bundle's version and hash in place of libcvc's head.
- ci/build-hosts.sh, ci/libcvc-prs.sh and deploy/cyberpcangel/build-hosts.sh are gone; the READMEs
  say where the hosts come from.

The packages are libcvc's full build, so the published pages grow: arigl.wasm is 14.6 MB gzipped
against the lean build's 9.4 MB, and ari.wasm 7.7 MB against 3.1 MB. CI's hosts prefix is the
packages' whole runtime closure, 97 packages (about 240 MB to download).

Co-authored-by: tfx <[email protected]>
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