Consider using cargo-semver-checks
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện các lần chạy cargo-semver-checks đã được báo cáo cho các phiên bản 1.9.0, 1.10.1 và 1.10.2 của qdrant-client. Xem xét các vị trí public API đã được báo cáo trong src/qdrant.rs và builders/payloads.rs, sau đó xác định nơi có thể tích hợp các bước kiểm tra tính tương thích; công việc được xem là hoàn tất khi có một bước kiểm tra được lập tài liệu, có thể lặp lại và có cách phản hồi được thống nhất đối với các lỗi của bước kiểm tra đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
There was a semver breakage mentioned in #87 and I was sceptical that a builder pattern would actually solve the issue because it doesn't stop you changing APIs in a semver incompatible manner at all. So as I saw qdrant-client had been updated again since I last checked I ran a cargo-semver-checks on it and it failed. Between 1.10.1 and 1.10.2 there was a "technically" breaking change.
cargo semver-checks --baseline-version 1.10.1
Parsing qdrant-client v1.10.2 (current)
Parsed [ 28.700s] (current)
Parsing qdrant-client v1.10.1 (baseline)
Parsed [ 37.051s] (baseline)
Checking qdrant-client v1.10.1 -> v1.10.2 (patch change)
Checked [ 0.193s] 76 checks: 75 pass, 1 fail, 0 warn, 0 skip
--- failure module_missing: pub module removed or renamed ---
Description:
A publicly-visible module cannot be imported by its prior path. A `pub use` may have been removed, or the module may have been renamed, removed, or made non-public.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.33.0/src/lints/module_missing.ron
Failed in:
mod qdrant_client::qdrant::payloads, previously in file /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/qdrant-client-1.10.1/src/qdrant_client/builders/payloads.rs:1
Summary semver requires new major version: 1 major and 0 minor checks failed
Finished [ 66.212s] qdrant-client
So as it didn't list any items in the module it must be a public module with no public items was removed so the only code it can break is code doing: use qdrant_client::qdrant::payloads as payloads; This isn't a big breakage as a result and the lint is likely to become a warning instead of error lint in future. But I hope it goes some way to demonstrate the usefulness of cargo-semver checks.
We can also look at the 1.9.0 -> 1.10.2 change and see 3 major breakages:
cargo semver-checks --baseline-version 1.9.0
Parsing qdrant-client v1.10.2 (current)
Parsed [ 4.369s] (current)
Parsing qdrant-client v1.9.0 (baseline)
Parsed [ 36.069s] (baseline)
Checking qdrant-client v1.9.0 -> v1.10.2 (minor change)
Checked [ 0.126s] 70 checks: 67 pass, 3 fail, 0 warn, 6 skip
--- failure constructible_struct_adds_field: externally-constructible struct adds field ---
Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.33.0/src/lints/constructible_struct_adds_field.ron
Failed in:
field ScoredPoint.order_value in /home/daniel/rust/rust-client/src/qdrant.rs:4943
field SparseVectorParams.modifier in /home/daniel/rust/rust-client/src/qdrant.rs:137
field SparseIndexConfig.datatype in /home/daniel/rust/rust-client/src/qdrant.rs:287
field VectorParams.multivector_config in /home/daniel/rust/rust-client/src/qdrant.rs:44
field ShardTransferInfo.to_shard_id in /home/daniel/rust/rust-client/src/qdrant.rs:974
field MoveShard.to_shard_id in /home/daniel/rust/rust-client/src/qdrant.rs:1017
field Vector.vectors_count in /home/daniel/rust/rust-client/src/qdrant.rs:3079
field RetrievedPoint.order_value in /home/daniel/rust/rust-client/src/qdrant.rs:5079
field AbortShardTransfer.to_shard_id in /home/daniel/rust/rust-client/src/qdrant.rs:1069
field RestartTransfer.to_shard_id in /home/daniel/rust/rust-client/src/qdrant.rs:1084
--- failure enum_variant_added: enum variant added on exhaustive enum ---
Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.33.0/src/lints/enum_variant_added.ron
Failed in:
variant ShardTransferMethod:ReshardingStreamRecords in /home/daniel/rust/rust-client/src/qdrant.rs:1635
variant Datatype:Float16 in /home/daniel/rust/rust-client/src/qdrant.rs:1255
variant ReplicaState:Resharding in /home/daniel/rust/rust-client/src/qdrant.rs:1591
--- failure module_missing: pub module removed or renamed ---
Description:
A publicly-visible module cannot be imported by its prior path. A `pub use` may have been removed, or the module may have been renamed, removed, or made non-public.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.33.0/src/lints/module_missing.ron
Failed in:
mod qdrant_client::filters, previously in file /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/qdrant-client-1.9.0/src/filters.rs:1
Summary semver requires new major version: 3 major and 0 minor checks failed
Finished [ 40.723s] qdrant-client
- Ngôn ngữ chính
- Rust
- Star
- 425
- Fork
- 89
- Merge trung bình
- 2 giờ 48 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của qdrant/rust-client
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
qdrant/rust-client#320 ·
-
upsert_points deep-clones the whole request on every call, not only on retryCó thể làm lại được @NullSense đã nhận 7 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
qdrant/rust-client#316 · 3 bình luận ·
-
Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)Có thể làm lại được @inamdarmihir đã nhận 37 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
qdrant/rust-client#306 · 1 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
qdrant/rust-client#289 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
qdrant/rust-client#272 · 2 reaction ·
Tất cả issue của qdrant/rust-client
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
samkerrcode/opengent#113 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app bug session
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
sagemathinc/sagebrush#3415 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày