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

c/snap-bootstrap: split CVM related functionality in separate files #14789

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sespiros
Copy link
Contributor

@sespiros sespiros commented Dec 3, 2024

As requested in #14713 (review)

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 46.15385% with 28 lines in your changes missing coverage. Please review.

Project coverage is 78.19%. Comparing base (96ea7b0) to head (08878d0).
Report is 150 commits behind head on master.

Files with missing lines Patch % Lines
cmd/snap-bootstrap/cmd_initramfs_mounts_cvm.go 46.15% 20 Missing and 8 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #14789      +/-   ##
==========================================
- Coverage   78.95%   78.19%   -0.76%     
==========================================
  Files        1084     1150      +66     
  Lines      146638   151324    +4686     
==========================================
+ Hits       115773   118331    +2558     
- Misses      23667    25659    +1992     
- Partials     7198     7334     +136     
Flag Coverage Δ
unittests 78.19% <46.15%> (-0.76%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@pedronis pedronis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, couple of small comments

defaultCVMDisk = &disks.MockDiskMapping{
Structure: []disks.Partition{
seedPart,
cvmEncPart,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we move cvmEncPart to this file too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I missed that one. Added.

return "signed"
}

func generateMountsModeRunCVM(mst *initramfsMountsState) error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably a good idea to have a doc comment attached to this one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

Copy link
Member

@alfonsosanchezbeato alfonsosanchezbeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

Copy link
Collaborator

@pedronis pedronis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

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.

3 participants