Conversation
jakubno
left a comment
There was a problem hiding this comment.
There's also some issue with build in integration tests
|
The CodeQL issues will be resolved in #1296 , so this is dependent on that one. |
# Conflicts: # packages/client-proxy/internal/proxy/proxy.go # packages/client-proxy/main.go
|
CodeQL's wrong, |
There was a problem hiding this comment.
Bug: Config Parameter Omission in Slot Creation
The Config parameter, recently added to network.Pool and network.StorageKV, isn't consistently passed to NewSlot calls. This results in network slots being created without essential configuration, such as hyperloop IP and port, leading to compilation errors or runtime issues. This affects both initial slot creation and fallback acquisition.
packages/orchestrator/internal/sandbox/network/pool.go#L81-L88
infra/packages/orchestrator/internal/sandbox/network/pool.go
Lines 81 to 88 in 6209e35
packages/orchestrator/internal/sandbox/network/storage_kv.go#L67-L68
infra/packages/orchestrator/internal/sandbox/network/storage_kv.go
Lines 67 to 68 in 6209e35
packages/orchestrator/internal/sandbox/network/storage_kv.go#L89-L96
infra/packages/orchestrator/internal/sandbox/network/storage_kv.go
Lines 89 to 96 in 6209e35
Pre-requisite for running multiple orchestrators on a single node.
Note
Introduce orchestrator config model and network config, switch port types to uint16 across services, and move Nomad jobs to env-driven ports (drop CLI flags).
internal/cfgwith env-parsedConfig(e.g.,GRPC_PORT,PROXY_PORT,REDIS_URL|REDIS_CLUSTER_URL,CLICKHOUSE_CONNECTION_STRING,ALLOW_SANDBOX_INTERNET,ORCHESTRATOR_SERVICES, plusNetworkConfig).cfg.Parse()inmainand propagate config (lock path, force stop, services, ports, Redis/ClickHouse, hyperloop port).network.ConfigandParseConfig; pass through pool/storage/slot; removeinternal/consts.goand read hyperloop IP/port from config.uint16in proxy (shared), orchestratorgrpcserver, hyperloop server, sandbox proxy, and client proxy; adjust logs and validation.NewClientProxysignature and calls.GRPC_PORT/PROXY_PORTand stop passing--port/--proxy-portargs inorchestrator.hclandtemplate-manager.hcl.network.ParseConfiganduint16ports.github.com/caarlos0/env/v11dependency.Written by Cursor Bugbot for commit 6209e35. This will update automatically on new commits. Configure here.