Skip to content

chore: [DO NOT MERGE] remove the compute drivers migrated to desktop - #6194

Draft
elezar wants to merge 1 commit into
mainfrom
chore/5200-remove-migrated-drivers/elezar
Draft

elezar wants to merge 1 commit into
mainfrom
chore/5200-remove-migrated-drivers/elezar

Conversation

@elezar

@elezar elezar commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Do not merge until

This is a draft. Merging it now would break packaging, release, and CI, because core still builds and ships the driver binaries from the crates this PR deletes. Merge only when every item below holds.

Already met: the gateway launches the drivers as subprocesses (#5914), core's reverse dependencies on the crates and the per-driver Cargo features are gone (#6023, #6035), and ai-openshell/desktop holds the imported crates on main (imported at core v0.1.11; the proof-of-concept PR desktop#2 was closed without merging, so confirm the import revision is the one the freeze recorded).

What this PR removes

  • crates/openshell-driver-docker, crates/openshell-driver-podman, crates/openshell-driver-vm, crates/openshell-container-runtime
  • e2e/configs/gateway/docker.toml, e2e/configs/gateway/podman.toml, tasks/vm.toml, tasks/scripts/vm, .github/workflows/release-vm-kernel.yml
  • Their entries in Cargo.lock (regenerated; 4 workspace crates and their now-unused third-party dependencies drop out) and deny.toml (sha2 wrappers, the oci-client wrapper and comment mention)
  • The AGENTS.md architecture rows and the driver README links in docs/extensibility/{drivers,overview}.mdx, now pointing at ai-openshell/desktop

The gateway launcher (crates/openshell-gateway/src/{docker,podman,vm,launcher,local_driver}.rs) stays. It launches the external binaries by name and does not depend on the crates. The Frozen Paths config also stays; it keeps the deleted paths from being re-added.

What this PR leaves for later, and why

Everything below still names the deleted crates or the binaries built from them. Removing or stubbing it here would only hide that core cannot yet get the driver binaries from desktop.

  • Packaging and release (feat: build, package, and release the desktop drivers from packages #6042): .github/workflows/{build-binaries-linux,build-binaries-macos,build-vm-driver-linux,build-vm-driver-macos,package-release-binaries,release-build,release-dev,release-publish,deb-package,build-rpm,snap-package}.yml, .github/actions/setup-e2e-vm-driver, deploy/docker/Dockerfile.gateway, openshell.spec, snapcraft.yaml, install.sh, tasks/scripts/{stage-prebuilt-binaries,package-deb,package-deb-install,release,docker-build-image,test-packaging-assets}.sh/.py and the Homebrew formula, deploy/ packaging assets.
  • e2e and CI lanes (chore: move or remove the driver e2e wrappers and lanes in core #6044): .github/workflows/branch-e2e.yml, e2e-vm-test.yml, e2e/with-docker-gateway.sh, e2e/with-podman-gateway.sh, e2e/rust/e2e-vm.sh, e2e/no-compute-driver-gateway.sh, tasks/scripts/gateway-{docker,podman,vm}.sh, tests/suites/features/docker-updates.
  • tmachine: tests/tmachine/{artifacts,config}.nix and the openshell_external_driver Ansible role build the drivers with -p openshell-driver-*.
  • Docs: docs/observability/{telemetry,traces}.mdx and docs/how-it-works/gateways/configuration.mdx mention the driver binaries and build commands (cargo build -p openshell-driver-vm); they need rewording once packaging is decided. Also rfc/0001-core-architecture, skills/debug-openshell-cluster/SKILL.md, nix/test-guest/README.md, .agents/skills/build-openshell-mxc-windows/reference.md (--exclude openshell-driver-vm), and crates/openshell-crypto/{CRYPTO,README}.md.
  • Gateway tests: crates/openshell-gateway/tests/config_preflight.rs references the driver binary names only as strings; it still passes.
  • "Core docs point at the new location for at least one release" (feat: move the desktop compute drivers to the ai-openshell/desktop repository #5200): the link updates here cover only the driver crate READMEs.

Verification

Done, on this branch:

  • cargo check and cargo clippy --workspace --all-targets -- -D warnings pass.
  • cargo metadata --locked accepts the regenerated Cargo.lock.
  • cargo fmt --check.
  • python3 tasks/scripts/check_frozen_paths.py --base origin/main --head HEAD: deletions pass.
  • Markdown lint and format (pre-commit hook), tasks/scripts/check_frozen_paths_test.py (9 pass).

Not done:

  • cargo test for openshell-gateway and openshell-supervisor-network: the test binaries did not link on the author's machine (library 'z3' not found), and a retry under nix develop produced no result. Run them in CI.

Expected to fail today:

  • The gateway image, deb, rpm, snap, Homebrew, and release workflows were not built. They still run cargo build -p openshell-driver-* and stage the resulting binaries, so with this PR they cannot produce the driver binaries until feat: build, package, and release the desktop drivers from packages #6042 lands.
  • Branch E2E driver lanes, the tmachine suites, and the install canary were not run.
  • deny.toml was edited but cargo deny was not run.

Delete the Docker, Podman and VM compute driver crates, the shared
container-runtime crate, the VM scripts and tasks, the kernel release
workflow and the Docker and Podman gateway configs. These now live in
ai-openshell/desktop. Prune Cargo.lock and the deny.toml wrappers, and
point the architecture table and driver docs at the new repository.

Packaging, release workflows, e2e wrappers and tmachine still build or
ship the driver binaries from core and are left for follow-up changes
(#6042, #6044).

Refs: #5200
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

@elezar elezar added the test:e2e Requires end-to-end coverage label Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant