CI: Fix timing search paths to ignore bootstrap (#40677)

This commit is contained in:
kwryankrattiger
2023-12-28 18:24:37 -06:00
committed by GitHub
parent 379eeda576
commit d52fda6015
2 changed files with 11 additions and 3 deletions

View File

@@ -28,9 +28,17 @@ def find_logs(prefix, filename):
# Aggregate the install timers into a single json
data = []
# Look in the CWD for logs
local_log_path = os.path.join(os.path.getcwd(), args.log)
if os.path.exists(local_log_path):
with open(local_log_path) as fd:
data.append(json.load(fd))
# Look in the list of prefixes for logs
for prefix in prefixes:
time_logs = find_logs(prefix, args.log)
for log in time_logs:
logs = find_logs(prefix, args.log)
for log in logs:
with open(log) as fd:
data.append(json.load(fd))