Skip to content

Commit 6f3cb2b

Browse files
authored
Keep nightly 20231010 for ExecuTorch alpha 0.1 for now (#1642)
1 parent 2b17d68 commit 6f3cb2b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

s3_management/manage.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@
112112
# How many packages should we keep of a specific package?
113113
KEEP_THRESHOLD = 60
114114

115+
# TODO (huydhn): Clean this up once ExecuTorch has a new stable release that
116+
# match PyTorch stable release cadence. This nightly version is currently
117+
# referred to publicly in ExecuTorch alpha 0.1 release. So we want to keep
118+
# nightly binaries around for now
119+
KEEP_NIGHTLY_PACKAGES_FOR_EXECUTORCH = {datetime(2023, 10, 10, 0, 0)}
120+
115121
S3IndexType = TypeVar('S3IndexType', bound='S3Index')
116122

117123

@@ -201,7 +207,10 @@ def nightly_packages_to_show(self: S3IndexType) -> List[S3Object]:
201207
if package_name not in PACKAGE_ALLOW_LIST:
202208
to_hide.add(obj)
203209
continue
204-
if packages[package_name] >= KEEP_THRESHOLD or between_bad_dates(package_build_time):
210+
if package_build_time not in KEEP_NIGHTLY_PACKAGES_FOR_EXECUTORCH and (
211+
packages[package_name] >= KEEP_THRESHOLD
212+
or between_bad_dates(package_build_time)
213+
):
205214
to_hide.add(obj)
206215
else:
207216
packages[package_name] += 1

0 commit comments

Comments
 (0)