Skip to content

AcctCheck: use metadata/qa-policy.conf for dynamic id range#489

Merged
gentoo-bot merged 1 commit intopkgcore:masterfrom
arthurzam:id-ranges-file
Oct 31, 2022
Merged

AcctCheck: use metadata/qa-policy.conf for dynamic id range#489
gentoo-bot merged 1 commit intopkgcore:masterfrom
arthurzam:id-ranges-file

Conversation

@arthurzam
Copy link
Copy Markdown
Member

Load UID and GID range from metadata/qa-policy.conf under the repo, validate the format is as expected, and use the values to set expected ids.

Resolves: #356


I mainly need a review of the class' docs changes I did, that they are sane.

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 30, 2022

Codecov Report

Base: 81.05% // Head: 81.11% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (4e69c9d) compared to base (be9e91b).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #489      +/-   ##
==========================================
+ Coverage   81.05%   81.11%   +0.05%     
==========================================
  Files          55       55              
  Lines        8040     8063      +23     
  Branches     1805     1810       +5     
==========================================
+ Hits         6517     6540      +23     
  Misses       1425     1425              
  Partials       98       98              
Impacted Files Coverage Δ
src/pkgcheck/checks/acct.py 100.00% <100.00%> (ø)

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.

Comment thread src/pkgcheck/checks/acct.py Outdated
Comment thread src/pkgcheck/checks/acct.py Outdated
Comment thread src/pkgcheck/checks/acct.py Outdated
Comment thread src/pkgcheck/checks/acct.py Outdated
Comment thread src/pkgcheck/checks/acct.py Outdated
Comment thread src/pkgcheck/checks/acct.py Outdated
Comment thread src/pkgcheck/checks/acct.py Outdated
Comment thread src/pkgcheck/checks/acct.py Outdated
Load UID and GID range from metadata/qa-policy.conf under the repo,
validate the format is as expected, and use the values to set expected
ids.

Resolves: pkgcore#356
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
@gentoo-bot gentoo-bot merged commit 4e69c9d into pkgcore:master Oct 31, 2022
@gentoo-bot gentoo-bot temporarily deployed to github-pages October 31, 2022 18:55 Inactive
@arthurzam arthurzam deleted the id-ranges-file branch November 10, 2022 19:31
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.

checks/acct.py hardcodes range for system accounts

3 participants