Skip to content

Commit 4cc089f

Browse files
kamirclaude
andcommitted
refactor: remove deprecated standalone lfs-proxy binary
Addresses reviewer feedback (klaudworks): cmd/lfs-proxy/ duplicated ~30% of the unified proxy's infrastructure (TCP listener, Kafka protocol handling, connection management, health checks). LFS is now exclusively a feature-flag on the unified proxy, enabled with KAFSCALE_PROXY_LFS_ENABLED=true. The unified proxy provides partition-aware routing (vs round-robin) and consumer group support. Removed: - cmd/lfs-proxy/ (5,733 lines of Go source + tests) - deploy/docker/lfs-proxy.Dockerfile - deploy/helm/kafscale/templates/lfs-proxy-*.yaml (6 Helm templates) - test/e2e/lfs_proxy_*.go (e2e tests that exec'd the standalone binary) - CI jobs: build-lfs-proxy, e2e-lfs-proxy - Makefile targets: docker-build-lfs-proxy, test-lfs-proxy-broker Kept: - cmd/proxy/lfs_*.go (unified proxy LFS module) - pkg/lfs/ (shared LFS library) - api/lfs-proxy/openapi.yaml (API spec) - lfs-client-sdk/ (all client SDKs) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fc96d60 commit 4cc089f

37 files changed

Lines changed: 9 additions & 8537 deletions

.github/workflows/ci.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -57,28 +57,6 @@ jobs:
5757
- name: Run go test -race ./...
5858
run: go test -race ./...
5959

60-
build-lfs-proxy:
61-
name: Build LFS Proxy
62-
runs-on: ubuntu-latest
63-
env:
64-
GOCACHE: ${{ github.workspace }}/.gocache
65-
steps:
66-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
67-
68-
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v5
69-
with:
70-
go-version-file: go.mod
71-
cache-dependency-path: go.sum
72-
73-
- name: Prepare Go build cache
74-
run: mkdir -p "$GOCACHE"
75-
76-
- name: Build lfs-proxy
77-
run: go build -o lfs-proxy ./cmd/lfs-proxy
78-
79-
- name: Run lfs-proxy tests
80-
run: go test ./cmd/lfs-proxy/...
81-
8260
go-coverage:
8361
name: Go Coverage Gate
8462
runs-on: ubuntu-latest
@@ -99,26 +77,6 @@ jobs:
9977
run: bash hack/check_coverage.sh 45
10078

10179

102-
e2e-lfs-proxy:
103-
name: LFS Proxy E2E
104-
runs-on: ubuntu-latest
105-
env:
106-
GOCACHE: ${{ github.workspace }}/.gocache
107-
KAFSCALE_E2E: "1"
108-
steps:
109-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
110-
111-
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v5
112-
with:
113-
go-version-file: go.mod
114-
cache-dependency-path: go.sum
115-
116-
- name: Prepare Go build cache
117-
run: mkdir -p "$GOCACHE"
118-
119-
- name: Run LFS proxy E2E tests
120-
run: go test -tags=e2e ./test/e2e -run LfsProxy
121-
12280
helm-lint:
12381
name: Helm Lint
12482
runs-on: ubuntu-latest

Makefile

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
.PHONY: proto build test tidy lint generate build-sdk docker-build docker-build-e2e-client docker-build-etcd-tools docker-build-lfs-proxy docker-clean ensure-minio start-minio stop-containers release-broker-ports test-produce-consume test-produce-consume-debug test-consumer-group test-ops-api test-mcp test-multi-segment-durability test-lfs-proxy-broker test-full test-operator test-acl demo demo-platform demo-platform-bootstrap iceberg-demo kafsql-demo platform-demo help clean-kind-all
16+
.PHONY: proto build test tidy lint generate build-sdk docker-build docker-build-e2e-client docker-build-etcd-tools docker-clean ensure-minio start-minio stop-containers release-broker-ports test-produce-consume test-produce-consume-debug test-consumer-group test-ops-api test-mcp test-multi-segment-durability test-full test-operator test-acl demo demo-platform demo-platform-bootstrap iceberg-demo kafsql-demo platform-demo help clean-kind-all
1717

1818
REGISTRY ?= ghcr.io/kafscale
1919
STAMP_DIR ?= .build
2020
BROKER_IMAGE ?= $(REGISTRY)/kafscale-broker:dev
2121
OPERATOR_IMAGE ?= $(REGISTRY)/kafscale-operator:dev
2222
CONSOLE_IMAGE ?= $(REGISTRY)/kafscale-console:dev
2323
PROXY_IMAGE ?= $(REGISTRY)/kafscale-proxy:dev
24-
LFS_PROXY_IMAGE ?= $(REGISTRY)/kafscale-lfs-proxy:dev
2524
SQL_PROCESSOR_IMAGE ?= $(REGISTRY)/kafscale-sql-processor:dev
2625
MCP_IMAGE ?= $(REGISTRY)/kafscale-mcp:dev
2726
E2E_CLIENT_IMAGE ?= $(REGISTRY)/kafscale-e2e-client:dev
@@ -149,13 +148,6 @@ $(STAMP_DIR)/proxy.image: $(PROXY_SRCS)
149148
$(DOCKER_BUILD_CMD) $(DOCKER_BUILD_ARGS) -t $(PROXY_IMAGE) -f deploy/docker/proxy.Dockerfile .
150149
@touch $(STAMP_DIR)/proxy.image
151150

152-
LFS_PROXY_SRCS := $(shell find cmd/lfs-proxy pkg go.mod go.sum)
153-
docker-build-lfs-proxy: $(STAMP_DIR)/lfs-proxy.image ## Build LFS proxy container image
154-
$(STAMP_DIR)/lfs-proxy.image: $(LFS_PROXY_SRCS)
155-
@mkdir -p $(STAMP_DIR)
156-
$(DOCKER_BUILD_CMD) $(DOCKER_BUILD_ARGS) -t $(LFS_PROXY_IMAGE) -f deploy/docker/lfs-proxy.Dockerfile .
157-
@touch $(STAMP_DIR)/lfs-proxy.image
158-
159151
MCP_SRCS := $(shell find cmd/mcp internal/mcpserver go.mod go.sum)
160152
docker-build-mcp: $(STAMP_DIR)/mcp.image ## Build MCP container image
161153
$(STAMP_DIR)/mcp.image: $(MCP_SRCS)
@@ -295,10 +287,6 @@ test-multi-segment-durability: release-broker-ports ensure-minio ## Run multi-se
295287
KAFSCALE_E2E=1 \
296288
go test -tags=e2e ./test/e2e -run TestMultiSegmentRestartDurability -v
297289

298-
test-lfs-proxy-broker: ## Run LFS proxy e2e with real broker (embedded etcd + in-memory S3).
299-
KAFSCALE_E2E=1 \
300-
go test -tags=e2e ./test/e2e -run TestLfsProxyBrokerE2E -v
301-
302290
test-full: ## Run unit tests plus local + MinIO-backed e2e suites.
303291
$(MAKE) test
304292
$(MAKE) test-consumer-group

cmd/lfs-proxy/backend_auth.go

Lines changed: 0 additions & 105 deletions
This file was deleted.

cmd/lfs-proxy/backend_tls.go

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)