-
Notifications
You must be signed in to change notification settings - Fork 595
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
o/snapstate: add some metadata to help with component remodeling #14939
o/snapstate: add some metadata to help with component remodeling #14939
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #14939 +/- ##
=========================================
Coverage ? 78.27%
=========================================
Files ? 1157
Lines ? 153506
Branches ? 0
=========================================
Hits ? 120161
Misses ? 25940
Partials ? 7405
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thu Jan 23 21:54:02 UTC 2025 Failures:Preparing:
Executing:
Restoring:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, comment/question
overlord/snapstate/snapmgr.go
Outdated
|
||
// ComponentExclusiveSetup is set if this SnapSetup exists only to deal with | ||
// components, and not the snap itself. | ||
ComponentExclusiveSetup bool `json:"component-exclusive-setup,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we s/Setup/Operation/ ? the snap setup still describes a snap but the operation it is involved with touches only components? can you point in the description of this where this is going to be consulted in the larger PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pointed to it here: https://github.com/canonical/snapd/pull/14933/files#r1920313619
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
9173c13
to
585ee25
Compare
…mponent-setup when installing a snap with components This indicates to ifacestate's setup-profiles handler that the setup-profiles should operate on a snap and a set of components, rather than a single component.
…s only associated with components or not
…used to create a recovery system
585ee25
to
92729a4
Compare
This change adds a field to SnapSetup for tracking if a SnapSetup comes from a task set that only deals with components.
Additionally, this adds an edge that points to the snap setup task that is created by many of the functions in snapstate. Since a task set might contain many snap-setup tasks, but we really only want to find one (especially now that a snap-setup task needs to carry a
component-setup-tasks
), we use this edge to pick the one that will have all the fields needed to help with remodeling.