Closed Bug 2093361 Opened 15 days ago Closed 10 days ago

xpcshell perftests fail at startup in CI with "No module named geckoprocesstypes"

Categories

(Testing :: mozperftest, defect)

defect

Tracking

(firefox-esr115 unaffected, firefox-esr153 unaffected, firefox160 unaffected, firefox161 unaffected, firefox162 wontfix, firefox163 fixed)

RESOLVED FIXED
163 Branch
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.

Set release status flags based on info from the regressing bug 2088049

Hi Benoit, could you look into this please?

Flags: needinfo?(benoit.goupilleau)

Oh wait, :jesup I see you assigned yourself, are you preparing a patch?

Flags: needinfo?(benoit.goupilleau)

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.

Set release status flags based on info from the regressing bug 2088049

Pushed by rjesup@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/59e3b85e21a5 https://hg.mozilla.org/integration/autoland/rev/3fac2c362441 Put geckoprocesstypes on the python path for xpcshell perftests in CI r=mozperftest-reviewers,sparky
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/18430ac55beb https://hg.mozilla.org/integration/autoland/rev/7b467c0c7df2 Revert "Bug 2093361 - Put geckoprocesstypes on the python path for xpcshell perftests in CI r=mozperftest-reviewers,sparky"
Pushed by rjesup@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6622b8ae5eff https://hg.mozilla.org/integration/autoland/rev/12aff47e40df Put geckoprocesstypes on the python path for xpcshell perftests in CI r=sparky,mozperftest-reviewers
Status: NEW → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: