Repository navigation
Fix masked license validation test names (#5257) - #5263
harishwargad wants to merge 5 commits into
Conversation
Signed-off-by: harishwargad <harishwargad@gmail.com>
AyanSinhaMahapatra
left a comment
There was a problem hiding this comment.
Thanks @harishwargad see comments for changes
Signed-off-by: harishwargad <harishwargad@gmail.com>
e71c0f1 to
549666f
Compare
|
Thanks for reviewing! I've updated the PR with your requested changes:
All local pytest checks are passing cleanly. Ready for your review! |
|
Hello @AyanSinhaMahapatra, just wanted to drop a gentle reminder. The requested changes have been implemented! |
Shriprasad-P
left a comment
There was a problem hiding this comment.
Review
PR: Fix masked license validation test names (#5257)
Touched: AUTHORS.rst, CHANGELOG.rst, src/licensedcode/data/rules/cnri-python-1.6_19.RULE, src/licensedcode/data/rules/proprietary_155.RULE, tests/licensedcode/test_rule_file_names.py
- Addresses a concrete correctness/reliability issue based on the title and diff.
- Includes or touches tests — good for locking the behavior.
- Size looks manageable (+27/-0).
Commenting as a drive-by reviewer after reading the diff. Happy to look again if maintainers want a deeper pass on a specific file.
|
Thank you @Shriprasad-P for the review =) |
|
Hi @AyanSinhaMahapatra , Gentle ping on this when you get a moment to review! All changes requested earlier are in place, and 31/33 CI checks are passing. I looked into the remaining failure in Happy to sync the branch once |
Fixes #5257
Summary
This PR addresses issue #5257 where license rule file pairs mapped to the exact same dynamically generated Python validation test method names (e.g.,
cnri-python-1.6.1.RULEandcnri-python-1.6_1.RULEboth producingcnri_python_1_6_1_rule), causing tests to overwrite/mask each other during dynamic test generation.Building on the initial test setup from stale PR #5258, this PR completes the rule file renames.
Changes Made
cnri-python-1.6_1.RULE->cnri-python-1.6-v1.RULEandproprietary_10.RULE->proprietary_10_alt.RULEusinggit mvso generated safe Python method names are unique.tests/licensedcode/test_rule_file_names.pyto ensure all rule file names generate unique safe Python method names in the future.CHANGELOG.rstandAUTHORS.rst.Tasks
Run tests locally to check for errors.
Signed-off-by: @harishwargad