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/03 05:19:43 UTC

(superset) 01/01: fix(cypress): resolving random dri3 error on cypress runner

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

rusackas pushed a commit to branch fix-cypress-runners
in repository https://gitbox.apache.org/repos/asf/superset.git

commit d7a11f7ad4a1d1c0e8c3107526b131fdc9bd904e
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Fri Feb 2 22:19:34 2024 -0700

    fix(cypress): resolving random dri3 error on cypress runner
---
 .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