-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Feature] Standardize uv
Package Fetcher, Extend Latest Version Finder, and Enable Cooldown Filtering via Feature Flag
#11804
Conversation
implement generic latest version finder pass cooldown parameter
extend T::Sig | ||
|
||
require_relative "index_finder" |
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.
Review: Uses generic Dependabot::Package::PackageLatestVersionFinder similar to as how python is using.
end | ||
end | ||
end | ||
end |
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.
Review: Fetcher is duplication from python
ecosystem. Except package manager being
uveverything is same as
pip` ecosystem. We do use same api to get releases for dependencies.
@raise_on_ignored = raise_on_ignored | ||
@security_advisories = security_advisories | ||
end | ||
|
||
def latest_resolvable_version | ||
latest_version_finder.latest_version(python_version: language_version_manager.python_version) | ||
latest_version_finder.latest_version(language_version: language_version_manager.python_version) | ||
end |
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.
Review Tip: In generic method instead of python we accept language_version since that is used across ecosystem.
dependency: dependency, | ||
dependency_files: dependency_files, | ||
credentials: credentials | ||
).fetch | ||
end |
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.
Review Tip: We are fetching files in standard format and returning that to generic latest version finder so it can use the standard format filter out version properly.
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.
Looks good @kbukum1
What are you trying to accomplish?
This PR enhances the
uv
ecosystem by:package_release_details
format, ensuring compatibility with cooldown filtering.enable_cooldown_for_uv
) to:Completed Tasks:
✅ [Task] Standardize
uv
Package Fetcher to Support Generic Package Release Details✅ [Task] Extend
uv
Ecosystem Latest Version Finder to Use Generic Latest Version Finder✅ [Task] Use
enable_cooldown_for_uv
to enable fetching from JSON API✅ [Task] Use
enable_cooldown_for_uv
to Enable Cooldown FilteringThese changes improve dependency resolution for
uv
, ensure consistent package data retrieval, and allow for cooldown-based filtering using structured release details.What issues does this affect or fix?
uv
package fetcher now returns structured package release details, including release dates, which are required for cooldown filtering.enable_cooldown_for_uv
allows incremental activation of:Anything you want to highlight for special attention from reviewers?
enable_cooldown_for_uv
has been added to:How will you know you've accomplished your goal?
uv
package fetcher correctly retrieves structured package release details, including release dates.uv
latest version finder inherits from the generic latest version finder and applies cooldown filtering.enable_cooldown_for_uv
correctly controls:Checklist