Closed Bug 1301223 Opened 8 years ago Closed 7 years ago

Add mochitest-plain code coverage collection task to linux64-ccov.


(Testing :: Code Coverage, defect)

Not set


(firefox52 fixed)

Tracking Status
firefox52 --- fixed


(Reporter: sparky, Assigned: cody_tran95)


(Blocks 1 open bug)



(1 file)

We need to be able to gather code coverage for mochitest-plain through a test on taskcluster. What is needed to be done will be similar to how it is done for the "mochitest-browser-chrome-ccov" test which uses the "--code-coverage" flag.
Blocks: 1301170
Depends on: 1301221
Ever confirmed: true
Assignee: nobody → cody_tran95
Comment on attachment 8805430 [details]
Bug 1301223 - Enabled code coverage for mochitest-plain.

this is clean and simple.  I assume e10s doesn't work at all?  I know there are concerns about the multi process data, it would be good to reference that where possible.
Attachment #8805430 - Flags: review?(jmaher) → review+
Comment on attachment 8805430 [details]
Bug 1301223 - Enabled code coverage for mochitest-plain.

Nice work, there's only Joels comment to take care of.
Attachment #8805430 - Flags: review?(gmierz2) → review+
basically I would like to know why we are not doing this for e10s- if that is in the future, no worries; if there is a known reason- I would like it to be documented at least in the bug here.
There is no reason that I can think of, I've accidentally enabled e10s mode once but both versions were bugged anyway. But I'm pretty sure that we just restricted it to no e10s to make things simple for the time being in case it introduced more problems. So it is in the future plans in that case and I think we could start trying it soon.
any concerns with moving forward with this then?
GCOV is supposed to be multi-process safe, and there are differing opinions on how well it works with multi-threading. So because e10s is multi-process, I don't think we will have any problems during the tests. If all the tests run correctly, I'm curious to see what the differences are between the two versions. I'm thinking the e10s mode could have a larger chance of messing with some data so some analysis would be necessary to check the differences.
Here's a treeherder link to a browser-chrome run in e10s mode:

It worked without any extra changes or problems (aside from the data itself, which should be analyzed).
let me land this and please file bugs to collect coverage on e10s modes.
Pushed by
Enabled code coverage for mochitest-plain. r=gmierz2+560562,jmaher
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
After looking through everything above, I think I'll continue enabling ccov for the test suites here:

I see that Greg also added bugs to enable e10s mode for bc, dt, and mochitest-plain. I will also get to those.
You need to log in before you can comment on or make changes to this bug.