Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug(driver-mxc): test helper fails to compile after gateway-name argument

オープン 初心者向け
#4,191 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@feloy がすでに取り組んでいます。

2026年10月5日 から。

  • #4194 @feloy による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
testing

調査の方向性

crates/openshell-driver-mxc/src/driver.rs の458行目あたりを読み、new_mocked と他の MXC テスト用コンストラクターを比較してください。コンパイルエラーを再現するため、x64 または ARM64 向けの Windows lint タスクを実行してください。MXC ライブラリのテストターゲットがコンパイルされ、Windows のテスト手順を実行できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

state:triage-needed

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

  1. Check out OpenShell main at 71c3cd957abef062eb7f37010056717cd49f2ed3 on a Windows machine with the repository's MSVC prerequisites.
  2. Run mise run --skip-tools windows:lint:x64. On a native ARM64 machine, use windows:lint:arm64.
  3. Observe the compile errors at crates/openshell-driver-mxc/src/driver.rs:458.

Environment

  • OpenShell: main at 71c3cd957abef062eb7f37010056717cd49f2ed3
  • 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
スター
13.2k
フォーク
1.6k
平均マージ
1日 19時間
マージ済み PR(30日)
343

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/OpenShell のほかの issue

NVIDIA/OpenShell の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。