bug(driver-mxc): test helper fails to compile after gateway-name argument
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 88/100
Hướng nghiên cứu
Đọc crates/openshell-driver-mxc/src/driver.rs quanh dòng 458 và so sánh new_mocked với các hàm khởi tạo kiểm thử MXC khác. Chạy tác vụ lint của Windows cho x64 hoặc ARM64 để tái hiện lỗi biên dịch; công việc được xem là hoàn tất khi mục tiêu kiểm thử thư viện MXC biên dịch thành công và các bước kiểm thử Windows có thể chạy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
User Story
I use an OpenShell source checkout on Windows to run the project's MSVC validation. Running windows:lint:x64 directly encountered a compile error in the MXC driver's test helper, so I cannot complete Windows lint or reach the test step.
Problem Statement
MxcComputeBackend::new now requires (gateway_name, config), but the test-only MxcComputeBackend::new_mocked helper still calls Self::new(config) in crates/openshell-driver-mxc/src/driver.rs:458. The Windows lint task includes all targets, so it compiles this #[cfg(test)] call and fails with E0277 and E0061.
Impact / Why This Matters
The current OpenShell source cannot complete Windows MSVC lint on x64; the same test target is part of the ARM64 lint task. Validation stops before Windows tests can run. Developers must patch the source locally to continue, which means the checked-in validation lane cannot confirm unrelated changes.
Acceptance Criteria
- The MXC library test target compiles during Windows MSVC lint on x64 and ARM64 without E0277 or E0061.
- The mocked backend uses a gateway name consistent with the driver's other test constructors.
- The Windows MSVC test steps can run after lint passes.
Reproduction Steps
- Check out OpenShell
mainat71c3cd957abef062eb7f37010056717cd49f2ed3on a Windows machine with the repository's MSVC prerequisites. - Run
mise run --skip-tools windows:lint:x64. On a native ARM64 machine, usewindows:lint:arm64. - Observe the compile errors at
crates/openshell-driver-mxc/src/driver.rs:458.
Environment
- OpenShell:
mainat71c3cd957abef062eb7f37010056717cd49f2ed3 - OS: Windows, x64 MSVC validation
- Rust: 1.95.0 from
rust-toolchain.toml - Deployment: none required; this is a source checkout lint failure
Logs
error[E0277]: the trait bound `String: From<MxcComputeConfig>` is not satisfied
--> crates/openshell-driver-mxc/src/driver.rs:458:37
error[E0061]: this function takes 2 arguments but 1 argument was supplied
--> crates/openshell-driver-mxc/src/driver.rs:458:27
458 | let mut backend = Self::new(config);
Investigation
Commit a875add23 in PR #3264 added the gateway-name parameter to MxcComputeBackend::new for ETW event attribution but did not update new_mocked. The MXC implementation is gated to Windows, so non-Windows checks do not compile this call. Other MXC tests already use openshell_core::config::DEFAULT_GATEWAY_NAME when constructing the backend.
- Ngôn ngữ chính
- Rust
- Star
- 13.2k
- Fork
- 1.6k
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 348
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 NVIDIA/OpenShell
-
bug(vm-driver): VM sandbox cold start stalls ~5 s repeatedly on "Waiting for VM supervisor"Có thể đã có người làm @benoitf đã nhận hôm nay. Đang mởstate:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: document workspace and provider label capabilitiesCó thể đã có người làm @johntmyers đã nhận 1 ngày trước. Đang mởarea:docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NVIDIA/OpenShell#4250 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Sandbox-side proposal audit (CONFIG:PROPOSED and /wait decisions) names only the first endpointCó thể đã có người làm @ericcurtin đã nhận hôm nay. Đang mởstate:accepted
Độ 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
-
bug: install.sh ignores XDG_CONFIG_HOME for the local gateway configCó thể đã có người làm @fede-kamel đã nhận 6 ngày trước. Đang mởarea:cli os:linux os:macos state:validated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NVIDIA/OpenShell#4042 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NVIDIA/OpenShell#3995 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NVIDIA/OpenShell
Issue tương tự
-
app enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
elodin-sys/elodin#890 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
guidance-ai/llguidance#391 ·
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Verifiedz/Shimmer#144 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
点击设置提示`操作未能完成,详情请查看应用日志`Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Y-ASLant/ElegantClipboard#166 ·