Skip to content

Commit 65d0a61

Browse files
committed
CI: force Mesa software rendering to fix flaky VTK off-screen bus error (#1078)
1 parent 9ccc804 commit 65d0a61

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/test-pytest-slow.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
env:
2626
PYTHON: ${{ matrix.python-version }}
2727
MPLBACKEND: Agg
28+
# Force Mesa software rendering so VTK/PyVista off-screen tests don't hit
29+
# intermittent OpenGL bus errors on headless runners (#1078).
30+
LIBGL_ALWAYS_SOFTWARE: "1"
31+
GALLIUM_DRIVER: llvmpipe
2832
steps:
2933
- uses: actions/checkout@main
3034
- name: Set up headless display

.github/workflows/test_pytest.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
OS: ${{ matrix.os }}
2525
PYTHON: ${{ matrix.python-version }}
2626
MPLBACKEND: Agg
27+
# Force Mesa software rendering so VTK/PyVista off-screen tests don't hit
28+
# intermittent OpenGL bus errors on headless runners (#1078). No-op off
29+
# Linux, so it is safe for the macOS/Windows matrix legs.
30+
LIBGL_ALWAYS_SOFTWARE: "1"
31+
GALLIUM_DRIVER: llvmpipe
2732
steps:
2833
- uses: actions/checkout@main
2934
- name: Set up headless display

0 commit comments

Comments
 (0)