Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(e2e): simplify Cypress record key usage #29327

Merged
merged 12 commits into from
Jun 24, 2024
2 changes: 0 additions & 2 deletions scripts/cypress_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def get_cypress_cmd(

if use_dashboard:
# Run using cypress.io service
os.environ["CYPRESS_RECORD_KEY"] = os.getenv("CYPRESS_RECORD_KEY", "")
spec: str = "*/**/*"
cmd = (
f"{XVFB_PRE_CMD} "
Expand All @@ -65,7 +64,6 @@ def get_cypress_cmd(
)
else:
# Run local, but split the execution
os.environ.pop("CYPRESS_RECORD_KEY", None)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not want that pop? In the case of running off the repo where the env var is always present, it may always disregard the use_dashboard param effectively

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¯_(ツ)_/¯ I wasn't sure... I'll add it back in... it certainly doesn't hurt.

spec_list_str = ",".join(sorted(spec_list))
if _filter:
spec_list_str = ",".join(sorted([s for s in spec_list if _filter in s]))
Expand Down
Loading