Skip to content

Commit

Permalink
fix(cypress): resolving random dri3 error on cypress runner (apache#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored and sfirke committed Mar 22, 2024
1 parent 63fba7a commit 0626064
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bashlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0626064

Please sign in to comment.