Closed Bug 1648712 Opened 6 years ago Closed 6 years ago

Intermittent dom/base/test/chrome/test_bug884693.xhtml | Got expected message count - got 1, expected +0

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox77 --- unaffected
firefox78 --- unaffected
firefox79 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: CuveeHsu)

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [stockwell needswork:owner])

Attachments

(1 file)

Filed by: dluca [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=307630887&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/PXsFuJyCQ2eJ-AaAy9k1Cg/runs/0/artifacts/public/logs/live_backing.log


Looks to be very high in frequency.

INFO - TEST-START | dom/base/test/chrome/test_bug884693.xhtml
[task 2020-06-26T07:34:02.260Z] 07:34:02     INFO - TEST-INFO | started process screencapture
[task 2020-06-26T07:34:02.389Z] 07:34:02     INFO - TEST-INFO | screencapture: exit 0
[task 2020-06-26T07:34:02.390Z] 07:34:02     INFO - Buffered messages logged at 07:34:02
[task 2020-06-26T07:34:02.390Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.390Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.390Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.390Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.390Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.391Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.392Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.392Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.392Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.392Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.393Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.393Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.393Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.393Z] 07:34:02     INFO - Buffered messages finished
[task 2020-06-26T07:34:02.394Z] 07:34:02     INFO - TEST-UNEXPECTED-FAIL | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count - got 1, expected +0
[task 2020-06-26T07:34:02.394Z] 07:34:02     INFO - SimpleTest.is@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:492:14
[task 2020-06-26T07:34:02.394Z] 07:34:02     INFO - runTest/</xhr.onload@chrome://mochitests/content/chrome/dom/base/test/chrome/test_bug884693.xhtml:38:13
[task 2020-06-26T07:34:02.394Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.394Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.394Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.395Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.395Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.395Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.395Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.396Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.396Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.396Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.396Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message: no root element found 
[task 2020-06-26T07:34:02.416Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Correct responseText returned 
[task 2020-06-26T07:34:02.416Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message count 
[task 2020-06-26T07:34:02.417Z] 07:34:02     INFO - TEST-PASS | dom/base/test/chrome/test_bug884693.xhtml | Got expected message: syntax error 
[task 2020-06-26T07:34:02.417Z] 07:34:02     INFO - GECKO(2547) | MEMORY STAT | vsize 7722MB | residentFast 375MB | heapAllocated 126MB
[task 2020-06-26T07:34:02.421Z] 07:34:02     INFO - TEST-OK | dom/base/test/chrome/test_bug884693.xhtml | took 373ms

Hello Lina,

I see there's an unexpected console message
Got console messages [JavaScript Error: "Unknown event: ["jsonfile", "load", "broadcastlisteners"]"]

https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=307673425&repo=try&lineNumber=1182
(a) Is this caused by dom push?
(b) If yes, the test is to load some empty resource and to ensure we don't have console error.
Should I disable pref ("dom.push.connection.enabled") for the unrelated tests?

Thanks.

Flags: needinfo?(juhsu) → needinfo?(lina)

Oh, I didn't know we record event telemetry for jsonfile now. And it looks like disabling the pref won't work because the service gets initialized as soon as PushBroadcastService.jsm is loaded. The error is coming from telemetry, here.

I don't remember how PushBroadcastService works anymore and if there would be knock-on effects from removing initializing right away—I think there would be a lot of test fixing we'd have to do 😕 This is hacky, but can you have the test filter out messages starting with Unknown event: ? That would be the easiest way to get this fixed without changing lots of other (super sketchy) code...

Flags: needinfo?(lina)
Keywords: regression
Regressed by: 1599567
Has Regression Range: --- → yes

(In reply to :Lina Cambridge from comment #4)

Oh, I didn't know we record event telemetry for jsonfile now. And it looks like disabling the pref won't work because the service gets initialized as soon as PushBroadcastService.jsm is loaded. The error is coming from telemetry, here.

I don't remember how PushBroadcastService works anymore and if there would be knock-on effects from removing initializing right away—I think there would be a lot of test fixing we'd have to do 😕 This is hacky, but can you have the test filter out messages starting with Unknown event: ? That would be the easiest way to get this fixed without changing lots of other (super sketchy) code...

Thanks, I'm thinking of filtering them out as well.

I managed to get the log and it looks something wrong.

0 load() ["resource://gre/modules/JSONFile.jsm":234:25]
1 InterpretGeneratorResume(gen = "[object Object]", val = "Unix error 2 during operation open on file /tmp/tmpTbfwHU.mozrunner/broadcast-listeners.json (No such file or directory)", kind = ""throw"") ["se
lf-hosted":1242:0]
2 AsyncFunctionThrow(val = "Unix error 2 during operation open on file /tmp/tmpTbfwHU.mozrunner/broadcast-listeners.json (No such file or directory)") ["self-hosted":688:0]
    this = [object Object]
Assignee: nobody → juhsu

Hmmm, could it be initializing before it has a profile directory—like, this is empty?

Pushed by juhsu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/239e544e54d0 prevent false alarm of console message from dom telemetry push, r=lina
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: