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

Downgrade packaging. #1270

Merged
merged 3 commits into from
May 4, 2023
Merged

Downgrade packaging. #1270

merged 3 commits into from
May 4, 2023

Conversation

oliverchang
Copy link
Collaborator

pypa/packaging#321 removed support for parsing legacy PyPI versions, which we needed to make our version enumeration/sorting work.

This upgrade happened in
f968260, but somehow we didn't notice this breakage.

pypa/packaging#321 removed support for parsing
legacy PyPI versions, which we needed to make our version
enumeration/sorting work.

This upgrade happened in
f968260,
but somehow we didn't notice this breakage.
@oliverchang
Copy link
Collaborator Author

Also CC @di if there are better workarounds for us here other than downgrading?

@oliverchang
Copy link
Collaborator Author

oliverchang commented May 4, 2023

I noticed this from https://github.com/pypa/advisory-database/actions/runs/4878347479/jobs/8703902390

Looking at our GCP logs, I don't see any instances of "packaging.version.InvalidVersion" in the past 30 days. It's possible we've just gotten lucky with not running into this in prod.

There were a small number of instances on prod over the past 30 days, but it somehow slipped through the cracks for us.

@andrewpollock
Copy link
Contributor

but somehow we didn't notice this breakage

So how did we eventually notice the breakage and what needs to be done differently so we don't miss it? (i.e. what's the mini-postmortem learning here?)

@oliverchang
Copy link
Collaborator Author

but somehow we didn't notice this breakage

So how did we eventually notice the breakage and what needs to be done differently so we don't miss it? (i.e. what's the mini-postmortem learning here?)

I noticed separately via https://github.com/pypa/advisory-database/actions/runs/4878347479/jobs/8703902390

The error was on our error dashboard: https://pantheon.corp.google.com/errors/detail/CNGT29fs5Oj_DA;service=gke_instances?project=oss-vdb but we did not notice it :(

@oliverchang oliverchang enabled auto-merge (squash) May 4, 2023 02:59
@di
Copy link
Member

di commented May 4, 2023

Also CC @di if there are better workarounds for us here other than downgrading?

You can use https://pypi.org/p/packaging-legacy as a drop-in replacement.

@oliverchang
Copy link
Collaborator Author

Also CC @di if there are better workarounds for us here other than downgrading?

You can use https://pypi.org/p/packaging-legacy as a drop-in replacement.

Ah awesome, thanks Dustin!

@oliverchang oliverchang merged commit d14f916 into master May 4, 2023
@oliverchang oliverchang deleted the downgrade-packaging branch May 4, 2023 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants