You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2024/02/05 18:06:26 UTC

(superset) branch master updated: fix(cypress): resolving random dri3 error on cypress runner (#27001)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new f79e08ec79 fix(cypress): resolving random dri3 error on cypress runner (#27001)
f79e08ec79 is described below

commit f79e08ec79eb10c59f998feef6d2ad3ff31998c0
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Mon Feb 5 11:06:19 2024 -0700

    fix(cypress): resolving random dri3 error on cypress runner (#27001)
---
 .github/workflows/bashlib.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/bashlib.sh b/.github/workflows/bashlib.sh
index d6000bb825..5633041f7b 100644
--- a/.github/workflows/bashlib.sh
+++ b/.github/workflows/bashlib.sh
@@ -157,16 +157,18 @@ cypress-run() {
   local browser=${CYPRESS_BROWSER:-chrome}
 
   export TERM="xterm"
+  export ELECTRON_DISABLE_GPU=true # Attempt to disable GPU for Electron-based Cypress
 
   say "::group::Run Cypress for [$page]"
   if [[ -z $CYPRESS_KEY ]]; then
-    $cypress --spec "cypress/e2e/$page" --browser "$browser"
+    xvfb-run --auto-servernum --server-args='-screen 0, 1024x768x24' $cypress --spec "cypress/e2e/$page" --browser "$browser"
   else
     export CYPRESS_RECORD_KEY=$(echo $CYPRESS_KEY | base64 --decode)
     # additional flags for Cypress dashboard recording
-    $cypress --spec "cypress/e2e/$page" --browser "$browser" \
+    xvfb-run --auto-servernum --server-args='-screen 0, 1024x768x24' $cypress --spec "cypress/e2e/$page" --browser "$browser" \
       --record --group "$group" --tag "${GITHUB_REPOSITORY},${GITHUB_EVENT_NAME}" \
       --parallel --ci-build-id "${GITHUB_SHA:0:8}-${NONCE}"
+
   fi
 
   # don't add quotes to $record because we do want word splitting