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

feat: pypi public package caching #8477

Merged
merged 3 commits into from
Jan 31, 2021
Merged

feat: pypi public package caching #8477

merged 3 commits into from
Jan 31, 2021

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented Jan 31, 2021

Changes:

Adds automated datasource caching, with PyPI as the first implementation.

Context:

Part of #8473

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added unit tests, or
  • Unit tests + ran on a real repository

@rarkins rarkins requested a review from viceice January 31, 2021 08:46
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

Just a question, otherwise LGTM

const res = await datasource.getReleases({ ...config, registryUrl });
// cache non-null responses unless marked as private
Copy link
Member

Choose a reason for hiding this comment

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

why only non-null?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Trying to avoid blocking a private package with wrong or missing credentials being blocked by someone with correct credentials.

Ie null can mean "private package without proper credentials"

@rarkins rarkins merged commit 94be71c into master Jan 31, 2021
@rarkins rarkins deleted the feat/pypi-caching branch January 31, 2021 09:46
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 24.32.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants