-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: updating branch name fallbacks for GitHub Actions recordings #27409
Conversation
'GITHUB_BASE_REF', | ||
'GITHUB_HEAD_REF', | ||
'GITHUB_REF_NAME', | ||
'GITHUB_REF', |
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.
While I was in here, I added the GHA variables we use for commit fallbacks (+ GITHUB_REF
for completeness) to the ci_params mapping. These additions aren't necessary to correct the current fallback values, but they may be useful in the future for further inspection of the recordings.
6 flaky tests on run #49256 ↗︎
Details:
commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox
e2e/origin/commands/navigation.cy.ts • 1 flaky test • 5x-driver-firefox
e2e/origin/basic_login.cy.ts • 1 flaky test • 5x-driver-firefox
cypress/cypress.cy.js • 3 flaky tests • 5x-driver-firefox
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
Note from the above issue:
Steps to test
Unit tests have been updated to validate the expected environment mappings. It will be difficult to test this end-to-end without some mocking, but given the changes made, I feel like the unit tests provide good coverage.
How has the user experience changed?
If a user:
COMMIT_INFO_BRANCH
env, andGH_BRANCH
env)Then the Cypress recorded cypress runs will be attributed to a branch's short name (
tbiethman/fix/gha-branch
) rather than a PR's ref name (refs/pulls/merge/27409
) or a commit's ref name (refs/heads/tbiethman/fix/gha-branch
).PR Tasks
cypress-documentation
?type definitions
?