Closed Bug 1215257 Opened 9 years ago Closed 8 years ago

HTML <audio> throws error code 3 (MEDIA_ERR_DECODE) running gaia integration tests in automation

Categories

(Firefox Build System :: Task Configuration, task, P2)

task

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: justindarc, Unassigned)

References

Details

While tracking down the cause of test failures from the patch in Bug 1149930, it seems that the <audio> element cannot play OGG or MP3 files on Treeherder in the Gaia integration tests for Music. This does not reproduce when running marionette-js locally on Linux unless you specify the `PULSE_AUDIO=":"` flag. If you run the Gaia integration tests for Music with the `PULSE_AUDIO=":"` flag on a local Linux machine, the exact same test failures are reported as on Treeherder.

The only thing the patch in Bug 1149930 does is listens for the 'error' event on the <audio> element and skips ahead to the next song in the queue if it is encountered. When running on Linux with the `PULSE_AUDIO=":"` flag, the 'error' event is thrown for every song played which causes unpredictable state in the integration tests.
Blocks: 1149930
Treeherder is a dashboard for displaying results. It has nothing to do with how said results were created :). Moving this over to the Taskcluster product since it sounds like a machine config issue.
Component: Treeherder → General
Product: Tree Management → Taskcluster
Version: --- → unspecified
Assignee: nobody → aus
Summary: [Treeherder] HTML <audio> throws error code 3 (MEDIA_ERR_DECODE) running gaia integration tests → HTML <audio> throws error code 3 (MEDIA_ERR_DECODE) running gaia integration tests in automation
See gaia try run here: https://treeherder.mozilla.org/#/jobs?repo=gaia&author=nullaus@github.taskcluster.net

Things looking really good. Will remove :justindarc's commit before pushing.
What did you change?

I recently discovered in bug 1214809 that pulseaudio doesn't actually start in the taskcluster/tester image.  Did you do something to fix that?
Depends on: 1214809
(In reply to Aus Lacroix [:aus] from comment #2)
> See gaia try run here:
> https://treeherder.mozilla.org/#/jobs?repo=gaia&author=nullaus@github.
> taskcluster.net
> 
> Things looking really good. Will remove :justindarc's commit before pushing.

Looks like Gij11 is still failing.
(In reply to Aus Lacroix [:aus] from comment #2)
> See gaia try run here:
> https://treeherder.mozilla.org/#/jobs?repo=gaia&author=nullaus@github.
> taskcluster.net
> 
> Things looking really good. Will remove :justindarc's commit before pushing.

Actually, still really broken. Trying some other avenues now.
Any update here?
Flags: needinfo?(aus)
(In reply to Justin D'Arcangelo [:justindarc] from comment #6)
> Any update here?

I've tried some of the easy fixes to no avail. I am actively working on this but I don't really have an ETA at this time.
Flags: needinfo?(aus)
Status: NEW → ASSIGNED
These tests are running as root, correct?

If not, I discovered in bug 1214809 that using 'su' to drop root privileges causes pulseaudio to crash docker, and 'sudo -E -u worker' works a lot better.
Marking it a P1 as it blocks a P1 bug for 2.5+
Priority: -- → P1
Priority: P1 → P2
Any update on this?
Flags: needinfo?(aus)
Sorry Justin, I'm completely swamped, I currently have no idea when I'll get to this.
Flags: needinfo?(aus)
Component: General → Task Configuration
Assignee: aus → nobody
Status: ASSIGNED → NEW
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: TaskCluster → Firefox Build System
You need to log in before you can comment on or make changes to this bug.