Closed Bug 1819426 Opened 2 years ago Closed 2 years ago

Setup Code Coverage

Categories

(Thunderbird :: Build Config, task)

Tracking

(thunderbird_esr102 wontfix, thunderbird112 wontfix)

RESOLVED FIXED
113 Branch
Tracking Status
thunderbird_esr102 --- wontfix
thunderbird112 --- wontfix

People

(Reporter: melissa_a, Assigned: rjl)

References

Details

Attachments

(4 files)

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

Assignee: nobody → rob
Duplicate of this bug: 1714598

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.

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

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

reopen for follow-up due to linux64-aarch64 build failures.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Build was mistakenly changed to use "linux64-rust-dev".

Target Milestone: --- → 113 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/215eadd6cb52
Follow-up: Fix Rust failure on linux64-aarch64 builds. r=dandarnell

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Blocks: 1826413
Blocks: 1827540
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: