-
Notifications
You must be signed in to change notification settings - Fork 35
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(snap): add initial snap packaging #127
Conversation
Could you please help me review it, thanks! @farshidtz @siggiskulason @tonyespy |
Thanks @MonicaisHer. I added several inline comments. Please also add a snap/README.md. |
Thanks for your review @farshidtz . I was intent to add readme after publishing this snap because it's never been published, so it cant be installed from either the snap store or using |
That's a good point. I can think of three options:
What do you think @siggiskulason @tonyespy? |
9a08a51
to
dd9a9d8
Compare
The top level go.mod and go.sum are probably changed by mistake. Please remove/revert that commit and |
Signed-off-by: Ernesto Ojeda <[email protected]> Signed-off-by: Mengyi <[email protected]>
Signed-off-by: Mengyi <[email protected]>
- update base to core20 - optimize copying config files in snapcraft.yaml - update edgex-snap-hooks to v2.0.7 - remove `GO=GO111MODULE=on go` in snap/local/hooks/Makefile - remove snap/hooks/pre-fresh Signed-off-by: Mengyi <[email protected]>
update `$(GO)` in snap/local/hooks/Makefile Signed-off-by: Mengyi <[email protected]>
- add go.mod - add go.sum Signed-off-by: Mengyi <[email protected]>
This reverts commit 01113ef. Signed-off-by: Mengyi <[email protected]>
- add go.mod - add go.sum Signed-off-by: Mengyi <[email protected]>
This reverts commit dd9a9d8. Signed-off-by: Mengyi <[email protected]>
Signed-off-by: Mengyi <[email protected]>
5062fc4
to
d0f27dc
Compare
Thanks. That commit has been reverted. |
Signed-off-by: Mengyi <[email protected]>
- add snap/README.md - update snap/local/hooks/const.go - remove snap/local/.gitkeep Signed-off-by: Mengyi <[email protected]>
recheck |
Codecov Report
@@ Coverage Diff @@
## main #127 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 2 2
Lines 200 200
=====================================
Misses 200 200 Continue to review full report at Codecov.
|
snap/README.md
Outdated
device-config: | ||
interface: content | ||
content: device-config | ||
write: |
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.
The key should be read
, not write
as it is exposing the read-only $SNAP/config
directory.
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.
Thank you for your re-review, I have updated this part. I also updated this part's word based on your another PR.
- update `Using a content interface to set device configuration` - remove `Service.BootTimeout` and `Service.Protocol` in `Service Environment Configuration Overrides` - update words based on https://github.com/edgexfoundry/ device-mqtt-go/pull/311/files Signed-off-by: Mengyi <[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.
Thanks. Looks good.
Please squash and merge which should also fix the semantic commit issues.
@siggiskulason Could you please help me squash and merge this PR? Thank you! |
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.
LGTM
fix: #6
Signed-off-by: Mengyi [email protected]
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/device-snmp-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:
describing the break)Testing Instructions
Test guideline:
please change the deviceResources's RebootCurrentState's properties readWrite: "R" to "RW", to let device profile align the device resource. (issue: #126 )
check if the snap is running:
expect:
ping edgex-device-snmp's port:
expect:{"apiVersion":"v2","timestamp":"Wed Oct 27 14:11:36 CEST 2021"}
New Dependency Instructions (If applicable)