Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

ci(linux-e2e): enable GLX + RANDR in Xvfb so WebKit2GTK actually has a GL backing

Louis Beaumont78ba136b5d58
diff --git a/.github/scripts/setup_display.sh b/.github/scripts/setup_display.sh
index 2761c2bf8..20527040b 100755
--- a/.github/scripts/setup_display.sh
+++ b/.github/scripts/setup_display.sh
@@ -1,5 +1,14 @@
#!/bin/bash
-Xvfb :99 -ac -screen 0 1920x1080x24 &
+# +extension GLX so software OpenGL via llvmpipe has somewhere to land.
+# WebKit2GTK 4.1 needs SOME GL backing even with LIBGL_ALWAYS_SOFTWARE=1
+# and WEBKIT_DISABLE_COMPOSITING_MODE=1 set; without GLX in the X server,
+# WebProcess/Network/WebLoaderStrategy.cpp aborts the first navigation
+# with internallyFailedLoadTimerFired() and the Tauri webview never
+# renders the app (every spec then fails its before-all hook on
+# openHomeWindow()).
+# +extension RANDR is default in modern Xvfb but explicit is safer
+# across Ubuntu LTS versions on GitHub's hosted runners.
+Xvfb :99 -ac -screen 0 1920x1080x24 +extension GLX +extension RANDR &
echo "DISPLAY=:99" >> $GITHUB_ENV
sleep 3
export DISPLAY=:99