From 2e8d9939bf68f3184ee3a84de4659a029f9ea3a2 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Thu, 16 Oct 2025 13:23:50 +0300 Subject: [PATCH] API response parsing fix Changed from data.get("data", []) to data.get("items", []) to correctly extract the checkout nodes. Signed-off-by: Denys Fedoryshchenko --- orchestrator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orchestrator.py b/orchestrator.py index 34207c1..a1f1211 100644 --- a/orchestrator.py +++ b/orchestrator.py @@ -533,7 +533,8 @@ async def process_checkout_wait_step( return data = await response.json() - nodes = data.get("data", []) + # KernelCI API returns nodes in "items" array, not "data" + nodes = data.get("items", []) # Look for a node with submitter: "service:pipeline" and matching tree for node in nodes: