Skip to content

Conversation

@clee2000
Copy link
Contributor

@clee2000 clee2000 commented Oct 16, 2025

Delete previous metadata when new wheel is uploaded

This way, if the lambda fails, there will not be stale data

Testing:
checked on something that doesn't have a metadata file already
checked on something that does have metadata file already

I think it might be better if the metadata is uploaded with the binary, maybe add some s3 metadata to the binary and whl to show theyre in sync, then the lambda deletes metadata whose sync tag doesn't match the binary's

If the binary is uploaded manually, then it there won't be metadata, but I'm not sure how often this happens. Also domains that do custom stuff? but idk how often this happens either. Also additional packages that get uploaded to the index?

@vercel
Copy link

vercel bot commented Oct 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Updated (UTC)
torchci Ignored Ignored Oct 16, 2025 6:14pm

@meta-cla meta-cla 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 Oct 16, 2025
@clee2000 clee2000 changed the title [whls] metadata lambda to delete existing metadata [binaries] metadata lambda to delete existing metadata Oct 16, 2025
@clee2000 clee2000 marked this pull request as ready for review October 16, 2025 18:34
@clee2000 clee2000 requested a review from atalman October 16, 2025 18:35
@clee2000 clee2000 merged commit 41c6236 into main Oct 16, 2025
7 checks passed
@clee2000 clee2000 deleted the csl/metadata_delete branch October 16, 2025 22:08
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.

3 participants