bug(driver-mxc): test helper fails to compile after gateway-name argument
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Anfängerfreundlichkeit
- 88/100
Rechercherichtung
Lies crates/openshell-driver-mxc/src/driver.rs ungefähr ab Zeile 458 und vergleiche new_mocked mit den anderen MXC-Testkonstruktoren. Führe die Windows-Lint-Aufgabe für x64 oder ARM64 aus, um den Kompilierungsfehler zu reproduzieren; abgeschlossen ist die Aufgabe, wenn das MXC-Bibliothekstestziel kompiliert und die Windows-Testschritte ausgeführt werden können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 13.2k
- Forks
- 1.6k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 343
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus NVIDIA/OpenShell
-
state:triage-needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:docs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Sandbox-side proposal audit (CONFIG:PROPOSED and /wait decisions) names only the first endpointOffenstate:triage-needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug: install.sh ignores XDG_CONFIG_HOME for the local gateway configEvtl. vergeben @fede-kamel hat das vor 5 Tagen übernommen. Offenarea:cli os:linux os:macos state:validated
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
NVIDIA/OpenShell#4042 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
state:triage-needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
NVIDIA/OpenShell#3995 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in NVIDIA/OpenShell
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 5 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
tauri-apps/tauri#16219 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
ktuner keeps a stale ledger path and can never restore that entryEvtl. vergeben @Frun1na hat das heute übernommen. Offencomponent:ktuner
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
agentic-os-org/ANOLISA#6483 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
vaccfr/Sector-Files#225 ·