Commit abca892
committed
ci(linux): share a single Xvfb across the three test invocations
Run 27441055242 had 3-of-6 Linux jobs fail with
"xvfb-run: error: Xvfb failed to start" on the second or third
flutter test invocation. The pattern was randomly distributed across
python versions (3.12, 3.13, 3.14) and arches (AMD64, ARM64) — the
signature of a display-number race when xvfb-run is called back to
back: the previous Xvfb hadn't fully released its display before the
next xvfb-run tried to claim one.
Start one Xvfb on :99 at the top of the test step (with a kill-on-EXIT
trap), then run all three test files against the same DISPLAY.
Also bumped the post-startup settle from "none" to a fixed 1-second
sleep before the first flutter test runs (no xdpyinfo on the runner
to do a proper readiness check, and 1s is plenty for Xvfb to start
listening).1 parent 5c7c940 commit abca892
1 file changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
366 | 381 | | |
367 | 382 | | |
368 | 383 | | |
369 | | - | |
370 | | - | |
371 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
372 | 387 | | |
373 | 388 | | |
374 | 389 | | |
| |||
0 commit comments