Thunderbird code coverage not recorded for resource:/// files
Categories
(Thunderbird :: Testing Infrastructure, defect)
Tracking
(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.
Assignee | ||
Comment 1•1 year ago
|
||
Reporter | ||
Comment 2•1 year ago
|
||
Looks like that does the trick. Nice one!
Assignee | ||
Comment 3•1 year ago
|
||
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.
Assignee | ||
Comment 4•1 year ago
|
||
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.
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
Requires D186459 on mozilla-central.
Fixes code-coverage processing for resource:// URLs that were not being handled
previously due to appdir being set incorrectly.
Assignee | ||
Updated•1 year ago
|
Comment 7•1 year ago
|
||
bugherder |
Assignee | ||
Updated•1 year ago
|
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
Description
•