Closed Bug 1865983 Opened 11 months ago Closed 5 months ago

Almost perma devtools/shared/commands/resource/tests/browser_resources_sources.js | Length of existing resources is correct at initial - Got 9, expected 8

Categories

(DevTools :: General, defect, P5)

defect

Tracking

(firefox-esr115 unaffected, firefox120 unaffected, firefox121 unaffected, firefox122 affected)

RESOLVED DUPLICATE of bug 1767772
Tracking Status
firefox-esr115 --- unaffected
firefox120 --- unaffected
firefox121 --- unaffected
firefox122 --- affected

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression)

Attachments

(1 obsolete file)

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


task 2023-11-20T12:59:51.303Z] 12:59:51     INFO - TEST-PASS | devtools/shared/commands/resource/tests/browser_resources_sources.js | The value of isInlineSource is correct for "#service worker script" - 
[task 2023-11-20T12:59:51.304Z] 12:59:51     INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2023-11-20T12:59:51.304Z] 12:59:51     INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2023-11-20T12:59:51.305Z] 12:59:51     INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2023-11-20T12:59:51.305Z] 12:59:51     INFO - Leaving test bound testSourcesOnload
[task 2023-11-20T12:59:51.306Z] 12:59:51     INFO - Entering test bound testGarbagedCollectedSources
[task 2023-11-20T12:59:51.306Z] 12:59:51     INFO - Assert SOURCES on an already loaded page with some sources that have been GC-ed
[task 2023-11-20T12:59:51.307Z] 12:59:51     INFO - Adding a new tab with URL: https://example.com/browser/devtools/shared/commands/resource/tests/sources.html
[task 2023-11-20T12:59:51.308Z] 12:59:51     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use <!DOCTYPE html>." {file: "about:blank" line: 0}]
[task 2023-11-20T12:59:51.308Z] 12:59:51     INFO - Tab added and finished loading
[task 2023-11-20T12:59:51.308Z] 12:59:51     INFO - Force some GC to free some sources
[task 2023-11-20T12:59:51.309Z] 12:59:51     INFO - Buffered messages logged at 12:59:51
[task 2023-11-20T12:59:51.309Z] 12:59:51     INFO - Check already available resources
[task 2023-11-20T12:59:51.310Z] 12:59:51     INFO - Console message: [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "resource://gre/modules/NetUtil.sys.mjs" line: 249}]
[task 2023-11-20T12:59:51.310Z] 12:59:51     INFO - Console message: [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "resource://gre/modules/NetUtil.sys.mjs" line: 249}]
[task 2023-11-20T12:59:51.311Z] 12:59:51     INFO - Console message: [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "resource://gre/modules/NetUtil.sys.mjs" line: 249}]
[task 2023-11-20T12:59:51.311Z] 12:59:51     INFO - Console message: [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "resource://gre/modules/NetUtil.sys.mjs" line: 249}]
[task 2023-11-20T12:59:51.312Z] 12:59:51     INFO - Console message: [JavaScript Error: "Security Error: Content at https://example.com/browser/devtools/shared/commands/resource/tests/sources.html may not load or link to file:///."]
[task 2023-11-20T12:59:51.313Z] 12:59:51     INFO - Console message: [JavaScript Warning: "src attribute of <script> element is not a valid URI: sources.js" {file: "moz-nullprincipal:{95e2052b-36f0-4b6d-b2c4-023f28c978c8}" line: 1}]
[task 2023-11-20T12:59:51.314Z] 12:59:51     INFO - Console message: [JavaScript Error: "NS_ERROR_NOT_AVAILABLE: Failed to open input source 'javascript:666'" {file: "resource://devtools/shared/DevToolsUtils.js" line: 703}]
[task 2023-11-20T12:59:51.315Z] 12:59:51     INFO - Console message: [JavaScript Error: "Failed to open input source 'file:///'" {file: "resource://devtools/shared/DevToolsUtils.js" line: 703}]
[task 2023-11-20T12:59:51.315Z] 12:59:51     INFO - Buffered messages finished
[task 2023-11-20T12:59:51.316Z] 12:59:51     INFO - TEST-UNEXPECTED-FAIL | devtools/shared/commands/resource/tests/browser_resources_sources.js | Length of existing resources is correct at initial - Got 9, expected 8
[task 2023-11-20T12:59:51.316Z] 12:59:51     INFO - Stack trace:
[task 2023-11-20T12:59:51.316Z] 12:59:51     INFO - chrome://mochikit/content/browser-test.js:test_is:1611
[task 2023-11-20T12:59:51.317Z] 12:59:51     INFO - chrome://mochitests/content/browser/devtools/shared/commands/resource/tests/browser_resources_sources.js:assertResources:401
[task 2023-11-20T12:59:51.317Z] 12:59:51     INFO - chrome://mochitests/content/browser/devtools/shared/commands/resource/tests/browser_resources_sources.js:testGarbagedCollectedSources:319
[task 2023-11-20T12:59:51.317Z] 12:59:51     INFO - chrome://mochikit/content/browser-test.js:handleTask:1134
[task 2023-11-20T12:59:51.317Z] 12:59:51     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1206
[task 2023-11-20T12:59:51.317Z] 12:59:51     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1348
[task 2023-11-20T12:59:51.317Z] 12:59:51     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1123
[task 2023-11-20T12:59:51.317Z] 12:59:51     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058

Hey Mirko, could you please take a look at this? It seems it was caused by https://bugzilla.mozilla.org/show_bug.cgi?id=1864861 as backfills & retriggers point to this push.

Flags: needinfo?(mbrodesser)

Set release status flags based on info from the regressing bug 1864861

The failed test (https://searchfox.org/mozilla-central/rev/d7f837add602d270f2b2958b3ab5206dc85965c0/devtools/shared/commands/resource/tests/browser_resources_sources.js#285,319) is unrelated to the changes of https://bugzilla.mozilla.org/show_bug.cgi?id=1864861. Hence, it's very unlikely a regression of that bug.

Briefly before the test failed, an error occurred:

[task 2023-11-22T05:33:54.662Z] 05:33:54     INFO - Console message: [JavaScript Error: "Security Error: Content at https://example.com/browser/devtools/shared/commands/resource/tests/sources.html may not load or link to file:///."]
[task 2023-11-22T05:33:54.663Z] 05:33:54     INFO - Console message: [JavaScript Warning: "src attribute of <script> element is not a valid URI: sources.js" {file: "moz-nullprincipal:{fb87f406-d523-4018-b6d0-c6912c4ff575}" line: 1}]
[task 2023-11-22T05:33:54.663Z] 05:33:54     INFO - Console message: [JavaScript Error: "NS_ERROR_NOT_AVAILABLE: Failed to open input source 'javascript:666'" {file: "resource://devtools/shared/DevToolsUtils.js" line: 703}]
[task 2023-11-22T05:33:54.664Z] 05:33:54     INFO - Console message: [JavaScript Error: "Failed to open input source 'file:///'" {file: "resource://devtools/shared/DevToolsUtils.js" line: 703}]
[task 2023-11-22T05:33:54.664Z] 05:33:54     INFO - Buffered messages finished
[task 2023-11-22T05:33:54.666Z] 05:33:54     INFO - TEST-UNEXPECTED-FAIL | devtools/shared/commands/resource/tests/browser_resources_sources.js | Length of existing resources is correct at initial - Got 9, expected 8

If this test started failing significantly more often than it did before (see https://bugzilla.mozilla.org/show_bug.cgi?id=1767772), it very likely related to another patch than the ones of https://bugzilla.mozilla.org/show_bug.cgi?id=1864861.

Flags: needinfo?(mbrodesser)

The failure rate in Bug 1767772 has spiked after Bug 1651522 landed here.

Failure rate: https://treeherder.mozilla.org/intermittent-failures/bugdetails?startday=2023-11-16&endday=2023-11-23&tree=trunk&failurehash=all&bug=1767772. It's happening on windows and macOS.
Alexandre, could you please have a look over this one? Given the failure rate it might be soon disabled.

Flags: needinfo?(poirot.alex)
Regressed by: 1651522
No longer regressed by: 1864861

Test has been disabled in https://bugzilla.mozilla.org/show_bug.cgi?id=1767772#c29 until a fix is in place.

The DOM Timer source is now correctly resurrected.
And the unique call to forceGC was a source of intermittent.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Duplicate of bug: 1874227
Flags: needinfo?(poirot.alex)
Resolution: --- → DUPLICATE

Comment on attachment 9402737 [details]
Bug 1865983 - [devtools] Fix browser_resources_sources.js permafail.

Revision D210911 was moved to bug 1874227. Setting attachment 9402737 [details] to obsolete.

Attachment #9402737 - Attachment is obsolete: true
Duplicate of bug: 1767772
No longer duplicate of bug: 1874227
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: