Repository navigation
Use a threadpool for fetch - #22769
Conversation
|
Heads up! This PR modifies the following files:
|
fb6588d to
4309655
Compare
521758e to
e8ed65c
Compare
|
☔ The latest upstream changes (presumably #22786) made this pull request unmergeable. Please resolve the merge conflicts. |
e8ed65c to
e25bbd7
Compare
|
☔ The latest upstream changes (presumably #22521) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Oops, awkward. r=me if this gets rebased. |
ffcb4e6 to
c7c8804
Compare
|
Ok, rebased @jdm |
| ], | ||
| "mozilla/fetch_cannot_overwhelm_system.window.js": [ | ||
| [ | ||
| "/_mozilla/mozilla/fetch_cannot_overwhelm_system.window.html", |
There was a problem hiding this comment.
Could you run ./Mach update-manifest?
There was a problem hiding this comment.
I'm looking into it, it seems to not have any effect...
There was a problem hiding this comment.
Try manually removing the /_mozilla/ prefix, in that case.
c7c8804 to
d0e1a5e
Compare
|
Looks like one more |
|
✌️ @gterzian can now approve this pull request |
d0e1a5e to
1e40c64
Compare
|
@bors-servo r=jdm |
|
📌 Commit 1e40c64 has been approved by |
a1af9ea to
1745ad4
Compare
|
@bors-servo try=wpt |
…=<try> Use a threadpool for fetch <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #22768 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22769) <!-- Reviewable:end -->
|
☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster |
|
@bors-servo r=nox |
|
📌 Commit 1745ad4 has been approved by |
…=nox Use a threadpool for fetch <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #22768 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22769) <!-- Reviewable:end -->
1745ad4 to
c52cfda
Compare
|
@bors-servo r=nox |
|
📌 Commit c52cfda has been approved by |
…=nox Use a threadpool for fetch <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #22768 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22769) <!-- Reviewable:end -->
|
☀️ Test successful - android-mac, arm32, arm64, linux-rel-css, linux-rel-wpt, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, magicleap, status-taskcluster |
…ll file
The test sent 5,000 asynchronous XMLHttpRequests for `/`, the directory
listing of the WPT server, and finished 10 ms later without waiting for
them. Servo opens a connection per request, so the shared WPT server
then spent tens of seconds answering the listings while the other test
runners waited for their test pages and testharness.js. Tests that
started in that window timed out or were reported as CRASH ("Browser
not responding"), e.g. three flaky results of the QuickJS WPT job of
servo-ohos#55 (run 44176987934), which all started within 0.3 s after
this test ended on another runner. A crash caused by the requests would
also have been attributed to the next test.
Request /common/blank.html, an empty file, and finish when every
request has ended (`loadend`), with the long timeout. The test still
checks what it was added for in servo#22769 (servo#22768): that
thousands of concurrent fetches don't crash the browser.
Validation: host checked-release build of this stack, `./mach test-wpt --processes 4 tests/wpt/mozilla/tests/mozilla`: 316 tests as expected; this test takes 3.3 s and the tests started within 2 s after it on the other runners 0.1-0.6 s (except http-cache-xhr.html, an expected timeout). Alone, `--repeat 5` in one browser: OK each time, 1.9 s, then 9-14 s per run (the earlier runs' connections stay open), within the long timeout. Measured before the change, with a probe of testharness.js every 200 ms on the WPT server: the old test ends after 0.07 s, the next test then takes 6.1 s and the probe waits 5.7 s; this version takes 2.4 s with the probe waiting at most 0.5 s and the next test 0.05 s.
AI-assisted: Yes (agent session; the agent found the cause of the flaky results, wrote and measured the change)
Signed-off-by: Jonathan Schwender <[email protected]>
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is