Open Bug 1440059 Opened 6 years ago Updated 2 years ago

Intermittent devtools/client/webconsole/test/mochitest/browser_console_context_menu_entries.js | The context menu is displayed on a network message -

Categories

(DevTools :: Console, defect, P5)

defect

Tracking

(Not tracked)

REOPENED

People

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

References

Details

(Keywords: intermittent-failure, leave-open, Whiteboard: [stockwell disabled])

Attachments

(1 file, 2 obsolete files)

Filed by: ncsoregi [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=163498157&repo=autoland

https://queue.taskcluster.net/v1/task/YfgfKrXNR1u_-czsvJ-Pcw/runs/0/artifacts/public/logs/live_backing.log

[task 2018-02-21T18:20:03.864Z] 18:20:03     INFO - TEST-START | devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js
[task 2018-02-21T18:20:05.081Z] 18:20:05     INFO - TEST-INFO | started process screentopng
[task 2018-02-21T18:20:06.123Z] 18:20:06     INFO - TEST-INFO | screentopng: exit 0
[task 2018-02-21T18:20:06.123Z] 18:20:06     INFO - Buffered messages logged at 18:20:03
[task 2018-02-21T18:20:06.123Z] 18:20:06     INFO - Entering test bound 
[task 2018-02-21T18:20:06.125Z] 18:20:06     INFO - Adding a new tab with URL: http://example.com/browser/devtools/client/webconsole/new-console-output/test/mochitest/test-console.html
[task 2018-02-21T18:20:06.125Z] 18:20:06     INFO - Buffered messages logged at 18:20:04
[task 2018-02-21T18:20:06.126Z] 18:20:06     INFO - Tab added and finished loading
[task 2018-02-21T18:20:06.128Z] 18:20:06     INFO - Console message: [JavaScript Warning: "Unknown property ‘user-select’.  Declaration dropped." {file: "resource://devtools/client/shared/components/reps/reps.css" line: 270}]
[task 2018-02-21T18:20:06.130Z] 18:20:06     INFO - Reload the content window to produce a network log
[task 2018-02-21T18:20:06.132Z] 18:20:06     INFO - Console message: [JavaScript Warning: "The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page."]
[task 2018-02-21T18:20:06.133Z] 18:20:06     INFO - Matched a message with text: "test-console.html", all messages received.
[task 2018-02-21T18:20:06.135Z] 18:20:06     INFO - Open and check the context menu for the network message
[task 2018-02-21T18:20:06.137Z] 18:20:06     INFO - Buffered messages finished
[task 2018-02-21T18:20:06.139Z] 18:20:06     INFO - TEST-UNEXPECTED-FAIL | devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js | The context menu is displayed on a network message - 
[task 2018-02-21T18:20:06.140Z] 18:20:06     INFO - Stack trace:
[task 2018-02-21T18:20:06.141Z] 18:20:06     INFO - chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js:null:27
[task 2018-02-21T18:20:06.143Z] 18:20:06     INFO - Not taking screenshot here: see the one that was previously logged
[task 2018-02-21T18:20:06.149Z] 18:20:06     INFO - TEST-UNEXPECTED-FAIL | devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js:63 - TypeError: popupElement is null
[task 2018-02-21T18:20:06.150Z] 18:20:06     INFO - Stack trace:
[task 2018-02-21T18:20:06.151Z] 18:20:06     INFO -     getSimplifiedContextMenu@chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js:63:11
[task 2018-02-21T18:20:06.153Z] 18:20:06     INFO -     @chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js:37:6
[task 2018-02-21T18:20:06.154Z] 18:20:06     INFO -     Async*Tester_execTest/<@chrome://mochikit/content/browser-test.js:1067:21
[task 2018-02-21T18:20:06.155Z] 18:20:06     INFO -     Tester_execTest@chrome://mochikit/content/browser-test.js:1058:9
[task 2018-02-21T18:20:06.156Z] 18:20:06     INFO -     Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:953:9
[task 2018-02-21T18:20:06.158Z] 18:20:06     INFO -     SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:795:59
[task 2018-02-21T18:20:06.159Z] 18:20:06     INFO - Leaving test bound 
[task 2018-02-21T18:20:06.160Z] 18:20:06     INFO - Removing tab.
This bug was filed 13 days ago.

There have been 35 failures in the last week. The number of failures increased on March 5th. 

Failures per platform:
- linux64-stylo-disabled: 21
- Linux x64: 12
- linux64-ccov: 1
- linux64-jsdcov: 1

Failures per build type:
- debug: 33 
- opt: 2


Here is a recent log file and a snippet with the failure:
https://treeherder.mozilla.org/logviewer.html#?repo=autoland&job_id=166150007&lineNumber=10801

[task 2018-03-06T06:52:13.100Z] 06:52:13     INFO - Matched a message with text: "test-console.html", all messages received.
[task 2018-03-06T06:52:13.101Z] 06:52:13     INFO - Open and check the context menu for the network message
[task 2018-03-06T06:52:13.102Z] 06:52:13     INFO - Buffered messages finished
[task 2018-03-06T06:52:13.103Z] 06:52:13     INFO - TEST-UNEXPECTED-FAIL | devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js | The context menu is displayed on a network message - 
[task 2018-03-06T06:52:13.107Z] 06:52:13     INFO - Stack trace:
[task 2018-03-06T06:52:13.108Z] 06:52:13     INFO - chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js:null:27
[task 2018-03-06T06:52:13.109Z] 06:52:13     INFO - Not taking screenshot here: see the one that was previously logged

:brgins could you look at this please?
Flags: needinfo?(bgrinstead)
Whiteboard: [stockwell needswork]
This was added in Bug 1440059. Nicolas, any ideas?
Blocks: 1438118
Flags: needinfo?(bgrinstead) → needinfo?(nchevobbe)
I'll have a look
Flags: needinfo?(nchevobbe)
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Update:
This started failing again in the last 3 days with 31 failures on linux64-stylo-disabled and Linux x64 mainly on debug.

log: https://treeherder.mozilla.org/logviewer.html#?repo=autoland&job_id=168019901&lineNumber=11206

:bgrins can you take a look at this?
Flags: needinfo?(bgrinstead)
Nicolas, any ideas? Looks like we are getting "TypeError: popupElement is null" in the getSimplifiedContextMenu helper function.
Flags: needinfo?(bgrinstead) → needinfo?(nchevobbe)
yeah I saw that and tried a couple things to fix it without luck.
At some point the failures stopped, but it looks like they're back.
I am going to have a look this morning, see if we can wait for the dom to be rendered before firing the event we listen to.
Flags: needinfo?(nchevobbe)
Over the last 7 days there are 34 failures present on this bug. These happen on Linux x64, linux64-ccov, linux64-stylo-disabled

Most recent log example: https://treeherder.mozilla.org/logviewer.html#?repo=autoland&job_id=170679850&lineNumber=11949

Log: 

[task 2018-03-27T23:06:56.204Z] 23:06:56     INFO - TEST-UNEXPECTED-FAIL | devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js | The context menu is displayed on a network message - 
[task 2018-03-27T23:06:56.205Z] 23:06:56     INFO - Stack trace:
[task 2018-03-27T23:06:56.206Z] 23:06:56     INFO - chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js:null:27
[task 2018-03-27T23:06:56.208Z] 23:06:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2018-03-27T23:06:56.210Z] 23:06:56     INFO - TEST-UNEXPECTED-FAIL | devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js:63 - TypeError: popupElement is null
Flags: needinfo?(bgrinstead)
This bug has failed 41 times in the last 7 days on Linux affecting opt and debug build types.

:nchevobbe do you have any updates on this bug? 
:jmaher should we disable this test until the issue is fixed?
Flags: needinfo?(nchevobbe)
Flags: needinfo?(jmaher)
Arthur, lets get a patch up here and reviewed- it is 7+ days with no bug activity and continued high rate of failures.  Hopefully in the meantime we can hear if there is something in a review queue which would solve this.
Flags: needinfo?(jmaher)
Last time I checked I couldn't figure out what was wrong and possible fixes didn't worked. I guess I need to spend more time on this, but I have a full plate at the moment. I'll try to have a look soon.
Flags: needinfo?(bgrinstead)
Comment on attachment 8965555 [details] [diff] [review]
Disabled browser_console_context_menu_entries.js] on Linux

Review of attachment 8965555 [details] [diff] [review]:
-----------------------------------------------------------------

really close, but this seems to fail only on debug and ccov (which ccov is really debug)

::: devtools/client/webconsole/new-console-output/test/mochitest/browser.ini
@@ +170,4 @@
>  skip-if = true # Bug 1437843
>  [browser_console_consolejsm_output.js]
>  [browser_console_context_menu_entries.js]
> +skip-if = os == "linux" # Bug 1440059

can you do this for debug and ccov ?

os == "linux" && (debug || ccov)
Attachment #8965555 - Flags: review?(jmaher) → review-
Attached patch Disabled on Linux debug and ccov (obsolete) — Splinter Review
Updated the patch with skip-if = (os == "linux" && (debug || ccov)) as I have found in searchfox
Attachment #8966041 - Flags: review?(jmaher)
Comment on attachment 8966041 [details] [diff] [review]
Disabled on Linux debug and ccov

Review of attachment 8966041 [details] [diff] [review]:
-----------------------------------------------------------------

thanks
Attachment #8966041 - Flags: review?(jmaher) → review+
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/65cf64ac0280
Disabled browser_console_context_menu_entries.js on Linux and ccov for frequent failures. r=jmaher
Keywords: leave-open
Whiteboard: [stockwell disable-recommended] → [stockwell disabled]
Product: Firefox → DevTools
Doesn't seem to fail anymore for a few months now, let's close this.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(nchevobbe)
Resolution: --- → WORKSFORME
New occurrence here: https://treeherder.mozilla.org/logviewer.html#?job_id=209134032&repo=mozilla-inbound&lineNumber=3734

[task 2018-11-01T11:48:37.151Z] 11:48:37     INFO - TEST-START | devtools/client/webconsole/test/mochitest/browser_console_context_menu_entries.js
[task 2018-11-01T11:48:38.460Z] 11:48:38     INFO - TEST-INFO | started process screentopng
[task 2018-11-01T11:48:38.963Z] 11:48:38     INFO - TEST-INFO | screentopng: exit 0
[task 2018-11-01T11:48:38.963Z] 11:48:38     INFO - Buffered messages logged at 11:48:37
[task 2018-11-01T11:48:38.964Z] 11:48:38     INFO - Entering test bound 
[task 2018-11-01T11:48:38.964Z] 11:48:38     INFO - Adding a new tab with URL: http://example.com/browser/devtools/client/webconsole/test/mochitest/test-console.html
[task 2018-11-01T11:48:38.966Z] 11:48:38     INFO - Tab added and finished loading
[task 2018-11-01T11:48:38.968Z] 11:48:38     INFO - Buffered messages logged at 11:48:38
[task 2018-11-01T11:48:38.969Z] 11:48:38     INFO - Reload the content window to produce a network log
[task 2018-11-01T11:48:38.971Z] 11:48:38     INFO - Console message: [JavaScript Warning: "The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page."]
[task 2018-11-01T11:48:38.972Z] 11:48:38     INFO - Matched a message with text: "test-console.html", all messages received.
[task 2018-11-01T11:48:38.973Z] 11:48:38     INFO - Open and check the context menu for the network message
[task 2018-11-01T11:48:38.975Z] 11:48:38     INFO - Buffered messages finished
[task 2018-11-01T11:48:38.976Z] 11:48:38     INFO - TEST-UNEXPECTED-FAIL | devtools/client/webconsole/test/mochitest/browser_console_context_menu_entries.js | The context menu is displayed on a network message - 
[task 2018-11-01T11:48:38.976Z] 11:48:38     INFO - Stack trace:
[task 2018-11-01T11:48:38.977Z] 11:48:38     INFO - chrome://mochitests/content/browser/devtools/client/webconsole/test/mochitest/browser_console_context_menu_entries.js:performTests:38
[task 2018-11-01T11:48:38.978Z] 11:48:38     INFO - chrome://mochitests/content/browser/devtools/client/webconsole/test/mochitest/browser_console_context_menu_entries.js:null:19
[task 2018-11-01T11:48:38.978Z] 11:48:38     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1098
[task 2018-11-01T11:48:38.979Z] 11:48:38     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1089
[task 2018-11-01T11:48:38.980Z] 11:48:38     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:987
[task 2018-11-01T11:48:38.981Z] 11:48:38     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:795
[task 2018-11-01T11:48:38.982Z] 11:48:38     INFO - Not taking screenshot here: see the one that was previously logged
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Summary: Intermittent devtools/client/webconsole/new-console-output/test/mochitest/browser_console_context_menu_entries.js | The context menu is displayed on a network message - → Intermittent devtools/client/webconsole/test/mochitest/browser_console_context_menu_entries.js | The context menu is displayed on a network message -
This bug failed 38 times in the last 7 days. Occurs on linux32 and linux64 on opt, asan and pgo build types.

Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=215117860&repo=autoland&lineNumber=2874

Nicolas Chevobbe: Can you please take a look at this bug?
Flags: needinfo?(nchevobbe)
Whiteboard: [stockwell disabled] → [stockwell disabled][stockwell needswork]
Update: there have been 32 failures within the last 7 days, all of them on Linux x32 opt and Linux x64 pgo/opt
Flags: needinfo?(nchevobbe)
Attachment #8965555 - Attachment is obsolete: true
Attachment #8966041 - Attachment is obsolete: true
Attachment #9033141 - Flags: review?(jmaher)
Hi Nicolas, there are 117 failures in the last 30 days. Unless there is no other solution to be proposed for this bug, i have disabled the test just in case you consider it is needed.
Flags: needinfo?(nchevobbe)
Attachment #9033141 - Flags: review?(jmaher) → review+
Whiteboard: [stockwell disabled][stockwell needswork] → [stockwell disabled]
Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/27c3df89de47
Disabled browser_console_context_menu_entries.js on Linux for all build types. r=jmaher
Keywords: checkin-needed
Flags: needinfo?(nchevobbe)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: