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

refactor(rubygems): Unify fetching via v1 API #23517

Merged
merged 21 commits into from Jul 23, 2023

Conversation

zharinov
Copy link
Collaborator

@zharinov zharinov commented Jul 23, 2023

Changes

  • Use single logic of fetching via /v1/versions/foobar.json with additional metadata in /v1/gems/foobar.json
  • Disable caching for endpoints that meant to be non-standard.

Context

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 select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@zharinov
Copy link
Collaborator Author

@zharinov zharinov marked this pull request as ready for review July 23, 2023 10:51
@zharinov zharinov requested a review from viceice July 23, 2023 10:51
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.

why do we loose the package caching? otherwise LGTM

lib/modules/datasource/rubygems/index.ts Show resolved Hide resolved
@zharinov zharinov marked this pull request as draft July 23, 2023 12:57
@zharinov zharinov marked this pull request as ready for review July 23, 2023 12:57
@zharinov zharinov requested a review from viceice July 23, 2023 13:05
@zharinov
Copy link
Collaborator Author

I have no idea how to fix coverage regression, Codecov isn't too helpful

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.

I think we need a global flag to also cache private packages on self-hosted renovate. currently mostly need npm, nuget, helm, docker and terraform. 🙃

@viceice viceice added this pull request to the merge queue Jul 23, 2023
@zharinov
Copy link
Collaborator Author

Agreed. I think our caching is quite complex, and we rarely cover it in tests.

Merged via the queue into renovatebot:main with commit 3559cb3 Jul 23, 2023
76 of 81 checks passed
@viceice viceice deleted the refactor/unify-v1-fetching branch July 23, 2023 13:25
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 36.21.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2023
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.

None yet

3 participants