Skip to content

deploy-pages: install the media deps for wasm32, and say when one fails - #1459

Merged
transfix merged 1 commit into
masterfrom
ci/deploy-pages-wasm32
Nov 22, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/deploy-pages-wasm32

Conversation

@transfix

Copy link
Copy Markdown
Owner

Master's Pages deploy is red since JX2 (#1409). The deploy for d6b0bb8 (run 44986420465, catx-03) failed to link ten gallery targets, arigl.js and nine demos:

wasm-ld: error: /opt/cvc-wasm/deps-wasm-mt/lib/libMagickCore-7.Q16HDRI.a(...jpeg.o): undefined symbol: __resumeException
wasm-ld: error: /opt/cvc-wasm/deps-wasm-mt/lib/libMagickCore-7.Q16HDRI.a(...png.o): undefined symbol: emscripten_longjmp

All 120 errors are in MagickCore. catx-03's prefix persists between runs, and it still held imagemagick 7.1.2+cvc.23, the JS-exceptions bundle that pin-wasm-pre-jx1.sh installed until #1409 deleted it.

Why nothing replaced it

The deploy's first install loop (zlib … assimp, imagemagick) installs for --arch x86_64. cvcpkg's wasm bundles are tagged wasm32 now. Under x86_64 the catalog has only old ones (imagemagick 7.1.1+cvc.22, assimp 6.0.5+cvc.6) that need a wasm cmake, so every install in the loop failed: no candidate for 'cmake' satisfies constraints ... required by zlib. | tail -3 || echo "(skipped)" hid that, since the pipe's status is tail's.

It went unseen because the pin installed imagemagick for wasm32, and the vtk step installs the loop's other packages for wasm32 as vtk's dependencies. CI/CD's wasm jobs start from an empty prefix on GitHub's runners, so they install cvc.27 and pass.

The fix

  • The loop installs for wasm32.
  • A package that fails prints the end of cvcpkg's output and a ::warning::, instead of nothing.

Checked

  • The loop, run for wasm32 into an empty prefix with cvcpkg 2.5.1, installs all 13 packages: imagemagick 7.1.2+cvc.27, assimp 6.0.5+cvc.7, and the versions the vtk step already installs.
  • cvcpkg's wasm-exceptions gate (wasm: the exceptions gate reads every wasm object, .so included; numpy-cp312 cvc.7 cy-pca/cvcpkg#633) over that prefix finds no problems in its 22 archives. MagickCore keeps its file name, so cvc.27 overwrites catx-03's cvc.23.
  • The step passes bash -n. Under bash -e, a stub cvcpkg that fails for imagemagick gets the warning, and the loop carries on.

PR CI never runs deploy-pages.yml, and the job always builds master, so the first deploy after this merges is the real check.

The first JX2 deploy (d6b0bb8) failed to link ten gallery targets on MagickCore's
__resumeException and emscripten_longjmp: catx-03's prefix still held imagemagick
7.1.2+cvc.23, the JS-exceptions bundle the pin script had installed.

The loop that should have replaced it installs for --arch x86_64. cvcpkg's wasm bundles are
tagged wasm32 now; under x86_64 the catalog has only old ones that need a wasm cmake, so every
install in the loop failed, and `| tail -3 || echo` hid it. Until JX2 the pin installed
imagemagick for wasm32, and the vtk step installs the rest of the loop's packages for wasm32,
so nothing showed.

The loop installs for wasm32, and a package that fails prints the end of cvcpkg's output and a
warning instead of nothing.
@transfix
transfix merged commit 5100b27 into master Nov 22, 2026
31 checks passed
@transfix
transfix deleted the ci/deploy-pages-wasm32 branch November 22, 2026 20:51
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