Skip to content

RedundantVersionCheck: consider profile masks during check#466

Merged
gentoo-bot merged 1 commit intopkgcore:masterfrom
arthurzam:fix-redundant-masks
Oct 12, 2022
Merged

RedundantVersionCheck: consider profile masks during check#466
gentoo-bot merged 1 commit intopkgcore:masterfrom
arthurzam:fix-redundant-masks

Conversation

@arthurzam
Copy link
Copy Markdown
Member

@arthurzam arthurzam commented Oct 11, 2022

When checking for redundant version, also check that on a profile doesn't exist where the package is visible, but all later versions aren't, which means that this package isn't redundant on that profile.

Resolves: #465

To Do:

  • Add tests for all cases (there are a lot)
  • Compare the diff between with and without this patch, to see which RedundantVersion we "lost" and check validity of them.

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 12, 2022

Codecov Report

Base: 81.13% // Head: 81.15% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (bbc93a3) compared to base (8b44b69).
Patch coverage: 90.47% of modified lines in pull request are covered.

❗ Current head bbc93a3 differs from pull request most recent head 6b16296. Consider uploading reports for the commit 6b16296 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #466      +/-   ##
==========================================
+ Coverage   81.13%   81.15%   +0.01%     
==========================================
  Files          55       55              
  Lines        7900     7918      +18     
  Branches     1765     1772       +7     
==========================================
+ Hits         6410     6426      +16     
  Misses       1392     1392              
- Partials       98      100       +2     
Impacted Files Coverage Δ
src/pkgcheck/checks/cleanup.py 96.42% <89.47%> (-3.58%) ⬇️
src/pkgcheck/addons/profiles.py 96.17% <100.00%> (+0.03%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

When checking for redundant version, also check that on a profile
doesn't exist where the package is visible, but all later versions
aren't, which means that this package isn't redundant on that profile.

Resolves: pkgcore#465
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
@arthurzam arthurzam force-pushed the fix-redundant-masks branch from bbc93a3 to 6b16296 Compare October 12, 2022 17:40
@gentoo-bot gentoo-bot merged commit 6b16296 into pkgcore:master Oct 12, 2022
@arthurzam arthurzam deleted the fix-redundant-masks branch October 12, 2022 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pkgcheck scan -k RedundantVersion doesn't consider package.mask

2 participants