chore(gateway): remove the per-driver launcher Cargo features

未關閉
#5,965 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
重構
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
docker, github-actions, kubernetes, rust

研究方向

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 內容生成。

描述

area:drivers

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-telemetry and the rust:verify:defaults-without-telemetry check stay consistent.
  • The branch-checks.yml feature matrix and the cfg attributes in tests/config_preflight.rs are 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

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NVIDIA/OpenShell 的其他 Issue

查看 NVIDIA/OpenShell 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。