[wpt-sync] Sync PR 57973 - servo harness: Reduce recursive execution for shutdown
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox150 fixed)
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 57973 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/57973
Details from upstream follow.
Euclid Ye <yezhizhenjiakang@gmail.com> wrote:
servo harness: Reduce recursive execution for shutdown
I like
servorunner, or better known as its previous nameservodriverto some people.
However, it is getting quite often that I uselegacy, or better known as its previous nameservo.
This is becauseservo (previously servodriver)harness shutdown very slowly due to its shutdown command https://github.com/servo/servo/pull/40455
- This PR improves the shutdown command in the way as titled.
- Avoids accidental Prockill that may happen after regular shutdown. This may be related to @jschwe's report that coverage for WPT still reports empty more often than it should.
Previously, shutdown is like:
0:15.06 INFO Trying to shut down gracefully by extension command 0:18.13 DEBUG Servo has shut down normally. HTTPConnectionPool(host='127.0.0.1', port=8378): Max retries exceeded with url: /status (Caused by NewConnectionError("HTTPConnection(host='127.0.0.1', port=8378): Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it")) 0:18.13 DEBUG Stopping WebDriver 0:20.19 DEBUG Servo has shut down normally. HTTPConnectionPool(host='127.0.0.1', port=8378): Max retries exceeded with url: /status (Caused by NewConnectionError("HTTPConnection(host='127.0.0.1', port=8378): Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it")) 0:22.24 DEBUG Servo has shut down normally. HTTPConnectionPool(host='127.0.0.1', port=8378): Max retries exceeded with url: /status (Caused by NewConnectionError("HTTPConnection(host='127.0.0.1', port=8378): Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it")) 0:14.99 DEBUG Hanging up on WebDriver sessionNow:
INFO Trying to shut down gracefully by extension command 0:18.41 DEBUG Servo has shut down normally. HTTPConnectionPool(host='127.0.0.1', port=9098): Max retries exceeded with url: /status (Caused by NewConnectionError("HTTPConnection(host='127.0.0.1', port=9098): Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it")) 0:18.41 DEBUG TestRunnerManager cleanup 0:15.30 DEBUG Hanging up on WebDriver sessionTesting: Locally, this reduce shutdown time from about 5 sec to 1 sec, counting from "Trying to shut down gracefully by extension command".
Try.Reviewed in servo/servo#42770
| Assignee | ||
Comment 1•9 months ago
|
||
| Assignee | ||
Comment 2•9 months ago
|
||
| Assignee | ||
Comment 3•9 months ago
|
||
| Assignee | ||
Comment 4•9 months ago
|
||
Comment 6•9 months ago
|
||
| bugherder | ||
Description
•