CI clippy didn't emit warning about too large types that were found when running clippy locally
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với lần chạy CI được liên kết trong issue và so sánh lời gọi clippy cùng toolchain Rust 1.77.2 của nó với lệnh cục bộ đã tạo ra các cảnh báo. Kiểm tra rust/operator-binary/src/controller.rs tại các dòng 638, 792 và 1323, tập trung vào các cảnh báo result_large_err được báo cáo. Được xem là hoàn tất khi giải thích được sự khác biệt và CI báo cáo các cảnh báo tương tự, nếu phù hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When reviewing #614 I ran clippy locally and got the warnings pasted below, but CI running clippy did not alert on these https://github.com/stackabletech/nifi-operator/actions/runs/9003755958
Probably worth investigating why this differs at some point.
My local rust:
❯ cargo --version
cargo 1.77.2 (e52e36006 2024-03-26)
Version stated in ci: RUST_TOOLCHAIN_VERSION: "1.77.2"
Warnings:
warning: the `Err`-variant returned from this function is very large
--> rust/operator-binary/src/controller.rs:638:6
|
186 | ProductConfigLoadFailed { source: config::Error },
| ------------------------------------------------- the largest variant contains at least 128 bytes
...
210 | BoostrapConfig { source: crate::config::Error },
| ----------------------------------------------- the variant `BoostrapConfig` contains at least 128 bytes
...
213 | / BuildProductConfig {
214 | | source: crate::config::Error,
215 | | rolegroup: RoleGroupRef<NifiCluster>,
216 | | },
| |_____- the variant `BuildProductConfig` contains at least 128 bytes
...
638 | ) -> Result<Service> {
| ^^^^^^^^^^^^^^^
|
= help: try reducing the size of `controller::Error`, for example by boxing large elements or replacing it with `Box<controller::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
= note: `#[warn(clippy::result_large_err)]` on by default
warning: the `Err`-variant returned from this function is very large
--> rust/operator-binary/src/controller.rs:792:6
|
186 | ProductConfigLoadFailed { source: config::Error },
| ------------------------------------------------- the largest variant contains at least 128 bytes
...
210 | BoostrapConfig { source: crate::config::Error },
| ----------------------------------------------- the variant `BoostrapConfig` contains at least 128 bytes
...
213 | / BuildProductConfig {
214 | | source: crate::config::Error,
215 | | rolegroup: RoleGroupRef<NifiCluster>,
216 | | },
| |_____- the variant `BuildProductConfig` contains at least 128 bytes
...
792 | ) -> Result<Service> {
| ^^^^^^^^^^^^^^^
|
= help: try reducing the size of `controller::Error`, for example by boxing large elements or replacing it with `Box<controller::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
warning: the `Err`-variant returned from this function is very large
--> rust/operator-binary/src/controller.rs:1323:50
|
186 | ProductConfigLoadFailed { source: config::Error },
| ------------------------------------------------- the largest variant contains at least 128 bytes
...
210 | BoostrapConfig { source: crate::config::Error },
| ----------------------------------------------- the variant `BoostrapConfig` contains at least 128 bytes
...
213 | / BuildProductConfig {
214 | | source: crate::config::Error,
215 | | rolegroup: RoleGroupRef<NifiCluster>,
216 | | },
| |_____- the variant `BuildProductConfig` contains at least 128 bytes
...
1323 | fn external_node_port(nifi_service: &Service) -> Result<i32> {
| ^^^^^^^^^^^
|
= help: try reducing the size of `controller::Error`, for example by boxing large elements or replacing it with `Box<controller::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
warning: `stackable-nifi-operator` (bin "stackable-nifi-operator") generated 3 warnings
- Ngôn ngữ chính
- Rust
- Star
- 48
- Fork
- 12
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không 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 stackabletech/nifi-operator
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
stackabletech/nifi-operator#956 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
stackabletech/nifi-operator#879 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
customer-request type/bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
stackabletech/nifi-operator#842 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
size/M type/security
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
stackabletech/nifi-operator#811 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
size/L
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
stackabletech/nifi-operator#810 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của stackabletech/nifi-operator
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
zcashlabs/thus-spoke-zakura#153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
claude_code: step fails on session-scoped (`@inline`) plugins with `Invalid scope "session"`Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
topgrade-rs/topgrade#2395 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app bug windows-os
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve sublime text syntaxĐang mởeditor good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
funnyboy-roks/inq#54 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pnpm/pnpm#16635 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày