Repository navigation
wasm-mt SDK: the real Ariadne .ari loader and FTXUI backend, not stubs - #716
Merged
Merged
Conversation
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.
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.
The published wasm-mt libcvc (
publish-cvcgl-wasm.yml, the bundle downstream wasm apps get fromcvcpkg install libcvc --platform wasm-mt) never had yaml-cpp or ftxui in its dep prefix. Its Ariadne.ariloader and FTXUI terminal backend therefore compiled to stubs, so a wasm app built on it could not load a.aridocument 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.ymlyaml-cppandftxui(wasm-mt/wasm32) with the rest of the closure.cvcConfig.cmakedoesn't name them. This mirrors the existing Jolt check; a configure that misses them silently builds the stubs.-DCVC_BUILD_ARI=OFF. The job builds onlycvcandcvcGL, then runscmake --install. Witharion (the default since ariadne: interactive FTXUI terminal backend, ari runner, on_signal hook #708), that install fails on the missingbin/ari.js, so the next tag's wasm publish would have broken. I reproduced that failure locally. The browseraripage ships with the gh-pages gallery (ariadne: run a .ari in the browser — FTXUI backend on wasm behind xterm.js #710).cvcpkg/recipes/libcvc/recipe.yaml:yaml-cppandftxuiare declared forwasm-mttoo. A static libcvc'scvcConfig.cmakerunsfind_dependencyon them, so a consumer's install has to bring them.No
cvc_revisionbump. 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
cvcwith this workflow's flags (without cvcGL/VTK):Ariadne: .ari YAML loader ENABLED (yaml-cpp)andAriadne: FTXUI terminal backend ENABLED (ftxui).cmake --installsucceeds withCVC_BUILD_ARI=OFF, and fails with it on.cvcConfig.cmakehasIN ITEMS yaml-cpp;ftxui;Jolt, so the new grep passes. No build-machine path appears inlib/cmake/cvc.find_package(cvc CONFIG REQUIRED)and findsyaml-cpp::yaml-cpp,ftxui::componentandJolt::Jolt. It links a-pthreadmodule against the installed static libcvc, and under node printshave_yaml=1 ftxui=1.cvcpkg validate cvcpkg/recipes/libcvcpasses 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.
scene-austin-south-small,grl-snam-weightsandvehicle-humveewith--platform wasm-mt. They are published as platformany, linkshared, and the scene and vehicle bundles as archx86_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-examplesrecipe:package.filesdeclared the nativebin/demos and launcher on every platform. The wasm-mt bundle ships onlyshare/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):Ariadne: .ari YAML loader ENABLED (yaml-cpp)andAriadne: FTXUI terminal backend ENABLED (ftxui), for the SDK and for the gallery buildlibcvc-3.6.0+cvc.1,cvcgl-3.6.0+cvc.1andcvcgl-examples-3.6.0+cvc.1(wasm-mt/wasm32)After merge, the wasm-mt bundles publish on the next
v*tag, or now via aworkflow_dispatchwithdry_run=false.