Closed Bug 1469191 Opened 6 years ago Closed 6 years ago

Intermittent devtools/client/netmonitor/test/browser_net_filter-autocomplete.js | Autocomplete Popup Created -

Categories

(DevTools :: Netmonitor, defect, P2)

defect

Tracking

(firefox63 fixed)

RESOLVED FIXED
Firefox 63
Tracking Status
firefox63 --- fixed

People

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

References

Details

(Keywords: intermittent-failure, Whiteboard: [stockwell disable-recommended])

Attachments

(1 file)

Filed by: dvarga [at] mozilla.com

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

https://queue.taskcluster.net/v1/task/DM8xq_UKQe-kR84_A2Qc1g/runs/0/artifacts/public/logs/live_backing.log

01:13:01     INFO - TEST-PASS | devtools/client/netmonitor/test/browser_net_filter-autocomplete.js | Request to reconfigure the tab was recorded. - 
01:13:01     INFO - Clearing requests in the console client.
01:13:01     INFO - Clearing requests in the UI.
01:13:01     INFO - Starting test... 
01:13:01     INFO - Loading the helper frame script chrome://mochitests/content/browser/devtools/client/shared/test/frame-script-utils.js
01:13:01     INFO - Performing requests in the context of the content.
01:13:01     INFO - > Network event progress: NetworkEvent: 1/10, PayloadReady: 0/10, got NetMonitor:NetworkEvent for server1.conn35.child1/netEvent45
01:13:01     INFO - > Network event progress: NetworkEvent: 1/10, PayloadReady: 1/10, got NetMonitor:PayloadReady for server1.conn35.child1/netEvent45
01:13:01     INFO - > Network event progress: NetworkEvent: 2/10, PayloadReady: 1/10, got NetMonitor:NetworkEvent for server1.conn35.child1/netEvent65
01:13:01     INFO - > Network event progress: NetworkEvent: 2/10, PayloadReady: 2/10, got NetMonitor:PayloadReady for server1.conn35.child1/netEvent65
01:13:01     INFO - Buffered messages logged at 01:13:01
01:13:01     INFO - > Network event progress: NetworkEvent: 3/10, PayloadReady: 2/10, got NetMonitor:NetworkEvent for server1.conn35.child1/netEvent89
01:13:01     INFO - > Network event progress: NetworkEvent: 3/10, PayloadReady: 3/10, got NetMonitor:PayloadReady for server1.conn35.child1/netEvent89
01:13:01     INFO - > Network event progress: NetworkEvent: 4/10, PayloadReady: 3/10, got NetMonitor:NetworkEvent for server1.conn35.child1/netEvent111
01:13:01     INFO - > Network event progress: NetworkEvent: 4/10, PayloadReady: 4/10, got NetMonitor:PayloadReady for server1.conn35.child1/netEvent111
01:13:01     INFO - > Network event progress: NetworkEvent: 5/10, PayloadReady: 4/10, got NetMonitor:NetworkEvent for server1.conn35.child1/netEvent133
01:13:01     INFO - > Network event progress: NetworkEvent: 5/10, PayloadReady: 5/10, got NetMonitor:PayloadReady for server1.conn35.child1/netEvent133
01:13:01     INFO - > Network event progress: NetworkEvent: 6/10, PayloadReady: 5/10, got NetMonitor:NetworkEvent for server1.conn35.child1/netEvent155
01:13:01     INFO - > Network event progress: NetworkEvent: 6/10, PayloadReady: 6/10, got NetMonitor:PayloadReady for server1.conn35.child1/netEvent155
01:13:01     INFO - > Network event progress: NetworkEvent: 7/10, PayloadReady: 6/10, got NetMonitor:NetworkEvent for server1.conn35.child1/netEvent177
01:13:01     INFO - > Network event progress: NetworkEvent: 7/10, PayloadReady: 7/10, got NetMonitor:PayloadReady for server1.conn35.child1/netEvent177
01:13:01     INFO - > Network event progress: NetworkEvent: 8/10, PayloadReady: 7/10, got NetMonitor:NetworkEvent for server1.conn35.child1/netEvent199
01:13:01     INFO - > Network event progress: NetworkEvent: 8/10, PayloadReady: 8/10, got NetMonitor:PayloadReady for server1.conn35.child1/netEvent199
01:13:01     INFO - > Network event progress: NetworkEvent: 9/10, PayloadReady: 8/10, got NetMonitor:NetworkEvent for server1.conn35.child1/netEvent221
01:13:01     INFO - > Network event progress: NetworkEvent: 9/10, PayloadReady: 9/10, got NetMonitor:PayloadReady for server1.conn35.child1/netEvent221
01:13:01     INFO - > Network event progress: NetworkEvent: 10/10, PayloadReady: 9/10, got NetMonitor:NetworkEvent for server1.conn35.child1/netEvent245
01:13:01     INFO - > Network event progress: NetworkEvent: 10/10, PayloadReady: 10/10, got NetMonitor:PayloadReady for server1.conn35.child1/netEvent245
01:13:01     INFO - TEST-PASS | devtools/client/netmonitor/test/browser_net_filter-autocomplete.js | Autocomplete Popup still hidden - 
01:13:01     INFO - Buffered messages finished
01:13:01     INFO - TEST-UNEXPECTED-FAIL | devtools/client/netmonitor/test/browser_net_filter-autocomplete.js | Autocomplete Popup Created - 
01:13:01     INFO - Stack trace:
01:13:01     INFO - chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js:null:62
01:13:01     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1098
01:13:01     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1089
01:13:01     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:991
01:13:01     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:795
01:13:01     INFO - Not taking screenshot here: see the one that was previously logged
01:13:01     INFO - TEST-UNEXPECTED-FAIL | devtools/client/netmonitor/test/browser_net_filter-autocomplete.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js:26 - TypeError: document.querySelector(...) is null
01:13:01     INFO - Stack trace:
01:13:01     INFO - testAutocompleteContents/<@chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js:26:7
01:13:01     INFO - testAutocompleteContents@chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js:24:3
01:13:01     INFO - @chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js:64:3
01:13:01     INFO - Async*Tester_execTest/<@chrome://mochikit/content/browser-test.js:1098:34
01:13:01     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1089:16
01:13:01     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:991:9
01:13:01     INFO - SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:795:59
01:13:01     INFO - Leaving test bound 
01:13:01     INFO - Removing tab.
01:13:01     INFO - Waiting for event: 'TabClose' on [object XULElement].
01:13:01     INFO - Got event: 'TabClose' on [object XULElement].
01:13:01     INFO - Tab removed and finished closing
01:13:01     INFO - finish() was called, cleaning up...
01:13:01     INFO - GECKO(2053) | MEMORY STAT | vsize 4649MB | residentFast 624MB | heapAllocated 163MB
01:13:01     INFO - TEST-OK | devtools/client/netmonitor/test/browser_net_filter-autocomplete.js | took 2236ms
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
This is still happening.

Recent failure: https://treeherder.mozilla.org/logviewer.html#?job_id=189885382&repo=autoland&lineNumber=1870
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
When the test attempts to click on the netmonitor filter input [1], the tab switches to the first blank tab.

Brian, any idea what could trigger that?
Flags: needinfo?(bgrinstead)
Blocks: 1442582
Priority: P5 → P2
See Also: 1442582
(In reply to Julian Descottes [:jdescottes][:julian] from comment #6)
> When the test attempts to click on the netmonitor filter input [1], the tab
> switches to the first blank tab.
> 
> Brian, any idea what could trigger that?

[1] https://searchfox.org/mozilla-central/rev/bdfd20ef30d521b57d5b6feeda71325e8b4cad66/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js#53-54
Looking into it
Assignee: nobody → bgrinstead
Status: REOPENED → ASSIGNED
Flags: needinfo?(bgrinstead)
Somehow the `EventUtils.synthesizeMouseAtCenter(document.querySelector(".devtools-filterinput"), {}, window);` triggers "onmousedown" in the "tab" xbl binding:

console.trace() tabbrowser.js:4183
_setupEventListeners/<
chrome://browser/content/tabbrowser.js:4183
set_selectedIndex
chrome://global/content/bindings/tabbox.xml:607
set_selectedPanel
chrome://global/content/bindings/tabbox.xml:635
set_selectedIndex
chrome://global/content/bindings/tabbox.xml:386
set_selectedItem
chrome://global/content/bindings/tabbox.xml:411
_selectNewTab
chrome://global/content/bindings/tabbox.xml:456
onxblmousedown
chrome://global/content/bindings/tabbox.xml:727
synthesizeMouseAtPoint
chrome://mochikit/content/tests/SimpleTest/EventUtils.js:468
synthesizeMouse
chrome://mochikit/content/tests/SimpleTest/EventUtils.js:405
synthesizeMouseAtCenter
chrome://mochikit/content/tests/SimpleTest/EventUtils.js:506
<anonymous>
chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js:54
I'm not sure if this will fix the original intermittent, but it should fix the perma orange which is triggered by synthesizing the mouse event in the wrong window (the browser window instead of netmonitor window that has the DOM node).
Comment on attachment 8994902 [details]
Bug 1469191 - Use the proper window for synthesizeMouseAtCenter in netmonitor test;

https://reviewboard.mozilla.org/r/259424/#review266438

Fixes the issue! Thanks
Attachment #8994902 - Flags: review?(jdescottes) → review+
Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/429bdd36f4a7
Use the proper window for synthesizeMouseAtCenter in netmonitor test;r=jdescottes
https://hg.mozilla.org/mozilla-central/rev/429bdd36f4a7
Status: ASSIGNED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
We are trying to build a tool to automatically classify intermittent failures, which would provide a starting point for fixing the bug, reducing the manual work for the developers.
We are collecting some feedback on the results, to see if they’re good enough and where we need to improve.
    
For this bug, the tool says that the intermittent failure is most likely a:
Concurrency Issue: This includes tests in which failures occur due to thread management issues (different threads or their outcomes depending on an implicit ordering), race conditions and/or deadlocks, and issues related to an asynchronous waits (e.g. a process trying to access an external resource or continuing before the external resource is available).


Once you’re done investigating and/or fixing the bug, could you tell me:
- Did the tool correctly recognize the type of intermittent failure?
- Did the information from the tool help your analysis, the bug fixing process, or anything in the process? (please also let us know how the tool was useful and/or what would improve the tool's usefulness for you)
Flags: needinfo?(bgrinstead)
Flags: needinfo?(bgrinstead)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: