File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ jobs:
201201 persist-credentials : false
202202 sparse-checkout : |
203203 extra/ci_test_list.sh
204+ extra/artifacts/
204205
205206 - uses : actions/download-artifact@v4
206207 with :
Original file line number Diff line number Diff line change 22
33# wget -nv $(curl -s https://api.github.com/repos/arduino-libraries/ArduinoBLE/releases/latest | jq -r '.tarball_url') -O ArduinoBLE.tar.gz
44# tar zxf ArduinoBLE.tar.gz && mv arduino-libraries-ArduinoBLE* ArduinoCore-zephyr/libraries/ArduinoBLE
5- wget -nv https://github.com/arduino-libraries/ArduinoBLE/archive/refs/heads/master.tar.gz
5+ wget -nv " https://github.com/arduino-libraries/ArduinoBLE/archive/refs/heads/master.tar.gz"
66tar zxf master.tar.gz && mv ArduinoBLE-master ArduinoCore-zephyr/libraries/ArduinoBLE
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ def process_build_reports():
177177 artifacts = set (item ['artifact' ] for item in ALL_BOARD_DATA )
178178
179179 # Print the recap table
180+ ci_run_passed = True
180181 print ("<table>\n <tr><th>Artifact</th><th>Board</th><th>Status</th><th>Tests</th><th>Warnings</th><th>Errors</th></tr>" )
181182
182183 for artifact in sorted (list (artifacts ), reverse = True ):
@@ -217,6 +218,15 @@ def process_build_reports():
217218 print (f"<td>{ TEST_LEGEND [status ]} </td></tr>" )
218219 print ("</table></details>\n " )
219220
221+ for artifact in artifacts :
222+ artifact_boards = [ item ['board' ] for item in ALL_BOARD_DATA if item ['artifact' ] == artifact ]
223+ failed_boards = [ f"`{ board } `" for board in artifact_boards if BOARD_SUMMARY [board ]['status' ] in (ERROR , FAILURE ) ]
224+
225+ if failed_boards :
226+ print ("> [!CAUTION]" )
227+ print (f"> `{ artifact } ` is blocked due to failures on { ', ' .join (failed_boards )} !" )
228+ ci_run_passed = False
229+
220230 for artifact in sorted (list (artifacts ), reverse = True ):
221231 artifact_boards = [ item ['board' ] for item in ALL_BOARD_DATA
222232 if item ['artifact' ] == artifact and BOARD_SUMMARY [item ['board' ]]['status' ] != FAILURE ]
@@ -302,5 +312,8 @@ def process_build_reports():
302312 print (text )
303313 print ("</table></details>\n " )
304314
315+ if not ci_run_passed :
316+ sys .exit (1 )
317+
305318if __name__ == "__main__" :
306319 process_build_reports ()
You can’t perform that action at this time.
0 commit comments