Skip to content

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

Merged
elezar merged 2 commits into
mainfrom
claude/drivers-reverse-deps-e25e43
Nov 27, 2026
Merged

elezar merged 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 a new openshell-container-runtime crate for code used only by the desktop drivers. 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 was the first candidate, but it stays in core after the drivers move, so it would keep driver-only code in core. A dedicated crate in the driver set moves with the drivers. openshell-core would widen a core crate for driver-only logic, openshell-driver-launch is the wrong concern, and duplication would copy the bounded-subprocess handling.

Testing

  • cargo clippy --all-targets -D warnings and cargo fmt clean for openshell-container-runtime, openshell-driver-sdk, -podman, -vm and openshell-supervisor-network, re-run after rebasing onto current origin/main.
  • Unit tests pass for openshell-container-runtime 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.

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 26, 2026
@elezar
elezar force-pushed the claude/drivers-reverse-deps-e25e43 branch from 6650a8d to 4056c25 Compare November 27, 2026 07:54
@elezar
elezar marked this pull request as ready for review November 27, 2026 07:55
…rivers

Move Podman socket discovery into a new openshell-container-runtime crate
for code used only by the desktop drivers, so the VM driver no longer
depends on openshell-driver-podman. Move the counting test allocator into
openshell-supervisor-network so it no longer depends on openshell-driver-vm.
Nothing outside crates/openshell-driver-* and the container-runtime crate now
depends on the Docker, Podman or VM driver crates.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar
elezar force-pushed the claude/drivers-reverse-deps-e25e43 branch from 4056c25 to 0926424 Compare November 27, 2026 08:05
@elezar
elezar enabled auto-merge November 27, 2026 09:03
@alangou

alangou commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Looks good, one fix before merge: crates/openshell-supervisor-network/README.md is now stale.

  • Line 3 still says the crate forbids unsafe "including its local tests".
  • Lines 11-16 still point at openshell-driver-vm::allocation_tracking which is gone.

Non-blocking: worth a test:windows run, since the new crate isn't in the Windows exclude list

…and exclude the container-runtime crate on Windows

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

elezar commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @alangou. The README changes should be addressed in latest.

@shiju-nv shiju-nv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking:

@elezar
elezar added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 569c274 Nov 27, 2026
88 of 89 checks passed
@elezar
elezar deleted the claude/drivers-reverse-deps-e25e43 branch November 27, 2026 16:16
elezar added a commit to ai-openshell/desktop that referenced this pull request Dec 2, 2026
…rivers (ai-openshell/openshell#6023)

* refactor(drivers): remove reverse dependencies on the VM and Podman drivers

Move Podman socket discovery into a new openshell-container-runtime crate
for code used only by the desktop drivers, so the VM driver no longer
depends on openshell-driver-podman. Move the counting test allocator into
openshell-supervisor-network so it no longer depends on openshell-driver-vm.
Nothing outside crates/openshell-driver-* and the container-runtime crate now
depends on the Docker, Podman or VM driver crates.

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

* docs(supervisor-network): refresh README for the test-only allocator and exclude the container-runtime crate on Windows

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

---------

Signed-off-by: Evan Lezar <elezar@nvidia.com>
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

3 participants