Repository navigation
Conversation
Port of the driver-specific part of ai-openshell/openshell#3611. Get, Stop, Start and Delete locate a sandbox by sandbox_id only. An empty sandbox_id is rejected with invalid_argument. The name fallback and name matching are removed from lookup and lifecycle fencing in the Docker and VM drivers, including the pending image update lookup in the Docker driver. Sandbox names are unique per workspace, not per driver, so a name could select the wrong sandbox. The request field `name` is neither read nor required: request literals set it to an empty string or default it, so the change builds against the current OpenShell pin and against core once the gateway stops sending it. Signed-off-by: Evan Lezar <elezar@nvidia.com>
Open
5 of 6 tasks
Move every OpenShell git dependency to bdd5233a98, the head of ai-openshell/openshell#3611, so the drivers build against the proto that deprecates the request `name` field. Re-pin to the merge commit once that PR lands. Signed-off-by: Evan Lezar <elezar@nvidia.com>
Move every OpenShell git dependency to bbb10834c8, the new head of ai-openshell/openshell#3611 after it was force-pushed. Signed-off-by: Evan Lezar <elezar@nvidia.com>
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.
Blocked on ai-openshell/openshell#3611 merging.
Port of the driver-specific part of ai-openshell/openshell#3611, which has since been reworked in place (core issue ai-openshell/openshell#3556), as part of the driver move to this repository.
What changed
Drivers locate a sandbox by
sandbox_idonly.sandbox_idwithinvalid_argument.require_sandbox_identifieris replaced byrequire_sandbox_id;resolve_lifecycle_id,pending_sandbox_record_idand the VMresolve_record_idare removed.Relationship to the core PR
The request field
name = 2stays in the proto, documented as deprecated, and the gateway may still send it. The drivers ignore it and requiresandbox_id: nothing readsrequest.name, and request literals setname: String::new()or use..Default::default().The OpenShell pin is bumped to
bbb10834c8, the head of #3611 (all pins move together). Re-pin to the merge commit once #3611 lands; the commit may stop being fetchable if the PR branch is force-pushed again. The drivers should not merge before #3611, so they are built and tested against the proto it changes.Verification
Against the pin
bbb10834c8,mise run ci:cargo fmt --checkandcargo clippy --all-targets -D warnings: clean for the Docker, Podman and VM crates.nix develop --command cargo test -p openshell-driver-vm), which providesmke2fs. Outside the devshell, six tests that build ext4 images fail on a machine without e2fsprogs.Not verified: the head of #3611 can still change before merge, so this is checked against
bbb10834c8only.