Closed Bug 1924806 Opened 1 year ago Closed 1 year ago

add pipewire support to mochitest harness

Categories

(Testing :: Mochitest, task)

task

Tracking

(firefox135 fixed)

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: jcristau, Assigned: padenot)

References

(Blocks 1 open bug)

Details

Attachments

(6 files, 1 obsolete file)

Newer linux distros have different output from pactl, that mochitest needs to learn to parse before we can move wayland tests from ubuntu 22.04 to 24.04.

Paul, in bug 1763403 you added module-sine-source to the pulseaudio setup; pipewire doesn't seem to have that module (pactl load-module fails with Failure: No such entity), do you know if there's a replacement we should use?

Flags: needinfo?(padenot)
Attached file Bug 1924806 (obsolete) —
Assignee: nobody → padenot
Status: NEW → ASSIGNED

Not finished but we're getting somewhere.

Flags: needinfo?(padenot)
Summary: parse `pactl list modules short` output from pipewire → add pipewire support to mochitest harness
Attachment #9431211 - Attachment is obsolete: true

Andreas, any chance you could help me with this? With the WIP patch stack to run tests on 24.04, the media tests are unhappy, see e.g. https://treeherder.mozilla.org/jobs?repo=try&revision=474ea1dd394c70b1f3b6aad43e6b89ee74cd19bb&searchStr=mda

Flags: needinfo?(apehrson)

The mochitest harness handles creating the null devices.

When pipewire node names contain spaces, they can't be opened through
pipewire-pulse (pa_stream_connect_record). Unclear why, as pavucontrol can
monitor their volume just fine. A safe bet is to remove spaces from the names we
set explicitly. This patch in addition adds user-friendly descriptions that do
contain spaces to the devices. It also sets the pulseaudio null-sink name
properly, so we can rely on a single name across both pipewire and pulseaudio.

Flags: needinfo?(apehrson)
Pushed by jcristau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/47e244df3141 enable audiotestsrc pipewire plugin on ubuntu 24.04 r=jmaher https://hg.mozilla.org/integration/autoland/rev/938b607cd6f5 Set up new input and output devices when the host uses pipewire. r=jcristau https://hg.mozilla.org/integration/autoland/rev/2ed8a658bb50 Signal speaker via findTestMediaDevices like microphone and camera. r=jcristau https://hg.mozilla.org/integration/autoland/rev/6ad932a53cf2 Unify lifetime of null sinks and sine sources with pipewire. r=jcristau https://hg.mozilla.org/integration/autoland/rev/d77ca9139e6e Don't use spaces in names of audio devices. r=jcristau
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: