-
Notifications
You must be signed in to change notification settings - Fork 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
Fixes pip-compile file matcher for metric collection #11174
base: main
Are you sure you want to change the base?
Conversation
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.
Do we need an additional test?
@@ -337,7 +337,7 @@ def check_requirements(requirements) | |||
end | |||
|
|||
def pipcompile_in_file | |||
requirement_files.any? { |f| f.end_with?(".in") } | |||
requirement_files.any? { |f| f.name.end_with?(PipCompilePackageManager::MANIFEST_FILENAME) } |
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.
can we have a unit test covering this?
fa441a0
to
5e9bcf7
Compare
5e9bcf7
to
ec8b302
Compare
@@ -881,6 +881,18 @@ | |||
) | |||
end | |||
end | |||
|
|||
it "returns the correct ecosystem and package manager set" do | |||
parser.parse do |parser| |
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.
I don't think you need parser.parse
at all. It can just be parser.ecosystem
What are you trying to accomplish?
Fixed issue where we were not able to capture pip-compile package manager in metric collection.
Anything you want to highlight for special attention from reviewers?
How will you know you've accomplished your goal?
Checklist