-
Notifications
You must be signed in to change notification settings - Fork 16
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
(feat): Warning users about create OSTree static deltas before rolling out waves #285
(feat): Warning users about create OSTree static deltas before rolling out waves #285
Conversation
3db8013
to
854ab1c
Compare
5f63f5e
to
7ded640
Compare
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.
Left some minor, and optional suggestions.
subcommands/waves/init.go
Outdated
OTA update download. Please, consider generating a static delta for targets using: | ||
$ fioctl targets static-deltas | ||
|
||
You can then cancel this wave and create a new one for a target with a static delta. |
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.
You can then cancel this wave and create a new one for a target with a static delta. | |
You can then cancel the wave and create a new one by using a static delta. |
Optional suggestion! Just shortening the sentence a bit.
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.
@kprosise @camilamacedo86 This suggestion makes a message somewhat misleading.
A user cannot create a wave by using a static delta, but a user can create a wave for a target which has static deltas defined.
So, I suggest to either revert this message to its original, or make a new suggestion which provides a more accurate context to the user.
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.
I agree. Good point.
…g out waves Signed-off-by: Camila Macedo <[email protected]>
7ded640
to
df7ac89
Compare
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.
@camilamacedo86 please, make a follow-up PR to address the 2 comments from me.
We recommend that you generate static deltas for your production targets to optimize | ||
OTA update download. Consider generating a static delta for targets using: |
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.
We use the semantic newlines in help messages.
Please, see the related section in the style guide.
We recommend that you generate static deltas for your production targets to optimize | |
OTA update download. Consider generating a static delta for targets using: | |
We recommend that you generate static deltas for your production targets to optimize OTA update download. | |
Consider generating a static delta for targets using: |
The line length is absolutely irrelevant here, as long as the sentence fits within 25 words.
WARNING: You created a wave for a target version without static deltas. | ||
|
||
We recommend that you generate static deltas for your production targets to optimize | ||
OTA update download. Consider generating a static delta for targets using: | ||
$ fioctl targets static-deltas | ||
|
||
You can then cancel the wave and create a new one by using a static delta. |
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.
Same about semantic newlines:
WARNING: You created a wave for a target version without static deltas. | |
We recommend that you generate static deltas for your production targets to optimize | |
OTA update download. Consider generating a static delta for targets using: | |
$ fioctl targets static-deltas | |
You can then cancel the wave and create a new one by using a static delta. | |
WARNING: You created a wave for a target version without static deltas. | |
We recommend that you generate static deltas for your production targets to optimize OTA update download. | |
Consider generating a static delta for targets using: | |
$ fioctl targets static-deltas | |
You can then cancel the wave and create a new one for a target which has static deltas defined. |
This also incorporates my above suggestion about using static deltas.
Other than above, this LGTM. |
Adds a warning message to inform users about the recommendation to use Static Deltas to optimize OTA downloads.
The message only appears when users create weaves that do not have static deltas.
Local tests:
When no Static Deltas are in place: