From 9d90b2ed56f28dbe3a56cbd5d2001a3797e9c951 Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Fri, 20 Jun 2025 11:49:32 +0200 Subject: [PATCH] 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 --- kernelci/runtime/lava.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernelci/runtime/lava.py b/kernelci/runtime/lava.py index e2df704129..32d6af49bb 100644 --- a/kernelci/runtime/lava.py +++ b/kernelci/runtime/lava.py @@ -192,7 +192,7 @@ def _get_stage_result(self, suite_name): def _get_results_hierarchy(self, results): hierarchy = [] for name, value in results.items(): - node = {'name': name} + node = {'name': name, 'state': 'done'} child_nodes = [] item = {'node': node, 'child_nodes': child_nodes} if isinstance(value, dict):