-
Notifications
You must be signed in to change notification settings - Fork 519
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
updog: Make check-update wave aware #615
Conversation
While wave awareness should be default, I think we'll want to add a flag to |
While this technically doesn't change that ( |
9e2c4d6
to
ad134af
Compare
Updated so that |
ad134af
to
6c51a6e
Compare
workspaces/updater/updog/src/main.rs
Outdated
@@ -336,6 +337,26 @@ fn update_flags() -> Result<()> { | |||
Ok(()) | |||
} | |||
|
|||
/// List any available update that matches the current flavor, ignoring waves | |||
fn list_updates(manifest: &Manifest, flavor: &str, json: bool) -> Result<()> { |
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.
This, and other "flavor" references, should be updated to reflect the usage of "variant" vs "flavor".
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.
Chatted offline, we're holding off for a dedicated changeset!
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.
nit: It looks like the args in applicable_updates
were updated to use variant
, should this usage also then be updated to match?
fbb3375
to
6a2ae66
Compare
Updated to remove that stray |
6a2ae66
to
af034c3
Compare
af034c3
to
f022f83
Compare
Updated to use "ignore_waves" consistently, update the help text for |
f022f83
to
9182ec6
Compare
Rebased and fixed up some trailing "flavor" usage. |
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.
Changes LGTM, albeit with one nit-picky question on flavor/variant usage.
workspaces/updater/updog/src/main.rs
Outdated
@@ -336,6 +337,26 @@ fn update_flags() -> Result<()> { | |||
Ok(()) | |||
} | |||
|
|||
/// List any available update that matches the current flavor, ignoring waves | |||
fn list_updates(manifest: &Manifest, flavor: &str, json: bool) -> Result<()> { |
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.
nit: It looks like the args in applicable_updates
were updated to use variant
, should this usage also then be updated to match?
Change the behaviour of check-update to not return any update unless the wave for the update that Updog is in is also ready. If no update is available or ready, Updog will now also return an error instead of succeeding silently. Signed-off-by: Samuel Mendoza-Jonas <[email protected]>
9182ec6
to
a1d3bce
Compare
@jahkeup good catch, fixed up! |
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.
🚢 🚀
Issue #, if available:
N/A
Description of changes:
Change the behaviour of check-update to not return any update unless the
wave for the update that Updog is in is also ready.
If no update is available or ready, Updog will now also return an error
instead of succeeding silently.
Signed-off-by: Samuel Mendoza-Jonas [email protected]
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.