Skip to content

Commit 5448dec

Browse files
committed
Merge branch 'ci/fixes'
2 parents a13bcdb + d8c2943 commit 5448dec

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

.github/scripts/runtime_table_generator.py

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,21 @@
4343

4444
print("### Validation Tests")
4545

46+
# Read platform-specific target lists from environment variables
47+
platform_targets = {}
48+
try:
49+
hw_targets = json.loads(os.environ.get("HW_TARGETS", "[]"))
50+
wokwi_targets = json.loads(os.environ.get("WOKWI_TARGETS", "[]"))
51+
qemu_targets = json.loads(os.environ.get("QEMU_TARGETS", "[]"))
52+
53+
platform_targets["hw"] = sorted(hw_targets) if hw_targets else []
54+
platform_targets["wokwi"] = sorted(wokwi_targets) if wokwi_targets else []
55+
platform_targets["qemu"] = sorted(qemu_targets) if qemu_targets else []
56+
except (json.JSONDecodeError, KeyError) as e:
57+
print(f"Warning: Could not parse platform targets from environment: {e}", file=sys.stderr)
58+
platform_targets = {"hw": [], "wokwi": [], "qemu": []}
59+
4660
proc_test_data = {}
47-
target_list = []
4861

4962
# Build executed tests map and collect targets
5063
executed_tests_index = {} # {(platform, target, test_name): {tests, failures, errors}}
@@ -64,9 +77,6 @@
6477
m = re.match(r"(.+?)(\d+)?$", rest)
6578
test_name = m.group(1) if m else rest
6679

67-
if target not in target_list:
68-
target_list.append(target)
69-
7080
if platform not in proc_test_data:
7181
proc_test_data[platform] = {}
7282

@@ -87,21 +97,28 @@
8797
executed_tests_index[(platform, target, test_name)] = proc_test_data[platform][test_name][target]
8898
executed_run_counts[(platform, target, test_name)] = executed_run_counts.get((platform, target, test_name), 0) + 1
8999

90-
target_list = sorted(target_list)
91-
92100
# Render only executed tests grouped by platform/target/test
93101
for platform in proc_test_data:
94102
print("")
95103
print(f"#### {platform.capitalize()}")
96104
print("")
105+
106+
# Get platform-specific target list
107+
target_list = platform_targets.get(platform, [])
108+
109+
if not target_list:
110+
print(f"No targets configured for platform: {platform}")
111+
continue
112+
97113
print("Test", end="")
98114

99115
for target in target_list:
100116
# Make target name uppercase and add hyfen if not esp32
117+
display_target = target
101118
if target != "esp32":
102-
target = target.replace("esp32", "esp32-")
119+
display_target = target.replace("esp32", "esp32-")
103120

104-
print(f"|{target.upper()}", end="")
121+
print(f"|{display_target.upper()}", end="")
105122

106123
print("")
107124
print("-" + "|:-:" * len(target_list))

.github/workflows/tests_results.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ jobs:
248248
QEMU_TESTS_ENABLED: ${{ needs.get-artifacts.outputs.qemu_tests_enabled }}
249249
QEMU_TARGETS: ${{ needs.get-artifacts.outputs.qemu_targets }}
250250
QEMU_TYPES: ${{ needs.get-artifacts.outputs.qemu_types }}
251-
REPORT_FILE: ./runtime-test-results/RUNTIME_TEST_RESULTS.md
252251
WOKWI_RUN_ID: ${{ github.event.workflow_run.id }}
253252
BUILD_RUN_ID: ${{ needs.get-artifacts.outputs.original_run_id }}
253+
REPORT_FILE: ./runtime-test-results/RUNTIME_TEST_RESULTS.md
254254
IS_FAILING: |
255255
needs.get-artifacts.outputs.original_conclusion == 'failure' ||
256256
needs.get-artifacts.outputs.original_conclusion == 'cancelled' ||

0 commit comments

Comments
 (0)