Skip to content

Commit

Permalink
fix(api/helper): Reset kcidb state on submit_results
Browse files Browse the repository at this point in the history
We need to reprocess results by kcidb on update, so reset
the flag.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Dec 6, 2024
1 parent 0262b67 commit fca7992
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernelci/api/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ def submit_results(self, results, root):
root_node['result'] = results['node']['result']
root_node['artifacts'].update(results['node']['artifacts'])
root_node['data'].update(results['node'].get('data', {}))
root_node['processed_by_kcidb_bridge'] = False
if root_node['result'] != 'incomplete':
data = root_node.get('data', {})
if data.get('error_code') == 'node_timeout':
Expand All @@ -562,6 +563,7 @@ def submit_results(self, results, root):
},
'group': root['name'],
'state': 'done',
'processed_by_kcidb_bridge': False,
}
data = self._prepare_results(root_results, parent, base)
# Once this has been consolidated at the API level:
Expand Down

0 comments on commit fca7992

Please sign in to comment.