Closed Bug 1790085 Opened 3 years ago Closed 3 years ago

Running a single xpcshell-test locally which has failures causes it to be run twice.

Categories

(Testing :: XPCShell Harness, defect, P2)

Default
defect

Tracking

(firefox-esr91 unaffected, firefox-esr102 unaffected, firefox104 unaffected, firefox105 wontfix, firefox106 fixed)

RESOLVED FIXED
106 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox-esr102 --- unaffected
firefox104 --- unaffected
firefox105 --- wontfix
firefox106 --- fixed

People

(Reporter: standard8, Assigned: jmaher)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

If I change an xpcshell-test to make it fail, and then run it as a single test, it will run twice.

e.g. using this command:

./mach xpcshell-test toolkit/components/search/tests/xpcshell/test_engine_selector.js

Runs the test twice when it fails.

This has two issues. Firstly, you get a duplicated test failures summary, and duplicated logs. I find the test failures summary especially confusing, because "why is my test code being run twice?".

Secondly, when running with --jsdebugger you do your debugging, and let the debugger exit. At which point the test restarts (puzzled: "why did it do that?"), and you manually have to ctrl-c it to stop it.

Maybe we could alter the change that bug 1781782 to make it so that it only re-runs single tests on automation?

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

:jmaher, since you are the author of the regressor, bug 1781782, could you take a look? Also, could you set the severity field?

For more information, please visit auto_nag documentation.

I think that is reasonable- thanks for filing this bug

Severity: -- → S3
Flags: needinfo?(jmaher)
Priority: -- → P2
Assignee: nobody → jmaher
Status: NEW → ASSIGNED
Pushed by jmaher@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/132b92a60892 retry xpcshell tests only in CI, not locally. r=gbrown
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch

Thank you.

Regressions: 1936281
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: