-
Notifications
You must be signed in to change notification settings - Fork 52
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
Unique validator for packaging metadata (BugFix) #920
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #920 +/- ##
==========================================
+ Coverage 37.50% 37.59% +0.09%
==========================================
Files 313 313
Lines 34809 34835 +26
Branches 5983 5987 +4
==========================================
+ Hits 13055 13097 +42
+ Misses 21174 21154 -20
- Partials 580 584 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
So we went from unpredictable behavior, to a predictable one. Having two units like that is/was a problem, so if we're breaking something with your changes, we really are just shedding light on the problem. I wouldn't go as far as calling it a breaking change. |
Okey, I will change it to "BugFix" then |
Check if a packaging metadata unit contains the same package name during the validation step
a74cd0d
to
df6635b
Compare
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.
If I understand the code correctly, the "Depends" field in the meta were capitalized because they are one-offs (type-like). But the code proposed here adds properties based on that section name (Capitalized), so the field name should be lowercase.
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.
Thanks for the explanations. This warrants a +1 now.
* Added validation check for same package Check if a packaging metadata unit contains the same package name during the validation step * Updated documentation * Increased test coverage
* Added validation check for same package Check if a packaging metadata unit contains the same package name during the validation step * Updated documentation * Increased test coverage
Description
This PR is a follow up of #909. We were missing a check during the validation phase to make sure that there are not repeated packages in the packaging metadata files.
For that purpose, we have used the
UniqueValueValidator
for theDepends
,Recommends
andSuggests
fields of the packaging metadata units, so they can't be repeated.This change is not probable to make any break in previous versions, but it is possible if some package metadata units were using the same package twice.
Resolved issues
Closes CHECKBOX-1062
Documentation
Updated packaging-meta-data.rst
Tests
To run the new packaging tests: