-
Notifications
You must be signed in to change notification settings - Fork 18
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
Check plugin version before indexing #624
Conversation
… api race condition
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
Wait hang on, I remember we used get_plugin_pypi_metadata somewhere else too, would that get affected?
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
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.
(GitHub won't let me delete this stale review - see latest comment)
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.
@potating-potato Thanks for looking into this! Some questions/thoughts:
Is the idea that we would wait for PyPI's non-versioned endpoint to "catch up" to the latest release? #611 was originally opened due to an observed lag (>4 hours) before certain plugins were showing up at all on the hub (see #611 (comment)). Do you think this lag is due to this issue with PyPI's non-versioned endpoint being out of date? If so, we would still expect this lag to continue, right?
I'm okay with merging this to fix the particular versioning conflict issue you summarized in #611 (comment), but let's leave #611 open so we can also address the lag -- it seems like PyPI's non-versioned endpoint isn't as reliable as we might've thought, and we might need to consider implementing option 2 in #608 sooner than later.
Yes we would still expect this lag to continue, right? I am assuming so at the moment, I will keep 611 open |
this address some problems identified in #611
perform a version check when indexing plugin metadata to prevent pypi api race condition, where the listing reports a newer version but history API is not up to date to use that version.