Setup Code Coverage
Categories
(Thunderbird :: Build Config, task)
Tracking
(thunderbird_esr102 wontfix, thunderbird112 wontfix)
People
(Reporter: melissa_a, Assigned: rjl)
References
Details
Attachments
(4 files)
Bug 1819426 - Use defaults more liberally for Linux CI builds. r=#thunderbird-build-system-reviewers
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
We're looking into enable codecoverage for Thunderbird, here's the relevant setup information, if needed I can setup a meeting with macro to hammer out any remaining issues.
via marco on the codecoverage martix channel:
there is no documentation for the set up
for the build side of things, you can take a look at the mozconfigs
https://searchfox.org/mozilla-central/source/browser/config/mozconfigs/linux64/code-coverage-opt
and
https://searchfox.org/mozilla-central/source/browser/config/mozconfigs/linux64/code-coverage
you will need to set up a set of tasks with coverage enabled, and run a script at the end of the test tasks to parse the coverage
https://searchfox.org/mozilla-central/source/testing/mozharness/mozharness/mozilla/testing/codecoverage.py is the script
then there is a service at https://github.com/mozilla/code-coverage which handles getting these artifacts and storing them and serving them
which will need to be adjusted to support multiple repositories and not only mozilla-central
(it should not be too hard to do that)
I can guide you through it if necessary, I would suggest starting from defining the ccov build and the ccov test tasks
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Depends on D173222
Assignee | ||
Comment 4•2 years ago
|
||
Depends on D173223
Assignee | ||
Comment 5•2 years ago
|
||
Here's a try run with Linux64 ccov build and tests.
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=d422a517d0ec96457edfc769b9f361b7af5888d9
The build itself has a code-coverage-grcov.zip
artifact, and the tests have code-coverage-grcov.zip
and code-coverage-jsvm.zip
.
There's a lot of errors like:
[task 2023-03-21T20:35:33.838Z] Error: No objdir path for /builds/worker/workspace/build/tests/xpcshell/tests/comm/mailnews/news/test/unit/test_xover.js.
[task 2023-03-21T20:35:33.838Z] Couldn't find source info for /builds/worker/workspace/build/tests/xpcshell/tests/comm/mailnews/news/test/unit/test_xover.js, removing record
Not sure if that's a problem or not.
Let's work with Linux64 for now and I will add macOS and Win64 as work progresses.
Assignee | ||
Updated•2 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/79904918756a
Use defaults more liberally for Linux CI builds. r=dandarnell
https://hg.mozilla.org/comm-central/rev/3fc97de78116
Add Linux64 code-coverage builds. r=dandarnell
https://hg.mozilla.org/comm-central/rev/c39f9d9e5712
Add tests for Linux64 code-coverage builds. r=dandarnell
Assignee | ||
Comment 7•2 years ago
|
||
reopen for follow-up due to linux64-aarch64 build failures.
Assignee | ||
Comment 8•2 years ago
|
||
Build was mistakenly changed to use "linux64-rust-dev".
Assignee | ||
Updated•2 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/215eadd6cb52
Follow-up: Fix Rust failure on linux64-aarch64 builds. r=dandarnell
Comment hidden (Intermittent Failures Robot) |
Description
•