secboot: complete the decision for auto-repair/reprovision - #17386
secboot: complete the decision for auto-repair/reprovision#17386valentindavid wants to merge 4 commits into
Conversation
|
Fri Jul 24 17:04:39 UTC 2026 Failures:Preparing:
Executing:
Restoring:
Skipped tests from snapd-testing-skipIf you wish to have any of the below tests run in your PR, in your PR description, add 'unskip:' followed by a copy-and-pasted list of the below tests you wish to run (unskip plus test list must be valid yaml)
|
760871f to
a8ad444
Compare
2a42006 to
ab5c05f
Compare
ab5c05f to
a1e889f
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #17386 +/- ##
==========================================
+ Coverage 78.84% 78.85% +0.01%
==========================================
Files 1411 1407 -4
Lines 196727 196843 +116
Branches 2462 2462
==========================================
+ Hits 155111 155225 +114
- Misses 32280 32283 +3
+ Partials 9336 9335 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
a1e889f to
baf70d4
Compare
| DiskModel() string | ||
| } | ||
|
|
||
| type RemedialActions struct { |
There was a problem hiding this comment.
can give a doc comment to this? and also to the fields?
| DiskModel() string | ||
| } | ||
|
|
||
| // RemedialActions is a set of action recommended to repair detected |
There was a problem hiding this comment.
| // RemedialActions is a set of action recommended to repair detected | |
| // RemedialActions is a set of actions recommended to repair detected |
| // If the attempt fails, then it means a reprovision is required. | ||
| AttemptRepair bool | ||
| // RequireReprovision tells whether issues require a reprovision | ||
| // and it was detected that auto repair would not be enough. |
There was a problem hiding this comment.
| // and it was detected that auto repair would not be enough. | |
| // and it was detected that auto-repair would not be enough. |
| type repairState struct { | ||
| Result AutoRepairResult `json:"result"` | ||
| Result AutoRepairResult `json:"result"` | ||
| Recommendations []RecommendedRemedialAction `json:"recommendations,omitempty"` |
There was a problem hiding this comment.
does it make sense for future proofing to make it map[RecommendedRemedialAction]any? so that if we need to augment an action with args we could because we will be stuck with that API unless we deprecate the field.
There was a problem hiding this comment.
In order to add "input" to the action? We can add extra fields for them.
There was a problem hiding this comment.
how would we add extra fields if it's a list of strings?
There was a problem hiding this comment.
do you mean something like: recommendation-args?
ZeyadYasser
left a comment
There was a problem hiding this comment.
LGTM, Thank you! only a remark on recommendation args
| type repairState struct { | ||
| Result AutoRepairResult `json:"result"` | ||
| Result AutoRepairResult `json:"result"` | ||
| Recommendations []RecommendedRemedialAction `json:"recommendations,omitempty"` |
There was a problem hiding this comment.
how would we add extra fields if it's a list of strings?
| type repairState struct { | ||
| Result AutoRepairResult `json:"result"` | ||
| Result AutoRepairResult `json:"result"` | ||
| Recommendations []RecommendedRemedialAction `json:"recommendations,omitempty"` |
There was a problem hiding this comment.
do you mean something like: recommendation-args?
No description provided.