Skip to content

publish-cvcpkg: build libcvc's bundle with its recipe's own script - #1136

Closed
transfix wants to merge 6 commits into
masterfrom
tfx/publish-via-recipe
Closed

transfix wants to merge 6 commits into
masterfrom
tfx/publish-via-recipe

Conversation

@transfix

@transfix transfix commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

This branch also carries #1181's commit (a011ed7), on Joe's call. Master fails the writable-data scan on a thread_local in cvc::ocean::sea_surface::source() (from #1159) until #1181 lands, and #1181 is waiting on macOS runners. Without that commit, #1136's package-linux / libcvc-release-grpc lane fails the scan. When #1181 lands, its squash and this merge carry the same change, so either order merges cleanly. Files from #1181: inc/cvc/ocean/sea_surface.h, inc/cvc/physics/{fluid_surface,ocean_surface}.h, src/cvc/ocean/sea_surface.cpp, src/cvc/physics/{field_step,ocean_surface}.cpp, two tests and two docs.

publish-cvcpkg.yml configured libcvc with its own inline cmake line instead of running the recipe's cvcpkg/recipes/libcvc/build.sh (build.ps1 on Windows). The two drifted apart twice, and both times the drift shipped:

  • +cvc.1 went out without CVC_USING_XMLRPC, which broke VolumeRover 2.x;
  • every libcvc through 3.7.5+cvc.2 went out without the gRPC and WebSocket transports.

The build job now runs the recipe's script, the same one cvcpkg's builders and ci-recipe.yml run, so the configure flags live in one place.

Changes

build.sh / build.ps1 pick up what the inline configure had and they lacked:

  • CVC_ENABLE_MESHER=ON and CVC_ENABLE_SDF=ON. Both are already the defaults; they are now written down with the rest of the SDK's feature set.
  • On macOS, CMAKE_IGNORE_PREFIX_PATH=/usr/local;/opt/homebrew, so nothing comes from Homebrew (the 3.7.1 turbojpeg link failure).
  • CVC_BUILD_ARISRV=OFF, beside the CLI and ari. The workflow installed only the libcvc component, but the scripts run a full install, and cvcpkg pack --from-prefix packs everything staged. With gRPC on, arisrv (default ON) would otherwise put bin/arisrv in the SDK bundle, the same file the arisrv package installs. The same applies to the recipe path today.
  • macOS has no nproc, so build.sh now asks sysctl for the job count instead of falling back to 4.

DISABLE_CGAL and CVC_BUILD_VOLROVER3 were dropped: the first is ignored and the second no longer exists.

publish-cvcpkg.yml, build job:

  • One step, Build & install libcvc (the recipe's script) (id build-libcvc), replaces the two configure steps, the separate configure assertions and the build step. It runs build.sh, or build.ps1 on Windows, which builds with cl and Ninja as the ari step already does.
  • The checks that the .ari loader, both terminal backends and both conference transports are enabled now run inside that step, after the script. A stub still fails build-libcvc, so neither the pack nor the steps that build ari, arisrv and the rest against stage/ run. The check now comes after the build instead of before it.
  • The pack step prints the bundle's file list.
  • The macOS Homebrew check and the XMLRPC check are unchanged; the build dir is still build/ and the stage is still stage/.

Not changed: the libcvc-cuda jobs keep their inline configure (self-hosted runners; Windows uses the VS generator with -T cuda=). Their comments now point at the scripts. cvcpkg/recipes/libcvc-cuda/build.sh is a separate copy that has already drifted from libcvc's. Both are follow-ups.

release.yml also inlines its configure. It builds the GitHub Release tarballs with CUDA, tests and the CLI, a different product from the cvcpkg SDK bundle, so it is not converted here.

Verification

The dry run on this branch, https://github.com/transfix/libcvc/actions/runs/42902542211 (dry_run=true, nothing published), concluded successfully.

Its printed bundle file lists match the published libcvc-3.7.13+cvc.2 bundles on all three release rows:

Row Published 3.7.13+cvc.2 Dry run (3.7.13+cvc.3) Missing Added
linux x86_64 release 542 554 0 12
macos arm64 release 542 554 0 12
windows x86_64 release 499 511 0 12
  • On every row, the 12 added entries are the same new headers and components from master since v3.7.13: conference/relay_session.h, conference/room_calls.h, core/file_handler_registry.h, core/param_{cli,dsl,table}.h, nav/world_grid.h, ocean/shore.h, state_exec/value_cbor.h, volume/contour_tree_params.h, and the world_physics.ari / world_source.ari components.
  • No bin/arisrv on any row.
  • The Windows bundle keeps bin/cvc.dll and the MSVC runtime DLLs.

The baselines were taken with cvcpkg download libcvc==3.7.13+cvc.2 and listed with Python's tarfile / zipfile, the same way the new pack step lists them.

linux/arm64 rows: both failed in the dry run, but not because of this change. cvcpkg install-deps found no linux/arm64 bundles for cdt, clipper2 and shewchuk-predicates, which #1112 made build deps. Joe approved publishing them, and cy-pca/cvcpkg populate-server run 42932376477 did. All three now download for linux/arm64.

Locally: the workflow YAML parses, bash -n build.sh passes, and PowerShell's parser finds no errors in build.ps1.

The publish workflow configured libcvc with its own inline cmake line
instead of running cvcpkg/recipes/libcvc/build.sh (build.ps1 on
Windows), and the two drifted apart twice, both times into a published
bundle: +cvc.1 without CVC_USING_XMLRPC (VolumeRover 2.x broke), and
every libcvc through 3.7.5+cvc.2 without the gRPC and WebSocket
transports. The build job now runs the recipe's script, the one
cvcpkg's builders and ci-recipe.yml run, so the flags live in one place.

What the inline configure set that the scripts lacked moved into them:
- CVC_ENABLE_MESHER and CVC_ENABLE_SDF, ON (their defaults), written
  down with the rest of the SDK's feature set;
- on macOS, CMAKE_IGNORE_PREFIX_PATH for both Homebrew prefixes.
DISABLE_CGAL and CVC_BUILD_VOLROVER3 were dropped: the first is ignored
and the second no longer exists.

The workflow installed only the libcvc component; the scripts run a
full install, and `cvcpkg pack --from-prefix` takes everything staged.
With gRPC on, arisrv (default ON) would then put bin/arisrv in the SDK
bundle, the file the arisrv package installs, so the scripts now set
CVC_BUILD_ARISRV=OFF beside the CLI and ari.

build.sh also asks sysctl for the job count on macOS, which has no
nproc, instead of falling back to 4.

The checks that the .ari loader, both terminal backends and both
conference transports are configured move into the build step, after
the script: a stub still fails build-libcvc, so neither the pack nor
the family steps that build ari, arisrv and the rest against stage/ run.
The pack step now prints the bundle's file list, to compare a run's
bundle with what a tag published. The libcvc-cuda jobs keep their inline
configure for now; their comments now point at the scripts.
@transfix
transfix marked this pull request as ready for review November 11, 2026 00:32
@transfix
transfix disabled auto-merge November 12, 2026 08:42
@transfix
transfix enabled auto-merge (squash) November 12, 2026 10:02
#1159 (O7c) kept the last source sea_surface found in a thread_local, so
the velocity a fluid field reads after a cell's height at the same point
and time did not invert the sideways move again. A thread_local that
keeps state between calls is a static cache, which libcvc's no-singletons
rule forbids (VOLROVER-LIBRARY-PORTS-ROADMAP.md 1.3,
tools/singleton_scan). #1159's release-grpc job, where the scan runs, was
cancelled, so the scan never judged it; the next PR that merges master
would fail that lane on it.

The memo now belongs to the caller:

- sea_surface::source_memo, and height() / velocity() overloads that take
  one. The plain reads share nothing.
- fluid_surface::height_with / velocity_with and a surface_memo the
  caller owns; the defaults ignore it. ocean_surface passes it to the sea.
- field_set::apply keeps one memo per cell, for the cell's height and its
  velocity at the same clipped centre.

The memo is keyed on the point, the time and the digest as before, so
every value is unchanged.
…not a thread_local

Master fails the writable-data scan on sea_surface::source's thread_local (#1159) until #1181
lands, and #1181 waits on macOS runners. This carries its commit (a011ed7) so #1136's checks run
against a master that passes the scan.
@transfix
transfix disabled auto-merge November 12, 2026 23:16
@transfix
transfix enabled auto-merge (squash) November 12, 2026 23:16
transfix added a commit that referenced this pull request Nov 13, 2026
…scripts (#1153)

publish-cvcpkg.yml configured libcvc with its own inline cmake line instead of running
cvcpkg/recipes/libcvc/build.sh (build.ps1 on Windows), and the two drifted apart twice, both
times into a published bundle: +cvc.1 without CVC_USING_XMLRPC (VolumeRover 2.x broke), and
every libcvc through 3.7.5+cvc.2 without the gRPC and WebSocket transports. The build job now
runs the recipe's script, the one cvcpkg's builders and ci-recipe.yml run, so the flags live in
one place.

- The scripts gain what the inline configure had: CVC_ENABLE_MESHER/SDF=ON and, on macOS,
  CMAKE_IGNORE_PREFIX_PATH for both Homebrew prefixes. They also set CVC_BUILD_ARISRV=OFF:
  `cvcpkg pack --from-prefix` packs everything staged, and a full install with gRPC on would
  otherwise put bin/arisrv in the SDK bundle. On macOS, build.sh takes its job count from sysctl.
- One step, build-libcvc, runs the script. The checks that the .ari loader, both terminal
  backends and both conference transports are configured run inside it, after the script, so a
  stub still stops the pack and the family steps.
- The pack step prints the bundle's file list.

Dry run 42902542211's bundles match the published 3.7.13+cvc.2 on linux x86_64, macos arm64 and
windows x86_64 release: none missing, plus the same 12 new headers and components from master,
and no arisrv.

libcvc-cuda (#1153): the two CUDA jobs build with cvcpkg/recipes/libcvc-cuda/build.sh and
build.ps1, which now run libcvc's scripts with CVC_ENABLE_CUDA=ON instead of keeping drifted
copies (gRPC off, no WebSocket or XMLRPC, no CVC_BUILD_ARISRV=OFF). After the build they fail if
CUDA did not enable (libcvc otherwise falls back to CPU-only) or if device code targets a single
GPU architecture.

- Linux CUDA: one step runs the script inside the nvidia/cuda:12.9.1-devel-ubuntu22.04
  container, greps the five feature lines and lists the bundle.
- Windows CUDA: moves from the Visual Studio generator to Ninja. ninja comes from the catalog
  next to cmake, ilammy/msvc-dev-cmd sets up VS 2022 (VS2026's cl ICEs on libcvc and nvcc 12
  refuses it), CVC_JOBS=4 replaces CVC_MSVC_MP=4, and -T cuda= is gone.

Dry run 43150296417 (at 259714b) passed both CUDA jobs: nvcc 12.9.86, GPU architectures
50;60;70;75;80;90;100;120, and bundles matching the published 3.7.13+cvc.2 plus the same 13 new
files from master on Linux and Windows.

This squash also carries #1136, whose branch #1153 was cut from; #1136's own head was blocked
by master's writable-data scan failure (#1193).
@transfix

Copy link
Copy Markdown
Owner Author

Closing: this change landed on master in #1153's squash (1e0966b), since #1153's branch was cut from this one and carried its commit. After merging master, the only diff left here was a copy of #1181's sea_surface fix (a011ed7), which #1181 lands itself.

@transfix transfix closed this Nov 13, 2026
auto-merge was automatically disabled November 13, 2026 00:35

Pull request was closed

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