Skip to content

Sync versions: don't fetch/return all versions #8114

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

Merged
merged 5 commits into from
Apr 19, 2021

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Apr 19, 2021

We were using this only for logging,
retrieving all versions from the db and making an string from it
may be expensive.

This may be related to the OOM error, but hard to say.
Didn't see anything else that may be causing this.

We were using this only for logging,
retrieving all versions from the db and making an string from it
may be expensive.

This may be related to the OOM error, but hard to say.
Didn't see anything else that may be causing this.
self.assertEqual(
set(self.pip.versions.all().values_list('slug', flat=True)),
{'master', 'latest', 'stable', '0.8.1', '0.8', 'to_add'},
)
Copy link
Member Author

Choose a reason for hiding this comment

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

the other tests were already checking the versions from the db instead of the return value :)

@stsewd stsewd requested a review from a team April 19, 2021 16:17
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

This seems good to get out, seems likely to be our issue.

@stsewd stsewd merged commit b673130 into master Apr 19, 2021
@stsewd stsewd deleted the sync-versions-dont-log-everything branch April 19, 2021 18:21
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.

2 participants