Closed Bug 1664120 Opened 6 years ago Closed 6 years ago

Intermittent [Perma][Tier2] (some?) code coverage for about:welcome is broken; browser/components/newtab/test/browser/browser_aboutwelcome_actors.js | Uncaught exception - Should render activity stream content - timed out after 50 tries.

Categories

(Firefox :: Messaging System, defect, P1)

defect

Tracking

()

RESOLVED FIXED
82 Branch
Iteration:
82.2 - Sep 7 - Sep 20
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox80 --- unaffected
firefox81 --- unaffected
firefox82 --- fixed

People

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

References

(Blocks 1 open bug, Regression)

Details

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

Attachments

(1 external file)

Filed by: abutkovits [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=315285224&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/aajgx7cORTSSzFwxJ817xw/runs/0/artifacts/public/logs/live_backing.log


[task 2020-09-10T06:17:45.455Z] 06:17:45     INFO - TEST-START | browser/components/newtab/test/browser/browser_aboutwelcome_actors.js
[task 2020-09-10T06:17:45.876Z] 06:17:45     INFO - GECKO(8256) | JavaScript error: resource://activity-stream/aboutwelcome/aboutwelcome.bundle.js, line 226: TypeError: window.AWGetStartupData is not a function
[task 2020-09-10T06:17:51.316Z] 06:17:51     INFO - TEST-INFO | started process screentopng
[task 2020-09-10T06:17:51.520Z] 06:17:51     INFO - TEST-INFO | screentopng: exit 0
[task 2020-09-10T06:17:51.521Z] 06:17:51     INFO - Buffered messages logged at 06:17:45
[task 2020-09-10T06:17:51.522Z] 06:17:51     INFO - Entering test bound setup
[task 2020-09-10T06:17:51.522Z] 06:17:51     INFO - Leaving test bound setup
[task 2020-09-10T06:17:51.522Z] 06:17:51     INFO - Entering test bound test_startBrowsing
[task 2020-09-10T06:17:51.522Z] 06:17:51     INFO - Console message: [JavaScript Error: "TypeError: window.AWGetStartupData is not a function" {file: "resource://activity-stream/aboutwelcome/aboutwelcome.bundle.js" line: 226}]
[task 2020-09-10T06:17:51.522Z] 06:17:51     INFO - Buffered messages finished
[task 2020-09-10T06:17:51.523Z] 06:17:51     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_aboutwelcome_actors.js | Uncaught exception - Should render activity stream content - timed out after 50 tries.```

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

Almost certainly. Looking at it now.

Flags: needinfo?(dmose)
Has Regression Range: --- → yes

So it turns out that the reason this started failing is that the privileged content process is disabled on linux when code coverage is running:

https://searchfox.org/mozilla-central/source/browser/app/profile/firefox.js#539-541

The reason it's disabled is because there were crashes while running code coverage in bug 1621269.

That bug is believed to be a duplicate of 1565352, which will be fixed when ccov is updated to use clang.

Talking to :marco, he suggested that it's conceivable that change from gcc 7 to gcc 8 would, if we got really lucky, could:

a) compile things correctly
b) include a fixed version of gcov

These are both probably long shots, but should be (at least partly) testable on the try server by tweaking https://searchfox.org/mozilla-central/source/taskcluster/ci/build/linux.yml#1234 that to use gcc 8.

Separately, :kmag suggested hardcoding E10SUtils.jsm to force https://searchfox.org/mozilla-central/source/toolkit/modules/E10SUtils.jsm#465-466 just in the case of about:welcome. I presume it is unknown whether this would trigger the reappearance of bug 1621269.

So, in short, good times!

I should mention that the upgrade of ccov to clang is currently scheduled because of higher priorities.

We could also just disable all these tests and live without code coverage for the about:welcome stuff for a while.

Component: New Tab Page → Messaging System
Priority: P5 → --
Summary: Intermittent [Perma][Tier2] browser/components/newtab/test/browser/browser_aboutwelcome_actors.js | Uncaught exception - Should render activity stream content - timed out after 50 tries. → Intermittent [Perma][Tier2] (some?) code coverage for about:welcome is broken; browser/components/newtab/test/browser/browser_aboutwelcome_actors.js | Uncaught exception - Should render activity stream content - timed out after 50 tries.

To be fair, I'm not sure whether code coverage for all of about:welcome is currently broken, or just some of it.

Mark this as depending on the clang upgrade bug, since if that were to happen, that firefox.js disabling could be removed, presumably fixing this bug in a non-hacky fashion.

Depends on: 1499663
See Also: → 1632001
Priority: -- → P1
Whiteboard: [retriggered]
Assignee: nobody → dmose
Iteration: --- → 82.2 - Sep 7 - Sep 20
No longer blocks: alpenglow-meta
Blocks: multistage-aw
No longer blocks: alpenglow-meta
No longer depends on: 1499663
Pushed by dmosedale@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/79069415ee6f work around code coverage crashes, r=kmag
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

There was a typo in the comment added. Should be bug 1621269.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: