Repository navigation
Conversation
…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>
…r SDK Signed-off-by: Evan Lezar <elezar@nvidia.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
socket_discovery.rs) fromopenshell-driver-podmanintoopenshell-driver-sdkaspodman_socket.openshell-driver-vmno longer depends onopenshell-driver-podman.openshell-driver-vm(allocation-trackingfeature) intoopenshell-supervisor-networkas a test-onlytest_allocmodule, and drop that crate's dependency onopenshell-driver-vm. Unsafe code stays forbidden outside tests (denyundercfg(test), allowed only in that module).Candidate homes weighed for the socket code:
openshell-driver-sdkneeds no new dependencies (the code uses only std,serde_jsonandopenshell-core::local_api_socket, which the SDK already has) and every driver already links it.openshell-corewould widen a core crate for driver-only logic,openshell-driver-launchis 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 warningsandcargo fmtclean foropenshell-driver-sdk,-podman,-vmandopenshell-supervisor-network, re-run after rebasing onto currentorigin/main.openshell-driver-sdkandopenshell-driver-podman;openshell-supervisor-networkpasses in full with--test-threads=1.openshell-supervisor-networkparallel runs intermittently fail a fewproxy::testswith atracing-subscriberregistry panic. This also happens on unmodifiedorigin/main(one of two runs failed the same tests), so it is not introduced here.