Skip to content

Commit

Permalink
src/send_kcidb: send runtime to misc field
Browse files Browse the repository at this point in the history
Send runtime information to `misc` field to
be used for post-processing.

Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>
  • Loading branch information
Jeny Sadadia authored and JenySadadia committed Sep 23, 2024
1 parent b99852f commit c5188c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/send_kcidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,16 @@ def _parse_test_node(self, origin, test_node):
compatible = self._platforms[platform].compatible
self.log.info(f"Compatible string: {test_node['id']}:{compatible}")

runtime = test_node['data'].get('runtime')
parsed_test_node = {
'build_id': build_id,
'id': f"{origin}:{test_node['id']}",
'origin': origin,
'comment': f"{test_node['name']} on {platform} \
in {test_node['data'].get('runtime')}",
in {runtime}",
'start_time': self._set_timezone(test_node['created']),
'environment': {
'comment': f"Runtime: {test_node['data'].get('runtime')}",
'comment': f"Runtime: {runtime}",
'compatible': compatible,
'misc': {
'platform': platform,
Expand All @@ -374,6 +375,7 @@ def _parse_test_node(self, origin, test_node):
'compiler': test_node['data'].get('compiler'),
'kernel_type': test_node['data'].get('kernel_type'),
'arch': test_node['data'].get('arch'),
'runtime': runtime,
}
}

Expand Down

0 comments on commit c5188c0

Please sign in to comment.