-
Notifications
You must be signed in to change notification settings - Fork 5
Initial contribution of UpdateManager to Eclipse Kanto #1
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
Initial contribution of UpdateManager to Eclipse Kanto #1
Conversation
Signed-off-by: Stoyan Zoubev <[email protected]>
- golang version bumped to 1.19.4 in validation.yaml - fixed broken links in README.md file - removed commented/unused code from source files
- use strings.Builder for string concatenation in toActionsString function.
Signed-off-by: Stoyan Zoubev <[email protected]>
Signed-off-by: Stoyan Zoubev <[email protected]>
Signed-off-by: Stoyan Zoubev <[email protected]>
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 the NOTICE file we add only what is included in the go binary file. This can be checked with go version -m <binary>
. It is nice that there are not any absences from what I checked, however some additions are not needed.
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.
There are some general recommendations, nits and some things that I am just curious about for the api/agent
. I will continue later on with the other packages.
the imports in three groups that is from top to bottom: standard libraries, internal libraries, external libraries, all separated by a new line. Signed-off-by: Stoyan Zoubev <[email protected]>
Signed-off-by: Stoyan Zoubev <[email protected]>
These are not needed, according to the Eclipse Kanto Project Lead. Signed-off-by: Stoyan Zoubev <[email protected]>
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.
Another batch with general recommendations, nits and suggestions, plus a couple of questions that I have. I did not went trough all files, I still need to cover some more ground, so thanks for your patience.
Signed-off-by: Stoyan Zoubev <[email protected]>
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.
Another set of some minor stuff here and there. I still need to go trough the domain
and orchestration
packages.
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.
Another set of some minor stuff here and there. I still need to go trough the domain
and orchestration
packages.
- DesiredStateClient's Unsubscribe method to return error. - fixed typos, missing doc, wrong text descriptions. - removed incorrect log messages, extend log message with extra info. - some test case improvements. Signed-off-by: Stoyan Zoubev <[email protected]>
Signed-off-by: Stoyan Zoubev <[email protected]>
Signed-off-by: Stoyan Zoubev <[email protected]>
Signed-off-by: Stoyan Zoubev <[email protected]>
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.
a bit more general suggestions from 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.
My comments regarding the unit tests. Whether you chose to fix them now, or in the incoming test PR, those comments should be addressed.
- moved main package into nested directory cmd/update-manager - only containers update agent remains as default updage agents config - mqtt topics pre-generated, no concatenations on every request - other minor source code improvements
7c7716a
to
de86738
Compare
…d var declarations. Signed-off-by: Stoyan Zoubev <[email protected]>
d9019e9
to
ac78913
Compare
- all byte[] parameters replaced with concrete types - serialization/deserialization to/from byte[] moved to mqtt clients - renaming: Publish -> Send, Connect/Subscribe -> Start, Disconnect/Unsubscribe -> Stop - unit test case improvements - mock file regenerated
…ponents. Signed-off-by: Stoyan Zoubev <[email protected]>
[#2] Initial Contribution of the Update Manager
This is the initial contribution of the implementation of a device update manager as proposed.
More technical documentation will follow with additional PRs.
Signed-off-by: Stoyan Zoubev [email protected]