Closed
Bug 1443557
Opened 7 years ago
Closed 7 years ago
Default to mach formatter when terminal / tty is present
Categories
(Testing :: Mozbase, enhancement)
Testing
Mozbase
Tracking
(firefox61 fixed)
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: jryans, Assigned: ahal)
References
Details
Attachments
(1 file)
The mach formatter is easier for humans with its colored output and other nice things.
For some reason, it's not enabled by default. It seems like most developers would benefit from having it on, but may not be aware of it.
Can we enable it by default, at least when a terminal / tty is present?
Reporter | ||
Comment 1•7 years ago
|
||
:ahal, is there some historical / compatibility reason why we default to the raw formatter?
Flags: needinfo?(ahalberstadt)
Reporter | ||
Comment 2•7 years ago
|
||
Hmm, I guess bug 1421799 improved the mach formatting, and the summary of that bug mentioned making it the default, but that didn't seem to happen at the time. Anyway, seems like :ahal should know more.
Depends on: 1421799
Comment 3•7 years ago
|
||
This is related to bug 1132044 and unless something has changed, bug 1432683 probably should be fixed first.
Assignee | ||
Comment 5•7 years ago
|
||
Sorry, bug 1421799 was supposed to make 'mach' the default, but the 'tbpl' format is still the default:
https://searchfox.org/mozilla-central/source/testing/mach_commands.py#67
I must have either forgot to make this change, or blown over it while resolving conflicts. I never noticed because I had:
[test]
format=mach
in my ~/.mozbuild/machrc. So I think there are two issues here:
1) mach format is non-default (I'll use this bug to fix)
2) mach format breaks test-verify (bug 1432683)
I think bug 1132044 can be duped to this one.
Flags: needinfo?(ahalberstadt)
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
![]() |
||
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8958217 [details]
Bug 1443557 - Start using the 'mach' formatter by default in |mach test| and |mach mochitest|,
https://reviewboard.mozilla.org/r/227156/#review232992
::: testing/mach_commands.py:67
(Diff revision 1)
> format_desc = "The default format to use when running tests with `mach test`."
> format_choices = log_formatters.keys()
> level_desc = "The default log level to use when running tests with `mach test`."
> level_choices = [l.lower() for l in log_levels]
> return [
> - ('test.format', 'string', format_desc, 'tbpl', {'choices': format_choices}),
> + ('test.format', 'string', format_desc, 'mach', {'choices': format_choices}),
This also changes the format for 'mach test <path-to-reftest>'. Is that OK? Why do we use tbpl by default for 'mach reftest' still, but now mach for 'mach test <reftest>'?
Attachment #8958217 -
Flags: review?(gbrown) → review+
Assignee | ||
Comment 8•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8958217 [details]
Bug 1443557 - Start using the 'mach' formatter by default in |mach test| and |mach mochitest|,
https://reviewboard.mozilla.org/r/227156/#review232992
> This also changes the format for 'mach test <path-to-reftest>'. Is that OK? Why do we use tbpl by default for 'mach reftest' still, but now mach for 'mach test <reftest>'?
I know it's a little weird, but it is intentional.
We still use the `tbpl` format when running |mach reftest| because the `mach` format isn't compatible with the reftest-analyzer. However, when running |mach test|, the reftest output is dumped alongside all the other test output from other suites. So it would look really weird if part of the logs were in one format, and the rest of the logs were in another. Plus the combined log isn't useful for the reftest-analyzer anyway, so using `tbpl` in this case wouldn't have much benefit.
Ideally we get the reftest-analyzer to read the raw structured log and then it doesn't matter what log format we use for reftest, but another bug for another time.
Pushed by ahalberstadt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fc99177ac89b
Start using the 'mach' formatter by default in |mach test| and |mach mochitest|, r=gbrown
Comment 10•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•