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: implement less flaky network module #1871

Merged
merged 23 commits into from
Feb 28, 2024
Merged

Conversation

Lightning00Blade
Copy link
Collaborator

@Lightning00Blade Lightning00Blade commented Feb 21, 2024

The NetworkStorage is the entry point of all request we store both requests and intecepts in it.
Each CDP event should try to get get a request and if not create it, that way the EventLifecycle of the Request is handle only by the NetworkRequest class.
Now Network events are non-blocking (we may want to revert part of this if we encounter flakiness).
To achieve this we have heuristics that determine when an event should be emitted.
These heuristics are backed up by Unit tests so that it's have easier way of reproducing different behavior when it comes to how events are ordered or if emitted at all from CDP.

#network-interception-2024

@Lightning00Blade Lightning00Blade force-pushed the remove-deferred branch 4 times, most recently from 5f9c76c to c03b43f Compare February 23, 2024 10:34
Lightning00Blade added a commit that referenced this pull request Feb 23, 2024
@Lightning00Blade Lightning00Blade force-pushed the remove-deferred branch 2 times, most recently from d65b954 to 33803f6 Compare February 26, 2024 18:20
@OrKoN
Copy link
Collaborator

OrKoN commented Feb 27, 2024

Looks like perform_actions/invalid.py times out consistently

@Lightning00Blade Lightning00Blade changed the title fix: remove network request deferred fix: implement less flaky network module Feb 27, 2024
@OrKoN
Copy link
Collaborator

OrKoN commented Feb 27, 2024

@Lightning00Blade please update the description with the summary of the fix

@Lightning00Blade Lightning00Blade added the puppeteer Run Puppeteer test when added to PR label Feb 27, 2024
@Lightning00Blade Lightning00Blade force-pushed the remove-deferred branch 2 times, most recently from 6ffb705 to 2b3aebe Compare February 27, 2024 19:03
@Lightning00Blade Lightning00Blade enabled auto-merge (squash) February 28, 2024 10:09
@Lightning00Blade Lightning00Blade merged commit 4ec8bad into main Feb 28, 2024
34 checks passed
@Lightning00Blade Lightning00Blade deleted the remove-deferred branch February 28, 2024 10:10
sadym-chromium pushed a commit that referenced this pull request Feb 29, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.5.12](chromium-bidi-v0.5.11...chromium-bidi-v0.5.12)
(2024-02-29)


### Features

* implement `storage.deleteCookies`
([#1915](#1915))
([18d3d4f](18d3d4f))


### Bug Fixes

* implement less flaky network module
([#1871](#1871))
([4ec8bad](4ec8bad))
* parse `browser.RemoveUserContextParameters`
([#1905](#1905))
([a50821b](a50821b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
sadym-chromium added a commit to puppeteer/puppeteer that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
network puppeteer Run Puppeteer test when added to PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants