Skip to content

feature: more qdrant and postgreSQL configuration, feature: replication factor as an ENV #2222

feature: more qdrant and postgreSQL configuration, feature: replication factor as an ENV

feature: more qdrant and postgreSQL configuration, feature: replication factor as an ENV #2222

Triggered via pull request May 23, 2024 21:17
Status Failure
Total duration 3m 55s
Artifacts

rust-tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 30 warnings
cargo-fmt
Process completed with exit code 1.
use of deprecated function `handlers::chunk_handler::update_chunk_by_tracking_id`: src/lib.rs#L635
warning: use of deprecated function `handlers::chunk_handler::update_chunk_by_tracking_id` --> src/lib.rs:635:76 | 635 | ... web::put().to(handlers::chunk_handler::update_chunk_by_tracking_id), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default
use of deprecated function `handlers::group_handler::add_chunk_to_group_by_tracking_id`: src/lib.rs#L719
warning: use of deprecated function `handlers::group_handler::add_chunk_to_group_by_tracking_id` --> src/lib.rs:719:82 | 719 | ... handlers::group_handler::add_chunk_to_group_by_tracking_id | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
use of deprecated function `handlers::group_handler::update_group_by_tracking_id`: src/lib.rs#L728
warning: use of deprecated function `handlers::group_handler::update_group_by_tracking_id` --> src/lib.rs:728:92 | 728 | ... web::put().to(handlers::group_handler::update_group_by_tracking_id), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
large size difference between variants: src/data/models.rs#L2431
warning: large size difference between variants --> src/data/models.rs:2431:1 | 2431 | / pub enum ConditionType { 2432 | | Field(FieldCondition), | | --------------------- the largest variant contains at least 360 bytes 2433 | | HasID(HasIDCondition), | | --------------------- the second-largest variant contains at least 48 bytes 2434 | | } | |_^ the entire enum is at least 360 bytes | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant = note: `#[warn(clippy::large_enum_variant)]` on by default help: consider boxing the large fields to reduce the total size of the enum | 2432 | Field(Box<FieldCondition>), | ~~~~~~~~~~~~~~~~~~~
`filter` for `Some` followed by `unwrap`: src/operators/chunk_operator.rs#L1221
warning: `filter` for `Some` followed by `unwrap` --> src/operators/chunk_operator.rs:1221:10 | 1221 | .filter(|x| x.is_some()) | __________^ 1222 | | .map(|x| x.unwrap()) | |____________________________^ help: consider using `flatten` instead: `flatten()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_filter_map = note: `#[warn(clippy::option_filter_map)]` on by default
casting to the same type is unnecessary (`usize` -> `usize`): src/operators/parse_operator.rs#L42
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> src/operators/parse_operator.rs:42:28 | 42 | chunk.drain(0..amt_to_take as usize); | ^^^^^^^^^^^^^^^^^^^^ help: try: `amt_to_take` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
casting to the same type is unnecessary (`usize` -> `usize`): src/operators/parse_operator.rs#L77
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> src/operators/parse_operator.rs:77:33 | 77 | target_group_size + cmp::min(remainder as usize, remainder_per_group as usize) as usize; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `cmp::min(remainder as usize, remainder_per_group as usize)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
redundant closure: src/operators/search_operator.rs#L103
warning: redundant closure --> src/operators/search_operator.rs:103:22 | 103 | .map(|id| UnifiedId::TrieveUuid(id)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `UnifiedId::TrieveUuid` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `#[warn(clippy::redundant_closure)]` on by default
redundant closure: src/operators/search_operator.rs#L115
warning: redundant closure --> src/operators/search_operator.rs:115:22 | 115 | .map(|id| UnifiedId::TrackingId(id)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `UnifiedId::TrackingId` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
use of deprecated function `handlers::chunk_handler::update_chunk_by_tracking_id`: src/lib.rs#L635
warning: use of deprecated function `handlers::chunk_handler::update_chunk_by_tracking_id` --> src/lib.rs:635:76 | 635 | ... web::put().to(handlers::chunk_handler::update_chunk_by_tracking_id), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default
use of deprecated function `handlers::group_handler::add_chunk_to_group_by_tracking_id`: src/lib.rs#L719
warning: use of deprecated function `handlers::group_handler::add_chunk_to_group_by_tracking_id` --> src/lib.rs:719:82 | 719 | ... handlers::group_handler::add_chunk_to_group_by_tracking_id | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
use of deprecated function `handlers::group_handler::update_group_by_tracking_id`: src/lib.rs#L728
warning: use of deprecated function `handlers::group_handler::update_group_by_tracking_id` --> src/lib.rs:728:92 | 728 | ... web::put().to(handlers::group_handler::update_group_by_tracking_id), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
large size difference between variants: src/data/models.rs#L2431
warning: large size difference between variants --> src/data/models.rs:2431:1 | 2431 | / pub enum ConditionType { 2432 | | Field(FieldCondition), | | --------------------- the largest variant contains at least 360 bytes 2433 | | HasID(HasIDCondition), | | --------------------- the second-largest variant contains at least 48 bytes 2434 | | } | |_^ the entire enum is at least 360 bytes | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant = note: `#[warn(clippy::large_enum_variant)]` on by default help: consider boxing the large fields to reduce the total size of the enum | 2432 | Field(Box<FieldCondition>), | ~~~~~~~~~~~~~~~~~~~
`filter` for `Some` followed by `unwrap`: src/operators/chunk_operator.rs#L1221
warning: `filter` for `Some` followed by `unwrap` --> src/operators/chunk_operator.rs:1221:10 | 1221 | .filter(|x| x.is_some()) | __________^ 1222 | | .map(|x| x.unwrap()) | |____________________________^ help: consider using `flatten` instead: `flatten()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_filter_map = note: `#[warn(clippy::option_filter_map)]` on by default
casting to the same type is unnecessary (`usize` -> `usize`): src/operators/parse_operator.rs#L42
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> src/operators/parse_operator.rs:42:28 | 42 | chunk.drain(0..amt_to_take as usize); | ^^^^^^^^^^^^^^^^^^^^ help: try: `amt_to_take` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
casting to the same type is unnecessary (`usize` -> `usize`): src/operators/parse_operator.rs#L77
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> src/operators/parse_operator.rs:77:33 | 77 | target_group_size + cmp::min(remainder as usize, remainder_per_group as usize) as usize; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `cmp::min(remainder as usize, remainder_per_group as usize)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
redundant closure: src/operators/search_operator.rs#L103
warning: redundant closure --> src/operators/search_operator.rs:103:22 | 103 | .map(|id| UnifiedId::TrieveUuid(id)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `UnifiedId::TrieveUuid` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `#[warn(clippy::redundant_closure)]` on by default
redundant closure: src/operators/search_operator.rs#L115
warning: redundant closure --> src/operators/search_operator.rs:115:22 | 115 | .map(|id| UnifiedId::TrackingId(id)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `UnifiedId::TrackingId` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
unused variable: `replication_factor`: src/bin/create-new-qdrant.rs#L15
warning: unused variable: `replication_factor` --> src/bin/create-new-qdrant.rs:15:9 | 15 | let replication_factor: u32 = std::env::var("REPLICATION_FACTOR") | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replication_factor` | = note: `#[warn(unused_variables)]` on by default
use of deprecated function `handlers::chunk_handler::update_chunk_by_tracking_id`: src/lib.rs#L635
warning: use of deprecated function `handlers::chunk_handler::update_chunk_by_tracking_id` --> src/lib.rs:635:76 | 635 | ... web::put().to(handlers::chunk_handler::update_chunk_by_tracking_id), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default
use of deprecated function `handlers::group_handler::add_chunk_to_group_by_tracking_id`: src/lib.rs#L719
warning: use of deprecated function `handlers::group_handler::add_chunk_to_group_by_tracking_id` --> src/lib.rs:719:82 | 719 | ... handlers::group_handler::add_chunk_to_group_by_tracking_id | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
use of deprecated function `handlers::group_handler::update_group_by_tracking_id`: src/lib.rs#L728
warning: use of deprecated function `handlers::group_handler::update_group_by_tracking_id` --> src/lib.rs:728:92 | 728 | ... web::put().to(handlers::group_handler::update_group_by_tracking_id), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
large size difference between variants: src/data/models.rs#L2431
warning: large size difference between variants --> src/data/models.rs:2431:1 | 2431 | / pub enum ConditionType { 2432 | | Field(FieldCondition), | | --------------------- the largest variant contains at least 360 bytes 2433 | | HasID(HasIDCondition), | | --------------------- the second-largest variant contains at least 48 bytes 2434 | | } | |_^ the entire enum is at least 360 bytes | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant = note: `#[warn(clippy::large_enum_variant)]` on by default help: consider boxing the large fields to reduce the total size of the enum | 2432 | Field(Box<FieldCondition>), | ~~~~~~~~~~~~~~~~~~~
`filter` for `Some` followed by `unwrap`: src/operators/chunk_operator.rs#L1221
warning: `filter` for `Some` followed by `unwrap` --> src/operators/chunk_operator.rs:1221:10 | 1221 | .filter(|x| x.is_some()) | __________^ 1222 | | .map(|x| x.unwrap()) | |____________________________^ help: consider using `flatten` instead: `flatten()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_filter_map = note: `#[warn(clippy::option_filter_map)]` on by default
casting to the same type is unnecessary (`usize` -> `usize`): src/operators/parse_operator.rs#L42
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> src/operators/parse_operator.rs:42:28 | 42 | chunk.drain(0..amt_to_take as usize); | ^^^^^^^^^^^^^^^^^^^^ help: try: `amt_to_take` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
casting to the same type is unnecessary (`usize` -> `usize`): src/operators/parse_operator.rs#L77
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> src/operators/parse_operator.rs:77:33 | 77 | target_group_size + cmp::min(remainder as usize, remainder_per_group as usize) as usize; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `cmp::min(remainder as usize, remainder_per_group as usize)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
redundant closure: src/operators/search_operator.rs#L103
warning: redundant closure --> src/operators/search_operator.rs:103:22 | 103 | .map(|id| UnifiedId::TrieveUuid(id)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `UnifiedId::TrieveUuid` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `#[warn(clippy::redundant_closure)]` on by default
redundant closure: src/operators/search_operator.rs#L115
warning: redundant closure --> src/operators/search_operator.rs:115:22 | 115 | .map(|id| UnifiedId::TrackingId(id)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `UnifiedId::TrackingId` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
redoc
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
redoc
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/