Closed Bug 1301981 Opened 8 years ago Closed 8 years ago

Add devtools code coverage collection to linux64-jsdcov.

Categories

(Testing :: Code Coverage, defect)

defect
Not set
normal

Tracking

(firefox52 fixed)

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: sparky, Assigned: sparky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This should be done in the same way as mochitest-bc and a new flavor will have to created to enable the code coverage collection, something similar to "browser-chrome-coverage".
Blocks: 1301174
Attachment #8806478 - Flags: review?(cmanchester) → review?(jmaher)
Patch looks ok to me, but there may be some subtleties to the taskcluster stuff I wouldn't catch, so let's have Joel sign off on it as well.
Assignee: nobody → gmierz2
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment on attachment 8806478 [details]
Bug 1301981 - Add devtools test task definition to linux64-jsdcov.

https://reviewboard.mozilla.org/r/89862/#review90110

::: testing/mozharness/configs/unittests/linux_unittest.py:197
(Diff revision 1)
>          "browser-chrome-coverage": ["--flavor=browser", "--chunk-by-runtime", "--timeout=1200"],
>          "browser-chrome-screenshots": ["--flavor=browser", "--subsuite=screenshots"],
>          "mochitest-gl": ["--subsuite=webgl"],
>          "mochitest-devtools-chrome": ["--flavor=browser", "--subsuite=devtools"],
>          "mochitest-devtools-chrome-chunked": ["--flavor=browser", "--subsuite=devtools", "--chunk-by-runtime"],
> +        "mochitest-devtools-chrome-coverage": ["--flavor=browser", "--subsuite=devtools", "--chunk-by-runtime", "--timeout=1200"],

do we need some other flags here to run jsdcoverage?
Comment on attachment 8806478 [details]
Bug 1301981 - Add devtools test task definition to linux64-jsdcov.

https://reviewboard.mozilla.org/r/89862/#review90110

> do we need some other flags here to run jsdcoverage?

This part only changes some run options like the extra timeout. In the other modified file, this new flavor is used to determine whether or not code coverage should be turned on. If you take a look at the treeherder link I posted in the bug, it has an example run which generates the code coverage.
Comment on attachment 8806478 [details]
Bug 1301981 - Add devtools test task definition to linux64-jsdcov.

https://reviewboard.mozilla.org/r/89862/#review90192
Attachment #8806478 - Flags: review?(jmaher) → review+
Pushed by jmaher@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a195a9d6e901
Add devtools test task definition to linux64-jsdcov. r=jmaher
https://hg.mozilla.org/mozilla-central/rev/a195a9d6e901
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: