-
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
chore: Distribute tests to desktop-gui containers. Make desktop-gui
tests faster!
#21305
Conversation
Thanks for taking the time to open a PR!
|
desktop-gui
tests faster!
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.
Hey @sainthkh, nice fix! We actually use Cypress parallelization, but that won't work for contributors since there is no MAIN_RECORD_KEY, hence the problem.
Can you update your PR to use the approach described in #21318 please? i.e. use cypress run --record --parallel
if MAIN_RECORD_KEY
is available, and circleci tests split
if not.
@flotwig I checked the CI and it seems that
I tried to change |
This reverts commit b5d439b.
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, thank you for fixing this slowness @sainthkh
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.
CI looks good!
* 10.0-release: (22 commits) fix: migrate multiples projects when in global mode (#21458) test: fix flaky cy-in-cy selector validity test (#21360) chore: remove unused codeGenGlobs (#21438) fix: use correct path for scaffolding spec on CT (#21411) fix: remove breaking options from testing type on migration (#21437) fix: test-recording instructions in Component Test mode (#21422) feat: distinguish app vs launchpad utm_source when using utm params (#21424) chore: update stubbed cloud types (#21451) chore: change to yarn registry fix(sessions): refactor flows, fix grouping bugs and align validation fail text (#21379) chore(sessions): more driver tests (#21378) chore: rename domain_fn to origin_fn (#21413) chore: release 9.6.1 (#21404) fix: ensure that proxy logs are updated after the xhr has actually completed (#21373) chore: Re-organize tests in assertions_spec.js (#21283) chore: Distribute tests to desktop-gui containers. Make `desktop-gui` tests faster! (#21305) chore(sessions): add additional tests (#21338) fix: Allow submit button to be outside of the form for implicit submission (#21279) fix(launcher): support Firefox as a snap (#21328) chore(sessions): break out sessions manager code and add unit tests (#21268) ...
User facing changelog
N/A. It's an internal CI change.
Additional details
Why was this change necessary?
For some reason, a test in
settings_spec.js
ofdesktop-gui
CI failed on all recent PRs of mine (#21286, #21285, #21197, #21283). So, I tested it with #21304 that it happens with an empty commit.I investigated this failure and learned that it's a flaky test and run 7 times (5 passed, 2 failed). Because each container of desktop-gui is running all of the desktop-gui tests.
It was the reason why
desktop-gui
is always super late to finish.And it can cause unwanted flakiness.
What is affected by this change?
N/A
Any implementation details to explain?
desktop-gui
finishes before others.How has the user experience changed?
N/A.
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?