Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Conversation

seemethere
Copy link
Member

@seemethere seemethere commented Dec 8, 2020

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

Copy link
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

ACCEPTED_FILE_EXTENSIONS = ("whl", "zip")

# How many packages should we keep of a specific package?
KEEP_THRESHOLD = 20
Copy link
Contributor

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?

Comment on lines 16 to 23
for pkg in $(cat packages_to_delete); do
(
set -x
aws s3 rm ${DRY_RUN_FLAG} "${pkg}"
)
done
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seemethere seemethere force-pushed the prune_nightly_wheels branch 2 times, most recently from 7499803 to 7a13255 Compare December 10, 2020 00:08
@seemethere seemethere changed the title s3_management: Add tools to prune nightly builds s3_management: Add tools to generate HTML indices for S3 Dec 10, 2020
@seemethere seemethere force-pushed the prune_nightly_wheels branch 4 times, most recently from 7bc3cc3 to 00a1f18 Compare December 10, 2020 00:11
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>
@seemethere seemethere merged commit 0013cd9 into pytorch:master Dec 16, 2020
@seemethere seemethere deleted the prune_nightly_wheels branch December 16, 2020 22:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants