Skip to content

Commit e4aa2a0

Browse files
a-wainuclearcat
authored andcommitted
kernelci: runtime: lava: ensure result nodes are in "done" state
Nodes are created in `running` state by default. Recent changes to the API helper functions copy the `state` field from the node instead of setting it to `done` by default, meaning result nodes stay `running` until they time out. Fix this by making those nodes `done` right from the beginning. Signed-off-by: Arnaud Ferraris <[email protected]>
1 parent 09b13c1 commit e4aa2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernelci/runtime/lava.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def _get_stage_result(self, suite_name):
192192
def _get_results_hierarchy(self, results):
193193
hierarchy = []
194194
for name, value in results.items():
195-
node = {'name': name}
195+
node = {'name': name, 'state': 'done'}
196196
child_nodes = []
197197
item = {'node': node, 'child_nodes': child_nodes}
198198
if isinstance(value, dict):

0 commit comments

Comments
 (0)