chore(gateway): remove the per-driver launcher Cargo features
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 重構
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- docker, github-actions, kubernetes, rust
- 領域
- build-system, ci-cd
研究方向
Start with the compute-driver-docker, compute-driver-podman and compute-driver-vm entries in crates/openshell-gateway/Cargo.toml, then find their cfg gates in the gateway source and in tests/config_preflight.rs. Check the branch-checks.yml feature matrix and the in-tree-compute-drivers and defaults-without-telemetry features. Done means the three launcher features are removed or kept as deprecated aliases, the matrix and cfg attributes match, and the build docs are updated.
由索引模型根據 Issue 內容生成。
描述
User Story
I build and package the gateway, and I follow the move of the desktop compute drivers out of this repository (#5200). I directly encountered, while changing the Docker, Podman and VM drivers to launch as subprocesses, that the gateway still has a Cargo feature per launched driver that no longer does what its name says. This affects anyone who builds the gateway from source and the size of the CI feature matrix.
Problem Statement
compute-driver-docker, compute-driver-podman and compute-driver-vm in crates/openshell-gateway/Cargo.toml used to link each driver into the gateway. After the launcher change, each one only enables the shared driver-launcher feature and the cfg gates for that driver's launch code and registration. The compute-driver-kubernetes and compute-driver-mxc features still link their driver crates. The three launcher features keep a per-driver build matrix and cfg gates in the code, without linking anything.
Impact / Why This Matters
Each feature subset must compile and test on its own, which the Rust gateway core features and Rust gateway extended features jobs do. The launcher change hit two failures from this: a test that referenced another driver's module in a single-driver build, and dead-code warnings in subsets that lacked a driver. Those gates add maintenance cost and no capability for drivers that are no longer linked. They also keep a public build interface (--features compute-driver-podman) that suggests a gateway without that driver's code, when the driver is a separate binary.
Desired Workflow
The gateway builds with the launcher support always on, or behind one feature, and no per-driver launcher features. Downstream packagers who disabled a driver feature get a clear deprecation notice, and the CI matrix lists the feature combinations that still matter (Kubernetes and MXC). Success: fewer feature combinations, no cfg gates for the Docker, Podman and VM launchers, and the same set of drivers launchable at runtime.
Acceptance Criteria
- The three per-driver launcher features are removed, or kept as deprecated aliases for one release.
in-tree-compute-drivers,defaults-without-telemetryand therust:verify:defaults-without-telemetrycheck stay consistent.- The
branch-checks.ymlfeature matrix and thecfgattributes intests/config_preflight.rsare updated. - The change is documented for people who build the gateway from source.
Related: #5200, #5384, #5385. Deferred from the launcher PR (#5914).
- 主要語言
- Rust
- 星號
- 21.5k
- 分支
- 2.1k
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NVIDIA/OpenShell 的其他 Issue
-
state:triage-needed
難度 2/5 1-3 小時 新手友好度 86/100
-
state:triage-needed
難度 2/5 1-3 小時 新手友好度 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failure可能已有人在做 @TaylorMutch 於 9 天前認領。 未關閉state:accepted state:pr-opened
難度 2/5 1-3 小時 新手友好度 78/100
-
state:triage-needed
難度 1/5 1-3 小時 新手友好度 78/100
-
state:triage-needed
難度 2/5 1-3 小時 新手友好度 62/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
autofixer: follow-up
難度 2/5 1-3 小時 新手友好度 78/100
tursodatabase/turso#12531 ·
維護者通常 1 天內回覆
-
bug help wanted ui
難度 2/5 1-3 小時 新手友好度 82/100
userFRM/egui-charts#4292 ·
維護者通常 1 天內回覆
-
Issue-Bug Need-Review
難度 1/5 1-3 小時 新手友好度 85/100
PowerShell/DSC#1832 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆