Bug 1543024 - [Coverity] Add more information to the exported artifact that is generated by Coverity. r=bastien

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andi-Bogdan Postelnicu 2019-04-10 07:19:26 +00:00
parent 43bf250bf8
commit 595caf7d7c

View File

@ -1878,15 +1878,19 @@ class StaticAnalysis(MachCommandBase):
'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