Repository navigation
cvcpkg recipes: pin libcvc's major in every dependency on its own packages - #1289
Merged
Merged
Conversation
…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
enabled auto-merge (squash)
November 16, 2026 00:47
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, andlibcvcGL.so.4beside it since #1221. The recipes declared these dependencies with no version, socvcpkg installtook the newest provider.Once 4.0.0 reached the catalog, the sublevels agent found
cvcpkg install arisrvx==3.7.13+cvc.3taking libcvc-cuda 4.0.0+cvc.1 on a GPU box, wherelddreportedlibcvc.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
version: "^4.0". They are everydepends:entry naming a recipe undercvcpkg/recipes/, or a name one of them provides (libcvc-cuda provides libcvc, cvcgl-cuda provides cvcgl, and so on). Comments andplatforms:keys are unchanged..github/scripts/recipe-family-pins.py, run as a new step of therecipes match CMakeLists versionjob (no new required check). It fails when such a dependency does not pin^<major>.0for CMakeLists.txt's major. A minor bump leaves the pins alone. A major bump fails this step until they move withupstream_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'srequired_deps. On the pinned arisrvx recipe it gives[{'name': 'libcvc', 'version': '^4.0'}, {'name': 'python312'}].libcvcinclude every provider of it, and it tests the range against the provider's own version.^4.0means at least 4.0.0 and below 5.0.0, and ranges ignore+cvc.N.resolve()on a small catalog of libcvc and libcvc-cuda at 3.7.13 and 4.0.0:^3.7: gets 3.7.13 on both hosts.libcvc==3.7.13beside it fails to resolve instead of installing a pair that won't load.Testing
recipe-family-pins.py:recipe-deps-parity.pystill passes: every -cuda recipe matches its CPU peer.cvcpkg validate cvcpkg/recipesgives 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.ymlkeeps its stored line endings: CRLF, with its one LF line.Not in this PR
v4.0.0tag. They get the pins the next time they are published from master.release/3.xwith^3.7pins (a PR there, then a publish);scripts/backfill_required_deps.pyonly fills rows whoserequired_depsis empty, so it would need a change;libcvc==3.7.13+cvc.3).==4.0.0per 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.