Closed
Bug 1375834
Opened 7 years ago
Closed 7 years ago
[mozlint] Stop printing command if vcs failed
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox56 fixed)
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: ahal, Assigned: ahal)
Details
Attachments
(1 file)
In bug 1369787 I started printing the version control command used if the command returned non-zero. But when using ./mach lint --outgoing, hg returns non-zero if no files were found. Printing the command in this case feels unnatural and unnecessary. I think we should revert to the previous behaviour of only printing the error output (if it exists).
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8880790 [details] Bug 1375834 - [mozlint] Stop printing vcs command used if command returns non-zero, https://reviewboard.mozilla.org/r/152164/#review157166 Please add the blank line after the license comment. The issue with printing the command with the error output, I'll leave up to you. ::: python/mozlint/mozlint/roller.py (Diff revision 1) > # This Source Code Form is subject to the terms of the Mozilla Public > # License, v. 2.0. If a copy of the MPL was not distributed with this > # file, You can obtain one at http://mozilla.org/MPL/2.0/. > - Why remove this line? All of the other files in this directory have an empty line following the license comment. ::: python/mozlint/mozlint/vcs.py:42 (Diff revision 1) > def run(self, cmd): > try: > files = subprocess.check_output(cmd, stderr=subprocess.STDOUT).split() > except subprocess.CalledProcessError as e: > - print(' '.join(cmd)) > + if e.output: > - print(e.output) > + print(e.output) You don't think it would be useful to print the command along with the error output ? It would eliminate the printing of the command if there was no output which is the problematic change you would like to revert, right?
Attachment #8880790 -
Flags: review?(bob) → review+
Comment hidden (mozreview-request) |
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0db1768c1509 [mozlint] Stop printing vcs command used if command returns non-zero, r=bc
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0db1768c1509
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Updated•6 years ago
|
Product: Testing → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•