Closed Bug 2090053 Opened 24 days ago Closed 20 days ago

Browser-chrome chunks hang on macOS VMs when the parakeet model server starts (reverse DNS lookup in serve_model.py)

Categories

(Testing :: Mochitest, defect)

defect

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
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:

  1. 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.

  2. 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).

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.

Assignee: nobody → rcurran
Status: NEW → ASSIGNED

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

Pushed by rcurran@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/82ac8b019809 https://hg.mozilla.org/integration/autoland/rev/eda904feb4cf Part 1: Don't start the parakeet model server for disabled tests. r=ahal https://github.com/mozilla-firefox/firefox/commit/4babf098ba6a https://hg.mozilla.org/integration/autoland/rev/8a0f2f26b400 Part 2: Skip the reverse DNS lookup when starting the parakeet model server. r=media-playback-reviewers,padenot
Status: ASSIGNED → RESOLVED
Closed: 20 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: