xpcshell perftests fail at startup in CI with "No module named geckoprocesstypes"
Categories
(Testing :: mozperftest, defect)
Tracking
(firefox-esr115 unaffected, firefox-esr153 unaffected, firefox160 unaffected, firefox161 unaffected, firefox162 wontfix, firefox163 fixed)
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr153 | --- | unaffected |
| firefox160 | --- | unaffected |
| firefox161 | --- | unaffected |
| firefox162 | --- | wontfix |
| firefox163 | --- | fixed |
People
(Reporter: jesup, Assigned: jesup)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
Since bug 2088049, runxpcshelltests.py imports mozleak.asan, and mozleak imports geckoprocesstypes. In CI, mozperftest's runner.py sets up the python path for the xpcshell flavor by adding only xpcshell. The mochitest flavor also adds tools/geckoprocesstypes_generator, which ships in target.common.tests. As a result every xpcshell perftest task fails before xpcshell runs:
File "fetches/python/mozperftest/mozperftest/test/xpcshell.py", line 104, in run
import runxpcshelltests
File "fetches/xpcshell/runxpcshelltests.py", line 100, in <module>
from mozleak.asan import ASanErrorParser
File "fetches/testing/mozbase/mozleak/mozleak/leaklog.py", line 8, in <module>
from geckoprocesstypes import process_types
ModuleNotFoundError: No module named 'geckoprocesstypes'
Seen on try with the new WebTransport datagram perftest from bug 2079427 (Linux and macOS aarch64): https://treeherder.mozilla.org/jobs?repo=try&revision=302e2517665f97271ae8a2f8852944370a692d2c
The existing http3 xpcshell perftest is affected the same way; it just isn't scheduled anywhere at the moment.
Fix: add tools/geckoprocesstypes_generator to sys.path for the xpcshell flavor as well.
Comment 1•15 days ago
|
||
Set release status flags based on info from the regressing bug 2088049
Comment 2•15 days ago
|
||
Hi Benoit, could you look into this please?
Comment 3•15 days ago
|
||
Oh wait, :jesup I see you assigned yourself, are you preparing a patch?
| Assignee | ||
Comment 4•15 days ago
|
||
runxpcshelltests now imports mozleak, which needs geckoprocesstypes; the
mochitest flavor already adds it to the path, but the xpcshell flavor didn't,
so every xpcshell perftest failed at startup in CI.
Comment 5•12 days ago
|
||
Set release status flags based on info from the regressing bug 2088049
Updated•11 days ago
|
Comment 9•10 days ago
|
||
| bugherder | ||
Description
•