Closed Bug 1063695 Opened 10 years ago Closed 9 years ago

Convert log_parser/parsers.py constants to class attributes

Categories

(Tree Management :: Treeherder: Data Ingestion, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

Details

Attachments

(1 file)

(In reply to Jonathan Eads ( :jeads ) from bug 1043741 comment #9)
> 
> (In reply to Ed Morley [:edmorley] from bug 1043741 comment #7)
> > * I'm not sure why we have constants both inside and outside the StepParser
> > class. I can get that for the regex compiles we perhaps want to save
> > duplicating for each instance, but perhaps we should move
> > ST_STARTED/ST_FINISHED/DATE_FORMAT/RESULT_DICT out too?
> 
> The only reason I could see for this is the need to import
> RE_HEADER_VALUE/RE_HEADER_START/PATTERN/RE_STEP_START/RE_STEP_FINISH
> explicitly in other modules independently of HeaderParser and StepParser.
> Maybe at one time in development that was the case. However, grepping for
> those constants, I find no explicit imports.
> 
> These constants should be converted to class attributes on the classes,
> HeaderParser and StepParser, that use them.
Blocks: 1072681
No longer blocks: 1072681
Component: Treeherder → Treeherder: Data Ingestion
Priority: P3 → P4
Assignee: nobody → emorley
Summary: Convert log_parser/parsers.pyx constants to class attributes → Convert log_parser/parsers.py constants to class attributes
Attachment #8629404 - Flags: review?(cdawson)
Attachment #8629404 - Flags: review?(cdawson) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: