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
Re-enable launching Firefox on Windows CI test #5673
Comments
cc @whimboo |
Either this or Yet there's a line in the docs that suggests that all you need to do is set |
I'll def take a look when I have the chance. |
So didn't it find a suitable download of Firefox Nightly? Or which line of the test actually times out? |
From a user perspective, I believe For future reference, here are debug logs.
|
The hardcoded date has come and gone, and so this is causing CI failures again: https://travis-ci.com/github/puppeteer/puppeteer/jobs/382167500 @mjzffr Any progress on this? In the meantime, I'll restore CI by extending the deadline by a month. |
I'm assigned to other work atm but this is on our list of priorities. |
@mathiasbynens any chance that you could trigger such a unit test job with a debug version of Firefox and fetch all the stdout logging? It would help a lot in figuring out what's going on here. I don't see why it can take more than 30s to launch Firefox. I assume that maybe the devtools websocket port is in use, and as such no connection can be established? |
@whimboo I'd happily review a PR that changes the Travis config in the way you describe if it helps y’all investigate 👍 |
Sorry, I was wrong. I missed the part that this is related to killing the browser process. So in this case any additional logging will not help. Can we please adjust the summary so that it clarifies it? Thanks. |
Friendly ping that it's near October and the CI will fail again 👀 |
For reference Maja filed the following bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1656962 Lets see what's actually necessary. |
@jackfranklin and @jschfflr is there a reason why Puppeteer doesn't always try to gracefully shutdown the browser first? puppeteer/src/node/BrowserRunner.ts Lines 131 to 139 in b046fd7
Why is that made dependent on the temporary folder? Killing could always happen when the browser doesn't shutdown itself within a given time period. When I remove this check the tests are passing all well. |
Actually this code was added by @mjzffr when getting the Launcher updated to handle Firefox: c5a72e9 I don't say that there is no bug in correctly handling the call to |
Also in |
The original idea was to kill the browser when we don't have a user supplied data dir but do a graceful shutdown if we do in order to not corrupt files (see #693) - not sure where the decision to just kill came from and would assume that it happened for performance reasons. @mathiasbynens Do you think it would be ok to always go via CDPs |
Maybe it might be good to have some time measurements for both paths. I don't know how long Chrome might need for graceful shutdowns in comparison to just killing the process. Also as mentioned to @jschfflr on Elements I'm aware of some longer shutdown scenarios with Firefox, but especially for our case I would accept those to give users a chance to test with Firefox at all on Windows. There are lots of open issues all around this broken shutdown behavior. |
After thinking a while about it, I think it's best to keep the current behaviour for Chrome and just change it for Firefox. |
@jschfflr I surely could do. But there is one open question. The So one solution could be that the |
I just pushed this proposal to #6895. So far it looks good. |
Your patch looks good! I just added a small nit there about the types. |
Tests on Windows run again in Puppeteer CI since my PR on #6895 got merged. |
@mjzffr in #5637 we had to disable this test on the Windows CI run because it would timeout.
I'm not quite sure why but it'd be great to have a look to see if we can enable this test on Windows again. Would you mind having a look when you get a chance? Thank you :)
The text was updated successfully, but these errors were encountered: