bug(driver-mxc): test helper fails to compile after gateway-name argument
維護者通常 1 天內回覆
評估
研究方向
閱讀 crates/openshell-driver-mxc/src/driver.rs 第 458 行附近的程式碼,並將 new_mocked 與其他 MXC 測試建構函式進行比較。執行適用於 x64 或 ARM64 的 Windows lint 工作,以重現編譯失敗;當 MXC 程式庫測試目標編譯成功,且 Windows 測試步驟可以執行時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Rust
- 星號
- 15.4k
- 分支
- 1.7k
- 平均合併
- 1 天 20 小時
- 30 天內合併 PR
- 348
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NVIDIA/OpenShell 的其他 Issue
-
bug(vm-driver): VM sandbox cold start stalls ~5 s repeatedly on "Waiting for VM supervisor"可能已有人在做 @benoitf 今天認領。 未關閉state:triage-needed
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
docs: document workspace and provider label capabilities可能已有人在做 @johntmyers 於 1 天前認領。 未關閉area:docs
難度 2/5 1-3 小時 新手友好度 72/100
NVIDIA/OpenShell#4250 · 2 則留言 ·
維護者通常 1 天內回覆
-
Sandbox-side proposal audit (CONFIG:PROPOSED and /wait decisions) names only the first endpoint可能已有人在做 @ericcurtin 今天認領。 未關閉state:accepted
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
bug: install.sh ignores XDG_CONFIG_HOME for the local gateway config可能已有人在做 @fede-kamel 於 6 天前認領。 未關閉area:cli os:linux os:macos state:validated
難度 2/5 1-3 小時 新手友好度 88/100
NVIDIA/OpenShell#4042 · 2 則留言 ·
維護者通常 1 天內回覆
-
state:triage-needed
難度 2/5 1-3 小時 新手友好度 72/100
NVIDIA/OpenShell#3995 · 2 則留言 ·
維護者通常 1 天內回覆
相似的 Issue
-
app enhancement
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 80/100
elodin-sys/elodin#890 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
guidance-ai/llguidance#391 ·
-
documentation
難度 1/5 1 小時以內 新手友好度 85/100
Verifiedz/Shimmer#144 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
Y-ASLant/ElegantClipboard#166 ·