Skip to content
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

build(snap): Switch stage kuiper snap's channel to 1/stable #3996

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

MonicaisHer
Copy link
Contributor

@MonicaisHer MonicaisHer commented Apr 28, 2022

Signed-off-by: Mengyi Wang mengyi.wang@canonical.com

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?) checkbox kuiper test
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
  • I have opened a PR for the related docs change (if not, why?)

Testing Instructions

  1. Install edgex and turn on ekuiper service:
snap install edgexfoundry --channel=edge/pr-3996
snap set edgexfoundry device-virtual=on
snap set edgexfoundry kuiper=on
  1. Create a stream (with SHARED=false) and multiple rules using this same stream
# stream 1
edgexfoundry.kuiper-cli create stream stream1 '()WITH(FORMAT="JSON",TYPE="edgex",SHARED="false")'

# rule 1 
edgexfoundry.kuiper-cli create rule rule_log '
{
   "sql":"SELECT * from stream1",
   "actions":[
      {
         "log":{
            
         }
      }
   ]
}' 

# rule 2
# install MQTT broker
snap install mosquitto
edgexfoundry.kuiper-cli create rule rule_mqtt '
{
   "sql":"SELECT * from stream1",
   "actions":[
      {
         "mqtt":{
            "clientId": "stream1",
            "protocolVersion": "3.1",
            "server": "tcp://localhost:1883",
            "topic": "sink-result"
         }
      }
   ]
}' 

# rules 3 
edgexfoundry.kuiper-cli create rule rule_edgex_message_bus '
{
   "sql":"SELECT * from stream1",
   "actions": [
      {
         "edgex": {
            "connectionSelector": "edgex.redisMsgBus",
            "topicPrefix": "edgex/events/device", 
            "messageType": "request",
            "deviceName": "device-test"
         }
      }
   ]
}'
  1. Check rules's status
edgexfoundry.kuiper-cli show rules
  1. Wait about 10 minutes and re-check the rules' status
edgexfoundry.kuiper-cli show rules

New Dependency Instructions (If applicable)

Signed-off-by: Mengyi Wang <mengyi.wang@canonical.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@farshidtz
Copy link
Member

Looks good. eKuiper version is now 1.4.4.

$ snap install edgexfoundry --channel=edge/pr-3996

$ sudo snap start edgexfoundry.kuiper 
Started.

$ edgexfoundry.kuiper-cli --version
time="2022-04-28 14:59:35" level=info msg="Specified Kuiper base folder at location /var/snap/edgexfoundry/3677/kuiper.\n" file="conf/path.go:100"
Connecting to 127.0.0.1:20498... 
Kuiper version 1.4.4

@farshidtz farshidtz merged commit 08f871b into edgexfoundry:main Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants