-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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: Use resolved git root on Windows #26179
Conversation
30 flaky tests on run #44973 ↗︎Details:
|
Test | Artifacts | |
---|---|---|
... > skips the setup page when choosing e2e tests to run |
Output
Screenshots
Video
|
global-mode.cy.ts • 1 flaky test • launchpad-e2e
Test | Artifacts | |
---|---|---|
... > can be opened |
Output
Screenshots
Video
|
e2e/origin/cookie_login.cy.ts • 1 flaky test • 5x-driver-chrome:beta
Test | Artifacts | |
---|---|---|
cy.origin - cookie login > Max-Age > past max-age -> not logged in |
Output
Video
|
commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-chrome:beta
Test | Artifacts | |
---|---|---|
network stubbing > intercepting request > can delay and throttle a StaticResponse |
Output
Video
|
cypress/cypress.cy.js • 3 flaky tests • 5x-driver-chrome:beta
Test | Artifacts | |
---|---|---|
... > correctly returns currentRetry |
Output
Video
|
|
... > correctly returns currentRetry |
Output
Video
|
|
... > correctly returns currentRetry |
Output
Video
|
The first 5 flaky specs are shown, see all 18 specs in Cypress Cloud.
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.
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.
Nice 👍🏻
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 comment, but not a blocker. I like the updates to the test.
Additional details
Flaky test does not reproduce locally on M1, but from logs I believe the issue is that we are initializing the
gitBaseDir
field asynchronously, which means Git commands run immediately after creation might execute against thecypress
repository rather than the scaffolded project.Currently, we use the resolved Git repo root as
cwd
for bulk Git ops on Unix, but the project directory on Windows which could be incorrect based on project structure.fs
APIsawait
callback promises rather than pollingawait
cleanup items between testsSteps to test
Existing tests should cover
How has the user experience changed?
No user-facing change, should only impact unit tests due to quick execution of test before async setup flow completes and replaces git repo root
PR Tasks
cypress-documentation
?type definitions
?