Enhance: localhost:9385 -> sandbox-executor-manager:9385 (#17414)

This commit is contained in:
Wang Qi
2026-07-27 15:20:09 +08:00
committed by GitHub
parent 3065a29935
commit cd846cc9d4
8 changed files with 22 additions and 22 deletions

View File

@@ -35,7 +35,7 @@ func TestValidateSystemSettingValue(t *testing.T) {
{name: "bool accepts true", dataType: "bool", value: "true"},
{name: "bool accepts false", dataType: "bool", value: "false"},
{name: "bool rejects non bool", dataType: "bool", value: "yes", wantError: true},
{name: "json accepts object", dataType: "json", value: `{"endpoint":"http://localhost:9385"}`},
{name: "json accepts object", dataType: "json", value: `{"endpoint":"http://sandbox-executor-manager:9385"}`},
{name: "json rejects invalid", dataType: "json", value: "{", wantError: true},
{name: "unknown type rejects", dataType: "float", value: "1.2", wantError: true},
}

View File

@@ -75,7 +75,7 @@ import (
// selfManagedDefaultEndpoint is the canonical executor_manager
// endpoint baked into the Python side. Operators override via
// SANDBOX_EXECUTOR_MANAGER_URL.
const selfManagedDefaultEndpoint = "http://localhost:9385"
const selfManagedDefaultEndpoint = "http://sandbox-executor-manager:9385"
// SelfManagedProvider is the Go port of
// `agent/sandbox/providers/self_managed.py::SelfManagedProvider`.

View File

@@ -27,7 +27,7 @@ class SandboxProvider(ABC):
| Provider | File | Backend |
|----------|------|---------|
| `SelfManagedProvider` | `self_managed.py` | HTTP at `localhost:9385` (the `executor_manager`, which runs a Docker pool with gVisor) |
| `SelfManagedProvider` | `self_managed.py` | HTTP at `sandbox-executor-manager:9385` (the `executor_manager`, which runs a Docker pool with gVisor) |
| `AliyunCodeInterpreterProvider` | `aliyun_codeinterpreter.py` | Alibaba Cloud sandbox (uses `agentrun` SDK / Function Compute) |
| `E2BProvider` | `e2b.py` | e2b cloud sandbox (SaaS) |
@@ -94,7 +94,7 @@ Cons
Read the three provider implementations and write Go equivalents:
- `SelfManagedProvider` → Go HTTP client to `localhost:9385`
- `SelfManagedProvider` → Go HTTP client to `sandbox-executor-manager:9385`
(the executor_manager). Smallest of the three.
- `AliyunCodeInterpreterProvider` → Go reimplementation of the
`agentrun` SDK client. ~Vendor SDK surface to maintain.