File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,7 @@ def get_bad_check_runs(query_check_runs):
171
171
more_pages = True
172
172
173
173
run_types = ["failed" , "incomplete" ]
174
-
175
- regex_matrix = re .compile (r"^\S+ \/ (build|run) \(\S+\)$" )
174
+ have_dependent_jobs = ["scheduler" , "mpy-cross" , "tests" ]
176
175
177
176
while more_pages :
178
177
check_runs = query_check_runs .fetch ()["data" ]["node" ]
@@ -184,14 +183,15 @@ def get_bad_check_runs(query_check_runs):
184
183
185
184
for check_run in check_runs [run_type ]["nodes" ]:
186
185
name = check_run ["name" ]
187
- if name .startswith ("ports" ) or regex_matrix .search (name ):
188
- matrix = name .split (" " , 1 )[0 ]
186
+
187
+ if any ([name .startswith (job ) for job in have_dependent_jobs ]):
188
+ return {}
189
+
190
+ if name .startswith ("ports" ):
189
191
matrix_job = name .rsplit (" (" , 1 )[1 ][:- 1 ]
190
- bad_runs .setdefault (matrix , []).append (matrix_job )
191
- elif name != "scheduler" :
192
- bad_runs [name ] = True
192
+ bad_runs .setdefault ("ports" , []).append (matrix_job )
193
193
else :
194
- return {}
194
+ bad_runs [ name ] = True
195
195
196
196
if query_check_runs .paginate (
197
197
check_runs [run_type ]["pageInfo" ], "after" + run_type_camel
Original file line number Diff line number Diff line change @@ -98,9 +98,6 @@ def set_output(name: str, value):
98
98
99
99
100
100
def set_boards (build_all : bool ):
101
- if last_failed_jobs .get ("mpy-cross" ) or last_failed_jobs .get ("tests" ):
102
- build_all = True
103
-
104
101
# Get boards in json format
105
102
boards_info_json = build_board_info .get_board_mapping ()
106
103
all_board_ids = set ()
You can’t perform that action at this time.
0 commit comments