fix(ci): give each xvfb-run its own display
Pass -a (--auto-servernum) to xvfb-run so back-to-back calls do not collide on display :99 while the previous Xvfb is still shutting down. The newer-R loop added in #216 runs two xvfb-run calls in a row, which has failed every process-cran-updates-ubuntu-2204-arm64 run since pipeline 13744 with 'Xvfb failed to start'.
This commit is contained in:
parent
3426d5f59f
commit
f64a376cac
1 changed files with 3 additions and 3 deletions
|
|
@ -153,7 +153,7 @@ steps:
|
|||
# not visible here. Install the packages needed to recompute the snapshot
|
||||
# and query build metadata in every build job.
|
||||
- UVR_R_BIN=/opt/R/$R_VERSION/bin/R local/uvr-install.sh RPostgres s3fs data.table future jsonlite
|
||||
- XVFB=$(command -v xwfb-run 2>/dev/null || command -v xvfb-run); XVFB_ARGS=""; if command -v xwfb-run >/dev/null 2>&1; then dnf install -y -q weston 2>/dev/null; XVFB_ARGS="-c weston"; fi
|
||||
- XVFB=$(command -v xwfb-run 2>/dev/null || command -v xvfb-run); XVFB_ARGS="-a"; if command -v xwfb-run >/dev/null 2>&1; then dnf install -y -q weston 2>/dev/null; XVFB_ARGS="-c weston"; fi
|
||||
- $XVFB $XVFB_ARGS -n $SPLIT_INDEX -- /opt/R/$R_VERSION/bin/Rscript local/build-all.R $SPLIT_INTO $SPLIT_INDEX $NCPUS 2>&1
|
||||
- |
|
||||
PRIMARY_MINOR=$(echo "$R_VERSION" | cut -d. -f1-2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue