Skip to content

Commit 1be2724

Browse files
committed
Use tuple instead of list
1 parent 8091b00 commit 1be2724

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

report-pull-request-results.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)