Skip to content

Commit e3d9050

Browse files
committed
step
1 parent c7552fd commit e3d9050

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

extra/ci_collect_logs.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def example_name(sketch_name):
5353
TEST_MATRIX = {}
5454
BOARD_SUMMARY = {}
5555
EXPECTED_ERRORS = set()
56-
EXPECTED_ERRORS.add(('portentac33', 'ArduinoCore-zephyr/libraries/Ethernet/examples/UdpNtpClient'))
5756

5857
def log_test(name, board, status, issues, job_link=None):
5958
"""
@@ -118,15 +117,20 @@ def process_build_reports():
118117
variant = board_data['variant']
119118
subarch = board_data['subarch']
120119

121-
# Filename preparation
122-
REPORT_FILE = f"arduino-{subarch}-{board}.json"
120+
# Get list of expected errors for this board/variant
121+
if os.path.exists(f"ArduinoCore-zephyr/variants/{variant}/known_example_issues.txt"):
122+
with open(f"ArduinoCore-zephyr/variants/{variant}/known_example_issues.txt", 'r') as f:
123+
for line in f:
124+
sketch_name = line.split('#')[0].strip()
125+
if sketch_name:
126+
EXPECTED_ERRORS.add((board, sketch_name))
123127

124-
# 5. Report File Check
128+
# Get raw data from report file
129+
REPORT_FILE = f"arduino-{subarch}-{board}.json"
125130
if not os.path.exists(REPORT_FILE):
126131
log_test('CI test', board, FAILURE, "Report file not found.")
127132
continue # Skip to the next board
128133

129-
# 6. Process Report File
130134
try:
131135
with open(REPORT_FILE, 'r') as f:
132136
report_data = json.load(f)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This file contains a list of examples that are shipped with the core (or used
2+
# by continuous integration tests), but are known to be currently failing for
3+
# this specific variant.
4+
5+
libraries/Ethernet/examples/UDPSendReceiveString
6+
libraries/Ethernet/examples/UdpNtpClient
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This file contains a list of examples that are shipped with the core (or used
2+
# by continuous integration tests), but are known to be currently failing for
3+
# this specific variant.
4+
5+
libraries/Ethernet/examples/UDPSendReceiveString
6+
libraries/Ethernet/examples/UdpNtpClient
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This file contains a list of examples that are shipped with the core (or used
2+
# by continuous integration tests), but are known to be currently failing for
3+
# this specific variant.
4+
5+
libraries/Ethernet/examples/UDPSendReceiveString
6+
libraries/Ethernet/examples/UdpNtpClient

0 commit comments

Comments
 (0)