Repository navigation
test(appimage): first-start checks OBS loads the host's libnvidia-ml.so.1 (#1970) - #1972
Merged
Merged
Conversation
…ver (#1028) The NixOS lane now makes /run/opengl-driver a directory of links into Mesa and builds a stand-in libnvidia-ml.so.1 (fake-nvml.c) into its lib/. The stand-in's nvmlInit_v2 records the path it was loaded from. The lane fails unless OBS's GPU usage sampler loaded it from /run/opengl-driver/lib, the only copy on a NixOS host.
…so.1 (#1970) The test-helper step also builds fake-nvml.c as obs-appimage-fake-nvml.so and ships it in the testkit artifact. first-start installs it as libnvidia-ml.so.1 in the image's host library directory and fails unless OBS's GPU usage sampler loaded that file (marker and /proc/<obs>/maps) through AppRun's loader by its bare name, on Debian, Fedora and Arch.
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.
Fixes #1970. Stacked on #1971 (it reuses
fake-nvml.c); review only the last commit.appimage.yaml: the test-helper step (glibc 2.28 image) also buildsobs-appimage-fake-nvml.soand ships it in theobs-appimage-testkitartifact.test-appimage.shfirst-start(as root): installs it aslibnvidia-ml.so.1in the first existing of/usr/lib/x86_64-linux-gnu,/usr/lib64and/usr/lib, runsldconfig, and fails unless the stand-in's marker names that same file (-ef, since a merged/usrreports/lib/...) and it is mapped in/proc/<obs>/maps.Evidence
Run locally against the released
v0.1.0-beta.20261023AppImage, with the testkit and stand-in built in the localobs-appimage-228image as in CI:NVML: loaded the host's /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 as /lib/x86_64-linux-gnu/libnvidia-ml.so.1NVML: loaded the host's /usr/lib64/libnvidia-ml.so.1 as /usr/lib64/libnvidia-ml.so.1missing .../obs-appimage-fake-nvml.so (built with the testkit). The first try, before the-efcomparison, also failed on Debian's merged-/usrpath, which is why the check compares files, not path text.All three runs also report
the AppImage does not ship obs-webrtc.so. That is master's test against the older release asset, and it is unrelated to this change; CI tests the AppImage built from this branch. The stock-container lanes run on master pushes andplatform_testsdispatches. Not user-visible.