Browser-chrome chunks hang on macOS VMs when the parakeet model server starts (reverse DNS lookup in serve_model.py)
Categories
(Testing :: Mochitest, defect)
Tracking
(firefox162 fixed)
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: rcurran, Assigned: rcurran)
References
Details
Attachments
(2 external files)
On macosx1500-aarch64-vms, every mochitest-browser-chrome chunk that starts the parakeet model server hangs before its first test. The browser starts, but browser-harness.xhtml's waitForFocus never fires, so Start BrowserChrome Test Results is never logged. Each manifest then times out after 370 seconds, until the task hits max-run-time. This affects about 24% of VM chunk 1 runs and is most of the VM browser-chrome jobs killed at max-run-time.
Two causes:
-
runtests.py starts the server for disabled tests. dom/media/webspeech/recognition/test/perftest.toml has browser_speech_recognition_perf.js disabled outside perftest but tagged parakeet-asr, so every chunk containing that manifest starts the server for nothing.
-
serve_model.py uses http.server, whose server_bind() calls socket.getfqdn(). On the VMs that reverse lookup takes about 36 seconds every time (0.1 to 0.2 seconds on bare metal), and the browser never gets focus afterwards.
Try, with a browser/actors test tagged parakeet-asr so the server starts: without the fix 5 of 5 hung (server answered after 35.6 to 35.9 seconds). With server_bind overridden to skip getfqdn, 5 of 5 passed (server answered in 0.1 to 0.2 seconds). Try pushes 2093908 (control) and 2093915 (fix).
| Assignee | ||
Comment 1•24 days ago
|
||
browser_speech_recognition_perf.js is disabled outside perftest but tagged
parakeet-asr, so every browser-chrome chunk that contains its manifest starts
the model server for nothing.
Updated•24 days ago
|
| Assignee | ||
Comment 2•24 days ago
|
||
HTTPServer.server_bind() calls socket.getfqdn() on the bind address. On the
macOS tart VMs that lookup takes ~36s to time out, and the browser-chrome
harness then never gets focus. With server_bind() overridden, the server
answers in 0.1-0.2s there and the chunks run normally.
Depends on D340338
Comment 4•20 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/eda904feb4cf
https://hg.mozilla.org/mozilla-central/rev/8a0f2f26b400
Description
•