Closed Bug 1703465 Opened 4 years ago Closed 2 years ago

Intermittent devtools/client/inspector/rules/test/browser_rules_color_scheme_simulation.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/shared/test/shared-head.js:699 - Error: Failed waitFor():

Categories

(DevTools :: Inspector: Rules, defect, P5)

defect

Tracking

(firefox-esr78 unaffected, firefox87 unaffected, firefox88 unaffected, firefox89 wontfix, firefox90 wontfix, firefox91 fix-optional)

RESOLVED DUPLICATE of bug 1767678
Tracking Status
firefox-esr78 --- unaffected
firefox87 --- unaffected
firefox88 --- unaffected
firefox89 --- wontfix
firefox90 --- wontfix
firefox91 --- fix-optional

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

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

Attachments

(1 file)

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


 INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_color_scheme_simulation.js | The simulation stopped on the remote iframe as well - 
[task 2021-04-07T06:53:23.690Z] 06:53:23     INFO - Check that reloading keep the selected simulation
[task 2021-04-07T06:53:23.690Z] 06:53:23     INFO - Selecting the node for 'div'
[task 2021-04-07T06:53:23.694Z] 06:53:23     INFO - Buffered messages logged at 06:53:23
[task 2021-04-07T06:53:23.694Z] 06:53:23     INFO - Load document "http://example.com/browser/devtools/client/inspector/rules/test/doc_media_queries.html"
[task 2021-04-07T06:53:23.694Z] 06:53:23     INFO - Waiting for page to be loaded…
[task 2021-04-07T06:53:23.694Z] 06:53:23     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/devtools/client/inspector/rules/test/doc_media_queries.html" line: 0}]
[task 2021-04-07T06:53:23.694Z] 06:53:23     INFO - → page loaded
[task 2021-04-07T06:53:23.695Z] 06:53:23     INFO - Waiting for inspector to be reloaded…
[task 2021-04-07T06:53:23.695Z] 06:53:23     INFO - Waiting for markup view to load after navigation.
[task 2021-04-07T06:53:23.695Z] 06:53:23     INFO - Waiting for new root.
[task 2021-04-07T06:53:23.696Z] 06:53:23     INFO - Waiting for inspector to update after new-root event.
[task 2021-04-07T06:53:23.696Z] 06:53:23     INFO - Waiting for inspector updates after page reload
[task 2021-04-07T06:53:23.696Z] 06:53:23     INFO - → panel reloaded
[task 2021-04-07T06:53:23.696Z] 06:53:23     INFO - Waiting for target 'navigate' event…
[task 2021-04-07T06:53:23.697Z] 06:53:23     INFO - → 'navigate' emitted
[task 2021-04-07T06:53:23.697Z] 06:53:23     INFO - Selecting the node for 'div'
[task 2021-04-07T06:53:23.697Z] 06:53:23     INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_color_scheme_simulation.js | dark mode is still simulated after reloading the page - 
[task 2021-04-07T06:53:23.698Z] 06:53:23     INFO - Loop through all frame selectors
[task 2021-04-07T06:53:23.698Z] 06:53:23     INFO - Find the frame element for selector iframe in http://example.com/browser/devtools/client/inspector/rules/test/doc_media_queries.html
[task 2021-04-07T06:53:23.698Z] 06:53:23     INFO - Selecting the node for '[Front for domnode/server0.conn24.child4/domnode62]'
[task 2021-04-07T06:53:23.699Z] 06:53:23     INFO - Retrieve the children of the frame to find the document node
[task 2021-04-07T06:53:23.699Z] 06:53:23     INFO - Selecting the node for '[Front for domnode/server0.conn24.child4/domnode66]'
[task 2021-04-07T06:53:23.699Z] 06:53:23     INFO - Buffered messages finished
[task 2021-04-07T06:53:23.701Z] 06:53:23     INFO - TEST-UNEXPECTED-FAIL | devtools/client/inspector/rules/test/browser_rules_color_scheme_simulation.js | Uncaught exception - at chrome://mochitests/content/browser/devtools/client/shared/test/shared-head.js:699 - Error: Failed waitFor(): 
[task 2021-04-07T06:53:23.701Z] 06:53:23     INFO - Failed condition: () => iframeHasDarkSchemeStyling()
[task 2021-04-07T06:53:23.701Z] 06:53:23     INFO - 
[task 2021-04-07T06:53:23.702Z] 06:53:23     INFO - Stack trace:
[task 2021-04-07T06:53:23.702Z] 06:53:23     INFO - waitFor@chrome://mochitests/content/browser/devtools/client/shared/test/shared-head.js:699:11
[task 2021-04-07T06:53:23.702Z] 06:53:23     INFO - async*@chrome://mochitests/content/browser/devtools/client/inspector/rules/test/browser_rules_color_scheme_simulation.js:120:9
[task 2021-04-07T06:53:23.703Z] 06:53:23     INFO - Async*Tester_execTest/<@chrome://mochikit/content/browser-test.js:1089:34
[task 2021-04-07T06:53:23.703Z] 06:53:23     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1129:11
[task 2021-04-07T06:53:23.703Z] 06:53:23     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:949:14
[task 2021-04-07T06:53:23.703Z] 06:53:23     INFO - SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1037:23
[task 2021-04-07T06:53:23.703Z] 06:53:23     INFO - Leaving test bound 
[task 2021-04-07T06:53:24.111Z] 06:53:24     INFO - Removing tab.
[task 2021-04-07T06:53:24.112Z] 06:53:24     INFO - Waiting for event: 'TabClose' on [object XULElement].
[task 2021-04-07T06:53:24.119Z] 06:53:24     INFO - Got event: 'TabClose' on [object XULElement].
[task 2021-04-07T06:53:24.139Z] 06:53:24     INFO - Tab removed and finished closing
[task 2021-04-07T06:53:24.156Z] 06:53:24     INFO - TEST-PASS | devtools/client/inspector/rules/test/browser_rules_color_scheme_simulation.js | The main process DevToolsServer has no pending connection when the test ends - 
[task 2021-04-07T06:53:24.191Z] 06:53:24     INFO - GECKO(3619) | MEMORY STAT | vsize 3521MB | residentFast 698MB | heapAllocated 327MB
[task 2021-04-07T06:53:24.192Z] 06:53:24     INFO - TEST-OK | devtools/client/inspector/rules/test/browser_rules_color_scheme_simulation.js | took 2398ms
[task 2021-04-07T06:53:24.215Z] 06:53:24     INFO - checking window state
[task 2021-04-07T06:53:24.231Z] 06:53:24     INFO - TEST-START | devtools/client/inspector/rules/test/browser_rules_color_scheme_simulation_rdm.js```
Has Regression Range: --- → yes

this is not happening too frequently but if someone want to investigate this, the screenshots of the failures indicate that browser_rules_color_scheme_simulation.js#117 doesn't actually select the node in the iframe, which makes the test wait indefinitely as the expected rule for the iframe node won't be displayed

Flags: needinfo?(nchevobbe)

There have been 31 failures in the last 7 days.
Happens on:
-windows10-64-2004-qr opt
-windows10-64-2004-shippable-qr opt

Recent failure log: https://treeherder.mozilla.org/logviewer?job_id=356164689&repo=autoland&lineNumber=3096

Whiteboard: [stockwell needswork:owner]
Assignee: nobody → abutkovits
Status: NEW → ASSIGNED
Pushed by abutkovits@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/88ad0421ce15 disable browser_rules_color_scheme_simulation.js on Win_64_opt for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Assignee: abutkovits → nobody
Status: ASSIGNED → NEW
Keywords: leave-open
Whiteboard: [stockwell unknown] → [stockwell disabled]
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: