Skip to content

Commit dff8788

Browse files
[CI] Prefix lit timing blobs with platform
Windows and Linux might have vastly different test runtimes. We also end up with significantly fewer files on Windows and do not want to incur the overhead of unpacking/repacking a bunch of files that we never end up using.
1 parent 111844a commit dff8788

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.ci/cache_lit_timing_files.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import logging
1515
import multiprocessing.pool
1616
import pathlib
17+
import platform
1718
import glob
1819

1920
from google.cloud import storage
@@ -22,8 +23,9 @@
2223

2324

2425
def _maybe_upload_timing_file(bucket, timing_file_path):
26+
blob_prefix = f"lit_timing_{platform.system().lower()}/"
2527
if os.path.exists(timing_file_path):
26-
timing_file_blob = bucket.blob("lit_timing/" + timing_file_path)
28+
timing_file_blob = bucket.blob(blob_prefix + timing_file_path)
2729
timing_file_blob.upload_from_filename(timing_file_path)
2830

2931

0 commit comments

Comments
 (0)