Closed Bug 1001241 Opened 11 years ago Closed 11 years ago

Make linter error filenames shorter

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgriffin, Assigned: jgriffin)

Details

Attachments

(1 file)

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.
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 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+
Yep, the super class doesn't use base_dir.
This is running fine on cedar; will let it ride the next push to production.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
mozharness patch is in production: http://hg.mozilla.org/build/mozharness/rev/2947d4bd1276 :)
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: