Repository navigation
publish-cvcpkg: the CUDA lane runs cvcpkg without the job's LD_LIBRARY_PATH - #1457
Merged
Merged
Conversation
…Y_PATH The family deps step puts $PY/lib first on LD_LIBRARY_PATH for the rest of the job (numpy's openblas). cvcpkg is a frozen binary with its own libraries: once cvcgl's closure is in $PY/lib it loads those instead and segfaults on exit. v4.0.3's and v4.0.4's cvcgl install did on every try, after a complete install, and the wait read it as "not on the catalog yet" until its 120 minutes ran out, so pycvc-gl-cp311-cuda has not been published since 4.0.0. Every cvcpkg call after that step drops the variable (env -u LD_LIBRARY_PATH, as ci.yml does), and the wait stops on a crash (exit 128 + N) with an error that says so.
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.
publish-cvcpkg's
build-cuda (release)has failed on v4.0.3 (run 44925109933, both attempts) and on v4.0.4 (run 44962885110). The step "Install this release's cvcgl" errors out with "cvcgl (linux/x86_64/release) did not reach the catalog within 120 min". cvcgl had been on the catalog the whole time. pycvc-gl-cp311-cuda hasn't been published since 4.0.0.What happens. Every
cvcpkg install "cvcgl==$VER"in that step installs all 104 components, printscvcpkg: done -- 104 component(s) installed, and then dies withSegmentation fault (core dumped). That's 40 of 40 tries in 4.0.3's second attempt. The wait takes the non-zero exit for "not there yet", retries every 2 minutes, and gives up after 120.Why. The step "Install CUDA family deps" puts
$PY/libfirst onLD_LIBRARY_PATHfor the rest of the job through GITHUB_ENV, so numpy can load its openblas. cvcpkg on that runner is the frozen 2.5.14 binary, which carries its own libraries. Once cvcgl's closure is in$PY/lib, it loads those instead and crashes on exit.Reproduced on prettyhatemachine, the runner's host, in
nvidia/cuda:12.9.1-devel-ubuntu22.04, with that binary and setup-python's tool dir:LD_LIBRARY_PATHcvcpkg install cvcgl==4.0.3(prefix already full)/__w/_tool/Python/3.12.13/x64/lib:/usr/local/cuda/lib64libfirst, as in the jobdone -- 104 component(s) installed, then exit 139 (SIGSEGV)A fresh install into an empty prefix without the prefix's
libon the path also exits 0. The pycvc-cp311-cuda pack and publish ran before cvcgl's closure was in$PY, which is why that package published.The fix (
.github/workflows/publish-cvcpkg.yml, the build-cuda job only):env -u LD_LIBRARY_PATH cvcpkg ..., as ci.yml already does elsewhere. That covers the cvcgl install (and its dry-run fallback), and the pack and publish of pycvc-cp311-cuda and pycvc-gl-cp311-cuda. The builds keep the variable; numpy needs it.::error::cvcpkg install cvcgl==<ver> died on signal N (exit 128+N); that is a crash, not a cvcgl missing from the catalog, instead of waiting out the 120 minutes.Checked. I ran the step's script, extracted from the workflow, with a stub cvcpkg:
The stub saw
LD_LIBRARY_PATHunset every time. The workflow still parses as YAML.Not run: the workflow itself. A dispatch with
dry_run=trueandpublish_cuda=truewould exercise this lane without publishing, but it also builds every CPU lane, macOS included. A publishing dispatch would republish every package at the next revision (next-revision: 4.0.4+cvc.2 for everything already up). So the missing pycvc-gl-cp311-cuda is left for the next tag.