Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
Robot Results
|
49b4598 to
6f72139
Compare
|
|
fb7b092 to
06f9499
Compare
see crates/extensions/tedge_flowshttps://github.com/thin-edge/pull/4037#issuecomment-4074367221 Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
didier-wenzek
left a comment
There was a problem hiding this comment.
Approved. A great addition that will support users writing, sharing and deploying domain specific flows. Thank you.
Bravo555
left a comment
There was a problem hiding this comment.
All the feedback addressed, with a very comprehensive set of tests.
| let output = match std::process::Command::new("tedge") | ||
| .args(["flows", "list", "--flows-dir"]) | ||
| .arg(tmp_dest.as_str()) | ||
| .output() |
There was a problem hiding this comment.
thought: A bit annoying that we have to spawn a process instead of directly using the same function that tedge flows list does, but there shouldn't be a problem either way.
There was a problem hiding this comment.
Calling the binary is ok, though we need to make sure we pass the loaded config_dir (that the agent is using), and pass it to the tedge flows list command, e.g.
tedge flows list --flows-dir "foo" --config-dir /tmp/tedge
reubenmiller
left a comment
There was a problem hiding this comment.
Approved. Really nice addition. Thanks for updating the log messages to be more verbose as this will be extremely helpful when reading the operation logs for installing and removing flows from the cloud
Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
8be1996 to
eafe2b7
Compare
see crates/extensions/tedge_flowshttps://github.com/thin-edge/pull/4037#issuecomment-4074367221 Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Proposed changes
This pull request introduces the new
tedge-flows-pluginpackage and a binary symlinked to/etc/tedge/sm-plugin/flow.The plugin supports only 3 commands:
Note:
update-listis unsupported, therefore, it returns1as in the sm-plugin specification.Naming rules
Look at #4037 (comment).
Installation rules
--module-version <version>. If given, it will be used to check the provided version equals to the one installed.local/toplevelandlocal/second..taror.tar.gz. At first, I didn't implement this fallback, however, I found that the file extension is missing while downloading a file... If there was no fallback, integration with c8y won't work :/Removal rules
--module-version <version>.params.tomlwill be kept only ifflows.params.keep_on_deleteistrue(default:false).Types of changes
Paste Link to the issue
#3986
Checklist
just prepare-devonce)just formatas mentioned in CODING_GUIDELINESjust checkas mentioned in CODING_GUIDELINESFurther comments