| feat(cri-multiplex): report node IP as Network.Ip for native-mode sandboxes - grpc_e2b PodSandboxStatus: native (non-CNI) sandboxes now report the node IP instead of the slot HostIP (default 10.11.0.x), which is a node-internal virtual address and not routable off-node; external access goes through nodeIP:hostPort anyway, so Network.Ip now matches the e2b.dev/access-url endpoints. The slot HostIP stays available via the e2b.dev/host-ip annotation for slot/netns troubleshooting. CNI mode still reports the CNI pod IP, and the node IP fallback keeps kubelet from stalling in ContainerCreating on missing network info. - test: assert native-mode Network.Ip == node IP and the host-ip annotation in TestGRPCE2BHostPortMappingSetupAndCleanup | 1 month ago |
| !199 feat(sandbox): allow overriding huge pages via E2B_USE_HUGE_PAGES env var From: @zhourenjianz Reviewed-by: @feijianqiang | 1 month ago |
| !211 build: support single-image build with -i and remove e2b-webhook private download From: @fly_1997 Reviewed-by: @zhourenjianz | 1 month ago |
| feat: 新增沙箱创建耗时分解 - perftrace:按请求记录各阶段耗时并输出一行汇总日志,orchestrator 与 API 的 沙箱创建路径接入,替换原逐阶段 cost 日志。 - bench create/scale 输出客户端、API、orchestrator 三层耗时分解树,scale 支持达标标准。 | 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 |
| feat(sandbox): allow overriding huge pages via E2B_USE_HUGE_PAGES env var - HasHugePages(): when the E2B_USE_HUGE_PAGES environment variable is set to a valid boolean (parsed with strconv.ParseBool), its value decides whether huge pages are used; otherwise it falls back to the firecracker version check (>= 1.7). An invalid value is ignored and also falls back to the version check - the override applies to every HasHugePages() caller: template creation (create_template.go), instance creation (create_instance.go) and sandbox transform (sandbox_transform.go) - add unit tests covering env var override (true/false and common boolean forms) plus fallback behavior when the variable is unset or invalid - helm: pass E2B_USE_HUGE_PAGES to the api container via .Values.useHugePages, rendered from deploy/.env (default true) cherry-pick merge request: feat(sandbox): allow overriding huge pages via E2B_USE_HUGE_PAGES env var 2b1af9be59600899f82b4e3ffe448a4d7d9bc304 This cherry-pick merge request !180 | 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 |
| !209 feat(orchestrator): support non-4 KiB host base pages From: @xhmlja Reviewed-by: @zhourenjianz | 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 |
| !211 build: support single-image build with -i and remove e2b-webhook private download From: @fly_1997 Reviewed-by: @zhourenjianz | 1 month 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 |