-
Notifications
You must be signed in to change notification settings - Fork 228
s3_management: Add tools to generate HTML indices for S3 #607
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
s3_management/manage.py
Outdated
ACCEPTED_FILE_EXTENSIONS = ("whl", "zip") | ||
|
||
# How many packages should we keep of a specific package? | ||
KEEP_THRESHOLD = 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a threshold of say 60 days?
s3_management/prune_nightly.sh
Outdated
for pkg in $(cat packages_to_delete); do | ||
( | ||
set -x | ||
aws s3 rm ${DRY_RUN_FLAG} "${pkg}" | ||
) | ||
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, why not delete it right from the .py script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to have an option to do a dry run for testing purposes and it turns out that boto3 does not have a dry run option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7499803
to
7a13255
Compare
7bc3cc3
to
00a1f18
Compare
Adds tools to generate the S3 HTML files. Also includes a mechanism for limiting the amount of nightly builds that are included in the S3 HTML files so that we don't get needlessly large indices. Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
00a1f18
to
b13f7f9
Compare
Refactors our S3 HTML index generation script to be written in python and have extra functionality like limiting nightly builds to a specific threshold
Signed-off-by: Eli Uriegas eliuriegas@fb.com