Skip to content

Commit 9c2b4da

Browse files
committed
fix no error node list
1 parent c08098d commit 9c2b4da

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

scripts/print_aggregated_errors.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@ def print_all_errors():
151151
# Get nodes that have errors
152152
nodes_with_errors = list(aggregated_errors.keys())
153153

154+
# Get nodes that were actually tested (have error files, even if empty)
155+
nodes_actually_tested = []
156+
for node_name in nodes_to_show:
157+
node_file = os.path.join(ERROR_DIR, f"errors_{node_name.replace(' ', '_')}.json")
158+
if os.path.exists(node_file):
159+
nodes_actually_tested.append(node_name)
160+
154161
# If no aggregated errors, check individual files
155162
if not nodes_with_errors:
156163
for node_name in nodes_to_show:
@@ -172,12 +179,11 @@ def print_all_errors():
172179
except Exception:
173180
pass
174181

175-
# If still no nodes with errors, check all nodes anyway
176-
if not nodes_with_errors:
177-
nodes_with_errors = nodes_to_show
182+
# Use only the nodes that were actually tested
183+
nodes_to_display = nodes_actually_tested if nodes_actually_tested else nodes_with_errors
178184

179185
# Process each node
180-
for node_name in nodes_to_show:
186+
for node_name in nodes_to_display:
181187
errors = get_all_errors_for_node(node_name)
182188

183189
if errors:

0 commit comments

Comments
 (0)