Skip to content

wasm-mt SDK: the real Ariadne .ari loader and FTXUI backend, not stubs - #716

Merged
transfix merged 3 commits into
masterfrom
feat/wasm-mt-ariadne-deps
Oct 19, 2026
Merged

transfix merged 3 commits into
masterfrom
feat/wasm-mt-ariadne-deps

Conversation

@transfix

@transfix transfix commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

The published wasm-mt libcvc (publish-cvcgl-wasm.yml, the bundle downstream wasm apps get from cvcpkg install libcvc --platform wasm-mt) never had yaml-cpp or ftxui in its dep prefix. Its Ariadne .ari loader and FTXUI terminal backend therefore compiled to stubs, so a wasm app built on it could not load a .ari document at all. Both packages are now published for wasm-mt: cy-pca/cvcpkg#378 (ftxui) and cy-pca/cvcpkg#387 (yaml-cpp).

Changes

  • publish-cvcgl-wasm.yml
  • cvcpkg/recipes/libcvc/recipe.yaml: yaml-cpp and ftxui are declared for wasm-mt too. A static libcvc's cvcConfig.cmake runs find_dependency on them, so a consumer's install has to bring them.

No cvc_revision bump. No 3.6.0 wasm-mt bundle exists: the v3.6.0 wasm publish (run 39043084428) was refused over the xmlrpc globs, which master has since fixed. So the next wasm-mt publish is a fresh bundle, and native bundles are unchanged.

Verified locally

emsdk 5.0.7; wasm-mt deps from the catalog; a threaded build of cvc with this workflow's flags (without cvcGL/VTK):

  • The configure prints Ariadne: .ari YAML loader ENABLED (yaml-cpp) and Ariadne: FTXUI terminal backend ENABLED (ftxui).
  • cmake --install succeeds with CVC_BUILD_ARI=OFF, and fails with it on.
  • The installed cvcConfig.cmake has IN ITEMS yaml-cpp;ftxui;Jolt, so the new grep passes. No build-machine path appears in lib/cmake/cvc.
  • A consumer project does find_package(cvc CONFIG REQUIRED) and finds yaml-cpp::yaml-cpp, ftxui::component and Jolt::Jolt. It links a -pthread module against the installed static libcvc, and under node prints have_yaml=1 ftxui=1.
  • cvcpkg validate cvcpkg/recipes/libcvc passes against cy-pca/cvcpkg master's recipe set.

Two more fixes the full dry runs turned up (the examples job was broken before this PR)

The v3.6.0 run failed earlier, at the libcvc pack, so it never reached these.

  • Data packages: the cvcgl-examples step installed scene-austin-south-small, grl-snam-weights and vehicle-humvee with --platform wasm-mt. They are published as platform any, link shared, and the scene and vehicle bundles as arch x86_64, so that tuple matched nothing. The run then failed with "Austin scene not staged for preload" (dry run 39214815368). They now install with --platform any --arch x86_64 --config release --link shared, which resolves all three locally.
  • cvcgl-examples recipe: package.files declared the native bin/ demos and launcher on every platform. The wasm-mt bundle ships only share/cvcgl-examples/web, so the strict-glob check refused the pack (dry run 39217076353). They are now platforms-scoped to [linux, windows], as the nav CLIs already were. Native bundles are unchanged.

Full workflow dry run: green

Run 39220741472 (workflow_dispatch, dry_run=true, this branch, ed5e79c):

  • every step passed
  • the configure printed Ariadne: .ari YAML loader ENABLED (yaml-cpp) and Ariadne: FTXUI terminal backend ENABLED (ftxui), for the SDK and for the gallery build
  • packed libcvc-3.6.0+cvc.1, cvcgl-3.6.0+cvc.1 and cvcgl-examples-3.6.0+cvc.1 (wasm-mt/wasm32)
  • nothing published (dry run)

After merge, the wasm-mt bundles publish on the next v* tag, or now via a workflow_dispatch with dry_run=false.

The published wasm-mt libcvc (publish-cvcgl-wasm.yml) never installed yaml-cpp
or ftxui into its deps, so its .ari loader and terminal backend compiled to
stubs. A downstream wasm app could not load a .ari document at all. Both are
now published for wasm-mt (cy-pca/cvcpkg#378 ftxui, #387 yaml-cpp).

- publish-cvcgl-wasm.yml installs yaml-cpp and ftxui for wasm-mt with the
  rest of the closure, and fails the build if the installed cvcConfig.cmake
  does not name them. That is the same check it already makes for Jolt, and
  a configure that misses them silently compiles the stubs.
- It also configures with CVC_BUILD_ARI=OFF. The job builds only cvc and
  cvcGL, then runs `cmake --install`. With `ari` on (the default since #708),
  that install fails on the missing bin/ari.js, so the next tag's wasm publish
  would have broken. The browser ari page ships with the gh-pages gallery.
- recipes/libcvc: yaml-cpp and ftxui are declared for wasm-mt too. A static
  libcvc's cvcConfig.cmake runs find_dependency on them, so a consumer's
  install must bring them.

No cvc_revision bump: no 3.6.0 wasm-mt bundle exists (the v3.6.0 wasm publish
was refused over the xmlrpc globs, since fixed on master), so the next wasm-mt
publish is a fresh bundle. Native bundles are unchanged.

Verified locally (emsdk 5.0.7, wasm-mt deps from the catalog, threaded build of
the cvc target):
- The configure prints "Ariadne: .ari YAML loader ENABLED" and "FTXUI
  terminal backend ENABLED".
- cmake --install succeeds with CVC_BUILD_ARI=OFF (it fails with it on).
- The installed cvcConfig.cmake lists yaml-cpp;ftxui;Jolt and names no
  build-machine path.
- A consumer project finds all three through find_package(cvc), links a
  -pthread module, and under node reports have_yaml=1 and ftxui=1.
- The recipe validates against cy-pca/cvcpkg master's recipe set.
… tuple (platform any, x86_64, shared)

The cvcgl-examples step installed scene-austin-south-small, grl-snam-weights
and vehicle-humvee with --platform wasm-mt. They are published as platform
any, link shared, and the scene and vehicle bundles as arch x86_64 (not
noarch), so that matched no bundle. The dry run of this branch (run
39214815368) failed there with 'Austin scene not staged for preload', after
the libcvc + cvcgl pack had passed. Locally, --platform any --arch x86_64
--config release --link shared installs all three, including the noarch
weights.
…asm-mt pack refused them)

With the data-package install fixed, the dry run (run 39217076353) built the
wasm-mt gallery (terrain_lab, nav_city_swarm, nav_city_drive, nav_fog_ghost)
and then failed cvcpkg's strict-glob check. package.files declared
bin/lsystem_forest, bin/nav_city_*, bin/nav_fog_ghost, bin/nav_finale and
bin/cvcgl-examples-web on every platform, and the wasm-mt column ships only
share/cvcgl-examples/web. They are now platforms-scoped to linux and windows,
like the nav CLIs already were. Native bundles are unchanged, and no 3.6.0
wasm-mt bundle exists, so there is no revision bump.
@transfix
transfix merged commit 748c9ea into master Oct 19, 2026
35 of 37 checks passed
@transfix
transfix deleted the feat/wasm-mt-ariadne-deps branch October 29, 2026 20:53
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