-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
test: fix e2e tests to cleanup properly #4847
Conversation
So the problem in puppeteer itself? Because if we put just |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #4847 +/- ##
=======================================
Coverage 91.96% 91.96%
=======================================
Files 16 16
Lines 1704 1704
Branches 647 647
=======================================
Hits 1567 1567
Misses 126 126
Partials 11 11 ☔ View full report in Codecov by Sentry. |
@alexander-akait sorry what do you mean? "Failed successfully" need some translation 😆 |
It means if we will put |
But I see intresting error:
maybe we forgot to cleanup something between runs? |
It's not reliable behavior. At least in my machine (M1 Mac) it stucks when that happen, so I think it's better to cleanup properly. |
@alexander-akait I think this is an example of job get stuck in macOS: https://github.com/webpack/webpack-dev-server/actions/runs/4899010293/jobs/8748653004?pr=4813#logs |
I mean if you put |
@alexander-akait it will stuck because of dev server. Minimal test case: const server = new Server({ port }, webpack(config));
await server.start();
throw new Error("What");
await server.stop(); |
123ba75
to
a619788
Compare
@malcolm-kee Did you look why it happens? I am fine with test refactor, just want to check it out, maybe we don't close/cleanup something |
a619788
to
9e25c80
Compare
@alexander-akait I think it's expected (unless this deviates what you understand). From my experience and also the docs I refer, in general testing NodeJS server with |
9e25c80
to
a2edf1d
Compare
a2edf1d
to
f0adeb0
Compare
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.
/cc @snitin315 Will it create problems with the next
branch rebase, because if no I will merge, if yes, we can emrge it in the next branch
@alexander-akait Yes, let's merge directly in the |
@malcolm-kee We remove some things from the next version, so tests doesn't exists, like webpack v4, some API and etc, hope rebasing will be easy, anyway feel free to ask any question |
Hmm too much conflict, I'll close this PR and redo it based on |
Replace with #4859 |
<!-- Thank you for submitting a pull request! Please note that this template is not optional and all _ALL_ fields must be filled out, or your pull request may be rejected. Please do not delete this template. Please do remove this header to acknowledge this message. Please place an x, no spaces, in all [ ] that apply --> - [ ] This is a **bugfix** - [ ] This is a **feature** - [ ] This is a **code refactor** - [x] This is a **test update** - [ ] This is a **docs update** - [ ] This is a **metadata update** ### For Bugs and Features; did you add new tests? No <!-- Please note that we won't approve your changes if you don't add tests. --> ### Motivation / Use-Case As per #4847 <!-- What existing problem does the pull request solve? Please explain the motivation or use-case for making this change. If this Pull Request addresses an issue, please link to the issue. --> ### Breaking Changes No <!-- If this PR introduces a breaking change, please describe the impact and a potential migration path for existing applications. --> ### Additional Info No
Cleanup
browser
/server
properly when assertion fails.For Bugs and Features; did you add new tests?
Motivation / Use-Case
Breaking Changes
Additional Info
resolves #4846