Skip to content

Commit

Permalink
src/send_kcidb: add node type information in logspec warning
Browse files Browse the repository at this point in the history
Print if it is a build or test node to make it easier to post process

Signed-off-by: Helen Koike <[email protected]>
  • Loading branch information
helen-fornazier authored and JenySadadia committed Nov 19, 2024
1 parent 7be96e0 commit 6af51d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/send_kcidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def _run(self, context):
self.log.debug(f"Generated issues/incidents: {issues_and_incidents}")
else:
self.log.warning("logspec: Could not generate any issues or "
f"incidents for {parsed_node['id']}")
f"incidents for build node {parsed_node['id']}")

for parsed_node in parsed_test_node:
if parsed_node.get('status') == 'FAIL' and parsed_node.get('log_url'):
Expand All @@ -561,7 +561,7 @@ def _run(self, context):
self.log.debug(f"Generated issues/incidents: {issues_and_incidents}")
else:
self.log.warning("logspec: Could not generate any issues or "
f"incidents for {parsed_node['id']}")
f"incidents for test node {parsed_node['id']}")

revision = {
'checkouts': parsed_checkout_node,
Expand Down

0 comments on commit 6af51d2

Please sign in to comment.