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

Abierto
#5,965 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, github-actions, kubernetes, rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
Rust
Estrellas
21.5k
Forks
2.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NVIDIA/OpenShell

Todos los issues de NVIDIA/OpenShell

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.