Closed Bug 989644 Opened 6 years ago Closed 2 years ago

Intermittent failing test, Music player tests Audio channels tests Interrupted by a higher priority channel

Categories

(Firefox OS Graveyard :: Gaia::Music, defect)

x86
macOS
defect
Not set

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kgrandon, Unassigned)

References

Details

(Keywords: leave-open)

Attachments

(1 file)

1) Music player tests Audio channels tests Interrupted by a higher priority channel:

AssertionError: false == true

at Context.<anonymous> (/home/travis/build/mozilla-b2g/gaia/apps/music/test/marionette/Player_test.js:78:14)

at Test.Runnable.run (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:211:32)

at Runner.runTest (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:372:10)

at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:448:12

at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:297:14)

at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:307:7

at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:245:23)

at Object._onImmediate (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:274:5)

at processImmediate [as _immediateCallback] (timers.js:330:15)
See Also: → 997360
Currently, this test could not work in local.

The error log:
Error: timeout exceeded!
      at Object.Client.waitForSync (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/marionette-client/lib/marionette/client.js:682:16)
      at Object.Client.waitFor (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/marionette-client/lib/marionette/client.js:650:60)
      at Object.Statusbar.waitForPlayingIndicatorShown (/Users/itoyxd/evan/dev/mozilla/gaia/apps/music/test/marionette/lib/statusbar.js:23:17)
      at Context.<anonymous> (/Users/itoyxd/evan/dev/mozilla/gaia/apps/music/test/marionette/Player_test.js:57:17)
      at callFn (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runnable.js:223:21)
      at Test.Runnable.run (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runnable.js:216:7)
      at Runner.runTest (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runner.js:373:10)
      at /Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runner.js:451:12
      at next (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runner.js:298:14)
      at /Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runner.js:308:7
      at next (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runner.js:246:23)
      at /Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runner.js:270:7
      at done (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runnable.js:185:5)
      at callFn (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runnable.js:228:7)
      at Hook.Runnable.run (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runnable.js:216:7)
      at next (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runner.js:258:10)
      at Object._onImmediate (/Users/itoyxd/evan/dev/mozilla/gaia/node_modules/mocha/lib/runner.js:275:5)
      at processImmediate [as _immediateCallback] (timers.js:345:15)
Assignee: nobody → evanxd
In the below log, it looks like music app resumes to play the music too slow. And it might be a decode issue in Gecko.

Let's re-enable part of the test to check that music will be paused when ringtone is playing.

Error log:
1) Music player tests Audio channels tests Interrupted by a higher priority channel:
23:42:09     INFO -    StaleElementReference: (10) The element reference is stale. Either the element is no longer attached to the DOM or the page has been refreshed.
23:42:09     INFO -    Remote Stack:
23:42:09     INFO -    <none>
23:42:09     INFO -        at Error.MarionetteError (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/error.js:67:13)
23:42:09     INFO -        at Object.Client._handleCallback (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/client.js:476:19)
23:42:09     INFO -        at /builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/client.js:510:21
23:42:09     INFO -        at TcpSync.send (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/drivers/tcp-sync.js:153:10)
23:42:09     INFO -        at Object.send (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/client.js:457:36)
23:42:09     INFO -        at Object.Client._sendCommand (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/client.js:503:19)
23:42:09     INFO -        at Object.Element._sendCommand (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/element.js:49:21)
23:42:09     INFO -        at Object.displayed (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/element.js:287:19)
23:42:09     INFO -        at Object.<anonymous> (/builds/slave/test/gaia/apps/music/test/marionette/lib/statusbar.js:27:30)
23:42:09     INFO -        at modifiedTest (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/client.js:646:22)
23:42:09     INFO -        at Object.Client.waitForSync (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/client.js:671:9)
23:42:09     INFO -        at Object.Client.waitFor (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/client.js:650:60)
23:42:09     INFO -        at Object.Statusbar.waitForPlayingIndicatorShown (/builds/slave/test/gaia/apps/music/test/marionette/lib/statusbar.js:23:17)
23:42:09     INFO -        at Context.<anonymous> (/builds/slave/test/gaia/apps/music/test/marionette/Player_test.js:67:17)
23:42:09     INFO -        at callFn (/builds/slave/test/gaia/node_modules/mocha/lib/runnable.js:223:21)
23:42:09     INFO -        at Test.Runnable.run (/builds/slave/test/gaia/node_modules/mocha/lib/runnable.js:216:7)
23:42:09     INFO -        at Runner.runTest (/builds/slave/test/gaia/node_modules/mocha/lib/runner.js:373:10)
23:42:09     INFO -        at /builds/slave/test/gaia/node_modules/mocha/lib/runner.js:451:12
23:42:09     INFO -        at next (/builds/slave/test/gaia/node_modules/mocha/lib/runner.js:298:14)
23:42:09     INFO -        at /builds/slave/test/gaia/node_modules/mocha/lib/runner.js:308:7
23:42:09     INFO -        at next (/builds/slave/test/gaia/node_modules/mocha/lib/runner.js:246:23)
23:42:09     INFO -        at /builds/slave/test/gaia/node_modules/mocha/lib/runner.js:270:7
23:42:09     INFO -        at done (/builds/slave/test/gaia/node_modules/mocha/lib/runnable.js:185:5)
23:42:09     INFO -        at callFn (/builds/slave/test/gaia/node_modules/mocha/lib/runnable.js:228:7)
23:42:09     INFO -        at Hook.Runnable.run (/builds/slave/test/gaia/node_modules/mocha/lib/runnable.js:216:7)
23:42:09     INFO -        at next (/builds/slave/test/gaia/node_modules/mocha/lib/runner.js:258:10)
23:42:09     INFO -        at Object._onImmediate (/builds/slave/test/gaia/node_modules/mocha/lib/runner.js:275:5)
23:42:09     INFO -        at processImmediate [as _immediateCallback] (timers.js:330:15)
full log: http://ftp.mozilla.org/pub/mozilla.org/b2g/try-builds/gaiabld-37c0f2214212/gaia-try-linux64_gecko/gaia-try_ubuntu64_vm-b2gdt_test-gaia-js-integration-2-bm68-tests1-linux64-build154.txt.gz

[1] https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=37c0f2214212
Attachment #8518067 - Attachment description: Debug → Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25874
Comment on attachment 8518067 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25874

Hi Dominic,

Could you help to review the patch?

Thanks.
Attachment #8518067 - Flags: review?(dkuo)
For re-enabling the `Interrupted by a higher priority channel` test[1], it looks like about gecko issue. Music app resumes to play the music just too slow[Comment 4]. So we might need to file a new bug to block this issue.

[1] https://github.com/mozilla-b2g/gaia/blob/master/apps/music/test/marionette/Player_test.js#L49
Comment on attachment 8518067 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25874

Cancelling the review request since the patch conflicts and I didn't have time to review it, Evan if you get a chance to work on this again, feel free to re-set it to me, thanks.
Attachment #8518067 - Flags: review?(dkuo)
Assignee: evan → nobody
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.