Rewrite networking to have proper round-robin across instances and retries #526
rust-tests.yml
on: pull_request
check-formatting-linting
21s
tests
1m 15s
test_network
2m 23s
Annotations
6 errors and 18 warnings
mismatched types:
pkcs11/src/backend/session.rs#L774
error[E0308]: mismatched types
--> pkcs11/src/backend/session.rs:774:21
|
768 | login_ctx: LoginCtx::new(
| ------------- arguments to this function are incorrect
...
774 | vec![bad_instance],
| ^^^^^^^^^^^^^^^^^^ expected `Arc<[Configuration]>`, found `Vec<Configuration>`
|
= note: expected struct `std::sync::Arc<[nethsm_sdk_rs::apis::configuration::Configuration]>`
found struct `std::vec::Vec<nethsm_sdk_rs::apis::configuration::Configuration>`
note: associated function defined here
--> pkcs11/src/backend/login.rs:65:12
|
65 | pub fn new(
| ^^^
...
68 | instances: Arc<[Configuration]>,
| -------------------------------
help: call `Into::into` on this expression to convert `std::vec::Vec<nethsm_sdk_rs::apis::configuration::Configuration>` into `std::sync::Arc<[nethsm_sdk_rs::apis::configuration::Configuration]>`
|
774 | vec![bad_instance].into(),
| +++++++
|
mismatched types:
pkcs11/src/backend/session.rs#L728
error[E0308]: mismatched types
--> pkcs11/src/backend/session.rs:728:21
|
722 | login_ctx: LoginCtx::new(
| ------------- arguments to this function are incorrect
...
728 | vec![slot.instances[0].clone()],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Arc<[Configuration]>`, found `Vec<Configuration>`
|
= note: expected struct `std::sync::Arc<[nethsm_sdk_rs::apis::configuration::Configuration]>`
found struct `std::vec::Vec<nethsm_sdk_rs::apis::configuration::Configuration>`
note: associated function defined here
--> pkcs11/src/backend/login.rs:65:12
|
65 | pub fn new(
| ^^^
...
68 | instances: Arc<[Configuration]>,
| -------------------------------
help: call `Into::into` on this expression to convert `std::vec::Vec<nethsm_sdk_rs::apis::configuration::Configuration>` into `std::sync::Arc<[nethsm_sdk_rs::apis::configuration::Configuration]>`
|
728 | vec![slot.instances[0].clone()].into(),
| +++++++
|
mismatched types:
/rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/alloc/src/macros.rs#L44
error[E0308]: mismatched types
--> pkcs11/src/backend/session.rs:98:28
|
98 | instances: vec![],
| ^^^^^^ expected `Arc<[Configuration]>`, found `Vec<_>`
|
= note: expected struct `std::sync::Arc<[nethsm_sdk_rs::apis::configuration::Configuration]>`
found struct `std::vec::Vec<_>`
= note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
help: call `Into::into` on this expression to convert `std::vec::Vec<_>` into `std::sync::Arc<[nethsm_sdk_rs::apis::configuration::Configuration]>`
|
98 | instances: vec![].into(),
| +++++++
|
mismatched types:
pkcs11/src/api/object.rs#L420
error[E0308]: mismatched types
--> pkcs11/src/api/object.rs:420:17
|
417 | login_ctx: LoginCtx::new(
| ------------- arguments to this function are incorrect
...
420 | vec![],
| ^^^^^^ expected `Arc<[Configuration]>`, found `Vec<_>`
|
= note: expected struct `std::sync::Arc<[nethsm_sdk_rs::apis::configuration::Configuration]>`
found struct `std::vec::Vec<_>`
note: associated function defined here
--> pkcs11/src/backend/login.rs:65:12
|
65 | pub fn new(
| ^^^
...
68 | instances: Arc<[Configuration]>,
| -------------------------------
help: call `Into::into` on this expression to convert `std::vec::Vec<_>` into `std::sync::Arc<[nethsm_sdk_rs::apis::configuration::Configuration]>`
|
420 | vec![].into(),
| +++++++
|
check-formatting-linting
Clippy had exited with the 101 exit code
|
tests
Process completed with exit code 101.
|
check-formatting-linting
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
check-formatting-linting
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
check-formatting-linting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check-formatting-linting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check-formatting-linting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check-formatting-linting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test_network
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test_network
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test_network
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test_network
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test_network
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test_network
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|