remove xvfb: use EGL surfaceless for headless CI#37361
Open
adeebshihadeh wants to merge 4 commits intomasterfrom
Open
remove xvfb: use EGL surfaceless for headless CI#37361adeebshihadeh wants to merge 4 commits intomasterfrom
adeebshihadeh wants to merge 4 commits intomasterfrom
Conversation
Replace Xvfb + GLFW with EGL surfaceless platform (PLATFORM_OFFSCREEN) for CI rendering. This creates an OpenGL context directly via EGL without needing any display server, using Mesa's llvmpipe for software rendering. Changes: - build.sh: build raylib with PLATFORM_OFFSCREEN when CI=1 - SConscript: link with EGL+GL in CI instead of just GL - tests.yaml: replace `source setup_xvfb.sh` with LIBGL_ALWAYS_SOFTWARE=1, add raylib rebuild step before scons - setup_dependencies.sh: remove xvfb, add libegl-dev and libgl-dev Depends on: commaai/raylib#23 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update raylib commit to include the KHRONOS_APIENTRY fix for PLATFORM_OFFSCREEN. GLAD's embedded khrplatform.h was preventing the system khrplatform.h from defining KHRONOS_APIENTRY, breaking all EGL function declarations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 tasks
The pyray pip package bundles its own GLFW-based raylib which requires X11. Build custom Python bindings with PLATFORM_OFFSCREEN raylib and install them in CI to replace the pip version. This enables Python UI tests to run headless via EGL surfaceless. Also updates raylib-python-cffi commit to include PLATFORM_OFFSCREEN link args support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
UI Previewmici: Videos are identical! View Diff Report |
libegl-dev and libgl-dev are already installed by setup_dependencies.sh. The -dev packages are only needed at build time (headers + symlinks); the runtime libraries (libegl1, libgl1) are pre-installed on the runner. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
EGL_MESA_platform_surfaceless— no display server neededxvfbsystem dependencyChanges
third_party/raylib/build.sh: build withPLATFORM_OFFSCREENwhenCI=1selfdrive/ui/SConscript: link withEGL+GLin CI.github/workflows/tests.yaml: removesetup_xvfb.sh, addLIBGL_ALWAYS_SOFTWARE=1and raylib rebuild steptools/setup_dependencies.sh: dropxvfb, addlibegl-devandlibgl-devDependencies
PLATFORM_OFFSCREENbackend)Test plan
🤖 Generated with Claude Code