Closed
Bug 1001241
Opened 10 years ago
Closed 10 years ago
Make linter error filenames shorter
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jgriffin, Assigned: jgriffin)
Details
Attachments
(1 file)
1.56 KB,
patch
|
ahal
:
review+
|
Details | Diff | Splinter Review |
Ryan noted that errors reported by the linter are unnecessarily long, e.g. TEST-UNEXPECTED-FAIL | /builds/slave/test/gaia/apps/camera/js/views/viewfinder.js | Line 276, E:0240: @param descriptions must end with valid punctuation such as a period. We could improve this by only including the portion of the filename underneath gaia.
Assignee | ||
Comment 1•10 years ago
|
||
This produces errors like: TEST-UNEXPECTED-FAIL | apps/camera/js/views/viewfinder.js | Line 276, E:0240: @param descriptions must end with valid punctuation such as a period.
Attachment #8412320 -
Flags: review?(ahalberstadt)
Comment 2•10 years ago
|
||
Comment on attachment 8412320 [details] [diff] [review] Make linter error filenames shorter, Review of attachment 8412320 [details] [diff] [review]: ----------------------------------------------------------------- Lgtm, assuming my below assumption is correct ::: scripts/gaia_linter.py @@ +30,4 @@ > GENERAL_ERRORS = (re.compile('make(.*?)\*\*\*(.*?)Error'),) > > def __init__(self, **kwargs): > + self.base_dir = kwargs.pop('base_dir') Just a warning that this will remove 'base_dir' from the super class' kwargs. I don't have enough context, so I'll assume the super class isn't using it :)
Attachment #8412320 -
Flags: review?(ahalberstadt) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Yep, the super class doesn't use base_dir.
Assignee | ||
Comment 4•10 years ago
|
||
https://hg.mozilla.org/build/mozharness/rev/69de7997d9b5
Assignee | ||
Comment 5•10 years ago
|
||
This is running fine on cedar; will let it ride the next push to production.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 6•10 years ago
|
||
mozharness patch is in production: http://hg.mozilla.org/build/mozharness/rev/2947d4bd1276 :)
Updated•6 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•