Closed Bug 1673870 Opened 4 years ago Closed 3 years ago

Intermittent devtools/shared/resources/tests/browser_resources_getAllResources.js | Number of the resources is correct - Got 5, expected 3

Categories

(DevTools :: General, defect, P5)

defect

Tracking

(firefox-esr91 fixed, firefox93 fixed)

RESOLVED FIXED
93 Branch
Tracking Status
firefox-esr91 --- fixed
firefox93 --- fixed

People

(Reporter: NarcisB, Assigned: nchevobbe)

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

Parsed log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=320016296&repo=autoland&lineNumber=22108
Full log: https://firefoxci.taskcluster-artifacts.net/TFrQrn_bS1eycVRsuv-1EA/0/public/logs/live_backing.log

Log snippet:

[task 2020-10-28T13:06:37.950Z] 13:06:37     INFO - TEST-START | devtools/shared/resources/tests/browser_resources_getAllResources.js
[task 2020-10-28T13:06:37.995Z] 13:06:37     INFO - GECKO(2728) | [Child 2966: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x7f0d42eb3000 == 3 [pid = 2966] [id = 6]
[task 2020-10-28T13:06:37.995Z] 13:06:37     INFO - GECKO(2728) | [Child 2966: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 12 (0x7f0d42efcac0) [pid = 2966] [serial = 20] [outer = (nil)]
[task 2020-10-28T13:06:37.997Z] 13:06:37     INFO - GECKO(2728) | [Child 2966: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 13 (0x7f0d43149800) [pid = 2966] [serial = 21] [outer = 0x7f0d42efcac0]
[task 2020-10-28T13:06:38.118Z] 13:06:38     INFO - GECKO(2728) | [Child 2966: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 14 (0x7f0d41e60000) [pid = 2966] [serial = 22] [outer = 0x7f0d42efcac0]
[task 2020-10-28T13:06:38.529Z] 13:06:38     INFO - GECKO(2728) | [Child 2966: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x7f0d42ead400 == 2 [pid = 2966] [id = 4] [url = data:text/html,Document Events]
[task 2020-10-28T13:06:38.529Z] 13:06:38     INFO - GECKO(2728) | [Child 2966: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (0x7f0d42eb5400) [pid = 2966] [serial = 11] [outer = (nil)] [url = http://localhost:44314/test_css_messages.html]
[task 2020-10-28T13:06:38.529Z] 13:06:38     INFO - GECKO(2728) | [Child 2966: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (0x7f0d42eac800) [pid = 2966] [serial = 10] [outer = (nil)] [url = about:blank]
[task 2020-10-28T13:06:38.529Z] 13:06:38     INFO - GECKO(2728) | [Child 2966: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x7f0d42eaf800 == 1 [pid = 2966] [id = 5] [url = http://localhost:35085/test_page_errors.html]
[task 2020-10-28T13:06:38.694Z] 13:06:38     INFO - GECKO(2728) | console.log: "a"
[task 2020-10-28T13:06:38.694Z] 13:06:38     INFO - GECKO(2728) | console.log: "b"
[task 2020-10-28T13:06:38.696Z] 13:06:38     INFO - GECKO(2728) | console.log: "c"
[task 2020-10-28T13:06:38.731Z] 13:06:38     INFO - GECKO(2728) | [Child 2966: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (0x7f0d42efc040) [pid = 2966] [serial = 9] [outer = (nil)] [url = http://localhost:44314/test_css_messages.html]
[task 2020-10-28T13:06:38.775Z] 13:06:38     INFO - TEST-INFO | started process screentopng
[task 2020-10-28T13:06:39.158Z] 13:06:39     INFO - TEST-INFO | screentopng: exit 0
[task 2020-10-28T13:06:39.158Z] 13:06:39     INFO - Buffered messages logged at 13:06:37
[task 2020-10-28T13:06:39.159Z] 13:06:39     INFO - Entering test bound 
[task 2020-10-28T13:06:39.159Z] 13:06:39     INFO - Adding a new tab with URL: data:text/html;charset=utf-8,getAllResources test
[task 2020-10-28T13:06:39.160Z] 13:06:39     INFO - Buffered messages logged at 13:06:38
[task 2020-10-28T13:06:39.160Z] 13:06:39     INFO - Tab added and finished loading
[task 2020-10-28T13:06:39.160Z] 13:06:39     INFO - Check the resources gotten from getAllResources at initial
[task 2020-10-28T13:06:39.161Z] 13:06:39     INFO - TEST-PASS | devtools/shared/resources/tests/browser_resources_getAllResources.js | There is no resources at initial - 
[task 2020-10-28T13:06:39.161Z] 13:06:39     INFO - Start to watch the available resources in order to compare with resources gotten from getAllResources
[task 2020-10-28T13:06:39.161Z] 13:06:39     INFO - Check the resources after some resources are available
[task 2020-10-28T13:06:39.162Z] 13:06:39     INFO - Buffered messages finished
[task 2020-10-28T13:06:39.162Z] 13:06:39     INFO - TEST-UNEXPECTED-FAIL | devtools/shared/resources/tests/browser_resources_getAllResources.js | Number of the resources is correct - Got 5, expected 3
[task 2020-10-28T13:06:39.162Z] 13:06:39     INFO - Stack trace:
[task 2020-10-28T13:06:39.162Z] 13:06:39     INFO - chrome://mochikit/content/browser-test.js:test_is:1332
[task 2020-10-28T13:06:39.162Z] 13:06:39     INFO - chrome://mochitests/content/browser/devtools/shared/resources/tests/browser_resources_getAllResources.js:assertResources:83
[task 2020-10-28T13:06:39.163Z] 13:06:39     INFO - chrome://mochitests/content/browser/devtools/shared/resources/tests/browser_resources_getAllResources.js:null:43
[task 2020-10-28T13:06:39.163Z] 13:06:39     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1069
[task 2020-10-28T13:06:39.163Z] 13:06:39     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1109
[task 2020-10-28T13:06:39.163Z] 13:06:39     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:932
[task 2020-10-28T13:06:39.163Z] 13:06:39     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:1037
[task 2020-10-28T13:06:39.163Z] 13:06:39     INFO - TEST-PASS | devtools/shared/resources/tests/browser_resources_getAllResources.js | The 0th resource is correct - 
[task 2020-10-28T13:06:39.163Z] 13:06:39     INFO - TEST-PASS | devtools/shared/resources/tests/browser_resources_getAllResources.js | The 1th resource is correct - 
[task 2020-10-28T13:06:39.164Z] 13:06:39     INFO - TEST-PASS | devtools/shared/resources/tests/browser_resources_getAllResources.js | The 2th resource is correct - 
[task 2020-10-28T13:06:39.164Z] 13:06:39     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-10-28T13:06:39.164Z] 13:06:39     INFO - TEST-UNEXPECTED-FAIL | devtools/shared/resources/tests/browser_resources_getAllResources.js | The 3th resource is correct - 
[task 2020-10-28T13:06:39.164Z] 13:06:39     INFO - Stack trace:
[task 2020-10-28T13:06:39.164Z] 13:06:39     INFO - chrome://mochikit/content/browser-test.js:test_ok:1304
[task 2020-10-28T13:06:39.165Z] 13:06:39     INFO - chrome://mochitests/content/browser/devtools/shared/resources/tests/browser_resources_getAllResources.js:assertResources:92
[task 2020-10-28T13:06:39.165Z] 13:06:39     INFO - chrome://mochitests/content/browser/devtools/shared/resources/tests/browser_resources_getAllResources.js:null:43
[task 2020-10-28T13:06:39.165Z] 13:06:39     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1069
[task 2020-10-28T13:06:39.165Z] 13:06:39     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1109
[task 2020-10-28T13:06:39.165Z] 13:06:39     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:932
[task 2020-10-28T13:06:39.165Z] 13:06:39     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:1037
[task 2020-10-28T13:06:39.166Z] 13:06:39     INFO - Not taking screenshot here: see the one that was previously logged

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

The test was failing because we were getting cached messages
from a worker that were emitted late.
To fix this, we create a dedicated document with workers
only when we need them and remove workers from fission_document.html.
This allows us to cleanup a few tests that were already working
around the worker logs issue.

Depends on D121375

Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3cefcc8f7eed
[devtools] Fix browser_resources_getAllResources.js intermittent. r=ladybenko.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: