-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Close Browser #95
Close Browser #95
Conversation
@@ -27,6 +27,22 @@ const deleteFolderRecursive = path => { | |||
} | |||
}; | |||
|
|||
// This is an annoying hack to get around an issue in Puppeteer | |||
// where the browser.close method hangs indefinitely | |||
// See https://github.com/Sparticuz/chromium/issues/85#issuecomment-1527692751 |
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.
Is this the link you meant to put here? It talks about fixing the browser.close
issue, but not the way you're doing it here (apparently by disabling the Chrome GPU function instead).
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.
ah yes, it's at a different point in the thread. I'll update the link
What does this PR do?
browser.close()
was hanging indefinitely, leading to the lambda timing out. This 'solution' is in several Github Issue threads about the bug, such as this onePairs with Blacklight Lambda PR 73
Why are we doing this? How does it help us?
The recent updates to puppeteer and the collector types broke Blacklight on staging.
How/where should this be tested?
In staging, and locally, by running the collector and lambda and ensuring BL works
What are potential areas for future improvement? Are there any dependencies (especially on 3rd party code)?
Keep an eye on Puppeteer and Chromium releases, hopefully a future one will eliminate this bug
Have you done the following, if applicable:
(optional: add explanation between parentheses)