-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
migrate comparison tests to Jest snapshot tests #1161
Conversation
Cool - I'm on my holidays right now but will take a look soon! |
Wow this is a giant PR! Kudos for getting going with it.
This is a problem - if we the test pack is unreliable on Windows then it's a bit of an issue. When it comes to the Just to help me review this a bit better, which are files I should particularly take a look at (given there's so many that are snapshots)? |
I've migrated each case by each commit. For example, the And how to review each test case? Well, the output are saved to |
I'm guessing the Windows tests are still flaky? |
Windows tests are more stable than before except the "basic" case, because I've increased the test timeout and limited the workers to "1". |
But it looks like the windows tests are still failing? |
It only failed on the test case "basic", and you can view the CI log output to check it. |
It looks like there's other failures too?
Would it be possible to have a re-run mechanism in place for tests - allow them a number of attempts to pass to allow for flakiness? Or do all the tests that fail on windows reliably fail? (And if so - "why?" Is the question I guess) |
Actually, it has "re-run" mechanism: All the tests with webpack watch mode will be allowed to be re-run. As for the failures on Windows, it occurred sometimes, not always. And those failures are only happened with webpack watch mode. Those tests which run a single build (not watching any files, just build them once) are always stable, even on Windows. |
Should we just be repeating a sufficiently large number of times on Windows? |
Maybe we can try. |
Arghhhh!!!!! |
I'm still not able to solve this Windows problem. I may close this PR. |
It's a real shame - thank you for your efforts. I do appreciate your work. |
This PR is still in progress.
This PR migrates comparison tests to Jest snapshot tests. The advantages for this change are:
However, the main issue of this migration is CI on Windows. Snapshots run on Linux is stable, while running on Windows is fragile with unknown reasons, and some tests may fail on Windows.
Some questions about this PR: