Skip to content

publish-cvcgl-wasm: check the _ari gallery demos as arigl document pages - #840

Merged
transfix merged 1 commit into
masterfrom
fix/publish-wasm-gallery-doc-demos
Oct 27, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/publish-wasm-gallery-doc-demos

Conversation

@transfix

Copy link
Copy Markdown
Owner

The v3.7.1 publish of wasm-mt (run 40473376574, dispatched on master after #839) published cvc/libcvc and cvc/cvcgl 3.7.1+cvc.1. It then failed in the gallery step with gallery has no lsystem_forest_ari, so no libcvc-examples-web 3.7.1 package was published.

Since #820 the _ari demos are documents opened in arigl (demos.json "app" + "doc"). build-pages.py writes each one a redirect page (../arigl/?doc=<doc>) and copies no .wasm, but the step still checked <demo>/<demo>.wasm for them.

This PR:

  • checks the binary demos for their module, as before, with arigl added because the document demos need it;
  • checks the four document demos (lsystem_forest_ari, volren_bunny_ari, volslice_bunny_ari, fem_gallery_ari) for their redirect to arigl.

After this merges, dispatching publish-cvcgl-wasm on master with dry_run=false skips libcvc and cvcgl, which are already on the catalog, and publishes the gallery.

Since #820 the _ari demos are documents opened in arigl (demos.json app + doc): build-pages.py
writes each one a redirect page and no .wasm. The gallery check still wanted <demo>.wasm, so the
v3.7.1 publish failed after libcvc and cvcgl were already up, with no libcvc-examples-web package.
Check the binary demos (now with arigl) for their module and the document demos for their
redirect to arigl.
@transfix
transfix enabled auto-merge (squash) October 27, 2026 09:38
@transfix
transfix merged commit 2ebae2e into master Oct 27, 2026
23 of 24 checks passed
transfix added a commit that referenced this pull request Oct 27, 2026
Conflicts in inc/cvc/core/app.h and src/cvc/core/app.cpp, between
perf/async's background pool (anonymous tasks on persistent workers,
keyed tasks on threads of their own) and two master changes:

- #827 (fb3fccc) made a wait=false pooled job run under a reserved
  unique key and had finishing pooled workers reap finished ones
  (reserveThreadKey, retirePooledThread, reapFinishedPooledThreads,
  finished_pooled_thread, reap_when_done), closed the pool in ~app
  (_poolClosed) and swept the thread map again for threads started
  while ~app was joining.
- #825 (4cd69ad) null-checks threads(key) in startThreadPooled and
  holds interruption off in thread_info, thread_feedback and
  hdf5_utils::library_lock so an interrupt stays pending.

Resolution, keeping perf/async's pool design:

- The reap machinery and key reservation are dropped: an anonymous
  task has no key and never enters threads(), and its worker destroys
  it as soon as it ends, so there is nothing to reserve or reap.
  _poolClosed is perf/async's _poolStopping, set by stopThreadPool().
- ~app: stopThreadPool() (no queued task starts, later submissions are
  dropped, running tasks interrupted, workers joined), then master's
  bounded re-sweep of the thread map, which still catches a keyed pool
  thread that registers its successor after the first snapshot.
- uniqueThreadKey keeps master's single-lock search, without the
  reserved-key set.
- A keyed task is destroyed with interruption held off, as master's
  pooled worker did and perf/async's anonymous workers do.
- The threads(key) null check and the disable_interruption bookkeeping
  (thread_info, thread_feedback, library_lock) and hdf5_io's per-call
  app come over as master has them.
- Docs and comments (app.h, THREAD_POOL.md, THREAD_POOL_API.md,
  tf/overlay_tasks) describe the merged behaviour.

Master's app_test tests that pin the reap mechanism are adapted in the
next commit.
@transfix
transfix deleted the fix/publish-wasm-gallery-doc-demos branch October 29, 2026 20:53
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