Skip to content

publish-cvcpkg: a libcvc bundle must load from the closure it declares - #1237

Merged
transfix merged 1 commit into
masterfrom
fix/libcvc-cuda-runtime-deps
Nov 14, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/libcvc-cuda-runtime-deps

Conversation

@transfix

Copy link
Copy Markdown
Owner

The published libcvc-cuda 3.7.13+cvc.2 (Linux and Windows) can't load. It was packed on 2026-11-10, three days before #1211 brought its runtime list into line with libcvc's. Its libcvc.so needs nine libraries its manifest never declares:

  • yaml-cpp
  • ftxui (component, dom, screen)
  • json-schema-validator
  • Jolt
  • curl
  • opus
  • ncurses

A resolver on a CUDA host picks it for libcvc (it provides: [libcvc], requires_capabilities: [cuda]). There, import pycvc fails with libyaml-cpp.so.0.8: cannot open shared object file. That is how grl-snam-dbg's CI closure (pycvc-cp312 3.7.13+cvc.2) loses every pycvc-based test.

The recipe on master is already right. Its Linux runtime list is libcvc's, entry for entry, and recipe-deps-parity.py keeps it that way. What is missing is a republish, plus a check that would have stopped the bad one.

What this changes

.github/scripts/bundle-check-closure.sh ARCHIVE checks a packed bundle the way a consumer would get it:

  1. It installs the bundle's declared required_deps from the catalog into an empty prefix. Platform, arch, config and link come from the bundle's own manifest.
  2. It unpacks the bundle over that prefix.
  3. It runs the existing sdk-check-closure.sh there.

The publish job's own deps prefix can't do this check. It holds libcvc's whole closure, whatever the recipe declares.

publish-cvcpkg.yml runs the check between Pack and Publish:

  • in build-cuda, for libcvc-cuda on Linux;
  • in build, for libcvc on Linux x86_64 release.

It runs on release bundles only, because the catalog has no debug eigen and a debug install of the list fails first. arm64 is skipped because that lane source-builds its deps.

Checked locally

On the published archives, linux/x86_64 release:

Bundle Result
libcvc-cuda 3.7.13+cvc.2 fails: 9 unresolved dependencies
libcvc 3.7.13+cvc.3 passes: 125 libraries, all resolve
libcvc-cuda 3.7.13+cvc.2, manifest's list swapped for master's recipe list passes: 125 libraries, all resolve

The swapped-list case shows the published binary needs only master's list. A prefix with it plus those packages imports pycvc and builds a pycvc.volume. The CPU path (CVCPKG_CAPABILITIES="", which resolves libcvc 3.7.13+cvc.3) imports too. The script is shellcheck-clean.

Not covered

  • PR CI does not run publish-cvcpkg, so the new steps first run on the next publish.
  • The Windows CUDA lane and macOS are not checked (zip bundles and cvc.dll; no macOS host to test on).
  • cvc_revision stays at 1. compute-revisions publishes at max(recipe, highest published + 1), so the next libcvc-cuda lands as 3.7.13+cvc.3 with no bump. A floor of 3 would also carry into 3.7.14, because version bumps don't reset it.

Fixing the catalog needs a publish-cvcpkg run with publish_cuda=true, either a dispatch on master or the next v* tag.

libcvc-cuda 3.7.13+cvc.2 (packed 2026-11-10, before #1211 brought its runtime list level with
libcvc's) ships a libcvc.so that needs yaml-cpp, ftxui, json-schema-validator, Jolt, curl, opus
and ncurses, and its manifest declares none of them. A consumer whose resolver picks it for
`libcvc` (any CUDA host) gets a prefix where libcvc.so does not load and `import pycvc` fails.
The pack step only copies the recipe's depends: into required_deps; nothing checked the list
against what the library links, and the publish job's own deps prefix holds libcvc's whole
closure, so the build never noticed.

.github/scripts/bundle-check-closure.sh installs a packed bundle's declared required_deps from
the catalog into an empty prefix, unpacks the bundle over them and runs sdk-check-closure.sh
there. publish-cvcpkg runs it between pack and publish for libcvc-cuda (Linux) and for libcvc
(Linux x86_64 release).
@transfix
transfix enabled auto-merge (squash) November 14, 2026 20:37
@transfix
transfix merged commit 2487426 into master Nov 14, 2026
28 checks passed
@transfix
transfix deleted the fix/libcvc-cuda-runtime-deps branch November 14, 2026 23:34
transfix added a commit that referenced this pull request Nov 15, 2026
Master's #1217 keeps nothing per thread in state_exec: a native's context (call_args::context())
carries its group, registry and stream, async_host::call and begin_external take it, and the pool
drops in_pump_all() and the one-argument run_on_host.

- async_host.h: begin_external takes the context, as on master, and keeps this branch's note that
  a call is finished through the host it was made on.
- script_engine.cpp: the sliced form finds the calling program's group from the call's context
  (exec_group::current(ctx)), else group 0, and reads its data step from the context.
- ariadne.cpp: file-pick opens its picker through run_on_host for the group its verbs were bound
  for (the env's, as its host is), and inline in group 0 and the init lane.
- exec_pool: in_pump_all() is back, for the host-thread calls' debug assertion and
  ScriptLane::run's refusal, read from the pool's calls (their callers' and pumpers' thread ids)
  under its mutex rather than from thread-locals.
- ariadne_runtime_test: the init lane's cycles test no longer compares against the calling
  thread's own registry, which master removed; it is AriadneInit.RunsAScriptThatLeavesCycles.
- ci.yml: the sanitizer's required list names the test by its new name.
- STATE_EXEC_THREADED.md: B29-B31 and the file-pick and sliced-call notes name the context-based
  calls.
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