Skip to content

Commit

Permalink
Bug 1543024 - [Coverity] Add more information to the exported artifac…
Browse files Browse the repository at this point in the history
…t that is generated by Coverity. r=bastien

Differential Revision: https://phabricator.services.mozilla.com/D26682

--HG--
extra : moz-landing-system : lando
  • Loading branch information
abpostelnicu committed Apr 10, 2019
1 parent 43bf250 commit 595caf7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions python/mozbuild/mozbuild/mach_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1878,15 +1878,19 @@ def build_element(issue):
'line': issue['mainEventLineNumber'],
'flag': issue['checkerName'],
'message': event_path['eventDescription'],
'extra': []
'extra': {
'category': issue['checkerProperties']['category'],
'stateOnServer': issue['stateOnServer'],
'stack': []
}
}

# Embed all events into extra message
for event in issue['events']:
dict_issue['extra'].append({'file_path': event['strippedFilePathname'],
'line_number': event['lineNumber'],
'path_type': event['eventTag'],
'description': event['eventDescription']})
dict_issue['extra']['stack'].append({'file_path': event['strippedFilePathname'],
'line_number': event['lineNumber'],
'path_type': event['eventTag'],
'description': event['eventDescription']})

return dict_issue

Expand Down

0 comments on commit 595caf7

Please sign in to comment.