Skip to content

ci(pycvc-gl-wasm): actually publish -- pass server/org/token, stop hiding failures - #605

Merged
transfix merged 1 commit into
masterfrom
ci/pycvc-gl-wasm-publish-creds
Oct 11, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/pycvc-gl-wasm-publish-creds

Conversation

@transfix

Copy link
Copy Markdown
Owner

What

publish-pycvc-gl-wasm's publish step has never published anything. It ran a bare cvcpkg publish "$a", with no --server, --org or token, and swallowed the failure with || echo "::warning::…". 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, then logged this under a green step:

Error: provide --server (or set CVCPKG_SERVER_URL) or --dest.

This PR makes the step mirror publish-cvcgl-wasm.yml, which does publish successfully:

  • CVCPKG_TOKEN comes from the secret, and the step is required to have it;
  • it runs cvcpkg publish "$a" --server https://cvcpkg.org --org cvc --token "$CVCPKG_TOKEN";
  • it skips only an exact name+version already on the catalog, so re-runs are safe;
  • it uses set -euo pipefail, so a failed publish now fails the job.

Verification

  • The YAML parses.
  • The name/version parsing gives pycvc-gl-cp312 / 3.5.1+cvc.1 on the real archive name (pycvc-gl-cp312-3.5.1+cvc.1-wasm-wasm32-release-static).
  • The publish command and existence check are the ones publish-cvcgl-wasm already uses successfully.

A dry run skips this step, so the real test is the publish itself. Once merged, dispatching with dry_run=false publishes pycvc-gl-cp312 3.5.1 for wasm.

…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
transfix merged commit 5e1f44a into master Oct 11, 2026
14 checks passed
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.
@transfix
transfix deleted the ci/pycvc-gl-wasm-publish-creds branch October 12, 2026 01:27
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