Skip to content

GitPkgCommitsCheck: fix files check#393

Merged
arthurzam merged 1 commit intopkgcore:masterfrom
arthurzam:fix-commit-checks
May 26, 2022
Merged

GitPkgCommitsCheck: fix files check#393
arthurzam merged 1 commit intopkgcore:masterfrom
arthurzam:fix-commit-checks

Conversation

@arthurzam
Copy link
Copy Markdown
Member

When using _RemovalRepo for previous git state repo, it uses
UnconfiguredTree::_pkg_filter as default pkg_filter. During the
check for various bad file, it tries to parse the ebuild, which in
turn tries to check the usage around inherited eclasses - which
doesn't exist in this repo.

In theory, the setting of masters repo as the original one should
suffice, but it doesn't in practice. For now, let's copy the eclass
content so at least this very important check is done!

When using _RemovalRepo for previous git state repo, it uses
UnconfiguredTree::_pkg_filter as default pkg_filter. During the
check for various bad file, it tries to parse the ebuild, which in
turn tries to check the usage around inherited eclasses - which
doesn't exist in this repo.

In theory, the setting of masters repo as the original one should
suffice, but it doesn't in practice. For now, let's copy the eclass
content so at least this very important check is done!

Fixes: pkgcore#381
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
@arthurzam arthurzam force-pushed the fix-commit-checks branch from e6fb1a1 to 9ed3caa Compare May 26, 2022 19:37
@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2022

Codecov Report

Merging #393 (9ed3caa) into master (a411316) will decrease coverage by 0.02%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master     #393      +/-   ##
==========================================
- Coverage   95.68%   95.65%   -0.03%     
==========================================
  Files          55       55              
  Lines        7570     7573       +3     
  Branches     1843     1844       +1     
==========================================
+ Hits         7243     7244       +1     
- Misses        203      204       +1     
- Partials      124      125       +1     
Impacted Files Coverage Δ
src/pkgcheck/checks/git.py 97.09% <33.33%> (-0.51%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a411316...9ed3caa. Read the comment docs.

@arthurzam arthurzam merged commit 9ed3caa into pkgcore:master May 26, 2022
@arthurzam arthurzam deleted the fix-commit-checks branch May 26, 2022 20:43
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.

Add a commit check that detects removing non-redundant ("last with keyword") versions

1 participant