Repository navigation
test(appimage): NixOS lane checks OBS loads NVML from /run/opengl-driver (#1028) - #1971
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.
zackees
enabled auto-merge
October 23, 2026 20:13
This was referenced Oct 23, 2026
8 tasks
6 of 7 tasks
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 #1028. Follow-up for the FHS lanes: #1970.
CI runners have no NVIDIA GPU, so this adds a stand-in
libnvidia-ml.so.1(build-aux/appimage/fake-nvml.c). It exports the three functionscrate::nvmlrequires, and itsnvmlInit_v2records the path it was loaded from in$OBS_TEST_NVML_MARKER. The NixOS lane (test-appimage-nixos.sh) now makes/run/opengl-drivera directory of links into Mesa instead of a single link, builds the stand-in into/run/opengl-driver/libwith nixpkgs' gcc, and fails unless OBS (throughappimageTools.wrapType2) loaded NVML from there. OBS's usage sampler callsnvml()on every sample whatever the adapter is, so this works with no GPU.Evidence
Run locally in CI's pinned
nixos/niximage against the releasedOBS-Studio-Rust-0.1.0-beta.20261023-linux-x86_64.AppImage:OBS after 45 s: running/NVML: loaded from /run/opengl-driver/lib/NixOS: OBS AppImage started through appimageTools.wrapType2. Exit 0./run/opengl-driver/lib64, i.e. not one of the candidates; that is the same as removing the/run/opengl-driver/libentry fromLINUX_CANDIDATES):::error::OBS's GPU usage sampler did not load NVML from /run/opengl-driver/lib (not loaded). Exit 1.fdinfo: the fdinfo source (#1023) is not wired into the sampler yet (
rust/obs-gpu-status/src/platform/mod.rs), so there is no packaged fdinfo read to check. That assertion belongs with the PR that wires it in.The NixOS lane runs on master pushes and
platform_testsdispatches, not from a PR path (appimage.yamltest-nixos), so the local run above is its evidence for this PR. Not user-visible, so no features.md line.