Skip to content

Commit

Permalink
stop using shared memory
Browse files Browse the repository at this point in the history
  • Loading branch information
eschutho committed Sep 23, 2024
1 parent 1fb5e00 commit 650b5c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/cypress_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ def get_cypress_cmd(
build_id = generate_build_id()
browser = os.getenv("CYPRESS_BROWSER", "chrome")

# Add --disable-dev-shm-usage for Chrome browser
chrome_flags = "--disable-dev-shm-usage"

if use_dashboard:
# Run using cypress.io service
spec: str = "cypress/e2e/*/**/*"
cmd = (
f"{XVFB_PRE_CMD} "
f'{cypress_cmd} --spec "{spec}" --browser {browser} '
f"--record --group {group} --tag {REPO},{GITHUB_EVENT_NAME} "
f"--parallel --ci-build-id {build_id}"
f"--parallel --ci-build-id {build_id} "
f"-- {chrome_flags}"
)
else:
# Run local, but split the execution
Expand All @@ -73,6 +77,7 @@ def get_cypress_cmd(
f"{XVFB_PRE_CMD} "
f"{cypress_cmd} --browser {browser} "
f'--spec "{spec_list_str}" '
f"-- {chrome_flags}"
)
return cmd

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import {
import {
prepareDashboardFilters,
SAMPLE_CHART,
visitDashboard,
} from './shared_dashboard_functions';

function selectFilter(index: number) {
Expand Down

0 comments on commit 650b5c8

Please sign in to comment.