Skip to content

Commit e5c2e97

Browse files
drarijitdasclaude
andcommitted
sync: pull upstream app code changes (123 commits, up to 8a404ee)
Syncs all application code from e2b-dev/infra upstream including: - Redis PubSub for state transitions (e2b-dev#2099) - Pluggable egress firewall (e2b-dev#2187) - Firecracker v1.12 upgrade (e2b-dev#2245) - Label-based sandbox scheduler (e2b-dev#2066) - Orchestrator internal/ -> pkg/ migration - Pre-compute cgroup CPU deltas (e2b-dev#2265) - Arch-aware downloads (e2b-dev#2258, e2b-dev#2260) - Customizable pre-warmed NBDs (e2b-dev#2266) - Autoresume improvements (e2b-dev#1969, e2b-dev#2196) - Many bug fixes for race conditions, eviction, error handling Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9bcc420 commit e5c2e97

File tree

683 files changed

+24443
-8015
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

683 files changed

+24443
-8015
lines changed

packages/api/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
ENV := $(shell cat ../../.last_used_env || echo "not-set")
22
-include ../../.env.${ENV}
3+
4+
LOCAL_BUILD_TARGET ?= build-debug
35
PREFIX := $(strip $(subst ",,$(PREFIX)))
46
HOSTNAME := $(shell hostname 2> /dev/null || hostnamectl hostname 2> /dev/null)
57
$(if $(HOSTNAME),,$(error Failed to determine hostname: both 'hostname' and 'hostnamectl' failed))
@@ -54,8 +56,7 @@ define setup_local_env
5456
endef
5557

5658
.PHONY: run-local
57-
run-local:
58-
make build-debug
59+
run-local: $(LOCAL_BUILD_TARGET)
5960
$(call setup_local_env)
6061
NODE_ID=$(HOSTNAME) ./bin/api --port 3000
6162

packages/api/go.mod

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ require (
2828
github.com/gin-contrib/cors v1.7.6
2929
github.com/gin-contrib/size v1.0.2
3030
github.com/gin-gonic/gin v1.10.1
31+
github.com/go-redis/redis_rate/v10 v10.0.1
3132
github.com/gogo/status v1.1.1
3233
github.com/golang-jwt/jwt/v5 v5.3.1
3334
github.com/golang/protobuf v1.5.4
@@ -36,6 +37,7 @@ require (
3637
github.com/hashicorp/nomad/api v0.0.0-20251216171439-1dee0671280e
3738
github.com/jackc/pgx/v5 v5.7.5
3839
github.com/launchdarkly/go-sdk-common/v3 v3.3.0
40+
github.com/launchdarkly/go-server-sdk/v7 v7.13.0
3941
github.com/oapi-codegen/gin-middleware v1.0.2
4042
github.com/oapi-codegen/runtime v1.1.1
4143
github.com/orcaman/concurrent-map/v2 v2.0.1
@@ -51,9 +53,9 @@ require (
5153
go.opentelemetry.io/otel/sdk/metric v1.41.0
5254
go.opentelemetry.io/otel/trace v1.41.0
5355
go.uber.org/zap v1.27.1
54-
golang.org/x/net v0.49.0
55-
golang.org/x/sync v0.19.0
56-
google.golang.org/grpc v1.78.0
56+
golang.org/x/net v0.50.0
57+
golang.org/x/sync v0.20.0
58+
google.golang.org/grpc v1.79.3
5759
google.golang.org/protobuf v1.36.11
5860
)
5961

@@ -170,7 +172,7 @@ require (
170172
github.com/go-playground/locales v0.14.1 // indirect
171173
github.com/go-playground/universal-translator v0.18.1 // indirect
172174
github.com/go-playground/validator/v10 v10.26.0 // indirect
173-
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
175+
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
174176
github.com/gobwas/glob v0.2.3 // indirect
175177
github.com/goccy/go-json v0.10.5 // indirect
176178
github.com/gogo/googleapis v1.4.1 // indirect
@@ -227,22 +229,22 @@ require (
227229
github.com/klauspost/cpuid/v2 v2.2.11 // indirect
228230
github.com/knadh/koanf/maps v0.1.2 // indirect
229231
github.com/knadh/koanf/providers/confmap v1.0.0 // indirect
230-
github.com/knadh/koanf/v2 v2.3.0 // indirect
232+
github.com/knadh/koanf/v2 v2.3.2 // indirect
231233
github.com/kylelemons/godebug v1.1.0 // indirect
232234
github.com/launchdarkly/ccache v1.1.0 // indirect
233235
github.com/launchdarkly/eventsource v1.10.0 // indirect
234236
github.com/launchdarkly/go-jsonstream/v3 v3.1.0 // indirect
235237
github.com/launchdarkly/go-sdk-events/v3 v3.5.0 // indirect
236238
github.com/launchdarkly/go-semver v1.0.3 // indirect
237239
github.com/launchdarkly/go-server-sdk-evaluation/v3 v3.0.1 // indirect
238-
github.com/launchdarkly/go-server-sdk/v7 v7.13.0 // indirect
239240
github.com/leodido/go-urn v1.4.0 // indirect
240241
github.com/lib/pq v1.11.2 // indirect
241242
github.com/lufia/plan9stats v0.0.0-20240909124753-873cd0166683 // indirect
242243
github.com/magiconair/properties v1.8.10 // indirect
243244
github.com/mailru/easyjson v0.9.0 // indirect
244245
github.com/mattn/go-colorable v0.1.14 // indirect
245246
github.com/mattn/go-isatty v0.0.20 // indirect
247+
github.com/mattn/go-runewidth v0.0.19 // indirect
246248
github.com/mdlayher/netlink v1.7.3-0.20250113171957-fbb4dce95f42 // indirect
247249
github.com/mdlayher/socket v0.5.1 // indirect
248250
github.com/mdlayher/vsock v1.2.1 // indirect
@@ -318,7 +320,7 @@ require (
318320
github.com/speakeasy-api/openapi-overlay v0.10.2 // indirect
319321
github.com/spf13/afero v1.15.0 // indirect
320322
github.com/spf13/cast v1.9.2 // indirect
321-
github.com/stretchr/objx v0.5.2 // indirect
323+
github.com/stretchr/objx v0.5.3 // indirect
322324
github.com/tdewolff/parse/v2 v2.7.15 // indirect
323325
github.com/testcontainers/testcontainers-go v0.40.0 // indirect
324326
github.com/testcontainers/testcontainers-go/modules/postgres v0.39.0 // indirect
@@ -376,15 +378,15 @@ require (
376378
go.yaml.in/yaml/v3 v3.0.4 // indirect
377379
go4.org/netipx v0.0.0-20230125063823-8449b0a6169f // indirect
378380
golang.org/x/arch v0.18.0 // indirect
379-
golang.org/x/crypto v0.47.0 // indirect
380-
golang.org/x/exp v0.0.0-20250808145144-a408d31f581a // indirect
381-
golang.org/x/image v0.25.0 // indirect
382-
golang.org/x/mod v0.31.0 // indirect
381+
golang.org/x/crypto v0.48.0 // indirect
382+
golang.org/x/exp v0.0.0-20260212183809-81e46e3db34a // indirect
383+
golang.org/x/image v0.38.0 // indirect
384+
golang.org/x/mod v0.33.0 // indirect
383385
golang.org/x/oauth2 v0.34.0 // indirect
384386
golang.org/x/sys v0.41.0 // indirect
385-
golang.org/x/text v0.33.0 // indirect
387+
golang.org/x/text v0.35.0 // indirect
386388
golang.org/x/time v0.14.0 // indirect
387-
golang.org/x/tools v0.40.0 // indirect
389+
golang.org/x/tools v0.42.0 // indirect
388390
google.golang.org/api v0.257.0 // indirect
389391
google.golang.org/genproto/googleapis/api v0.0.0-20251213004720-97cd9d5aeac2 // indirect
390392
google.golang.org/genproto/googleapis/rpc v0.0.0-20260128011058-8636f8732409 // indirect

0 commit comments

Comments
 (0)