Skip to content
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

parts: use part validator from craft-parts #3909

Merged

Conversation

cmatsuoka
Copy link
Contributor

Use the common part validator implemented in craft-parts to validate part data against part and plugin models, and drop the local implementation.

Signed-off-by: Claudio Matsuoka claudio.matsuoka@canonical.com

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run make lint?
  • Have you successfully run pytest tests/unit?

Use the common part validator implemented in craft-parts to validate
part data against part and plugin models, and drop the local
implementation.

Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2022

Codecov Report

Merging #3909 (aeba1c2) into main (7cc2a52) will increase coverage by 0.80%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3909      +/-   ##
==========================================
+ Coverage   89.61%   90.41%   +0.80%     
==========================================
  Files          82       81       -1     
  Lines        5105     5093      -12     
==========================================
+ Hits         4575     4605      +30     
+ Misses        530      488      -42     
Impacted Files Coverage Δ
snapcraft/parts/__init__.py 100.00% <100.00%> (ø)
snapcraft/projects.py 96.41% <100.00%> (-0.01%) ⬇️
snapcraft/providers/_lxd.py 71.18% <0.00%> (ø)
snapcraft/providers/_multipass.py 63.79% <0.00%> (ø)
snapcraft/utils.py 84.88% <0.00%> (+0.58%) ⬆️
snapcraft/providers/_provider.py 94.00% <0.00%> (+2.69%) ⬆️
snapcraft/parts/lifecycle.py 83.13% <0.00%> (+11.65%) ⬆️
snapcraft/providers/_logs.py 80.00% <0.00%> (+45.00%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sergiusens sergiusens merged commit 8ae29b7 into canonical:main Sep 9, 2022
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.

None yet

3 participants