Frequent toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js | Test timed out -
Categories
(WebExtensions :: General, defect, P2)
Tracking
(firefox90 fixed, firefox91 fixed)
People
(Reporter: intermittent-bug-filer, Assigned: robwu, NeedInfo)
References
Details
(Keywords: intermittent-failure, Whiteboard: [retriggered][stockwell disable-recommended])
Attachments
(1 file, 1 obsolete file)
Filed by: ncsoregi [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=332541968&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Qx2fAxvHS9qOsw3wuFrhtA/runs/0/artifacts/public/logs/live_backing.log
[task 2021-03-09T15:17:56.173Z] 15:17:56 INFO - TEST-PASS | toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js | About:welcome page background should be reset. - "rgb(237, 237, 240)" == "rgb(237, 237, 240)" -
[task 2021-03-09T15:17:56.173Z] 15:17:56 INFO - Console message: [JavaScript Error: "TypeError: Window.getComputedStyle: Argument 1 is not an object." {file: "chrome://mochitests/content/browser/toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js" line: 86}]
[task 2021-03-09T15:17:56.173Z] 15:17:56 INFO - Console message: [JavaScript Error: "Failed to get the latest add-on version for Return to AMO" {file: "resource:///actors/AboutWelcomeChild.jsm" line: 239}]
[task 2021-03-09T15:17:56.173Z] 15:17:56 INFO - getAddonInfo@resource:///actors/AboutWelcomeChild.jsm:239:10
[task 2021-03-09T15:17:56.173Z] 15:17:56 INFO -
[task 2021-03-09T15:17:56.174Z] 15:17:56 INFO - Buffered messages finished
[task 2021-03-09T15:17:56.174Z] 15:17:56 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js | Test timed out -
[task 2021-03-09T15:17:56.174Z] 15:17:56 INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-03-09T15:17:56.174Z] 15:17:56 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js | Extension left running at test shutdown -
[task 2021-03-09T15:17:56.174Z] 15:17:56 INFO - Stack trace:
[task 2021-03-09T15:17:56.174Z] 15:17:56 INFO - chrome://mochikit/content/browser-test.js:test_ok:1331
[task 2021-03-09T15:17:56.175Z] 15:17:56 INFO - chrome://mochikit/content/tests/SimpleTest/ExtensionTestUtils.js:ExtensionTestUtils.loadExtension/<:117
[task 2021-03-09T15:17:56.175Z] 15:17:56 INFO - chrome://mochikit/content/browser-test.js:nextTest:571
[task 2021-03-09T15:17:56.175Z] 15:17:56 INFO - GECKO(2050) | [Child 2051, Main Thread] WARNING: '!CanSend() || !mManager || !mManager->CanSend()', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:40
[task 2021-03-09T15:17:56.175Z] 15:17:56 INFO - Not taking screenshot here: see the one that was previously logged```
Comment 1•4 years ago
|
||
Tim, could this be a regression from https://hg.mozilla.org/integration/autoland/rev/f2cbc95f6826c0a92c2fca423eef096d08881b03?
Comment 2•4 years ago
|
||
I'm not sure, but this is just re-using the approach from https://bugzilla.mozilla.org/show_bug.cgi?id=1695345. Also, this is proton only.
I would say this is more likely to be related to a recent about:newtab / Activity Stream change.
Maybe mixedpuppy or ewright (for new tab) knows more?
Comment 3•4 years ago
•
|
||
This is the bit that seems to be failing (according to the log above): https://searchfox.org/mozilla-central/rev/62ddcc03195036b355cb23b6f2e2b88d3f8099ad/toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js#85-86
So I suspect about:newtab isn't properly initialized in that test?
Comment 4•4 years ago
|
||
Hmmm, I'm not sure here, I would try asking @sdowne if we think it is a new tab initialization failure.
Comment 5•4 years ago
|
||
prathiksha, could you please take a look at these failures?
Comment 6•4 years ago
•
|
||
Sorry for the ni, meant to write on another bug!
Also, I did some backfills for this and it doesn't seem to be caused by Bug 1697062.
Comment hidden (Intermittent Failures Robot) |
Comment 9•4 years ago
|
||
This could be hard to chase down. qr + debug intermittent. I suspect some timing issue between loading the tab using BrowserTestUtils.withNewTab and the test relying on the page load. I'm unable to force the failure. Will wait to see what other responses happen.
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 12•4 years ago
|
||
There have been 69 total failures in the last 7 days, recent failure log.
Affected platforms are:
- macosx1014-64-qr debug
- windows10-64 debug / windows10-64-qr debug / windows7-32 debug
Failure rate looks to have come down considerably since the start of the week.
Updated•4 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment 14•4 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #9)
This could be hard to chase down. qr + debug intermittent. I suspect some timing issue between loading the tab using BrowserTestUtils.withNewTab and the test relying on the page load. I'm unable to force the failure.
In case this helps, BrowserTestUtils.openNewForegroundTab
awaits BrowserTestUtils.switchTab
which waits for a 300ms timer at https://searchfox.org/mozilla-central/rev/4e87b5392eafe1f1d49017e76f7317b06ec0b1d8/browser/modules/AsyncTabSwitcher.jsm#88
It's very likely that the test depends implicitly on something being completed during these 300ms, which might not be enough on slow runs (eg. debug) of the browser.
If I replace the 300ms timer there with a 10ms, when I run ./mach test toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors.js --headless --run-until-failure --profiler
half of the time I can reproduce a failure with this message:
toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors.js
FAIL Uncaught exception - at chrome://mochitests/content/browser/toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors.js:36 - TypeError: Window.getComputedStyle: Argument 1 is not an object.
Stack trace:
@chrome://mochitests/content/browser/toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors.js:36:32
execute@resource://specialpowers/SpecialPowersSandbox.jsm:141:12
_spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1611:15
receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:310:21
FAIL Found an unexpected tab at the end of test run: about:newtab -
The test log also contains: JavaScript error: resource:///actors/ContentSearchParent.jsm, line 624: TypeError: can't access property "addEventListener", browser is null
Comment hidden (Intermittent Failures Robot) |
Comment 16•4 years ago
|
||
This was very intermittent, less so in the last report, but we should try and look at it soon.
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 19•4 years ago
|
||
Update:
There have been 148 failures within the last 7 days as it follows:
- 18 failures on Windows 10 x64 WebRender debug
- 11 failures on Windows 10 x64 asan/debug
- 9 failures on windows10-32 debug
- 12 failures on OS X 10.15 WebRender debug
- 28 failures on Linux 18.04 x64 tsan opt
- 2 failures on Linux 18.04 x64 CCov opt
- 18 failures on Linux 18.04 x64 asan opt
- 50 failures on Linux 18.04 x64 debug
Recent failure log: https://treeherder.mozilla.org/logviewer?job_id=341232055&repo=autoland&lineNumber=29747
[task 2021-05-30T23:35:39.112Z] 23:35:39 INFO - TEST-PASS | toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js | New tab page background should be set. - "rgb(173, 216, 230)" == "rgb(173, 216, 230)" -
[task 2021-05-30T23:35:39.113Z] 23:35:39 INFO - Console message: [JavaScript Error: "TypeError: Window.getComputedStyle: Argument 1 is not an object." {file: "chrome://mochitests/content/browser/toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js" line: 44}]
[task 2021-05-30T23:35:39.114Z] 23:35:39 INFO - Buffered messages finished
[task 2021-05-30T23:35:39.115Z] 23:35:39 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js | Test timed out -
[task 2021-05-30T23:35:39.115Z] 23:35:39 INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-05-30T23:35:39.117Z] 23:35:39 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js | Extension left running at test shutdown -
[task 2021-05-30T23:35:39.117Z] 23:35:39 INFO - Stack trace:
[task 2021-05-30T23:35:39.117Z] 23:35:39 INFO - chrome://mochikit/content/browser-test.js:test_ok:1334
[task 2021-05-30T23:35:39.118Z] 23:35:39 INFO - chrome://mochikit/content/tests/SimpleTest/ExtensionTestUtils.js:ExtensionTestUtils.loadExtension/<:117
[task 2021-05-30T23:35:39.118Z] 23:35:39 INFO - chrome://mochikit/content/browser-test.js:nextTest:564
[task 2021-05-30T23:35:39.119Z] 23:35:39 INFO - GECKO(2172) | [Child 2256, Main Thread] WARNING: '!CanSend() || !mManager || !mManager->CanSend()', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:40
[task 2021-05-30T23:35:39.120Z] 23:35:39 INFO - Not taking screenshot here: see the one that was previously logged
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 22•4 years ago
|
||
Updated•4 years ago
|
Comment 23•4 years ago
|
||
Update:
There have been 311 failures within the last 7 days as it follows:
- 205 failures on linux1804
- 65 failures on windows10-64
- 23 failures on macosx1015
- 18 failures on windows10-32
I added a patch to disable this test on Linux1804-64 and Win10-64 until there will be a fix
Assignee | ||
Comment 24•4 years ago
|
||
The failures associated with this bug should have been attributed to bug 1697430.
The common error in these logs is TypeError: Window.getComputedStyle: Argument 1 is not an object.
That happens when the outer-wrapper
element hasn't been initialized at the time of the invocation, at https://searchfox.org/mozilla-central/rev/e9eb869e90a8d717678c3f38bf75843e345729ab/toolkit/components/extensions/test/browser/browser_ext_themes_ntp_colors_perwindow.js#85
While it's possible to fix the failures, I've noticed that the tests aren't testing anything realistic any more. E.g. in https://hg.mozilla.org/mozilla-central/rev/d36693bbaf559ed4d3e67d1951aed6b58e564a9f some CSS properties were set to get the test to pass, but those properties do not match what I can see with my eyes.
The tests are supposed to verify that the new tab page's background/font color can be changed via extension themes.
When I open about:welcome
on Nightly, I don't see any color change. I suppose that it's fine since it's an onboarding page.
But about:newtab
also offers limited ways to customize the color; the background color is changed, but the font color is not (because of changes from bug 1686384) - filed as bug 1713778.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 25•4 years ago
|
||
Fix based on the observed error, see https://bugzilla.mozilla.org/show_bug.cgi?id=1697196#c24
Comment 26•4 years ago
|
||
Comment 27•4 years ago
|
||
bugherder |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
![]() |
||
Comment 30•4 years ago
|
||
bugherder uplift |
Updated•4 years ago
|
Description
•