Skip to content

Commit 347f282

Browse files
committed
step
1 parent 5752dc0 commit 347f282

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

extra/ci_collect_logs.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
ERROR = 3
1313
FAILURE = 4
1414

15+
TEST_LEGEND = [
16+
"Test passed successfully, with no warnings or errors.",
17+
"Test completed with some warnings; no errors detected.",
18+
"Test completed with errors, but all are known/expected.",
19+
"Test completed with unexpected errors.",
20+
"Test run failed to complete.",
21+
"Test was skipped." # -1
22+
]
23+
1524
TEST_STATUS = [
1625
":green_circle:",
1726
":yellow_circle:",
@@ -203,6 +212,14 @@ def process_build_reports():
203212
print(f"<td align='right'>{tests_str}</td><td align='right'>{warnings_str}</td><td align='right'>{errors_str}</td></tr>")
204213
print("</table>\n")
205214

215+
print("<details><summary>Legend</summary>")
216+
print("<table><th align='center'>Board</th><th align='center'>Test</th><th>Status description</th></tr>")
217+
for status in FAILURE, ERROR, EXPECTED_ERROR, WARNING, PASS, SKIP:
218+
print(f"<tr><td align='center'>{BOARD_STATUS[status]}</td>")
219+
print(f"<td align='center'>{TEST_STATUS[status]}</td>")
220+
print(f"<td>{TEST_LEGEND[status]}</td></tr>")
221+
print("</table></details>\n")
222+
206223
for artifact in sorted(list(artifacts), reverse=True):
207224
artifact_boards = [ item['board'] for item in ALL_BOARD_DATA
208225
if item['artifact'] == artifact and BOARD_SUMMARY[item['board']]['status'] != FAILURE ]

0 commit comments

Comments
 (0)