Skip to content

test(appimage): first-start checks OBS loads the host's libnvidia-ml.so.1 (#1970) - #1972

Merged
zackees merged 2 commits into
masterfrom
test/1970-appimage-nvml-fhs
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
test/1970-appimage-nvml-fhs

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

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 builds obs-appimage-fake-nvml.so and ships it in the obs-appimage-testkit artifact.
  • test-appimage.sh first-start (as root): installs it as libnvidia-ml.so.1 in the first existing of /usr/lib/x86_64-linux-gnu, /usr/lib64 and /usr/lib, runs ldconfig, and fails unless the stand-in's marker names that same file (-ef, since a merged /usr reports /lib/...) and it is mapped in /proc/<obs>/maps.

Evidence

Run locally against the released v0.1.0-beta.20261023 AppImage, with the testkit and stand-in built in the local obs-appimage-228 image as in CI:

  • GREEN debian:trixie-slim: NVML: loaded the host's /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 as /lib/x86_64-linux-gnu/libnvidia-ml.so.1
  • GREEN fedora:43: NVML: loaded the host's /usr/lib64/libnvidia-ml.so.1 as /usr/lib64/libnvidia-ml.so.1
  • RED debian:trixie-slim without the stand-in: missing .../obs-appimage-fake-nvml.so (built with the testkit). The first try, before the -ef comparison, also failed on Debian's merged-/usr path, 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 and platform_tests dispatches. Not user-visible.

…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.
@zackees
zackees enabled auto-merge October 23, 2026 20:22
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit 46e001f Oct 23, 2026
30 checks passed
@zackees
zackees deleted the test/1970-appimage-nvml-fhs branch October 26, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

test(appimage): FHS lanes check OBS loads the host's libnvidia-ml.so.1 (follow-up of #1028)

1 participant