Repository navigation
test: Check the host driver search paths AppRun hands OBS (#892) - #893
Merged
Merged
Conversation
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.
Closes #892. Tests only: this adds the packaging test that #722 shipped without (#426). Related: #846.
What
build-aux/appimage/test-apprun-driver-env.sh <AppRun>: wraps an AppRun in a minimal AppDir with a stubobs, then runs three cases, each in its own user and mount namespace with a private/runthat has no host/run/opengl-driver. In every case it reads the stub obs process's/proc/<pid>/environ:/run/opengl-drivertree, includingshare/egl/egl_external_platform.d/10_nvidia_wayland.json. Each ofGBM_BACKENDS_PATH,LIBVA_DRIVERS_PATH,__EGL_VENDOR_LIBRARY_DIRS,__EGL_EXTERNAL_PLATFORM_CONFIG_DIRSandVK_DRIVER_FILESmust be exactly the NixOS directory followed by the standard directories that exist.--check <pid> <nixos|none>runs only the assertion, against a real process.test-appimage.sh:$APPDIR/AppRunwhen the container allows user namespaces. Otherwise it prints a::notice::./run/opengl-driverpresent) creates the fake NixOS tree before it launches the real AppImage, then runs--checkon the real obs PID. The tree only has empty dirs and a JSON file that names a missing library, so Mesa llvmpipe still renders.RED: pre-#722 AppRun (
git show 2fd806db7^:build-aux/appimage/AppRun), run locally on a NixOS hostGREEN: current AppRun
Not verified locally
I did not build an AppImage or run
test-appimage.shlocally. Its bundle and first-start changes run first in this PR's AppImage CI. Two things are untested: whether the CI containers allowunshare -rm(if they don't, bundle prints a notice and first-start still covers the NixOS case), and whether the fake tree leaves first-start rendering intact.