Repository navigation
test(adapters): a live test for gcp-sandboxes, and a second delete that succeeds - #132
Merged
Merged
Conversation
…at succeeds Adds TestLiveGCPSandboxes (build tags live,experimental_adapters): the scenario Differently relies on against a real Agent Platform engine (create and a replayed create, exec with env, cwd, stdin and an exit code, a 128 KiB file in several pieces, list, stop and start with the file kept, snapshot, a fork with the file, deletes). It also reports what Google does not document: whether a process survives :pause and :resume, and whether one survives a snapshot into a fork, which decides whether the pool could advertise lifecycle.pause-resume. It has not been run. Fixes Delete for a sandbox already being deleted: Google may refuse a second deletion with FAILED_PRECONDITION rather than NOT_FOUND; the adapter now checks that the sandbox is gone and succeeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jalil <reachjalil@gmail.com>
reachjalil
force-pushed
the
feat/gcp-sandboxes-live-test
branch
from
November 20, 2026 02:05
258fc57 to
4719c6c
Compare
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.
What
Hardening for the experimental
gcp-sandboxesadapter (Google Cloud Agent Platform sandboxes), which has only ever run against a fake server:TestLiveGCPSandboxes(build tagslive,experimental_adapters;GCP_SANDBOXES_PROJECT,_LOCATION,_ENGINE,_TEMPLATE, optional_CREDENTIAL_FILE, otherwise the metadata server): create and a replayed create, exec with env, cwd, stdin and an exit code, a 128 KiB file through several 64 KiB pieces, list, stop and start with the file kept, snapshot, a fork with the file, and the deletes, with each step timed. It also reports two things Google doesn't document: whether a process survives:pause/:resume, and whether one survives a snapshot into a fork. The answers decide whether the pool could advertiselifecycle.pause-resume.Deleteof a sandbox that is already deprovisioning succeeds even if Google refuses it withFAILED_PRECONDITION. Previously onlyNOT_FOUNDcounted, so a retried delete could be reported as failed.Docs (
docs/providers/gcp-sandboxes.md) and the changelog are updated.What ran
make verifypassed locally.npm run buildinsite/passed.FAILED_PRECONDITION. The test fails without the fix and passes with it.What did not run
The live test itself: it needs a Google Cloud project with an Agent Platform engine and shell template. Nothing in this adapter has run against Google Cloud.
🤖 Generated with Claude Code