Skip to content

arigl-web: no runtime deps, so a site's install is the page alone - #959

Merged
transfix merged 1 commit into
masterfrom
fix/arigl-web-runtime-deps
Nov 1, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/arigl-web-runtime-deps

Conversation

@transfix

@transfix transfix commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Why

A site that installs arigl-web 3.7.8 the way the recipe says (cvcpkg install arigl-web --platform wasm --arch wasm32 --link static --prefix ./deps) downloads far more than the page:

Flavour Installed share/arigl-web (the page) Components
wasm 683 MB 96 MB 24
wasm-mt 638 MB 53 MB 23

The recipe lists only depends.build. cvcpkg records a bundle's required deps from depends.runtime, and if that list is missing it uses depends.build instead (runtime_dependencies in cvcpkg's builder.py). So both published 3.7.8+cvc.1 bundles list all 23 static build deps (vtk, boost, imagemagick, assimp, ...) as required_deps. The resolver installs every one of them, though the page uses none: they're all linked into arigl.wasm.

What changes

cvcpkg/recipes/arigl-web/recipe.yaml only:

  • depends.runtime: []: the bundle needs nothing at run time. Many cvcpkg recipes already use this, abseil among them.
  • cvc_revision 1 → 2: publish-cvcgl-wasm packs at the recipe's revision and skips a version the catalog already has. The bump is what lets it publish 3.7.8+cvc.2 alongside the current bundles. The next version bump resets it to 1, as ci.yml's version check already asks.

The build doesn't change: cvcpkg install-deps still resolves depends.build. A recipe that depends on arigl-web now gets just the page files, which is what the recipe's own comment describes.

Checked (cvcpkg 2.5.11)

  • cvcpkg pack cvcpkg/recipes/arigl-web --from-prefix <stand-in prefix> for wasm and wasm-mt gives arigl-web-3.7.8+cvc.2-… archives whose manifest.yaml has dependencies: {required: []}.
  • cvcpkg install-deps cvcpkg/recipes/arigl-web --platform wasm --arch wasm32 --link static --no-fallback-to-source still installs all 23 build deps. That's what both publish-cvcgl-wasm and ci.yml's arigl-web job build against.
  • No other recipe in this repo depends on arigl-web.

Not in this PR

  • Republishing. The fixed bundles reach cvcpkg.org with a workflow_dispatch of publish-cvcgl-wasm with dry_run=false, or with the next v* tag. Either one is a production publish.
  • libcvc-examples-web has the same fallback. Its build list also names scene and weight assets (scene-austin-south-small, grl-snam-weights, vehicle-humvee), and some of those may really be needed at run time. So it needs its own look, not a blanket runtime: [].

The recipe listed only depends.build. cvcpkg records depends.runtime as a
bundle's required deps and falls back to depends.build when there is none,
so the published 3.7.8+cvc.1 bundles carry all 23 static build deps as
required_deps. `cvcpkg install arigl-web --platform wasm ...`, the install
the recipe tells a site to run, lays down ~680 MB (wasm) / ~640 MB (wasm-mt)
for 96 / 53 MB of share/arigl-web.

The bundle is finished page files with every library linked into the
modules, so declare `runtime: []`. The build is unchanged: install-deps
still resolves depends.build (all 23). cvc_revision 1 -> 2 so a
publish-cvcgl-wasm run can republish 3.7.8; the next version bump resets it.
@transfix
transfix merged commit 9206ce3 into master Nov 1, 2026
27 checks passed
@transfix
transfix deleted the fix/arigl-web-runtime-deps branch November 1, 2026 21:49
transfix added a commit that referenced this pull request Nov 2, 2026
The recipe lists only depends.build, and cvcpkg records the build list as a bundle's
required deps when depends.runtime is absent. So 3.7.8+cvc.1 (wasm-mt) requires all 23
build deps, the static wasm libraries and the three data packages among them. Two of
those, scene-austin-south-small and vehicle-humvee, are published as platform any but
arch x86_64, and only arch noarch matches a wasm32 request. So the documented
`cvcpkg install libcvc-examples-web --platform wasm-mt --arch wasm32 --link static`
fails ("no candidate for 'scene-austin-south-small' ... required by
libcvc-examples-web"). Had it resolved, it would have pulled ~105 MB of archives the
gallery never reads.

The page needs none of them: the libraries are linked into each demo's .wasm, and the
Austin scene, the trained policy and the Humvee are preloaded into the nav demos' .data
(examples/CMakeLists.txt, --preload-file). The launcher serves
share/libcvc-examples-web/web/ alone.

- depends.runtime: [] (as arigl-web, #959).
- cvc_revision 1 -> 2, so publish-cvcgl-wasm packs 3.7.8+cvc.2 and publishes it
  instead of skipping 3.7.8 as already on the catalog.

The build is unchanged: install-deps prints the same plan for wasm and wasm-mt, and
deploy-pages and publish-cvcgl-wasm stage the deps with their own install lists.
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