Skip to content
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

fix: remove deferred promise timeouts #8835

Merged
merged 1 commit into from Aug 24, 2022
Merged

fix: remove deferred promise timeouts #8835

merged 1 commit into from Aug 24, 2022

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Aug 24, 2022

Issue #8832 makes a good point that we should not be making
implicit assumptions about the client's performance
when waiting for internal events. At the same time,
we want to be able to get the debug info if some promises
never resolve because of missing backend events.

This PR adds a variable to turn on timeouts for deferred
promises created using createDebuggableDeferredPromise.
We can use it in our tests to catch never-resolving
promises or when reproducing bug reports where Puppeteer
hangs indefinitely.

Closes #8832

Issue #8832 makes a good point that we should not be making
implicit assumptions about the client's performance
when waiting for internal events. At the same time,
we want to be able to get the debug info if some promises
never resolve because of missing backend events.

This PR adds a variable to turn on timeouts for deferred
promises created using `createDebuggableDeferredPromise`.
We can use it in our tests to catch never-resolving
promises or when reproducing bug reports where Puppeteer
hangs indefinitely.

Closes #8832
@OrKoN OrKoN requested a review from jrandolf August 24, 2022 07:50
@OrKoN OrKoN marked this pull request as ready for review August 24, 2022 07:50
@OrKoN OrKoN merged commit 202ffce into main Aug 24, 2022
@OrKoN OrKoN deleted the fix-8832 branch August 24, 2022 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: "Waiting for target frame x failed" when crawling a lot of websites concurrently
2 participants