Skip to content

ci(publish): publish the full libcvc package family (cvcgl, pycvc, pycvc-gl) - #129

Merged
transfix merged 1 commit into
masterfrom
ci/publish-libcvc-family
Jul 22, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/publish-libcvc-family

Conversation

@transfix

Copy link
Copy Markdown
Owner

What

Extends .github/workflows/publish-cvcpkg.yml so the publish CI publishes the whole libcvc package family to the cvc org, not just libcvc. The extra packages build/pack/publish in the same build-matrix jobs, against the just-installed libcvc SDK (stage) + the fetched deps prefix, from their in-repo recipes cvcpkg/recipes/{cvcgl,pycvc,pycvc-gl}.

Per-platform coverage

Platform Packages published
Linux (release) libcvc + cvcgl + pycvc + pycvc-gl
Windows (release) libcvc + cvcgl (always); pycvc / pycvc-gl only behind the new windows_pycvc dispatch input (default off, EXPERIMENTAL/TODO)
macOS libcvc only (no macOS VTK bundle on the catalog yet)

Family packages build in release matrix jobs only (they pack --config release against the release Python/numpy/VTK bundles).

Steps added (Linux)

  1. Install family deps — cvcpkg install python311 numpy-cp311 vtk into a side prefix $PY. Works around the numpy-cp311 wheel's non-self-resolving openblas RPATH by putting numpy.libs on LD_LIBRARY_PATH for configure and computing the numpy include dir with it. (TODO: drop once the numpy recipe fixes the wheel RPATH and republishes — separate libcvc-deps PR.)
  2. cvcgl — cmake -S src/cvcGL against $STAGE;$PY;$DEPS (VTK lives in $PY) → install stage-cvcgl → pack cvcpkg/recipes/cvcgl → publish.
  3. pycvc — cmake -S bindings/pycvc -DCVC_BUILD_PYCVC_CORE=ON -DCVC_BUILD_PYCVC_GL=OFF with Python3_EXECUTABLE/Python3_NumPy_INCLUDE_DIR → install stage-pycvc → pack → publish.
  4. pycvc-gl — same, CORE=OFF GL=ON, prefix path adds stage-cvcgl (links the installed cvcGL) → pack → publish.

Windows

  • cvcgl mirrors the pattern in PowerShell using the default VS2022 generator (no vcpkg toolchain, matching the existing libcvc Windows path); installs only VTK.
  • pycvc / pycvc-gl are implemented but gated behind the windows_pycvc workflow_dispatch input (default false) and marked EXPERIMENTAL/TODO — Windows Python + numpy + SWIG discovery is unverified. Tag pushes never run them.

Independence & failure visibility

Each family step is guarded with !cancelled() && steps.build-libcvc.outcome == 'success':

  • Packages stay independent of each other — a pycvc failure never blocks libcvc or cvcgl.
  • Real failures remain visible as red steps rather than being masked by continue-on-error.
  • Family steps don't fire when the libcvc build itself failed (no SDK to build against).

Token note

Added a comment on CVCPKG_TOKEN stating the requirement (unchanged in this PR): in prod the token's owning user must be a member of the cvc org (owner/publisher) or every publish 403s. No secrets added or rotated here.

Validation

actionlint not available on this host; validated with python -c "import yaml; yaml.safe_load(...)" — parses clean. Local end-to-end of the Linux build/pack/publish sequence was verified before writing the workflow.

…cvc-gl)

The publish-cvcpkg workflow previously published only libcvc. Extend the
existing build matrix jobs to also build, pack, and publish the rest of
the family from their in-repo recipes (cvcpkg/recipes/{cvcgl,pycvc,pycvc-gl})
against the just-installed libcvc SDK + fetched deps prefix.

Coverage:
  - Linux (release): libcvc + cvcgl + pycvc + pycvc-gl. Installs
    python311/numpy-cp311/vtk into a side prefix; works around the
    numpy-cp311 wheel's non-self-resolving openblas RPATH by putting
    numpy.libs on LD_LIBRARY_PATH for configure and computing the numpy
    include dir with it (TODO: drop once the numpy recipe is fixed).
  - Windows (release): libcvc + cvcgl always (no Python needed). pycvc /
    pycvc-gl are gated behind a new `windows_pycvc` workflow_dispatch input
    (default off) and clearly marked EXPERIMENTAL/TODO — Windows Python +
    numpy + SWIG discovery is unverified.
  - macOS: libcvc only (no macOS VTK bundle on the catalog yet).

Family packages build only in RELEASE jobs (they pack --config release).
Each package step is guarded with `!cancelled() && steps.build-libcvc.outcome
== 'success'` so packages stay independent of each other (a pycvc failure
never blocks libcvc or cvcgl) while real failures remain visible as red
steps rather than being masked with continue-on-error.

Also documents on CVCPKG_TOKEN that the token's owning user must be a member
of the cvc org (owner/publisher) or publish 403s.
@transfix
transfix merged commit 665d02c into master Jul 22, 2026
5 of 8 checks passed
@transfix
transfix deleted the ci/publish-libcvc-family branch July 22, 2026 03:34
transfix added a commit that referenced this pull request Sep 26, 2026
…b-3 PRs open (#427)

Reflect actual state: Track 1 (a-d) MERGED (#421-#424), Track 2 MERGED (GRL-SNAM#96),
Track 3a MERGED (cvcdbg#128/#129), Track 3b-1 MERGED (#425). Track 3b-2 (raster bridge,
#426) + Track 3b-3 (RF publisher + demo3 wiring, cvcdbg#130) PRs open in CI. Document the
3b split (3b-1 base/formation, 3b-2 version-gated volume rasters, 3b-3 RF+demo) and the
Track-4 reserved RF fields (composite_score / cvar_jam_loss / worst_jam_loss).
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