Closed Bug 1848262 Opened 1 year ago Closed 1 year ago

Thunderbird code coverage not recorded for resource:/// files

Categories

(Thunderbird :: Testing Infrastructure, defect)

defect

Tracking

(thunderbird_esr115 wontfix, thunderbird117 wontfix)

RESOLVED FIXED
118 Branch
Tracking Status
thunderbird_esr115 --- wontfix
thunderbird117 --- wontfix

People

(Reporter: darktrojan, Assigned: rjl)

References

Details

Attachments

(2 files)

The code coverage tools fail to map resource:/// modules back to the source code. I've worked out that it's because the default configuration is for Firefox which puts these files in dist/bin/browser, but we put the files in dist/bin. If this line is changed it works, but changing it would break Firefox code coverage. We could provide the right value here if we can work out whether Thunderbird or Firefox is being tested.

Flags: needinfo?(rob)
Blocks: 1826413
Flags: needinfo?(rob)

Looks like that does the trick. Nice one!

It's still not able to map a bunch of OpenPGP URLs, but that's probably another issue...

[task 2023-08-15T21:35:30.571Z] Error: No objdir path for chrome://openpgp/content/modules/keyRing.jsm.
[task 2023-08-15T21:35:30.571Z] Couldn't find source info for chrome://openpgp/content/modules/keyRing.jsm, removing record
[task 2023-08-15T21:35:30.571Z] Error: No objdir path for chrome://openpgp/content/modules/log.jsm.
[task 2023-08-15T21:35:30.571Z] Couldn't find source info for chrome://openpgp/content/modules/log.jsm, removing record
[task 2023-08-15T21:35:30.571Z] Error: No objdir path for chrome://openpgp/content/modules/mimeVerify.jsm.
[task 2023-08-15T21:35:30.571Z] Couldn't find source info for chrome://openpgp/content/modules/mimeVerify.jsm, removing record
[task 2023-08-15T21:35:30.571Z] Error: No objdir path for chrome://openpgp/content/modules/constants.jsm.
[task 2023-08-15T21:35:30.571Z] Couldn't find source info for chrome://openpgp/content/modules/constants.jsm, removing record
[task 2023-08-15T21:35:30.571Z] Error: No objdir path for chrome://openpgp/content/modules/RNP.jsm.
[task 2023-08-15T21:35:30.571Z] Couldn't find source info for chrome://openpgp/content/modules/RNP.jsm, removing record

I'll get patches submitted tomorrow.

LCovFileRewriter uses "dist/bin/browser/" for the "appdir" parameter when no value
is passed. That's correct for Firefox, but Thunderbird needs to set appdir to
"dist/bin/".
In comm-central, "appdir" will be set in the Thunderbird mozharness unittest
config file so that appdir will be set appropriately. This allows for other
products to use code-coverage in the future as well.

Drive-by fix adds a \n when logging removed records for readability.

Assignee: nobody → rob
Status: NEW → ASSIGNED

Requires D186459 on mozilla-central.

Fixes code-coverage processing for resource:// URLs that were not being handled
previously due to appdir being set incorrectly.

Keywords: leave-open
Target Milestone: --- → 118 Branch
Pushed by thunderbird@calypsoblue.org: https://hg.mozilla.org/integration/autoland/rev/de32fb1defd2 Set appdir from mozharness config when processing coverage files. r=jmaher

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/8d6e0f3f14d9
Set appdir in mozharness unittest config for code-coverage processing. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: