File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -303,18 +303,18 @@ def read_maxmem_comparison_file(unit_tests_file):
303303 for line in openlog(unit_tests_file):
304304 if " exceeds" in line.lower ():
305305 err_cnt += 1
306- message_line = [ " -" ]
307- message_line.extend( line.split(" :" , 1)[-1].strip ().split(" " ) )
308- message_line.extend([ " \n" ] )
306+ message_line = ( " -" ,)
307+ message_line += line.split(" :" , 1)[-1].strip ().split(" " )
308+ message_line += ( " \n" , )
309309 errors_found.add(message_line)
310310 if err_cnt > 0:
311311 message = (
312312 " \n## Max Memory Comparisons exceeding threshold\n\n"
313313 " @cms-sw/core-l2 , I found %s workflow step(s) with memory usage exceeding the error threshold:\n"
314314 % err_cnt
315315 )
316- for message in sorted(errors_found, key=lambda s: s[2]):
317- message += " " .join(message )
316+ for message_line in sorted(errors_found, key=lambda s: s[2]):
317+ message += " " .join(message_line )
318318 send_message_pr(message)
319319
320320
You can’t perform that action at this time.
0 commit comments