Skip to content

Commit 3556aa4

Browse files
committed
step
1 parent fe82240 commit 3556aa4

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

.github/workflows/package_core.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@ jobs:
293293

294294
- run: extra/ci_collect_logs.py > $GITHUB_STEP_SUMMARY
295295

296-
# - name: Clean up intermediate artifacts
297-
# uses: geekyeggo/[email protected]
298-
# with:
299-
# name: test-report-*
300-
# failOnError: false
296+
- name: Clean up intermediate artifacts
297+
uses: geekyeggo/[email protected]
298+
with:
299+
name: test-report-*
300+
failOnError: false
301301

302302
verify-core:
303303
runs-on: ubuntu-latest

extra/ci_collect_logs.py

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
FAILURE = 4
1414

1515
TEST_STATUS = [
16-
":green_circle:",
17-
":yellow_circle:",
18-
":no_entry:",
19-
":red_circle:",
20-
":fire:",
21-
":new_moon:" # -1
16+
":green_circle:",
17+
":yellow_circle:",
18+
":no_entry:",
19+
":red_circle:",
20+
":fire:",
21+
":new_moon:" # -1
2222
]
2323

2424
BOARD_STATUS = [
25-
":white_check_mark:",
26-
":white_check_mark:*",
27-
":heavy_check_mark:*",
28-
":x:",
29-
":fire:",
30-
":new_moon:" # -1
25+
":white_check_mark:",
26+
":white_check_mark:*",
27+
":heavy_check_mark:*",
28+
":x:",
29+
":fire:",
30+
":new_moon:" # -1
3131
]
3232

3333
def artifact_count(count, status, icons):
@@ -196,7 +196,10 @@ def process_build_reports():
196196
warnings_str = summary['warnings'] or "-"
197197
errors_str = f"<b>{summary['errors']}</b>" if summary['errors'] else "-"
198198
if summary['expected-errors']:
199-
errors_str += f" (+{summary['expected-errors']}*)"
199+
if errors_str == "-": # only expected errors
200+
errors_str = f"<i>({summary['expected-errors']}*)</i>"
201+
else: # both actual and expected errors
202+
errors_str += f" <i>(+{summary['expected-errors']}*)</i>"
200203
print(f"<td align='right'>{tests_str}</td><td align='right'>{warnings_str}</td><td align='right'>{errors_str}</td></tr>")
201204
print("</table>\n")
202205

0 commit comments

Comments
 (0)