Skip to content

refactor(drivers): remove reverse dependencies on the VM and Podman drivers - #6023

Draft
elezar wants to merge 2 commits into
mainfrom
claude/drivers-reverse-deps-e25e43
Draft

elezar wants to merge 2 commits into
mainfrom
claude/drivers-reverse-deps-e25e43

Conversation

@elezar

@elezar elezar commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove the two reverse dependencies from core crates onto the VM and Podman driver crates, so nothing outside crates/openshell-driver-* depends on the Docker, Podman or VM drivers and they can later move out as a directory move.

Related Issue

Related to #5391 and #5200. This does not close #5391: the gateway-linked driver features remain.

Changes

  • Move Podman socket discovery (socket_discovery.rs) from openshell-driver-podman into openshell-driver-sdk as podman_socket. openshell-driver-vm no longer depends on openshell-driver-podman.
  • Move the counting test allocator from openshell-driver-vm (allocation-tracking feature) into openshell-supervisor-network as a test-only test_alloc module, and drop that crate's dependency on openshell-driver-vm. Unsafe code stays forbidden outside tests (deny under cfg(test), allowed only in that module).

Candidate homes weighed for the socket code: openshell-driver-sdk needs no new dependencies (the code uses only std, serde_json and openshell-core::local_api_socket, which the SDK already has) and every driver already links it. openshell-core would widen a core crate for driver-only logic, openshell-driver-launch is the wrong concern, a new crate adds overhead for ~400 lines, and duplication would copy the bounded-subprocess handling.

Testing

  • cargo clippy --all-targets -D warnings and cargo fmt clean for openshell-driver-sdk, -podman, -vm and openshell-supervisor-network, re-run after rebasing onto current origin/main.
  • Unit tests pass for openshell-driver-sdk and openshell-driver-podman; openshell-supervisor-network passes in full with --test-threads=1.
  • openshell-supervisor-network parallel runs intermittently fail a few proxy::tests with a tracing-subscriber registry panic. This also happens on unmodified origin/main (one of two runs failed the same tests), so it is not introduced here.
  • Not run: the VM driver's own test suite and e2e.

…rivers

Move Podman socket discovery into openshell-driver-sdk so the VM driver
no longer depends on openshell-driver-podman, and move the counting
test allocator into openshell-supervisor-network so it no longer depends
on openshell-driver-vm. Nothing outside crates/openshell-driver-* now
depends on the Docker, Podman or VM driver crates.

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 Nov 26, 2026
…r SDK

Signed-off-by: Evan Lezar <elezar@nvidia.com>

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: remove the linked desktop drivers from core

1 participant