Closed Bug 1614626 Opened 6 years ago Closed 5 years ago

Move xpcshell selftests out of builds

Categories

(Testing :: XPCShell Harness, enhancement, P3)

enhancement

Tracking

(firefox-esr78 fixed, firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox-esr78 --- fixed
firefox81 --- fixed

People

(Reporter: marco, Assigned: glandium)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

It's currently painful to debug a crash in a xpcshell selftest, as the minidumps are not processed and they are not uploaded as artifacts either.

MINIDUMP_STACKWALK not set, can't process dump.

I imagine we need to set the MINIDUMP_STACKWALK environment variable (https://searchfox.org/mozilla-central/rev/a1592902acabf9bded973067133baaac1457f3d3/testing/mozbase/mozcrash/mozcrash/mozcrash.py#205) in order to process the minidumps.

And, we need to set the MINIDUMP_SAVE_PATH (https://searchfox.org/mozilla-central/rev/a1592902acabf9bded973067133baaac1457f3d3/testing/mozbase/mozcrash/mozcrash/mozcrash.py#201) to a directory whose files are uploaded as artifacts (just like https://searchfox.org/mozilla-central/rev/a1592902acabf9bded973067133baaac1457f3d3/testing/mozharness/mozharness/mozilla/testing/firefox_ui_tests.py#270).

I'd argue the xpcshell selftests should run at the very start of the xpcshell test task.

+1 for making these part of the xpcshell job. It's a pain when failures turn the build job red and prevent getting results on any downstream test jobs.

Component: General → XPCShell Harness
Product: Firefox Build System → Testing

I may not get around to this for a while...don't mind if someone else wants to work on it!

Assignee: nobody → gbrown
Priority: -- → P3
Summary: Process dumps in xpcshell selftests and upload them as artifacts → Process dumps in xpcshell selftests and upload them as artifacts (move xpcshell selftests out of builds)
See Also: → 1210759

Geoff, are you planning to finish this? thanks!

Flags: needinfo?(gbrown)

Yes, but comment 3 still applies.

Flags: needinfo?(gbrown)

Bug 1651829 (and others blocking bug 1210759) are progressing...that might be helpful here.

Stealing this. I have a patch 95% the way there.

I'm not sure the move on its own will solve the original problem. Marco, do you have an example of a crash that was a problem to debug for lack of minidump?

Assignee: gbrown → mh+mozilla
Flags: needinfo?(mcastelluccio)
Summary: Process dumps in xpcshell selftests and upload them as artifacts (move xpcshell selftests out of builds) → Move xpcshell selftests out of builds
Depends on: 1654479
Depends on: 1654483
Blocks: 1210759
Depends on: 1515229

(In reply to Mike Hommey [:glandium] from comment #9)

Stealing this. I have a patch 95% the way there.

I'm not sure the move on its own will solve the original problem. Marco, do you have an example of a crash that was a problem to debug for lack of minidump?

It was a crash in a push by Calixte with some ccov-related changes. Given the creation date of this bug and the dates of Calixte's try pushes, probably one of e47a77ccee096cf2b442a22ed4d0401dd347ea78, 591790aedfcacae6b421c2e9c59f5323e342dca9 or 12bd727ae74a5b5c28dc03e284c362359442d580.

Flags: needinfo?(mcastelluccio)
No longer depends on: 1515229
Blocks: 1649576

This allows to test them in the exact same environment as the tests are
going to run, which turns out to have revealed a few issues that would
only appear once xpcshell tests fail, impeding on debugging those
failures.

Blocks: 1655111
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/929e1acc42af Move xpcshell selftests to before running actual xpcshell tests. r=gbrown
Depends on: 1655921

test_ext_dns.js is normally skipped in those tasks...is there something wrong with the mozinfo changes?

There is no mozinfo change in the patch that would explain that. The problem is that running the self tests does change mozinfo, most notably wrt prefs.

Flags: needinfo?(mh+mozilla)
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/e099635be739 Move xpcshell selftests to before running actual xpcshell tests. r=gbrown
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch

Comment on attachment 9165828 [details]
Bug 1614626 - Move xpcshell selftests to before running actual xpcshell tests.

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Needed to uplift https://bugzilla.mozilla.org/show_bug.cgi?id=1654457, otherwise python-tests running as part of make fail, because they're run with the wrong virtualenv.
  • User impact if declined: None
  • Fix Landed on Version: 81
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It's a build-only patch
  • String or UUID changes made by this patch:
Attachment #9165828 - Flags: approval-mozilla-esr78?

Comment on attachment 9165828 [details]
Bug 1614626 - Move xpcshell selftests to before running actual xpcshell tests.

Needed to better support running mach on newer macOS releases. Approved for 78.8esr.

Attachment #9165828 - Flags: approval-mozilla-esr78? → approval-mozilla-esr78+
Blocks: 1692126
See Also: → 1692587
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: