Repository navigation
ci(pycvc-gl-wasm): actually publish -- pass server/org/token, stop hiding failures - #605
Merged
Merged
Conversation
…ding failures The publish step ran a bare `cvcpkg publish "$a"` with no --server, --org or token and swallowed any failure with `|| echo ::warning`, so it has never published: the catalog has no pycvc-gl-cp312 wasm build at any version. The v3.5.1 dispatch (run 38103241497) built and packed the 242 MB archive and then logged "Error: provide --server (or set CVCPKG_SERVER_URL) or --dest." under a green step. Mirror publish-cvcgl-wasm.yml: CVCPKG_TOKEN from the secret (required), `cvcpkg publish "$a" --server https://cvcpkg.org --org cvc --token ...`, skip only an exact name+version already on the catalog, and `set -euo pipefail` so a failed publish fails the job.
transfix
added a commit
that referenced
this pull request
Oct 11, 2026
…ix (#609) * ci(pycvc-gl-wasm): pack only pycvc-gl, not the whole dep-closure prefix 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. * ci(pycvc-gl-wasm): pack the isolated install via --from-prefix to keep 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.
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
publish-pycvc-gl-wasm's publish step has never published anything. It ran a barecvcpkg publish "$a", with no--server,--orgor token, and swallowed the failure with|| echo "::warning::…". The catalog has nopycvc-gl-cp312wasm build at any version. The v3.5.1 dispatch (run 38103241497) built and packed the 242 MB archive, then logged this under a green step:This PR makes the step mirror
publish-cvcgl-wasm.yml, which does publish successfully:CVCPKG_TOKENcomes from the secret, and the step is required to have it;cvcpkg publish "$a" --server https://cvcpkg.org --org cvc --token "$CVCPKG_TOKEN";set -euo pipefail, so a failed publish now fails the job.Verification
pycvc-gl-cp312/3.5.1+cvc.1on the real archive name (pycvc-gl-cp312-3.5.1+cvc.1-wasm-wasm32-release-static).publish-cvcgl-wasmalready uses successfully.A dry run skips this step, so the real test is the publish itself. Once merged, dispatching with
dry_run=falsepublishes pycvc-gl-cp312 3.5.1 for wasm.