fix(sandbox): use E2B BuildID as template version

Disable the docker idle sweeper in integration tests so shared developer daemons are not reaped.
main
wizardchen 2026-09-12 10:27:38 +08:00 committed by lyingbug
parent a799f23b26
commit 815d32d3a9
2 changed files with 4 additions and 1 deletions

View File

@ -56,6 +56,9 @@ func newDockerIntegrationManager(t *testing.T, cfg *Config) *SessionBoundManager
if err != nil {
t.Fatalf("build docker client: %v", err)
}
// Integration tests clean up their own sessions. Do not reclaim unrelated
// idle containers when using a shared developer daemon.
client.sweeper = nil
probeCtx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
defer cancel()
if err := client.Health(probeCtx); err != nil {

View File

@ -228,7 +228,7 @@ func (c *E2BRemoteClient) ListTemplates(ctx context.Context) ([]RemoteTemplate,
ID: item.TemplateID,
Name: name,
Status: status,
Version: item.EnvdVersion,
Version: item.BuildID,
CreatedAt: item.CreatedAt,
UpdatedAt: item.UpdatedAt,
Standard: standard,