-
Notifications
You must be signed in to change notification settings - Fork 66
[16/n] send resolver status up via inventory #8300
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
[16/n] send resolver status up via inventory #8300
Conversation
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1 [skip ci]
Created using spr 1.3.6-beta.1 [skip ci]
|
Likely going to re-do this based on discussion today. |
Created using spr 1.3.6-beta.1 [skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1 [skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
| pub is_valid: bool, | ||
|
|
||
| /// A message describing the status. If `is_valid` is false, then this | ||
| /// message describes the reason for the invalid status. |
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.
What will the message describe if is_valid is true?
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.
In that case it's a textual representation of inventory that looks like:
5 artifacts in manifest generated by installinator (mupdate ID: 00000000-0000-0000-0000-000000000000): 5 valid, 0 mismatched, 0 errors:
- zone1.tar.gz: valid (5 bytes, a34f924efa72cd0139ea5dc268f5d2736a9ebc858552b8f3c8cb2bed1992c31d)
- zone2.tar.gz: valid (5 bytes, 930c5a9adbeb8410817a1dff05d7cbffe4ada2ddbeaacecadd7cbcb35a233231)
- zone3.tar.gz: valid (5 bytes, 0f40fdb255100d0239a7e0944c8b9fdb9ba4795ad72988eaeeb00e9346236e08)
- zone4.tar.gz: valid (5 bytes, 64d6e4a84209b4b02f4da36d24eae12b0d1ec9e414d1c3bd12a261a245148324)
- zone5.tar.gz: valid (5 bytes, 112b21db93f16057fa957a58b711bff40ec395c9147d4084a88c9085c6507bf7)
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.
Expanded the comment here and below.
andrewjstone
left a comment
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.
Looks good. Someday we will fix the redundant M.2 issues for all consumers.
|
|
||
| #[derive(Clone, Debug, PartialEq, Eq, Deserialize, JsonSchema, Serialize)] | ||
| pub struct ZoneArtifactInventory { | ||
| /// The filename. |
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.
Were these comments written by an LLM? They don't seem very helpful.
I do, on the other hand, think that header docs for each type could be useful. For example, what is a ZoneManifest or MupdateOverride.
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.
Actually no, I handwrote them 😭 -- I just like all pub fields being documented. I'll try adding some more information like "always ends with .tar.gz".
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.
Sorry, that was quite rude and untactful of me.
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.
Expanded the doc comments significantly, think it's much better now -- 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.
Expanded the doc comments significantly, think it's much better now -- thanks!
Looks great!
Created using spr 1.3.6-beta.1
Was working in this area, thought it would be a nice cleanup. Depends on: * #8300
Create:
representativeexampleDepends on: