Closed Bug 1453577 Opened 7 years ago Closed 2 years ago

"Automation Error" log output should contain name of the test harness

Categories

(Release Engineering :: Applications: MozharnessCore, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: whimboo, Assigned: gbrown)

References

Details

(In reply to Chris AtLee [:catlee] from bug 1436237 comment #26) > > > * Ideally the mozharness error prefix for this line would be ERROR not INFO > > > (though this doesn't affect the log parser, since it specifically checks for > > > "Automation Error:", though we want to move away from hardcoding every error > > > string variation in Treeherder) > > > > Would it help if we make the harness name part of the error line so we have > > at least an idea about which harness the automation error is about? It could > > be something like: "Automation Error: mozprocess timed out after 1000 > > seconds running reftest: %command%. > > Yes, that would be much clearer IMO.
The problem here is that `run_command` doens't know anything about the customer code using it: https://dxr.mozilla.org/mozilla-central/rev/325ef357e5b73d63794e47c02c7f8e7cf58ccb48/testing/mozharness/mozharness/base/script.py#1400 The only option I see is to add another optional argument, which harnesses could set to get their name added to the error line. Chris, any feedback from your side?
Flags: needinfo?(catlee)
Flags: needinfo?(catlee)

The command is already included in the message, and that sometimes identifies the harness; in other cases, determining the harness/script is relatively simple -- scroll up in the test log.

Assignee: nobody → gbrown
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.