Skip to content

ci: pin the pre-JX1 wasm bundles until JX2 - #1360

Merged
transfix merged 1 commit into
masterfrom
ci/pin-wasm-pre-jx1
Nov 19, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/pin-wasm-pre-jx1

Conversation

@transfix

Copy link
Copy Markdown
Owner

This unblocks libcvc's wasm CI until JX2.

cy-pca/cvcpkg#624 (JX1 of docs/roadmap/WASM_JSPI_EXCEPTIONS.md) republished 11 packages for wasm and wasm-mt, built with -fwasm-exceptions. libcvc still builds with Emscripten's JS exceptions (-fexceptions) until JX2, and the two don't link together. So every wasm job that installs those packages fails at link time. One example is the required "physics replay (wasm-mt, node)" check on #1293 (job 135255651689):

wasm-ld: error: .../libboost_thread.a(thread.cpp.o): undefined symbol: __cpp_exception

What it does

.github/scripts/pin-wasm-pre-jx1.sh PREFIX PLATFORM runs after a job has installed its deps.

  • For each pinned package the prefix holds, it re-installs the last bundle built the old way, with cvcpkg install --no-deps, so nothing else in the prefix moves.
  • It then checks that the lockfile records each pinned version.

Seven jobs call it right after their deps install:

  • physics replay, ports and permissive geometry (wasm-mt);
  • wasm-guests and the ari terminal backend (wasm);
  • arigl-web and ariglx-web (after install-deps).

Six of them are required checks. They all run on a PR that touches ci.yml, so this PR exercises them.

The pins are the newest wasm and wasm-mt bundles from before the republish:

package pin
boost 1.86.0+cvc.8
datachannel-wasm 0.4.0+cvc.1
freetype 2.13.3+cvc.4
libjpeg-turbo 3.1.0+cvc.3
libpng 1.6.44+cvc.5
lua 5.4.9+cvc.1
mujoco 4.0.0+cvc.3
mujoco3 3.17.0+cvc.2
qhull 8.0.2+cvc.2
tiff 4.7.0+cvc.3
vtk 9.5.0+cvc.5 (master's FinishEveryRender build, 2026-11-17, still JS exceptions)

JX2 deletes the script and its calls.

Checked

  • Every pin exists on cvcpkg.org for the flavours it's needed in: wasm and wasm-mt, except datachannel-wasm and lua, which are wasm only.
  • The script against a real prefix. With cvcpkg master's install --no-deps (CI's latest cvcpkg release has it):
    • the prefix starts with the republished freetype 2.13.3+cvc.6 and libpng 1.6.44+cvc.7;
    • the script puts back freetype cvc.4 and libpng cvc.5, and leaves their deps (bzip2, zlib) alone;
    • cvcpkg's new wasm-exceptions check then finds the old JS-longjmp objects in libfreetype.a and libpng16.a, which shows the files on disk were replaced, not just the lockfile.
  • ci.yml's line endings: it has one bare-LF line among its CRLF ones, and that line is unchanged.

Not covered

  • Other workflows that build libcvc for wasm install these packages unpinned too: ci-recipe.yml's wasm recipes, publish-cvcgl-wasm.yml, publish-pycvc-gl-wasm.yml, and the wasm legs of publish-cvcpkg.yml. They'll fail the same way if they run before JX2. None of them is a required check.
  • ariglx-web's wasm-mt leg doesn't run on this PR, because its path filter doesn't include ci.yml.

cy-pca/cvcpkg#624 republished boost, datachannel-wasm, freetype, libjpeg-turbo, libpng, lua,
mujoco, mujoco3, qhull, tiff and vtk for wasm and wasm-mt, built with -fwasm-exceptions.
libcvc still builds with JS exceptions until JX2, and the two don't link (physics replay on
#1293: libboost_thread.a needs __cpp_exception).

.github/scripts/pin-wasm-pre-jx1.sh runs after a wasm job installs its deps. For each pinned
package the prefix holds, it re-installs the last bundle built the old way, with
cvcpkg install --no-deps, then checks the lockfile. Seven jobs call it: physics replay, ports,
wasm-guests, permissive geometry, ari terminal backend, arigl-web and ariglx-web. JX2 deletes
it.
@transfix
transfix enabled auto-merge (squash) November 19, 2026 04:17
transfix added a commit that referenced this pull request Nov 19, 2026
Every deploy since 2026-11-18T23:13 fails at link with libfreetype.a(ftbase.c.o): undefined
symbol: __wasm_longjmp (run 44437115573): cy-pca/cvcpkg#624 (JX1) republished wasm packages
built with -fwasm-exceptions, and libcvc still builds with JS exceptions until JX2. #1360 adds
.github/scripts/pin-wasm-pre-jx1.sh and calls it in ci.yml; this calls it at the end of the
deploy's install step, after every wasm install, and lets a change to the script redeploy.
@transfix
transfix merged commit 7d145cd into master Nov 19, 2026
50 of 52 checks passed
@transfix
transfix deleted the ci/pin-wasm-pre-jx1 branch November 19, 2026 08:15
transfix added a commit that referenced this pull request Nov 19, 2026
transfix added a commit that referenced this pull request Nov 19, 2026
…1363)

* web gallery: keep each demo's wasm, data and glue in Cache Storage by content hash

GitHub Pages serves every file with max-age=600 and an ETag made from the file's time, and deploy
pages rewrites every file on each push to master, so after any deploy the browser revalidated and
downloaded arigl.wasm (59 MB, 17 MB on the wire), arigl.data and arigl.js again, changed or not.
The page also fetched the wasm with cache: 'no-cache'.

build-pages.py now bakes each template page's large files into it as ASSETS ({wasm, data, js},
each name, the first 16 hex digits of its SHA-256 and size). demo.html.in keeps them in Cache
Storage keyed by name + hash: a hit is used with no request at all; a miss is downloaded (one
progress line), kept under the hash of the bytes that came, and that asset's other versions are
deleted. The .data goes to Emscripten through Module.getPreloadedPackage and the glue runs from a
blob URL (Module.mainScriptUrlOrBlob keeps a threaded build's workers on the real URL). A copy of
the page older than the deploy, whose download hashes differently, reloads itself once per page
version. Without Cache Storage (insecure context, some private windows, storage errors) or with
?nocache the page loads as before.

deploy-pages.yml: a push touching only docs/, top-level notes (THIRD_PARTY_NOTICES.md excepted,
it ships in the gallery), .github/ other than this workflow, or bindings/ no longer redeploys.

* deploy pages: pin the pre-JX1 wasm bundles before the build

Every deploy since 2026-11-18T23:13 fails at link with libfreetype.a(ftbase.c.o): undefined
symbol: __wasm_longjmp (run 44437115573): cy-pca/cvcpkg#624 (JX1) republished wasm packages
built with -fwasm-exceptions, and libcvc still builds with JS exceptions until JX2. #1360 adds
.github/scripts/pin-wasm-pre-jx1.sh and calls it in ci.yml; this calls it at the end of the
deploy's install step, after every wasm install, and lets a change to the script redeploy.
transfix added a commit that referenced this pull request Nov 19, 2026
…Integration), which PRs skip

#1356 put TilerBunny on every PR. That's about 13 s in Release, but a
Debug build runs the bunny's SDF and the tiling many times slower.
package-linux's libcvc-debug took about 450 s on a quiet runner (#1357,
#1358). On a loaded one it ran past its 900 s timeout three times over
(#1296, #1360), and failed that required job for every PR.

So in a Debug build the suite is TilerBunnyIntegration. ci.yml's
STRESS_REGEX takes Integration as a heavy suite, which no PR or Debug job
runs; Release pushes still do. A Release build keeps the name TilerBunny,
so every PR's Release lanes still run it.

The tests' CMakeLists comment and the VolumeRover ports roadmap say the
same.
transfix added a commit that referenced this pull request Nov 20, 2026
…es (#1383)

4.0.2 carries what master has merged since v4.0.1 (cb5f7bd, #1299). CMakeLists.txt and every
cvcpkg recipe's upstream_version move to 4.0.2; cvc_revision is already 1 everywhere.

v4.0.1 published no wasm: publish-cvcgl-wasm (arigl-web, the gallery) and publish-pycvc-gl-wasm
failed at the link on cvcpkg#624's wasm-exceptions bundles (__wasm_longjmp, __cpp_exception).
#1360 pinned the pre-JX1 bundles in ci.yml only; publish-cvcgl-wasm.yml and
publish-pycvc-gl-wasm.yml now call pin-wasm-pre-jx1.sh after each wasm deps install too.

imagemagick joins the pins at 7.1.2+cvc.23, the newest JS-exceptions wasm and wasm-mt bundle,
ahead of its own wasm republish (JX2's first step). JX2 deletes the script and its calls.
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