Closed Bug 1650900 Opened 4 years ago Closed 4 years ago

Logs of "Per-test extra prefs will be set:" messages when xpcshell tests are run on a directory in non-verbose mode

Categories

(Testing :: XPCShell Harness, defect)

defect

Tracking

(firefox-esr68 unaffected, firefox-esr78 wontfix, firefox77 unaffected, firefox78 wontfix, firefox79 wontfix, firefox80 fixed)

RESOLVED FIXED
mozilla80
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- wontfix
firefox77 --- unaffected
firefox78 --- wontfix
firefox79 --- wontfix
firefox80 --- fixed

People

(Reporter: kmag, Assigned: rpl)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

When running multiple tests at once in parallel, the xpcshell harness is only meant to show TEST_START and TEST_END lines for each test it runs, except when it re-runs failed tests or is in verbose mode. Now, though, any tests with preferences specified in their manifest also generate multi-line "Per-test extra prefs will be set:" messages, which are not helpful.

Flags: needinfo?(lgreco)

Probably log.debug would be better than log.info for that.

Assignee: nobody → lgreco
Status: NEW → ASSIGNED

(In reply to Kris Maglione [:kmag] from comment #0)

When running multiple tests at once in parallel, the xpcshell harness is only meant to show TEST_START and TEST_END lines for each test it runs, except when it re-runs failed tests or is in verbose mode. Now, though, any tests with preferences specified in their manifest also generate multi-line "Per-test extra prefs will be set:" messages, which are not helpful.

That's totally fair, sorry I missed to notice that sooner.

I've just attached a patch to avoid logging the extra prefs when mach xpcshell-test has not been executed in verbose mode.

Flags: needinfo?(lgreco)
Pushed by luca.greco@alcacoop.it:
https://hg.mozilla.org/integration/autoland/rev/9bb233375f3d
Skip per-test extra prefs logs when xpcshell is not in verbose mode. r=gbrown

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

(In reply to Razvan Maries from comment #5)

Backed out for build bustages.

Push with failure: https://treeherder.mozilla.org/#/jobs?repo=autoland&searchStr=linux%2Cx64%2Ctsan%2Cbuild-linux64-tsan%2Fopt%2C%28bo%29&revision=6b8fa932019863bb7a192db9b6e74afc59c96e32&selectedTaskRun=Ac8MfV_9TSCtpznlszQx1A.0

Log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=308744314&repo=autoland&lineNumber=61341

Backout: https://hg.mozilla.org/integration/autoland/rev/86a6d876a7a67b3abbd3a86e800a70877a2c2309

My bad, I forgot that I do also covered the logs emitted for the per-test prefs in the xpcshell's unit tests.

Patch updated to include the changes needed on the test side.

Flags: needinfo?(lgreco)
Pushed by luca.greco@alcacoop.it:
https://hg.mozilla.org/integration/autoland/rev/e9ed9b954aee
Skip per-test extra prefs logs when xpcshell is not in verbose mode. r=gbrown
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80

The patch landed in nightly and beta is affected.
:rpl, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(lgreco)

(In reply to Release mgmt bot [:sylvestre / :calixte / :marco for bugbug] from comment #10)

The patch landed in nightly and beta is affected.
:rpl, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

It doesn't have any impact on the users, but it is also test only and so we may uplift it to beta to reduce the verbosity of the xpcshell logs on beta.

Geoff, what do you think? should we uplift the patch to beta?
(I haven't checked but it is likely that the patch could apply cleanly on beta as it is)

Flags: needinfo?(lgreco) → needinfo?(gbrown)

I don't think it is that important - let's not bother.

Flags: needinfo?(gbrown)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: