Skip to content

Commit

Permalink
src/send_kcidb: enable job node submission to KCIDB
Browse files Browse the repository at this point in the history
Parse newly added job node and its child tests
for KCIDB submission.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and JenySadadia committed Jun 20, 2024
1 parent be115e4 commit c168e2e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/send_kcidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,17 @@ def _run(self, context):
)

elif node['kind'] == 'test':
if is_hierarchy:
self._get_test_data_recursively(node, context['origin'],
parsed_test_node, parsed_build_node)
self._get_test_data(node, context['origin'],
parsed_test_node, parsed_build_node)

elif not self._api.node.count({'parent': node['id']}):
elif node['kind'] == 'job':
# Send only failed/incomplete job nodes
if node['result'] != 'pass':
self._get_test_data(node, context['origin'],
parsed_test_node, parsed_build_node)
if is_hierarchy:
self._get_test_data_recursively(node, context['origin'],
parsed_test_node, parsed_build_node)

revision = {
'checkouts': parsed_checkout_node,
Expand Down

0 comments on commit c168e2e

Please sign in to comment.