Skip to content

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

Backlog

Description

@elezar

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

Activity

  1. added
    area:drivers
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:drivers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions