Repository navigation
libcvc-examples-web: no runtime deps, so the gallery installs - #965
Merged
Merged
Conversation
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. cvcpkg
matches no wasm static request to those platform-any data bundles, 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.
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.
Why
The install the recipe and the
libcvc-examples-weblauncher document fails on the current package:(cvcpkg 2.5.11, against 3.7.8+cvc.1.) This is the gap #959 closed for arigl-web. The recipe lists only
depends.build, and whendepends.runtimeis missing cvcpkg records the build list as the bundle'srequired_deps. So the published gallery requires all 23 build deps: the static wasm libraries, plusscene-austin-south-small,grl-snam-weightsandvehicle-humvee. Two of those,scene-austin-south-smallandvehicle-humvee, are published as platformanybut archx86_64, notnoarch. cvcpkg lets onlynoarchstand in for another arch, so no wasm32 request matches them, and the resolve stops there. (grl-snam-weightsisany/noarchand resolves.) Had it got past them, it would have downloaded ~105 MB of archives on top of the 155 MB gallery, none of which the page reads.The gallery needs none of them at run time:
.wasm..data(--preload-file, examples/CMakeLists.txt:229-243). The publishednav_city_drive.jsloads/bundle/buildings.glb,/bundle/satellite.png,/bundle/terrain.json,/bundle/Humvee.glb,/shared/Humvee.glband/coef_sdf.cvcnavfrom its 30.7 MB.data.bin/libcvc-examples-webservesshare/libcvc-examples-web/web/with system python3, and nothing else from the prefix.What changes
cvcpkg/recipes/libcvc-examples-web/recipe.yamlonly:depends.runtime: []: as arigl-web (arigl-web: no runtime deps, so a site's install is the page alone #959).cvc_revision1 → 2: publish-cvcgl-wasm packs at the recipe's revision and skips a version the catalog already has. The bump is what lets it publish3.7.8+cvc.2. The next version bump resets it to 1.The build doesn't change:
cvcpkg install-depsprints the same plan with and without this change, for bothwasmandwasm-mt.cvcpkg installlists, and installs the data packages with--platform any.Checked (cvcpkg 2.5.11)
cvcpkg pack cvcpkg/recipes/libcvc-examples-web --from-prefix <stand-in prefix>forwasmandwasm-mtgiveslibcvc-examples-web-3.7.8+cvc.2-…archives whosemanifest.yamlhasdependencies: {required: []}.install-deps(wasm and wasm-mt): plans identical to master's recipe. Both stop at the same two x86_64-tagged data packages, which is why the workflows install those separately with--platform any --arch x86_64.Not in this PR
3.7.8+cvc.2reaches cvcpkg.org through a publish-cvcgl-wasm dispatch withdry_run=false, or through the nextv*tag. Either is a production publish. Only wasm-mt is published; the single-threaded gallery goes to gh-pages through deploy-pages.3.7.8+cvc.2. arigl-web's republish ran on a branch made fromv3.7.8plus its fix, and the same works here.noarch, or have cvcpkg treat a platform-anybundle as arch-neutral; it already treats them as config- and link-neutral (fix(install): a noarch bundle serves every config and link mode cy-pca/cvcpkg#510). Separately, cvcpkg's newinstall --no-deps(in review) installs a bundle without its deps.