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

ci: remove usage of actions-rs/toolchain@v1 as it is not actively maintained #1999

Merged

Conversation

reubenmiller
Copy link
Contributor

@reubenmiller reubenmiller commented Jun 1, 2023

Proposed changes

Replace the usage of actions-rs/toolchain@v1 as it is no longer maintained and it uses deprecated GitHub Actions API.

The PR switches to using dtolnay/rust-toolchain provides similar functionality, however requires an additional step when using the nightly toolchain because it does not support the override option.

Warning

This does not solve all of the deprecation notices, but reduces any coming from actions-rs/toolchain@v1.

References

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

An example of the GitHub deprecated notices are visible from the PR checks run.

image

…ntained

dtolnay/rust-toolchain provides similar functionality, however requires an additional step when using the nightly toolchain because it does not support the override option.

Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
@reubenmiller reubenmiller added the ci/cd Repository management and pipeline topics label Jun 1, 2023
@reubenmiller reubenmiller temporarily deployed to Test Pull Request June 1, 2023 11:36 — with GitHub Actions Inactive
Copy link
Member

@rina23q rina23q left a comment

Choose a reason for hiding this comment

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

LGTM.

I think the reason why we still used actions-rs/toolchain was exactly for override. But it's really nice that you found a workaround!

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
214 0 5 214 100

Passed Tests

Name ⏱️ Duration Suite
Define Child device 1 ID 0.031 s C8Y Child Alarms Rpi
Normal case when the child device does not exist on c8y cloud 3.071 s C8Y Child Alarms Rpi
Normal case when the child device already exists 1.627 s C8Y Child Alarms Rpi
Reconciliation when the new alarm message arrives, restart the mapper 3.6870000000000003 s C8Y Child Alarms Rpi
Reconciliation when the alarm that is cleared 7.25 s C8Y Child Alarms Rpi
Prerequisite Parent 23.111 s Child Conf Mgmt Plugin
Prerequisite Child 1.2770000000000001 s Child Conf Mgmt Plugin
Child device bootstrapping 17.368 s Child Conf Mgmt Plugin
Snapshot from device 61.72 s Child Conf Mgmt Plugin
Child device config update 63.405 s Child Conf Mgmt Plugin
Configuration types should be detected on file change (without restarting service) 62.06 s Inotify Crate
Check lock file existence in default folder 2.504 s Lock File
Check PID number in lock file 4.557 s Lock File
Check PID number in lock file after restarting the services 4.958 s Lock File
Check starting same service twice 1.772 s Lock File
Switch off lock file creation 3.5540000000000003 s Lock File
Set configuration when file exists 13.883 s Configuration Operation
Set configuration when file does not exist 7.385 s Configuration Operation
Set configuration with broken url 8.255 s Configuration Operation
Get configuration 8.468 s Configuration Operation
Get non existent configuration file 5.984 s Configuration Operation
Get non existent configuration type 5.542 s Configuration Operation
Update configuration plugin config via cloud 6.7780000000000005 s Configuration Operation
Modify configuration plugin config via local filesystem modify inplace 5.461 s Configuration Operation
Modify configuration plugin config via local filesystem overwrite 5.599 s Configuration Operation
Update configuration plugin config via local filesystem copy 2.976 s Configuration Operation
Update configuration plugin config via local filesystem move (different directory) 3.125 s Configuration Operation
Update configuration plugin config via local filesystem move (same directory) 5.373 s Configuration Operation
Successful firmware operation 88.94 s Firmware Operation
Install with empty firmware name 76.329 s Firmware Operation
Prerequisite Parent 28.321 s Firmware Operation Child Device
Prerequisite Child 9.806000000000001 s Firmware Operation Child Device
Child device firmware update 5.227 s Firmware Operation Child Device
Child device firmware update with cache 5.054 s Firmware Operation Child Device
Firmware plugin supports restart via service manager #1932 6.744 s Firmware Operation Child Device Retry
Update Inventory data via inventory.json 2.423 s Inventory Update
Inventory includes the agent fragment with version information 2.466 s Inventory Update
Retrieve a JWT tokens 69.044 s Jwt Request
Check running collectd 1.464 s Monitor Device Collectd
Is collectd publishing MQTT messages? 3.38 s Monitor Device Collectd
Check thin-edge monitoring 5.04 s Monitor Device Collectd
Check grouping of measurements 9.153 s Monitor Device Collectd
Update the custom operation dynamically 65.424 s Dynamically Reload Operation
Main device registration 2.752 s Device Registration
Child device registration 3.81 s Device Registration
Supports restarting the device 91.6 s Restart Device
Update tedge version from previous using Cumulocity 128.58 s Tedge Self Update
Test if all c8y services are up 54.571 s Service Monitoring
Test if all c8y services are down 65.206 s Service Monitoring
Test if all c8y services are using configured service type 130.528 s Service Monitoring
Test if all c8y services using default service type when service type configured as empty 184.634 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker stop start 28.585 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker restart 29.575 s Service Monitoring
Check health status of child device service 27.296 s Service Monitoring
Successful shell command with output 4.408 s Shell Operation
Check Successful shell command with literal double quotes output 4.086 s Shell Operation
Execute multiline shell command 3.7720000000000002 s Shell Operation
Failed shell command 3.615 s Shell Operation
Software list should be populated during startup 64.02 s Software
Install software via Cumulocity 72.717 s Software
Software list should only show currently installed software and not candidates 47.766 s Software
Child devices support sending simple measurements 1.798 s Child Device Telemetry
Child devices support sending custom measurements 1.561 s Child Device Telemetry
Child devices support sending custom events 1.37 s Child Device Telemetry
Child devices support sending custom events overriding the type 1.533 s Child Device Telemetry
Child devices support sending custom alarms #1699 1.693 s Child Device Telemetry
Child devices support sending inventory data via c8y topic 1.508 s Child Device Telemetry
Child device supports sending custom child device measurements directly to c8y 2.171 s Child Device Telemetry
Check retained alarms 184.121 s Raise Alarms
Thin-edge devices support sending simple measurements 2.128 s Thin-Edge Device Telemetry
Thin-edge devices support sending simple measurements with custom type 1.681 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom measurements 1.508 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events 2.058 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events overriding the type 1.7069999999999999 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms #1699 3.823 s Thin-Edge Device Telemetry
Thin-edge device supports sending custom Thin-edge device measurements directly to c8y 1.968 s Thin-Edge Device Telemetry
Thin-edge device support sending inventory data via c8y topic 2.034 s Thin-Edge Device Telemetry
thin-edge components support a custom config-dir location via flags 27.593 s Config Dir
Validate updated data path used by tedge-agent 1.217 s Data Path Config
Validate updated data path used by c8y-firmware-plugin 12.512 s Data Path Config
Stop tedge-agent service 0.456 s Log Path Config
Customize the log path 0.132 s Log Path Config
Initialize tedge-agent 0.133 s Log Path Config
Check created folders 0.115 s Log Path Config
Remove created custom folders 0.138 s Log Path Config
Install thin-edge via apt 63.07 s Install Apt
Install latest via script (from current branch) 39.184 s Install Tedge
Install specific version via script (from current branch) 22.801 s Install Tedge
Install latest tedge via script (from main branch) 25.656 s Install Tedge
Install then uninstall latest tedge via script (from main branch) 86.111 s Install Tedge
Support starting and stopping services 54.564 s Service-Control
Supports a reconnect 71.045 s Test-Commands
Supports disconnect then connect 49.497 s Test-Commands
Update unknown setting 55.42 s Test-Commands
Update known setting 39.449 s Test-Commands
Stop c8y-configuration-plugin 0.348 s Health C8Y-Configuration-Plugin
Update the service file 0.323 s Health C8Y-Configuration-Plugin
Reload systemd files 1.024 s Health C8Y-Configuration-Plugin
Start c8y-configuration-plugin 0.389 s Health C8Y-Configuration-Plugin
Start watchdog service 10.617 s Health C8Y-Configuration-Plugin
Check PID of c8y-configuration-plugin 0.142 s Health C8Y-Configuration-Plugin
Kill the PID 0.43 s Health C8Y-Configuration-Plugin
Recheck PID of c8y-configuration-plugin 6.564 s Health C8Y-Configuration-Plugin
Compare PID change 0.002 s Health C8Y-Configuration-Plugin
Stop watchdog service 0.082 s Health C8Y-Configuration-Plugin
Remove entry from service file 0.149 s Health C8Y-Configuration-Plugin
Stop c8y-log-plugin 0.394 s Health C8Y-Log-Plugin
Update the service file 0.484 s Health C8Y-Log-Plugin
Reload systemd files 1.072 s Health C8Y-Log-Plugin
Start c8y-log-plugin 0.337 s Health C8Y-Log-Plugin
Start watchdog service 10.552 s Health C8Y-Log-Plugin
Check PID of c8y-log-plugin 0.111 s Health C8Y-Log-Plugin
Kill the PID 0.219 s Health C8Y-Log-Plugin
Recheck PID of c8y-log-plugin 6.549 s Health C8Y-Log-Plugin
Compare PID change 0.001 s Health C8Y-Log-Plugin
Stop watchdog service 0.085 s Health C8Y-Log-Plugin
Remove entry from service file 0.094 s Health C8Y-Log-Plugin
Stop tedge-mapper 0.399 s Health Tedge Mapper C8Y
Update the service file 0.26 s Health Tedge Mapper C8Y
Reload systemd files 0.753 s Health Tedge Mapper C8Y
Start tedge-mapper 0.264 s Health Tedge Mapper C8Y
Start watchdog service 10.424 s Health Tedge Mapper C8Y
Check PID of tedge-mapper 0.148 s Health Tedge Mapper C8Y
Kill the PID 0.388 s Health Tedge Mapper C8Y
Recheck PID of tedge-mapper 6.949 s Health Tedge Mapper C8Y
Compare PID change 0.001 s Health Tedge Mapper C8Y
Stop watchdog service 0.528 s Health Tedge Mapper C8Y
Remove entry from service file 0.407 s Health Tedge Mapper C8Y
Stop tedge-agent 0.206 s Health Tedge-Agent
Update the service file 0.118 s Health Tedge-Agent
Reload systemd files 0.648 s Health Tedge-Agent
Start tedge-agent 0.155 s Health Tedge-Agent
Start watchdog service 10.467 s Health Tedge-Agent
Check PID of tedge-mapper 0.237 s Health Tedge-Agent
Kill the PID 0.547 s Health Tedge-Agent
Recheck PID of tedge-agent 6.705 s Health Tedge-Agent
Compare PID change 0.001 s Health Tedge-Agent
Stop watchdog service 0.695 s Health Tedge-Agent
Remove entry from service file 0.332 s Health Tedge-Agent
Stop tedge-mapper-az 0.281 s Health Tedge-Mapper-Az
Update the service file 0.281 s Health Tedge-Mapper-Az
Reload systemd files 0.662 s Health Tedge-Mapper-Az
Start tedge-mapper-az 0.241 s Health Tedge-Mapper-Az
Start watchdog service 10.509 s Health Tedge-Mapper-Az
Check PID of tedge-mapper-az 0.103 s Health Tedge-Mapper-Az
Kill the PID 0.254 s Health Tedge-Mapper-Az
Recheck PID of tedge-agent 6.835 s Health Tedge-Mapper-Az
Compare PID change 0.002 s Health Tedge-Mapper-Az
Stop watchdog service 0.56 s Health Tedge-Mapper-Az
Remove entry from service file 0.153 s Health Tedge-Mapper-Az
Stop tedge-mapper-collectd 0.408 s Health Tedge-Mapper-Collectd
Update the service file 0.336 s Health Tedge-Mapper-Collectd
Reload systemd files 1.388 s Health Tedge-Mapper-Collectd
Start tedge-mapper-collectd 0.249 s Health Tedge-Mapper-Collectd
Start watchdog service 10.478 s Health Tedge-Mapper-Collectd
Check PID of tedge-mapper-collectd 0.163 s Health Tedge-Mapper-Collectd
Kill the PID 0.24 s Health Tedge-Mapper-Collectd
Recheck PID of tedge-mapper-collectd 6.48 s Health Tedge-Mapper-Collectd
Compare PID change 0.005 s Health Tedge-Mapper-Collectd
Stop watchdog service 0.214 s Health Tedge-Mapper-Collectd
Remove entry from service file 0.172 s Health Tedge-Mapper-Collectd
tedge-collectd-mapper health status 5.639 s Health Tedge-Mapper-Collectd
c8y-log-plugin health status 5.885 s MQTT health endpoints
c8y-configuration-plugin health status 5.545 s MQTT health endpoints
Publish on a local insecure broker 0.723 s Basic Pub Sub
Publish on a local secure broker 5.074 s Basic Pub Sub
Publish on a local secure broker with client authentication 4.458 s Basic Pub Sub
Check remote mqtt broker #1773 6.257 s Remote Mqtt Broker
Wrong package name 0.224 s Improve Tedge Apt Plugin Error Messages
Wrong version 0.219 s Improve Tedge Apt Plugin Error Messages
Wrong type 0.479 s Improve Tedge Apt Plugin Error Messages
tedge_connect_test_positive 0.728 s Tedge Connect Test
tedge_connect_test_negative 3.376 s Tedge Connect Test
tedge_connect_test_sm_services 9.418 s Tedge Connect Test
tedge_disconnect_test_sm_services 1.482 s Tedge Connect Test
Install thin-edge.io 28.186 s Call Tedge
call tedge -V 0.126 s Call Tedge
call tedge -h 0.114 s Call Tedge
call tedge -h -V 0.106 s Call Tedge
call tedge help 0.12 s Call Tedge
tedge config list 0.097 s Call Tedge Config List
tedge config list --all 0.184 s Call Tedge Config List
set/unset device.type 0.679 s Call Tedge Config List
set/unset device.key_path 0.711 s Call Tedge Config List
set/unset device.cert_path 0.893 s Call Tedge Config List
set/unset c8y.root_cert_path 0.909 s Call Tedge Config List
set/unset c8y.smartrest.templates 0.663 s Call Tedge Config List
set/unset az.root_cert_path 0.768 s Call Tedge Config List
set/unset aws.url 0.951 s Call Tedge Config List
set/unset aws.root_cert_path 0.88 s Call Tedge Config List
set/unset aws.mapper.timestamp 0.758 s Call Tedge Config List
set/unset az.mapper.timestamp 0.521 s Call Tedge Config List
set/unset mqtt.bind.address 0.382 s Call Tedge Config List
set/unset mqtt.bind.port 0.305 s Call Tedge Config List
set/unset http.bind.port 0.323 s Call Tedge Config List
set/unset tmp.path 0.309 s Call Tedge Config List
set/unset logs.path 0.288 s Call Tedge Config List
set/unset run.path 0.303 s Call Tedge Config List
set/unset firmware.child.update.timeout 0.418 s Call Tedge Config List
set/unset c8y.url 0.345 s Call Tedge Config List
set/unset az.url 0.296 s Call Tedge Config List
set/unset mqtt.external.bind.port 0.296 s Call Tedge Config List
mqtt.external.bind.address 0.284 s Call Tedge Config List
mqtt.external.bind.interface 0.289 s Call Tedge Config List
set/unset mqtt.external.ca_path 0.365 s Call Tedge Config List
set/unset mqtt.external.cert_file 0.289 s Call Tedge Config List
set/unset mqtt.external.key_file 0.298 s Call Tedge Config List
set/unset software.plugin.default 0.289 s Call Tedge Config List
Get Put Delete 2.434 s Http File Transfer Api
Set keys should return value on stdout 0.181 s Tedge Config Get
Unset keys should not return anything on stdout and warnings on stderr 0.62 s Tedge Config Get
Invalid keys should not return anything on stdout and warnings on stderr 0.501 s Tedge Config Get
Set configuration via environment variables 1.357 s Tedge Config Get
Set unknown configuration via environment variables 0.089 s Tedge Config Get

@reubenmiller reubenmiller merged commit f307068 into thin-edge:main Jun 2, 2023
@reubenmiller reubenmiller deleted the ci/remove-actions-rs-toolchain branch June 2, 2023 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd Repository management and pipeline topics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants