-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Conversation
scripts/cypress_run.py
Outdated
@@ -65,7 +64,6 @@ def get_cypress_cmd( | |||
) | |||
else: | |||
# Run local, but split the execution | |||
os.environ.pop("CYPRESS_RECORD_KEY", None) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
@rusackas I don't know if this PR is the source for the problem but we can execute Cypress anymore for release branches such as 4.0. This is problematic because we need the whole suite of tests when pushing to release branches in order to check if the release is good to go.
|
It should run the tests on those branches, just not with the cypress dashboard enabled. I rotated the key, and changed the action to use the repos secret, so you may have to pull this in as a cherry? |
It was a little tricky, because 4.0 structure is completely different than master, but I was able to cherry-pick the necessary changes to make Cypress work again. |
SUMMARY
The Cypress Record Key on the repo secrets is no longer base-64 encoded, so there's no need for this decoding. We also might as well just call it the CYPRESS_RECORD_KEY everywhere to match the name of the repo secret, for sanity's sake.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION