Repository navigation
ci(pycvc-gl-wasm): pack only pycvc-gl, not the whole dep-closure prefix - #609
Merged
Merged
Conversation
With the publish credentials fixed (#605), the master dispatch (run 38113351128) published 0/1: `cvcpkg publish` read the pycvc-gl-cp312 archive as cvc/assimp==6.0.5+cvc.6 and skipped it as already published. Had that assimp build not existed, it would have uploaded this bundle under assimp's name. The cause is the pack. The job builds pycvc-gl into $WASM_DEPS, which already holds the whole wasm dep closure, then ran `pack --from-prefix "$WASM_DEPS"`. That archived every dep's files along with its share/libcvc-deps/<dep>/manifest.yaml (242 MB), and `cvcpkg publish` takes the first manifest.yaml in the tar: assimp. `cvcpkg pack` without --from-prefix runs the same build_recipe as `cvcpkg build` (same --prefix, --host-platform, CVC_EMSDK_DIR from the env), but archives only the recipe's isolated install dir before merging it into $WASM_DEPS. So it replaces the build step, and Verify / the host upload still find everything in $WASM_DEPS. publish-cvcgl-wasm gets the same isolation by building into a clean $INST. Verify now also checks the bundle: exactly one pycvc-gl-cp312 archive, whose only cvcpkg manifest is pycvc-gl-cp312's, with _pycvc_gl.a; and it warns if pycvc_host.wasm is missing, since build-wasm.sh treats the host link as non-fatal.
…p arch wasm32 The dry run of the previous commit (run 38117927475) produced a clean 77 MB bundle carrying only pycvc-gl-cp312's manifest, but named it ...-wasm-x86_64-release-static: cvcpkg 2.4.0's pack_recipe (plain `cvcpkg pack`, which has no --arch) tags the bundle with the HOST arch, whereas pack_from_prefix derives wasm32 from the platform. So keep `cvcpkg build` and pack what it built: build_recipe installs into an isolated <tmp>/cvcpkg-pycvc-gl-cp312-*/install, merges that into $WASM_DEPS and keeps it. A dedicated TMPDIR makes that dir findable (exactly one match is required), and `pack --from-prefix` on it gives the same isolated bundle, tagged wasm32. Verify now also requires the -wasm-wasm32-release-static name.
transfix
added a commit
to cy-pca/cvcpkg
that referenced
this pull request
Oct 12, 2026
…are wasm32 Two ways a bundle's identity was lost between pack and publish, both hit publishing libcvc's pycvc-gl-cp312 3.5.1 wasm bundle (transfix/libcvc#609): publish took the FIRST manifest.yaml in the archive. libcvc packed pycvc-gl with `pack --from-prefix` of a prefix that also held its dependency closure, so the archive carried every dep's share/libcvc-deps/<dep>/manifest.yaml, and the sorted archive's first was assimp's: the 242 MB pycvc-gl bundle went up as cvc/assimp==6.0.5+cvc.6 (skipped only because that build existed). _extract_manifest now reads the bundle manifest locations (share/libcvc-deps/<name>/manifest.yaml, or the older flat one) ahead of any stray manifest.yaml, and refuses an archive carrying several packages' manifests, naming them; the same package's per-name and flat copies resolve to the per-name one. pack_from_prefix refuses such a prefix up front (_other_bundle_manifests): installing the bundle would also overwrite those packages' records. pack_recipe (plain `cvcpkg pack`) tagged the bundle with detect_arch(), the HOST arch: `pack --platform wasm` on x86_64 produced ...-wasm-x86_64-.... pack_from_prefix and install already derive it from the platform (_detect_arch_for_platform: wasm/wasm-mt -> wasm32); pack_recipe now does too, from the build platform, so the any/noarch identity is unchanged. The same host arch was what `pack --bump`, `next-revision` and `cascade-bump` looked published revisions up by, and what `publish` globbed dist/ with (so `publish <name> --platform wasm` and `publish --all --platform wasm` found nothing); all four use _detect_arch_for_platform now. pack-all already mapped wasm per bundle and is unchanged. docs/wasm-packaging.md: the clean-prefix requirement is now enforced, and publish by name works for wasm (it said to publish by path because by-name re-derived the host arch).
transfix
added a commit
to cy-pca/cvcpkg
that referenced
this pull request
Oct 13, 2026
…are wasm32 Two ways a bundle's identity was lost between pack and publish, both hit publishing libcvc's pycvc-gl-cp312 3.5.1 wasm bundle (transfix/libcvc#609): publish took the FIRST manifest.yaml in the archive. libcvc packed pycvc-gl with `pack --from-prefix` of a prefix that also held its dependency closure, so the archive carried every dep's share/libcvc-deps/<dep>/manifest.yaml, and the sorted archive's first was assimp's: the 242 MB pycvc-gl bundle went up as cvc/assimp==6.0.5+cvc.6 (skipped only because that build existed). _extract_manifest now reads the bundle manifest locations (share/libcvc-deps/<name>/manifest.yaml, or the older flat one) ahead of any stray manifest.yaml, and refuses an archive carrying several packages' manifests, naming them; the same package's per-name and flat copies resolve to the per-name one. pack_from_prefix refuses such a prefix up front (_other_bundle_manifests): installing the bundle would also overwrite those packages' records. pack_recipe (plain `cvcpkg pack`) tagged the bundle with detect_arch(), the HOST arch: `pack --platform wasm` on x86_64 produced ...-wasm-x86_64-.... pack_from_prefix and install already derive it from the platform (_detect_arch_for_platform: wasm/wasm-mt -> wasm32); pack_recipe now does too, from the build platform, so the any/noarch identity is unchanged. The same host arch was what `pack --bump`, `next-revision` and `cascade-bump` looked published revisions up by, and what `publish` globbed dist/ with (so `publish <name> --platform wasm` and `publish --all --platform wasm` found nothing); all four use _detect_arch_for_platform now. pack-all already mapped wasm per bundle and is unchanged. docs/wasm-packaging.md: the clean-prefix requirement is now enforced, and publish by name works for wasm (it said to publish by path because by-name re-derived the host arch).
transfix
added a commit
to cy-pca/cvcpkg
that referenced
this pull request
Oct 13, 2026
…are wasm32 (#168) Two ways a bundle's identity was lost between pack and publish, both hit publishing libcvc's pycvc-gl-cp312 3.5.1 wasm bundle (transfix/libcvc#609): publish took the FIRST manifest.yaml in the archive. libcvc packed pycvc-gl with `pack --from-prefix` of a prefix that also held its dependency closure, so the archive carried every dep's share/libcvc-deps/<dep>/manifest.yaml, and the sorted archive's first was assimp's: the 242 MB pycvc-gl bundle went up as cvc/assimp==6.0.5+cvc.6 (skipped only because that build existed). _extract_manifest now reads the bundle manifest locations (share/libcvc-deps/<name>/manifest.yaml, or the older flat one) ahead of any stray manifest.yaml, and refuses an archive carrying several packages' manifests, naming them; the same package's per-name and flat copies resolve to the per-name one. pack_from_prefix refuses such a prefix up front (_other_bundle_manifests): installing the bundle would also overwrite those packages' records. pack_recipe (plain `cvcpkg pack`) tagged the bundle with detect_arch(), the HOST arch: `pack --platform wasm` on x86_64 produced ...-wasm-x86_64-.... pack_from_prefix and install already derive it from the platform (_detect_arch_for_platform: wasm/wasm-mt -> wasm32); pack_recipe now does too, from the build platform, so the any/noarch identity is unchanged. The same host arch was what `pack --bump`, `next-revision` and `cascade-bump` looked published revisions up by, and what `publish` globbed dist/ with (so `publish <name> --platform wasm` and `publish --all --platform wasm` found nothing); all four use _detect_arch_for_platform now. pack-all already mapped wasm per bundle and is unchanged. docs/wasm-packaging.md: the clean-prefix requirement is now enforced, and publish by name works for wasm (it said to publish by path because by-name re-derived the host arch).
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.
What
After #605 fixed the publish credentials, the master dispatch (run 38113351128) went green but published 0/1 again:
cvcpkg publishread the pycvc-gl archive as assimp. It was skipped only because that assimp build already exists. Otherwise the pycvc-gl bundle would have been uploaded under assimp's name.Why
The job built pycvc-gl into
$WASM_DEPS, which already holds the whole wasm dependency closure, and then rancvcpkg pack --from-prefix "$WASM_DEPS". That archived every dep's files, each with itsshare/libcvc-deps/<dep>/manifest.yaml(242 MB in total).cvcpkg publishidentifies an archive by the firstmanifest.yamlin the tar, and in sorted order that's assimp's. publish-cvcgl-wasm avoids this by building into a clean$INST.Fix
cvcpkg buildalready installs into an isolated<tmp>/cvcpkg-pycvc-gl-cp312-*/install, merges that into$WASM_DEPS, and keeps it (build_recipedeletes onlybuild/). The step now gives the build a dedicatedTMPDIR, requires exactly one such install dir, and packs it withpack --from-prefix.$WASM_DEPSis unchanged, so the Verify and host-upload steps still find everything there.cvcpkg pack: it isolates the files too, but in cvcpkg 2.4.0pack_recipetags a wasm bundle with the host arch. The first dry run produced...-wasm-x86_64-release-static.pack_from_prefixderiveswasm32from the platform.-wasm-wasm32-release-static;share/libcvc-deps/pycvc-gl-cp312/manifest.yaml;_pycvc_gl.a;pycvc_host.wasmgives a warning, not an error, becausebuild-wasm.shtreats the host link as non-fatal.Verification
bundle must carry only pycvc-gl-cp312's manifest. A pycvc-gl-only bundle passes.manifests: share/libcvc-deps/pycvc-gl-cp312/manifest.yamland thePYCVC_VTK_BRIDGE_OK/PYCVC_WASM_OKsmoke passing. It was taggedx86_64, though, which the second commit fixes.pycvc-gl-cp312-3.5.1+cvc.1-wasm-wasm32-release-static.tar.gz(77,460,022 bytes) withmanifests: share/libcvc-deps/pycvc-gl-cp312/manifest.yaml._pycvc_gl.aandpycvc_host.wasmare both present (no warning), and the smoke printedPYCVC_VTK_BRIDGE_OK/PYCVC_WASM_OK. The publish step was skipped because this was a dry run.