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

Update c8y-mapper and tedge-log-plugin specs #2127

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

rina23q
Copy link
Member

@rina23q rina23q commented Aug 4, 2023

Proposed changes

  • 339ae40: Regarding the rename of the field from maximumLines to lines.
  • 8f335fc: Correct the mistake of SmartREST template number and topic.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
  • Documentation Update (if none of the other choices apply)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue


Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA (in all commits with git commit -s)
  • I ran cargo fmt as mentioned in CODING_GUIDELINES
  • I used cargo clippy as mentioned in CODING_GUIDELINES
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Copy link
Contributor

@reubenmiller reubenmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Good catch.

Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2023

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
240 1 5 241 99.59

Passed Tests

Name ⏱️ Duration Suite
Prerequisite Parent 13.044 s Child Conf Mgmt Plugin
Prerequisite Child 0.276 s Child Conf Mgmt Plugin
Child device bootstrapping 12.973 s Child Conf Mgmt Plugin
Snapshot from device 60.994 s Child Conf Mgmt Plugin
Child device config update 62.397 s Child Conf Mgmt Plugin
Configuration types should be detected on file change (without restarting service) 42.293 s Inotify Crate
Check lock file existence in default folder 1.089 s Lock File
Check PID number in lock file 1.073 s Lock File
Check starting same service twice 1.241 s Lock File
Switch off lock file creation 1.514 s Lock File
Set configuration when file exists 15.737 s Configuration Operation
Set configuration when file does not exist 5.616 s Configuration Operation
Set configuration with broken url 4.643 s Configuration Operation
Get configuration 4.873 s Configuration Operation
Get non existent configuration file 4.624 s Configuration Operation
Get non existent configuration type 3.9859999999999998 s Configuration Operation
Update configuration plugin config via cloud 5.016 s Configuration Operation
Modify configuration plugin config via local filesystem modify inplace 3.468 s Configuration Operation
Modify configuration plugin config via local filesystem overwrite 2.15 s Configuration Operation
Update configuration plugin config via local filesystem copy 2.785 s Configuration Operation
Update configuration plugin config via local filesystem move (different directory) 3.312 s Configuration Operation
Update configuration plugin config via local filesystem move (same directory) 3.279 s Configuration Operation
Update the custom operation dynamically 50.876 s Dynamically Reload Operation
Custom operation successful 59.018 s Custom Operation
Custom operation fails 57.266 s Custom Operation
Successful firmware operation 119.31 s Firmware Operation
Install with empty firmware name 46.023 s Firmware Operation
Prerequisite Parent 14.291 s Firmware Operation Child Device
Prerequisite Child 7.885 s Firmware Operation Child Device
Child device firmware update 6.317 s Firmware Operation Child Device
Child device firmware update with cache 5.925 s Firmware Operation Child Device
Firmware plugin supports restart via service manager #1932 3.9 s Firmware Operation Child Device Retry
Update Inventory data via inventory.json 1.168 s Inventory Update
Inventory includes the agent fragment with version information 1.314 s Inventory Update
Retrieve a JWT tokens 25.491 s Jwt Request
Mapper recovers and processes output of ongoing software update request 15.589 s Recover And Publish Software Update Message
Check running collectd 1.124 s Monitor Device Collectd
Is collectd publishing MQTT messages? 2.79 s Monitor Device Collectd
Check thin-edge monitoring 3.797 s Monitor Device Collectd
Check grouping of measurements 8.362 s Monitor Device Collectd
Main device registration 1.6400000000000001 s Device Registration
Child device registration 1.73 s Device Registration
Supports restarting the device 42.605 s Restart Device
Update tedge version from previous using Cumulocity 74.148 s Tedge Self Update
Test if all c8y services are up 32.13 s Service Monitoring
Test if all c8y services are down 104.17 s Service Monitoring
Test if all c8y services are using configured service type 107.225 s Service Monitoring
Test if all c8y services using default service type when service type configured as empty 174.115 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker stop start 18.849 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker restart 22.35 s Service Monitoring
Check health status of child device service 18.385 s Service Monitoring
Successful shell command with output 3.6470000000000002 s Shell Operation
Check Successful shell command with literal double quotes output 3.085 s Shell Operation
Execute multiline shell command 3.241 s Shell Operation
Failed shell command 3.544 s Shell Operation
Software list should be populated during startup 41.693 s Software
Install software via Cumulocity 38.899 s Software
tedge-agent should terminate on SIGINT while downloading file 25.37 s Software
Software list should only show currently installed software and not candidates 34.352 s Software
Create and publish the tedge agent supported operations on mapper restart 35.591 s Mapper-Publishing-Agent-Supported-Ops
Agent gets the software list request once it comes up 26.705 s Mapper-Publishing-Agent-Supported-Ops
Define Child device 1 ID 0.012 s C8Y Child Alarms Rpi
Normal case when the child device does not exist on c8y cloud 3.789 s C8Y Child Alarms Rpi
Normal case when the child device already exists 0.647 s C8Y Child Alarms Rpi
Reconciliation when the new alarm message arrives, restart the mapper 0.904 s C8Y Child Alarms Rpi
Reconciliation when the alarm that is cleared 65.156 s C8Y Child Alarms Rpi
Child devices support sending simple measurements 1.208 s Child Device Telemetry
Child devices support sending custom measurements 0.921 s Child Device Telemetry
Child devices support sending custom events 0.894 s Child Device Telemetry
Child devices support sending custom events overriding the type 1.032 s Child Device Telemetry
Child devices support sending custom alarms #1699 0.985 s Child Device Telemetry
Child devices support sending inventory data via c8y topic 2.755 s Child Device Telemetry
Child device supports sending custom child device measurements directly to c8y 1.073 s Child Device Telemetry
Check retained alarms 217.597 s Raise Alarms
Thin-edge devices support sending simple measurements 1.072 s Thin-Edge Device Telemetry
Thin-edge devices support sending simple measurements with custom type 0.797 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom measurements 0.904 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events 0.919 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events overriding the type 0.904 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms #1699 0.846 s Thin-Edge Device Telemetry
Thin-edge device supports sending custom Thin-edge device measurements directly to c8y 1.116 s Thin-Edge Device Telemetry
Thin-edge device support sending inventory data via c8y topic 1.259 s Thin-Edge Device Telemetry
thin-edge components support a custom config-dir location via flags 26.332 s Config Dir
Validate updated data path used by tedge-agent 0.155 s Data Path Config
Validate updated data path used by c8y-firmware-plugin 9.775 s Data Path Config
Validate updated data path used by tedge-agent 0.197 s Log Path Config
Check existence of init directories 1.604 s Tedge Init
Tedge init and check creation of folders 1.248 s Tedge Init
Check ownership of the folders 1.279 s Tedge Init
Change user/group and check the change 1.252 s Tedge Init
Tedge init and check if default values are restored 1.117 s Tedge Init
Install thin-edge via apt 44.101 s Install Apt
Install latest via script (from current branch) 59.842 s Install Tedge
Install specific version via script (from current branch) 29.053 s Install Tedge
Install latest tedge via script (from main branch) 25.995 s Install Tedge
Install then uninstall latest tedge via script (from main branch) 41.073 s Install Tedge
Support starting and stopping services 33.367 s Service-Control
Supports a reconnect 52.706 s Test-Commands
Supports disconnect then connect 32.024 s Test-Commands
Update unknown setting 30.099 s Test-Commands
Update known setting 36.447 s Test-Commands
It checks MQTT messages using a pattern 65.181 s Test-Mqtt
Stop c8y-configuration-plugin 0.169 s Health C8Y-Configuration-Plugin
Update the service file 0.123 s Health C8Y-Configuration-Plugin
Reload systemd files 0.441 s Health C8Y-Configuration-Plugin
Start c8y-configuration-plugin 0.156 s Health C8Y-Configuration-Plugin
Start watchdog service 10.142 s Health C8Y-Configuration-Plugin
Check PID of c8y-configuration-plugin 0.069 s Health C8Y-Configuration-Plugin
Kill the PID 0.219 s Health C8Y-Configuration-Plugin
Recheck PID of c8y-configuration-plugin 6.37 s Health C8Y-Configuration-Plugin
Compare PID change 0 s Health C8Y-Configuration-Plugin
Stop watchdog service 0.116 s Health C8Y-Configuration-Plugin
Remove entry from service file 0.064 s Health C8Y-Configuration-Plugin
Stop c8y-log-plugin 0.131 s Health C8Y-Log-Plugin
Update the service file 0.107 s Health C8Y-Log-Plugin
Reload systemd files 0.321 s Health C8Y-Log-Plugin
Start c8y-log-plugin 0.109 s Health C8Y-Log-Plugin
Start watchdog service 10.223 s Health C8Y-Log-Plugin
Check PID of c8y-log-plugin 0.09 s Health C8Y-Log-Plugin
Kill the PID 0.107 s Health C8Y-Log-Plugin
Recheck PID of c8y-log-plugin 6.288 s Health C8Y-Log-Plugin
Compare PID change 0.001 s Health C8Y-Log-Plugin
Stop watchdog service 0.2 s Health C8Y-Log-Plugin
Remove entry from service file 0.071 s Health C8Y-Log-Plugin
Stop tedge-mapper 0.101 s Health Tedge Mapper C8Y
Update the service file 0.119 s Health Tedge Mapper C8Y
Reload systemd files 0.305 s Health Tedge Mapper C8Y
Start tedge-mapper 0.105 s Health Tedge Mapper C8Y
Start watchdog service 10.352 s Health Tedge Mapper C8Y
Check PID of tedge-mapper 0.051 s Health Tedge Mapper C8Y
Kill the PID 0.115 s Health Tedge Mapper C8Y
Recheck PID of tedge-mapper 6.471 s Health Tedge Mapper C8Y
Compare PID change 0.001 s Health Tedge Mapper C8Y
Stop watchdog service 0.155 s Health Tedge Mapper C8Y
Remove entry from service file 0.194 s Health Tedge Mapper C8Y
Stop tedge-agent 0.105 s Health Tedge-Agent
Update the service file 0.09 s Health Tedge-Agent
Reload systemd files 0.509 s Health Tedge-Agent
Start tedge-agent 0.089 s Health Tedge-Agent
Start watchdog service 10.108 s Health Tedge-Agent
Check PID of tedge-mapper 0.081 s Health Tedge-Agent
Kill the PID 0.173 s Health Tedge-Agent
Recheck PID of tedge-agent 6.479 s Health Tedge-Agent
Compare PID change 0.001 s Health Tedge-Agent
Stop watchdog service 0.2 s Health Tedge-Agent
Remove entry from service file 0.149 s Health Tedge-Agent
Stop tedge-mapper-az 0.094 s Health Tedge-Mapper-Az
Update the service file 0.076 s Health Tedge-Mapper-Az
Reload systemd files 0.242 s Health Tedge-Mapper-Az
Start tedge-mapper-az 0.1 s Health Tedge-Mapper-Az
Start watchdog service 10.104 s Health Tedge-Mapper-Az
Check PID of tedge-mapper-az 0.091 s Health Tedge-Mapper-Az
Kill the PID 0.118 s Health Tedge-Mapper-Az
Recheck PID of tedge-agent 6.589 s Health Tedge-Mapper-Az
Compare PID change 0.007 s Health Tedge-Mapper-Az
Stop watchdog service 0.162 s Health Tedge-Mapper-Az
Remove entry from service file 0.108 s Health Tedge-Mapper-Az
Stop tedge-mapper-collectd 0.187 s Health Tedge-Mapper-Collectd
Update the service file 0.19 s Health Tedge-Mapper-Collectd
Reload systemd files 0.52 s Health Tedge-Mapper-Collectd
Start tedge-mapper-collectd 0.144 s Health Tedge-Mapper-Collectd
Start watchdog service 10.163 s Health Tedge-Mapper-Collectd
Check PID of tedge-mapper-collectd 0.081 s Health Tedge-Mapper-Collectd
Kill the PID 0.129 s Health Tedge-Mapper-Collectd
Recheck PID of tedge-mapper-collectd 6.602 s Health Tedge-Mapper-Collectd
Compare PID change 0.001 s Health Tedge-Mapper-Collectd
Stop watchdog service 0.272 s Health Tedge-Mapper-Collectd
Remove entry from service file 0.116 s Health Tedge-Mapper-Collectd
tedge-collectd-mapper health status 5.857 s Health Tedge-Mapper-Collectd
c8y-log-plugin health status 5.463 s MQTT health endpoints
c8y-configuration-plugin health status 5.412 s MQTT health endpoints
Publish on a local insecure broker 0.222 s Basic Pub Sub
Publish on a local secure broker 3.6109999999999998 s Basic Pub Sub
Publish on a local secure broker with client authentication 2.482 s Basic Pub Sub
Publish events to subscribed topic 0.177 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to unsubscribed topic 5.201 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to subscribed topic 0.287 s Custom Sub Topics Tedge-Mapper-Az
Publish measurements to unsubscribed topic 5.247 s Custom Sub Topics Tedge-Mapper-Az
Publish events to subscribed topic 0.281 s Custom Sub Topics Tedge-Mapper-C8Y
Publish measurements to unsubscribed topic 5.367 s Custom Sub Topics Tedge-Mapper-C8Y
Check remote mqtt broker #1773 3.299 s Remote Mqtt Broker
Apply name filter 0.116 s Filter Packages List Output
Apply maintainer filter 0.132 s Filter Packages List Output
Apply both filters 0.186 s Filter Packages List Output
No filters 0.187 s Filter Packages List Output
Both filters but name filter as empty string 0.255 s Filter Packages List Output
Both filters but maintainer filter as empty string 0.104 s Filter Packages List Output
Both filters as empty string 0.092 s Filter Packages List Output
Wrong package name 0.066 s Improve Tedge Apt Plugin Error Messages
Wrong version 0.093 s Improve Tedge Apt Plugin Error Messages
Wrong type 0.322 s Improve Tedge Apt Plugin Error Messages
tedge_connect_test_positive 0.227 s Tedge Connect Test
tedge_connect_test_negative 0.81 s Tedge Connect Test
tedge_connect_test_sm_services 7.589 s Tedge Connect Test
tedge_disconnect_test_sm_services 0.656 s Tedge Connect Test
Install thin-edge.io 22.969 s Call Tedge
call tedge -V 0.099 s Call Tedge
call tedge -h 0.106 s Call Tedge
call tedge -h -V 0.093 s Call Tedge
call tedge help 0.077 s Call Tedge
tedge config list 0.051 s Call Tedge Config List
tedge config list --all 0.091 s Call Tedge Config List
set/unset device.type 0.278 s Call Tedge Config List
set/unset device.key_path 0.545 s Call Tedge Config List
set/unset device.cert_path 0.402 s Call Tedge Config List
set/unset c8y.root_cert_path 0.373 s Call Tedge Config List
set/unset c8y.smartrest.templates 0.459 s Call Tedge Config List
set/unset c8y.topics 0.529 s Call Tedge Config List
set/unset az.root_cert_path 0.471 s Call Tedge Config List
set/unset az.topics 0.688 s Call Tedge Config List
set/unset aws.topics 0.506 s Call Tedge Config List
set/unset aws.url 0.607 s Call Tedge Config List
set/unset aws.root_cert_path 0.629 s Call Tedge Config List
set/unset aws.mapper.timestamp 0.421 s Call Tedge Config List
set/unset az.mapper.timestamp 0.354 s Call Tedge Config List
set/unset mqtt.bind.address 0.399 s Call Tedge Config List
set/unset mqtt.bind.port 0.42 s Call Tedge Config List
set/unset http.bind.port 0.285 s Call Tedge Config List
set/unset tmp.path 0.223 s Call Tedge Config List
set/unset logs.path 0.322 s Call Tedge Config List
set/unset run.path 0.35 s Call Tedge Config List
set/unset firmware.child.update.timeout 0.238 s Call Tedge Config List
set/unset c8y.url 0.219 s Call Tedge Config List
set/unset az.url 0.224 s Call Tedge Config List
set/unset mqtt.external.bind.port 0.227 s Call Tedge Config List
mqtt.external.bind.address 0.224 s Call Tedge Config List
mqtt.external.bind.interface 0.245 s Call Tedge Config List
set/unset mqtt.external.ca_path 0.231 s Call Tedge Config List
set/unset mqtt.external.cert_file 0.204 s Call Tedge Config List
set/unset mqtt.external.key_file 0.224 s Call Tedge Config List
set/unset software.plugin.default 0.208 s Call Tedge Config List
set/unset apt.name 0.243 s Call Tedge Config List
set/unset apt.maintainer 0.229 s Call Tedge Config List
Get Put Delete 1.911 s Http File Transfer Api
Set keys should return value on stdout 0.111 s Tedge Config Get
Unset keys should not return anything on stdout and warnings on stderr 0.317 s Tedge Config Get
Invalid keys should not return anything on stdout and warnings on stderr 0.378 s Tedge Config Get
Set configuration via environment variables 0.839 s Tedge Config Get
Set configuration via environment variables for topics 0.241 s Tedge Config Get
Set unknown configuration via environment variables 0.056 s Tedge Config Get

Failed Tests

Name Message ⏱️ Duration Suite
Check PID number in lock file after restarting the services 1199 1234 != 1199 62.316 s Lock File

@reubenmiller
Copy link
Contributor

I'm happy to merge it as the integration test is failing due to an unrelated flaky test.

@rina23q
Copy link
Member Author

rina23q commented Aug 4, 2023

I'm happy to merge it as the integration test is failing due to an unrelated flaky test.

The test is captured already in the ticket: #2087

@rina23q rina23q merged commit 59b5044 into thin-edge:main Aug 4, 2023
15 of 16 checks passed
@rina23q rina23q deleted the docs/update-outdated-spec branch August 4, 2023 13:18
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.

None yet

2 participants