| fix(cri): repair stale neighbors and batch durable state writes | 1 month ago |
| !156 feat(deploy): support systemd-managed orchestrator, default to containerized launcher From: @fly_1997 Reviewed-by: @zhourenjianz | 1 month ago |
| !156 feat(deploy): support systemd-managed orchestrator, default to containerized launcher From: @fly_1997 Reviewed-by: @zhourenjianz | 1 month ago |
| docs(e2b-scripts): README 补充性能测试各命令参数说明 - 5.1 执行方式补充档位规则(未指定档位按配置逐档、指定任一档位参数 只执行单档)与 -n 在各测试项中的不同含义 - 按通用参数、bench all、各测试项与清理命令分节列出全部命令行参数、 含义与单档默认值,并给出常用示例(与各子命令 --help 及代码核对) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> | 1 month ago |
| fix(cri-multiplex,e2b-webhook): align allow-internet defaults and tighten annotation validation - default e2b.dev/allow-internet to true in webhook and cri-multiplex - reject non-positive integers for vcpu/ram-mb/max-sandbox-length/total-disk-size-mb - accept only true/false for boolean annotations - keep env-vars/network/volume-mounts lenient - validate auto-resume policy against any/off | 3 months ago |
| fix: deploy module, firecracker coredump in 2403 | 3 months ago |
| !156 feat(deploy): support systemd-managed orchestrator, default to containerized launcher From: @fly_1997 Reviewed-by: @zhourenjianz | 1 month ago |
| 迁移e2b仓库的代码 | 4 months ago |
| feat(migrate-tool): 支持 Android 多盘并完善 Mooncake 导入 将本地 JSON Catalog 和对象目录作为正式迁移端点,补齐 CLI 帮助、 参数错误提示、使用示例和 Catalog 格式说明。 根据 metadata.os_type 收集内存及各磁盘 Header 引用的数据,支持 Android 的 rootfs、persistent 和 sdcard 三盘。纯 Linux 导出保持 Bundle v1,包含 Android 的导出使用 v2,并保留对象原始字节。 Mooncake 控制面预检支持 etcd 多端点;迁移客户端固定零存储容量, 已有对象通过完整摘要比对后复用,关闭写客户端后用独立客户端读回, 全部对象校验通过才提交 Catalog。导入时补查孤立 Build 主键冲突。 同步工具版本至 0.3.1,完善构建依赖配置、架构说明及对应回归测试。 验证:Linux/ARM64 普通及 Mooncake tag 全量 race 测试、go vet、 go mod verify 和构建通过;Linux/Android 测试样本的 File 路径 导出、校验、dry-run、apply 与重复 skip-identical 导入通过。 | 2 months ago |
| perf(orchestrator): parallelize slot pool warmup/cleanup, batch iptables teardown Restart was dominated by serialized slot cleanup issuing 2N full-table iptables deletions (43s observed). Warm up slots with 8 workers and close with 16; delete all host filter/nat rules via one iptables-save+filter+restore per table; drop the package-level netlink mutex (package-level netlink calls use per-request sockets and are concurrency-safe); never close reusedSlots during Close to avoid a send-on-closed panic against concurrent ReleaseSlot. Also: use a noop meter provider when OTEL_COLLECTOR_GRPC_ENDPOINT is unset (stops "failed to upload metrics" spam), bound OTLP exporter shutdown with a timeout so an unreachable collector can't hang exit, and stop logging high-frequency SandboxService List/ListCachedBuilds access routes (still covered by OTel traces/metrics). Measured: 48-slot pool close 40s -> ~0.7s; full restart 43s -> ~8.5s with zero iptables rule residue. | 1 month ago |
| fix(py-sdk): serialize shared HTTP transport initialization | 2 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| feat(scripts): add RPM build script and spec with optional Mooncake build Package KASandbox as an RPM from a clean git-archive HEAD snapshot so release artifacts are reproducible. The spec exposes a --with mooncake bcond wired to build.sh -m, and build-rpm.sh supports -v/-r/-o/--srpm with relative output paths resolved against the caller's cwd. | 2 months ago |
| feat: add internal snapshot metadata APIs and orchestrator pause/delete fixes - api: add 9 /internal endpoints for pause/checkpoint/resume metadata (pause-snapshot, snapshot-templates, last-snapshot, build status, snapshot-state, resolve, delete snapshot/snapshot-template/template), guarded by AdminTokenAuth, with integration tests - db: add deleted_at soft-delete columns to envs/snapshots, filter all read paths, add SoftDeleteTemplate/SoftDeleteSnapshotBySandboxID/ GetSnapshotTemplateWithReadyBuild and 4 supporting queries - orchestrator: Pause waits for snapshot upload before returning; Delete is idempotent for already-paused sandboxes | 3 months ago |
| feat: add node-local admin service for sandbox pause/checkpoint/resume cri-multiplex: - add node-local Admin gRPC service (proto/admin.proto, pkg/admin/*) on unix socket /run/cri-multiplex/admin.sock with PauseSandbox, CheckpointSandbox and GetSandboxRuntime RPCs - add stable logical sandbox ID via e2b.dev/sandbox-id annotation with bidirectional cri_sandbox_id <-> e2b_sandbox_id indexing in the pod tracker (pkg/engine/pod_tracker.go) - implement AdminPause/AdminCheckpoint in the E2B engine (pkg/engine/admin_ops.go): operation_id-based idempotency (succeeded replay / aborted on in-flight / retry on failed), per-sandbox op lock, team ownership and dual-index consistency validation, and operation records persisted in the state store - RunPodSandbox now reads e2b.dev/* annotations into SandboxConfig and supports snapshot=true restore via orchestrator Create - persist e2b pod state (E2BPodState) across restarts and extend the orphan reconcile / cleanup task flow - main.go: start the admin listener alongside the CRI mux server - README/AGENTS updated for the new service e2b-verify: - add 22_pause_checkpoint_resume.sh: self-contained end-to-end script covering create -> pause (API pre-alloc + Admin PauseSandbox + idempotent retry + pod delete + build status write-back) -> resume (stable sandbox ID, new cri ID) -> checkpoint -> create-from-checkpoint -> delete/409/404 assertions (34 checks); logs every internal API / admin gRPC request and response and kubectl-describes pods at each stage; annotated with which parameters the webhook stub generates vs assembles from E2B API / pod objects | 3 months ago |
| feat(e2b-scripts): 新增统一性能基准测试体系(bench) - 新增 e2b_validator/bench 包:create/scale/density/snapshot-concurrency/snapshot-dirty/ create-from-snapshot/rollback/clone/pause-resume 九个测试项 + all 编排 + clean-host 维护命令 - 指标口径对标 CubeSandbox 性能基准(avg/min/p95/max/wall/per/吞吐/成功率) - bench.toml 单一配置源:全局参数 + 各测试项档位 + profiles(quick/full),支持 --print-config - 默认 2U2G 基准模板(bench-standard-2c2g)自动创建/复用,无需用户指定模板 ID - 并发计时采用 barrier 同步起跑(burst 全同步,流水线同步首波) - 档位前后清理:ensure_clean_slate 收敛等待 + clean_host_orphans 宿主孤儿资源清理 (netns/veth 半对子、引用失效 veth 的 iptables 规则、10.11 段 MASQUERADE 孤儿规则) - 重压档位支持 pre_wait 池恢复等待(不计入测量) - 与 test-e2e 互斥锁隔离(test-results/.run.lock),test-e2e 最小侵入接入 - .gitignore 排除 __pycache__、test-results、e2b-scripts/.env | 2 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| fix(build): fail on child build errors and isolate Mooncake CGO flags Parallel image and binary builds only logged errors from failed children, so the script could exit 0 with missing artifacts. Accumulate wait failures and return non-zero, and abort a module build with the module name when its compile fails. Merge Mooncake build handling from the android branch: - restrict the mooncake build tag and CGO flags to the orchestrator module; api, client-proxy, migrator and seed-db no longer link against mooncake libraries - link libspdiag instead of libubdiag and honor user-provided MOONCAKE_CGO_CFLAGS/MOONCAKE_CGO_LDFLAGS - build the orchestrator image from orchestrator-mooncake.Dockerfile with RPM staging and cleanup when ENABLE_MOONCAKE=true - use e2b-webhook/webhook.Dockerfile for the webhook image | 2 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| Optimized the provision script to prevent some OS setups from breaking commands and added the orchestrator's ability to return host IPs. | 4 months ago |
| 迁移e2b仓库的代码 | 4 months ago |
| 添加run-ut.sh,并将当前门禁中不支持的测试跳过。 | 4 months ago |
| 迁移e2b仓库的代码 | 4 months ago |