-
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
Issue 6231 use more information from gitlab #6561
Issue 6231 use more information from gitlab #6561
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
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.
One required change for code.
One of my projects required this to correctly create a commit URL.
Again, I'd like this more clearly defined because the information being collected through the Test Runner here is only used as meta information to be shown on the Dashboard.
The info shown in screenshot below (which is being collected correctly in our Gitlab run):
What is it that you cannot do for your project or the information you cannot see on the Dashboard without this change? Can you paste a screenshot or explanation here or in the original issue as asked?
So the thing is that I'm not using the Cypress Dashboard (mostly because even the highest plan wouldn't be sufficient), and instead of it I'm using a self-hosted alternative called sorry-cypress. Due to the missing commit params which currently aren't sent for GitLab, some functions of it don't work properly so I tried to fix it at the source - Cypress CLI. Assuming that Cypress Dashboard correctly creates the commit link for GitLab provider it probably means that it doesn't use So if only commit link on Cypress Dashboard works properly then there's no change from the user's perspective. It's only a cosmetical change to keep things in order and keep consistency. |
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.
@TomaszG Yeah, I'm not sure how sorry-cypress works with this information, but in your CI provider, you need to ensure the git information is properly exposed as explained here: https://on.cypress.io/continuous-integration#Git-information
Either way, the code changes for this look fine.
User facing changelog
We're collecting more environment variables when running Cypress with GitLab CI.
Additional details
One of my projects required this to correctly create a commit URL. I'm not able to debug this on the Cypress Dashboard, however, I suspect that the commit link for GitLab may be incorrect.
PR Tasks