From 50c30a14a0a2c336d162edfa69be8cb9fe1cc550 Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Fri, 20 Sep 2024 18:15:22 -0700 Subject: [PATCH] stop using shared memory --- scripts/cypress_run.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/cypress_run.py b/scripts/cypress_run.py index 1154a3661dda3..e2bb5bb6982e7 100644 --- a/scripts/cypress_run.py +++ b/scripts/cypress_run.py @@ -54,6 +54,9 @@ 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/*/**/*" @@ -61,7 +64,8 @@ def get_cypress_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 @@ -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