From 77a74e0f8b29aef9c6aa99b695617e186c223e51 Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Sat, 7 Feb 2026 09:01:50 +1000 Subject: [PATCH] CI: fix workflow run block for nodeid parser --- .github/workflows/build-ultraplot.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/workflows/build-ultraplot.yml b/.github/workflows/build-ultraplot.yml index b1d71002c..0dd47e5c8 100644 --- a/.github/workflows/build-ultraplot.yml +++ b/.github/workflows/build-ultraplot.yml @@ -135,22 +135,7 @@ jobs: echo "TEST_NODEIDS=${TEST_NODEIDS}" # Save PR-selected nodeids for reuse after checkout (if provided) if [ "${TEST_MODE}" = "selected" ] && [ -n "${TEST_NODEIDS}" ]; then - python -c 'import json, os -raw = os.environ.get("TEST_NODEIDS", "").strip() -nodeids = [] -if raw and raw != "[]": - try: - parsed = json.loads(raw) - except json.JSONDecodeError: - parsed = raw.split() - if isinstance(parsed, str): - parsed = [parsed] - if isinstance(parsed, list): - nodeids = [item for item in parsed if isinstance(item, str) and item] -with open("/tmp/pr_selected_nodeids.txt", "w", encoding="utf-8") as fh: - for nodeid in nodeids: - fh.write(f"{nodeid}\n") -print(f"Selected nodeids parsed: {len(nodeids)}")' + python -c 'import json,os; raw=os.environ.get("TEST_NODEIDS","").strip(); parsed=json.loads(raw) if raw and raw!="[]" else []; parsed=[parsed] if isinstance(parsed,str) else parsed; nodeids=[item for item in parsed if isinstance(item,str) and item]; open("/tmp/pr_selected_nodeids.txt","w",encoding="utf-8").write("".join(f"{nodeid}\n" for nodeid in nodeids)); print(f"Selected nodeids parsed: {len(nodeids)}")' else : > /tmp/pr_selected_nodeids.txt fi