Skip to content

fix(release): unblock tag releases -- release/shared deps for every lane, Debug best-effort - #585

Merged
transfix merged 1 commit into
masterfrom
fix/release-workflow-deps
Oct 8, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/release-workflow-deps

Conversation

@transfix

@transfix transfix commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Problem

release.yml has failed on every v* tag since v3.3.0. The failed runs are v3.3.0 33675572731, v3.4.0 34820102876 and v3.5.0 37700967617. Nightly, which calls the same workflow, has failed every night, and the nightly release has not been updated since 2026-05-25. release has needs: [linux, macos, windows], so it was skipped every time. v3.3.0 and v3.4.0 have no release at all, and v3.5.0's was made by hand with 5 of the 12 archives.

Root causes (v3.5.0 logs + cvcpkg catalog rev 5186)

1. Debug lanes asked for debug deps, and the catalog doesn't have a full set. fetch-libcvc-deps was called with build_type: ${{ matrix.build_type }}. cvcpkg install-deps refused because components were missing, path came back empty, and Configure failed at find_package(libiimod). Coverage of libcvc's dependency closure by catalog tuple:

release/shared release/static debug/shared debug/static
linux x86_64 (37 deps) 37 31 33 32
macos arm64 (33 deps) 33 3 26 3
windows x86_64 (34 deps) 34 21 15 18

Release/shared is the only tuple that is complete on all three platforms. It is also what ci.yml's package-linux / libcvc-debug and package-macos / libcvc-debug (both pass) and publish-cvcpkg.yml's Debug bundles already build against. The gaps are mostly deps the recipe gained after v3.2.4, the last green release: yaml-cpp, ftxui, nlohmann-json, json-schema-validator, assimp and pocketfft.

2. linux release-static passed -DBoost_USE_STATIC_LIBS=ON over a shared-only prefix. This flag is left over from when deps came from apt, whose -dev packages ship .a files. libcvc's own Boost lookup ignores it, because CMake/SetupBoost.cmake forces shared Boost and exports BOOST_ALL_DYN_LINK. But src/cvc-cli's directory-scope find_package(Boost COMPONENTS program_options) sees it and rejects boost_program_options-1.86.0-shared. That is the v3.5.0 linux static failure. macOS release-static passes because it never sets the flag: it builds libcvc static over the same shared prefix.

Fix

  • Linux/macOS: every lane fetches release/shared deps, matching ci.yml. Debug libcvc links the Release shared deps fine on these platforms.
  • Linux static: drop -DBoost_USE_STATIC_LIBS=ON and -DHDF5_USE_STATIC_LIBRARIES=ON. Static now means libcvc static over shared deps, which is what macOS and Windows static already ship. Passing link: ${{ matrix.link }} instead would not work: the static tuples are 31/37, 3/33 and 21/34, so it would break the static lanes that currently pass.
  • Windows: drop the Debug rows, as ci.yml's package-windows already has. There are no windows-debug dep bundles, and a Debug (/MDd) libcvc over Release (/MD) DLLs is a CRT mismatch. The comment says how to restore them.
  • release job: runs if: !cancelled() and is gated by a new "Check artifact set" step. All 6 Release-config archives are required, so a missing one fails the job before any tag or release is touched. The 4 Debug archives are best-effort: a missing one produces a warning and the release goes out without it.
  • workflow_dispatch = dry run. The rolling-tag and publish steps run only for a v* tag push or a rolling_tag call. A dispatch on any ref builds the full matrix, checks the artifact set and writes a "would attach" summary.

Considered and rejected:

  • Publishing the missing debug/static bundles: that is about 90 bundle-tuples, and transfix/libcvc-deps is archived. It would also leave release.yml depending on tuples no PR builds, so every new recipe dep would break the next tag again.
  • --fallback-to-source for Debug: on Windows that means source-building 19 deps, including boost, cgal, grpc and imagemagick, and it is unnecessary on Linux/macOS.

Validation

Dry run passed. workflow_dispatch on this branch, run 37827448873, took 44 min and all 11 jobs passed.

lane v3.5.0 (37700967617) dry run archive
linux debug-shared ❌ Configure ✅ 61.5 MB
linux debug-static ❌ Configure ✅ 101.0 MB
linux release-shared ✅ ✅ 15.5 MB
linux release-static ❌ Configure (boost_program_options) ✅ 19.2 MB
macos debug-shared ❌ Configure ✅ 53.8 MB
macos debug-static ❌ Configure ✅ 112.6 MB
macos release-shared ✅ ✅ 50.6 MB
macos release-static ✅ ✅ 58.2 MB
windows debug-shared / -static ❌ Configure removed (see above) —
windows release-shared ✅ ✅ 188.2 MB
windows release-static ✅ ✅ 188.2 MB
release skipped ✅ —

In the release job:

  • Check artifact set: ok for all 6 required Release archives and all 4 Debug archives.
  • Dry run summary: written.
  • Recreate rolling tag (nightly mode) and Create GitHub Release: both skipped (PUBLISH=false).

Afterwards, gh release list shows no new release, and the nightly tag is still at b8367667.

The "Check artifact set" script was also exercised locally against v3.5.0's hand-attached set, where it fails on the missing linux release-static archive and warns on the 4 Debug archives, and against a partial nightly-style set, where it passes with warnings.

No release, tag or existing run was created, edited or deleted.

Out of scope / follow-ups noticed

  • The Linux SDK tarballs are not self-contained. The v3.5.0 linux tarball ships libcvc plus fftw3 only. Its staging step still copies Boost/HDF5/GSL from apt's /usr/lib, but deps now come from cvcpkg. The macOS static zip ships only a partial set of .a files, and no platform ships the deps' CMake configs. This is unchanged by this PR.
  • publish-cvcpkg.yml publishes a windows/debug libcvc bundle (since f37762a), but its fetch step always installs Release deps. The catalog has no windows-debug gmp, libiimod, cgal, etc. Addressed separately in ci(publish): restore the windows-debug exclusion -- the bundle links Release CRT deps #586.

…ane, Debug best-effort

release.yml has failed on every v* tag since v3.3.0 (v3.3.0, v3.4.0,
v3.5.0 run 37700967617), and nightly every night since 2026-05-25, so
no release has been created automatically in that time.

Causes, from the v3.5.0 logs and the cvcpkg catalog (revision 5186):

- Debug lanes asked fetch-libcvc-deps for the debug tuple. The catalog's
  debug tuples are incomplete for libcvc's dep closure (linux 33/37,
  macos 26/33, windows 15/34), install-deps refuses, `path` comes back
  empty, Configure dies at find_package(libiimod). Only release/shared
  is complete on all three platforms (37/37, 33/33, 34/34), and it is
  what ci.yml's Debug lanes and publish-cvcpkg.yml's Debug bundles
  already build against. Linux/macOS Debug now fetch release/shared too.

- linux release-static passed -DBoost_USE_STATIC_LIBS=ON (left over from
  the apt era) over a shared-only prefix. libcvc's own Boost lookup
  ignores it (CMake/SetupBoost.cmake forces shared Boost and exports
  BOOST_ALL_DYN_LINK), but src/cvc-cli's find_package(Boost
  COMPONENTS program_options) saw it and rejected the -shared config.
  macOS release-static passed because it never set the flag. Drop it
  (and the HDF5 twin): static libcvc over shared deps, as on
  macOS/Windows. Fetching link=static instead is not viable: the static
  tuples are 31/37 (linux), 3/33 (macos), 21/34 (windows).

- Windows Debug: no windows-debug dep bundles, and Release deps are a
  /MDd vs /MD CRT mismatch. Drop the rows, as ci.yml already has.

The release job now runs unless cancelled and gates on a "Check artifact
set" step: every Release-config archive is required, Debug archives are
best-effort (warning, attached when present). The rolling-tag and
publish steps run only for a v* tag push or a rolling_tag call;
workflow_dispatch is added as a dry run that builds the matrix and
checks the artifact set without touching any tag or release.
@transfix
transfix merged commit e17d4ea into master Oct 8, 2026
25 checks passed
transfix added a commit that referenced this pull request Oct 9, 2026
Patch release carrying the fixes since 3.5.0: the cvcGL M_PI build fix
(#582), CameraController Map mode holding its pose (#584), the tag-release /
publish workflow fixes (#585, #586), macro-safe public headers after
<signal.h> / <sys/param.h> (#588), and the X11 `None` renames (#589:
ariadne::BorderShow::None -> Off, gl::Switch::None -> Off). Bumps
project(VERSION) 3.5.0 -> 3.5.1 and every cvcpkg recipe's upstream_version to
match (cvc_revision stays 1, per the recipe-version gate).
@transfix
transfix deleted the fix/release-workflow-deps branch October 10, 2026 03:37
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