Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Add SHA256 checksum for binary uploads to S3 #6172

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

abn
Copy link
Contributor

@abn abn commented Jan 15, 2025

This ensures binary uploads to S3 attaches a SHA256 checksum.

I am not familiar with this code base, but from what I can gather the S3 uploads seem to be missing SHA256 for various wheel file URLs. This seem to lead to missing wheel hashes at https://download.pytorch.org/. My guess is that the checksum is not available when it is retrieved when the html is generated.

With this change, it should ensure that the checksum is calculated before upload and attached to the object.

Relates-to: pytorch/pytorch#76557

Copy link

vercel bot commented Jan 15, 2025

@abn is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 15, 2025
This ensures binary uploads to S3 attaches a SHA256 checksum.
@abn abn force-pushed the ci/upload-object-checksum branch from b563325 to 8986f5b Compare January 16, 2025 02:43
@abn abn requested a review from clee2000 January 16, 2025 02:45
Copy link
Contributor

@atalman atalman left a comment

Choose a reason for hiding this comment

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

lgtm

@clee2000 clee2000 merged commit 5c23404 into pytorch:main Jan 22, 2025
30 of 31 checks passed
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Jan 22, 2025
Equivalent to pytorch/test-infra#6172 but for pytorch
Pull Request resolved: #144887
Approved by: https://github.com/atalman
@abn abn deleted the ci/upload-object-checksum branch January 23, 2025 12:49
atalman added a commit that referenced this pull request Jan 23, 2025
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Jan 31, 2025
Equivalent to pytorch/test-infra#6172 but for pytorch
Pull Request resolved: #144887
Approved by: https://github.com/atalman
mori360 pushed a commit to mori360/pytorch that referenced this pull request Feb 6, 2025
Equivalent to pytorch/test-infra#6172 but for pytorch
Pull Request resolved: pytorch#144887
Approved by: https://github.com/atalman
Tytskiy pushed a commit to Tytskiy/pytorch that referenced this pull request Feb 18, 2025
Equivalent to pytorch/test-infra#6172 but for pytorch
Pull Request resolved: pytorch#144887
Approved by: https://github.com/atalman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants