Closed Bug 1519162 Opened 7 years ago Closed 5 years ago

Remove the concept of log steps (TextLogStep)

Categories

(Tree Management :: Treeherder, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1633041

People

(Reporter: emorley, Unassigned)

References

(Blocks 1 open bug)

Details

Currently when logs are parsed, the log parser looks for buildbot style step markers, and uses those to split up the logs into sections, that are stored in the TextLogStep model. Any errors are then associated with those steps.

However Taskcluster never made use of the steps (jobs create a dummy single unnamed step), so with buildbot's EOL they no longer contain useful information.

The UI for log steps was removed in bug 1450045, however we should remove the corresponding support from the log parser and models.

The models parts will involve making TextLogError foreign key on Job directly (with associated schema migrations/backfilling of FKs), followed by removal of TextLogStep.

However a good first step would be to just simplify the log parser (which should also help improve its performance - which is notable since it's the biggest compute consumer for background tasks).

(In reply to Ed Morley [:emorley] from comment #0)

However a good first step would be to just simplify the log parser

eg removing most of:
https://github.com/mozilla/treeherder/blob/33921b52fd264236577cf8fc91d58f28f78c23a0/treeherder/log_parser/parsers.py#L40-L253

(In reply to Ed Morley [:emorley] from comment #0)

However a good first step would be to just simplify the log parser (which should also help improve its performance - which is notable since it's the biggest compute consumer for background tasks).

Marking blocking bug 1407377 due to this.

Blocks: 1407377

All of the changes mentioned above will be covered in bug 1633041.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Component: Treeherder: Log Parsing & Classification → TreeHerder
You need to log in before you can comment on or make changes to this bug.