Skip to content

cvcpkg recipes: pin libcvc's major in every dependency on its own packages - #1289

Merged
transfix merged 1 commit into
masterfrom
fix/pin-libcvc-major
Nov 16, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/pin-libcvc-major

Conversation

@transfix

Copy link
Copy Markdown
Owner

Every cvcpkg recipe in this tree that depends on libcvc, libcvc-cuda, cvcgl or pycvc now pins libcvc's major, version: "^4.0". A new CI step keeps the pins on CMakeLists.txt's major.

Why

Every package built here (ari*, arisrv*, arigl*, arix, cvc-cli*, cvcgl*, libcvc-examples, pycvc*, pycvc-gl*) links the libcvc of its own release. libcvc's SONAME carries the major: libcvc.so.4, and libcvcGL.so.4 beside it since #1221. The recipes declared these dependencies with no version, so cvcpkg install took the newest provider.

Once 4.0.0 reached the catalog, the sublevels agent found cvcpkg install arisrvx==3.7.13+cvc.3 taking libcvc-cuda 4.0.0+cvc.1 on a GPU box, where ldd reported libcvc.so.3 => not found. CPU boxes will do the same once plain libcvc 4.0.0 is published for linux x86_64 (publish-cvcpkg run 43754890264 is building it).

What changed

  • 59 dependencies in 20 recipes, build and runtime, gain version: "^4.0". They are every depends: entry naming a recipe under cvcpkg/recipes/, or a name one of them provides (libcvc-cuda provides libcvc, cvcgl-cuda provides cvcgl, and so on). Comments and platforms: keys are unchanged.
  • .github/scripts/recipe-family-pins.py, run as a new step of the recipes match CMakeLists version job (no new required check). It fails when such a dependency does not pin ^<major>.0 for CMakeLists.txt's major. A minor bump leaves the pins alone. A major bump fails this step until they move with upstream_version, and the error says how.

How cvcpkg reads the pin

Checked in cvcpkg's source and by running its code:

  • runtime_dependencies_from_raw (what every publish path uses) writes the range into the bundle's required_deps. On the pinned arisrvx recipe it gives [{'name': 'libcvc', 'version': '^4.0'}, {'name': 'python312'}].
  • The resolver's candidates for libcvc include every provider of it, and it tests the range against the provider's own version. ^4.0 means at least 4.0.0 and below 5.0.0, and ranges ignore +cvc.N.
  • With cvcpkg's resolve() on a small catalog of libcvc and libcvc-cuda at 3.7.13 and 4.0.0:
    • arisrvx 3.7.13, unpinned as published: gets libcvc 4.0.0 on a CPU host and libcvc-cuda 4.0.0 on a GPU host. This reproduces the report.
    • The same arisrvx republished with ^3.7: gets 3.7.13 on both hosts.
    • arisrvx 4.0.0 with this PR's pin: gets 4.0.0 on both hosts. Forcing libcvc==3.7.13 beside it fails to resolve instead of installing a pair that won't load.

Testing

  • recipe-family-pins.py:
    • passes on this branch (59 pins);
    • fails on master's recipes (59 unpinned);
    • fails on this branch with CMakeLists' VERSION set to 5.0.0.
  • recipe-deps-parity.py still passes: every -cuda recipe matches its CPU peer.
  • cvcpkg validate cvcpkg/recipes gives the same output on this branch as on master. That output is 24 "unknown dependency" errors for packages this machine's cvcpkg recipe set lacks (imgui-w32, scene-*, ...), none from the pins.
  • ci.yml keeps its stored line endings: CRLF, with its one LF line.

Not in this PR

  • The 4.0.0 bundles on the catalog now are unpinned. Run 43754890264 builds from the v4.0.0 tag. They get the pins the next time they are published from master.
  • The published 3.7.13 bundles stay unpinned, so an install that names a 3.7.13 dependent and not libcvc still gets libcvc 4.0.0. Fixing that takes one of these, all Joe's call:
    • republish the 3.7.13 dependents from release/3.x with ^3.7 pins (a PR there, then a publish);
    • change the catalog rows on the server. cvcpkg's scripts/backfill_required_deps.py only fills rows whose required_deps is empty, so it would need a change;
    • have 3.7.13 users pin libcvc themselves, as sublevels does (libcvc==3.7.13+cvc.3).
  • Pinning tighter than the major (==4.0.0 per release, say) would also catch ABI changes between 4.x minors. It would also make every release bump touch these 59 lines. The SONAME is the major, so this PR pins the major.

No auto-merge without Joe's OK.

…kages

Every package built from this tree links the libcvc of its own release,
and libcvc's SONAME carries the major (libcvc.so.4, libcvcGL.so.4). The
recipes declared their libcvc, cvcgl and pycvc dependencies with no
version, so `cvcpkg install` took the newest provider. Once 4.0.0 reached
the catalog, arisrvx 3.7.13+cvc.3 resolved libcvc-cuda 4.0.0 on a GPU box
and did not load (libcvc.so.3 => not found). Plain libcvc 4.0.0 would do
the same on CPU boxes.

Each of the 59 dependencies, build and runtime, on a recipe under
cvcpkg/recipes/ or a name one provides, now carries version "^4.0". cvcpkg
writes the range into the bundle's required_deps, and its resolver tests it
against whichever recipe provides the name (libcvc-cuda for libcvc),
ignoring +cvc.N.

.github/scripts/recipe-family-pins.py, a new step of the recipe-version CI
job, fails when such a dependency does not pin "^<major>.0" for
CMakeLists.txt's major. A major bump moves the pins with upstream_version;
a minor bump leaves them alone.
@transfix
transfix enabled auto-merge (squash) November 16, 2026 00:47
@transfix
transfix merged commit 3306331 into master Nov 16, 2026
29 checks passed
@transfix
transfix deleted the fix/pin-libcvc-major branch November 16, 2026 21:21
transfix added a commit that referenced this pull request Nov 16, 2026
One conflict, in src/cvcGL/CameraController.cpp's includes: this branch's <cassert> and #1257's
<cctype> (sliceAxisOf), both kept.
transfix added a commit that referenced this pull request Nov 17, 2026
…packages (#1331)

#1289 on master, for release/3.x. Every package built from this tree
links the libcvc of its own release, and libcvc's SONAME carries the
major (libcvc.so.3 here). The recipes declare their libcvc, cvcgl and
pycvc dependencies with no version, so `cvcpkg install` takes the newest
provider. With 4.0.0 in the catalog, a fresh install of ari, arisrvx or
pycvc 3.7.14 (or 3.7.13) resolves libcvc 4.0.0 and does not load
(libcvc.so.3 => not found).

Each of the 59 dependencies, build and runtime, on a recipe under
cvcpkg/recipes/ or a name one provides (libcvc-cuda provides libcvc) now
carries version "^3.7": any 3.x from 3.7 on, never 4.x. They are the same
59 as #1289's, recipe for recipe.

#1289's checker and CI step are not carried over: release/3.x's ci.yml
runs on neither its pushes nor PRs into it, so the step would never run.
transfix added a commit that referenced this pull request Nov 21, 2026
…he major (#1377)

* cvcpkg recipes: pin every family dependency to its own release, not the major

While libcvc 4.0.1 was half-published (2026-11-19), CVC-Lab/GRL-SNAM's CI
resolved pycvc-gl-cp313 4.0.1 with cvcgl 4.0.0 (undefined symbol
cvc::gl::RibbonNode::replaceFrom) and pycvc-cp311 4.0.0 with libcvc 4.0.1
(segfaults, garbage energies). The ABI changes between patch releases, and
v4.0.1 predates #1289, so its rows record those edges with no version at all;
"^4.0" would have allowed the same mixes.

- Every dependency on a recipe under cvcpkg/recipes/ (or a name one provides)
  pins version "==<CMakeLists VERSION>". cvcpkg reads "==X.Y.Z" without
  +cvc.N as any revision of X.Y.Z, so +cvc.N rebuilds still satisfy it, and its
  backtracking resolver falls back to the newest release that is complete on
  the catalog instead of mixing two.
- recipe-family-pins.py checks "==<VERSION>" (was "^<major>.0") and gains
  --write. bump-version.py X.Y.Z does a release bump in one step (CMakeLists,
  every upstream_version, cvc_revision 1, the pins), so the pins move with it.
- publish-cvcpkg's CUDA lane installed the newest published cvcgl to build
  pycvc-gl-cp311-cuda: v4.0.1's was built against cvcgl 4.0.0+cvc.3, installed
  49 min before cvcgl 4.0.1 reached the catalog. It now waits (up to 120 min)
  for cvcgl==<version> and fails rather than link another release.
- backfill-family-pins.py pins the same edges on rows already published
  (1,116 rows; the registry's backfill-deps admin endpoint with
  expect_required_deps). Without it a half-published release still falls back
  to an unpinned older binding beside the new libraries. Dry run by default;
  --apply needs an admin token and is the registry owner's call.

* backfill-family-pins.py: count a row the server left alone as unchanged; --limit and --save

The registry's compare-and-set answers count.required_deps == 0, not an error, when a row's
stored deps differ from the catalog's copy, so a row it skipped was reported as pinned. It is
now reported UNCHANGED and fails the run. --limit N writes only the first N rows (a canary) and
--save FILE writes each row's old and new required_deps, from which the change can be reverted.

Applied to cvcpkg.org on 2026-11-19: 1,116 rows pinned, none unchanged or failed; a rerun finds
nothing.

* backfill-family-pins.py: the backfill's date is 2026-11-20 UTC

* recipes: pin the family to ==4.0.2, master's version since #1383

Written by recipe-family-pins.py --write after merging master.

* ariadne tests: the fleet's rally check drives 3 s, not 240 steps

AFleetIsLaidOutInTeamsAtRallyPoints (FL1a, #1384) stepped 240 times and
asked for the fleet to be 5 m east. On OW1's 1/120 s quantum (#1378)
those steps are 2.0 s, not the 2.4 s it was written at, and the fleet
starting from rest is 4.36 m east by then. Neither PR's CI saw the
other, so master has failed it since OW1 merged.

It now steps 3 s of the clock (3 / kSimQuantum), about 9 m east.

(cherry picked from commit 1cf1081)
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