@@ -14,6 +14,7 @@ SUBMITQUEUE_LOCAL_PROJECT = submitqueue
1414
1515# Stovepipe compose file (single Ping-only service)
1616STOVEPIPE_COMPOSE_FILE = service/stovepipe/docker-compose.yml
17+ STOVEPIPE_DEBUG_COMPOSE_FILE = service/stovepipe/docker-compose.debug.yml
1718
1819# Fixed project name for local manual testing (tests use unique random names)
1920STOVEPIPE_LOCAL_PROJECT = stovepipe
@@ -51,7 +52,7 @@ define assert_clean
5152 fi
5253endef
5354
54- .PHONY: build build-all-linux build-runway-linux build-submitqueue-gateway-linux build-submitqueue-orchestrator-linux build-stovepipe-linux check-gazelle check-mocks check-tidy clean clean-proto deps e2e-test fmt gazelle integration-test integration-test-submitqueue-consumer integration-test-extensions integration-test-submitqueue-gateway integration-test-submitqueue-orchestrator license-fix lint lint-fmt lint-license local-init-runway-queue-schema local-init-stovepipe-schemas local-runway-start local-runway-stop local-submitqueue-clean local-submitqueue-gateway-start local-submitqueue-gateway-stop local-init-submitqueue-schemas local-submitqueue-logs local-submitqueue-orchestrator-start local-submitqueue-orchestrator-stop local-submitqueue-ps local-submitqueue-restart local-submitqueue-start local-stop local-stovepipe-logs local-stovepipe-start local-stovepipe-stop mocks proto query-deps query-targets run-client-runway run-client-submitqueue-gateway run-client-submitqueue-orchestrator run-client-stovepipe run-queue-admin test test-no-cache tidy tidy-bazel tidy-go help
55+ .PHONY: build build-all-linux build-runway-linux build-submitqueue-gateway-linux build-submitqueue-orchestrator-linux build-stovepipe-linux build-stovepipe-linux-debug check-gazelle check-mocks check-tidy clean clean-proto deps e2e-test fmt gazelle integration-test integration-test-submitqueue-consumer integration-test-extensions integration-test-submitqueue-gateway integration-test-submitqueue-orchestrator license-fix lint lint-fmt lint-license local-init-runway-queue-schema local-init-stovepipe-schemas local-runway-start local-runway-stop local-submitqueue-clean local-submitqueue-gateway-start local-submitqueue-gateway-stop local-init-submitqueue-schemas local-submitqueue-logs local-submitqueue-orchestrator-start local-submitqueue-orchestrator-stop local-submitqueue-ps local-submitqueue-restart local-submitqueue-start local-stop local-stovepipe-debug-start local-stovepipe-logs local-stovepipe-start local-stovepipe-stop mocks proto query-deps query-targets run-client-runway run-client-submitqueue-gateway run-client-submitqueue-orchestrator run-client-stovepipe run-queue-admin test test-no-cache tidy tidy-bazel tidy-go help
5556
5657
5758build : # # Build all services and examples
@@ -95,6 +96,14 @@ build-stovepipe-linux: ## Build Stovepipe Linux binary for Docker
9596 cp -f bazel-bin/service/stovepipe/server/stovepipe .docker-bin/stovepipe
9697 @echo " Stovepipe Linux binary ready at .docker-bin/stovepipe"
9798
99+ build-stovepipe-linux-debug : # # Build Stovepipe Linux debug binary for Docker/delve (symbols, no optimizations)
100+ @echo " Building Stovepipe Linux debug binary for Docker..."
101+ @$(BAZEL ) build --compilation_mode=dbg --platforms=@rules_go//go/toolchain:linux_amd64 //service/stovepipe/server:stovepipe
102+ @mkdir -p .docker-bin
103+ @cp -f bazel-bin/service/stovepipe/server/stovepipe_/stovepipe .docker-bin/stovepipe-debug 2> /dev/null || \
104+ cp -f bazel-bin/service/stovepipe/server/stovepipe .docker-bin/stovepipe-debug
105+ @echo " Stovepipe Linux debug binary ready at .docker-bin/stovepipe-debug"
106+
98107check-gazelle : # # Check BUILD.bazel files are up to date
99108 @echo " Running Gazelle to check BUILD files..."
100109 @$(BAZEL ) run //:gazelle
@@ -144,19 +153,19 @@ integration-test: build-all-linux ## Run all integration tests (auto-builds bina
144153
145154integration-test-submitqueue-consumer : # # Run Consumer integration tests
146155 @echo " Running Consumer integration tests..."
147- @$(BAZEL ) test //test/integration/submitqueue/core/consumer:consumer_test --test_output=streamed
156+ @$(BAZEL ) test //test/integration/submitqueue/core/consumer:go_default_test --test_output=streamed
148157
149158integration-test-extensions : # # Run extension integration tests (runs in parallel)
150159 @echo " Running extension integration tests (parallel)..."
151160 @$(BAZEL ) test //test/integration/submitqueue/extension/... //test/integration/extension/... --test_output=errors
152161
153162integration-test-submitqueue-gateway : build-submitqueue-gateway-linux # # Run Gateway integration tests (auto-builds binary)
154163 @echo " Running Gateway integration tests..."
155- @$(BAZEL ) test //test/integration/submitqueue/gateway:gateway_test --test_output=streamed
164+ @$(BAZEL ) test //test/integration/submitqueue/gateway:go_default_test --test_output=streamed
156165
157166integration-test-submitqueue-orchestrator : build-submitqueue-orchestrator-linux # # Run Orchestrator integration tests (auto-builds binary)
158167 @echo " Running Orchestrator integration tests..."
159- @$(BAZEL ) test //test/integration/submitqueue/orchestrator:orchestrator_test --test_output=streamed
168+ @$(BAZEL ) test //test/integration/submitqueue/orchestrator:go_default_test --test_output=streamed
160169
161170license-fix : # # Add missing license headers to source files
162171 @$(BAZEL ) run //tool/linter/licenseheader -- --fix
@@ -320,6 +329,19 @@ local-stop: ## Stop all services (keep data)
320329 @$(COMPOSE ) -f $(RUNWAY_COMPOSE_FILE ) -p $(RUNWAY_LOCAL_PROJECT ) down
321330 @echo " Services stopped. Data volumes preserved."
322331
332+ local-stovepipe-debug-start : build-stovepipe-linux-debug # # Start Stovepipe under delve in Docker (attach IDE to :2345)
333+ @echo " Starting Stovepipe service with compose (debug)..."
334+ @$(COMPOSE ) -f $(STOVEPIPE_COMPOSE_FILE ) -f $(STOVEPIPE_DEBUG_COMPOSE_FILE ) -p $(STOVEPIPE_LOCAL_PROJECT ) up -d --build --wait
335+ @echo " Applying storage and queue schemas..."
336+ @$(MAKE ) -s local-init-stovepipe-schemas
337+ @echo " "
338+ @echo " ✅ Stovepipe debug is running (delve :2345)!"
339+ @echo " "
340+ @$(COMPOSE ) -f $(STOVEPIPE_COMPOSE_FILE ) -f $(STOVEPIPE_DEBUG_COMPOSE_FILE ) -p $(STOVEPIPE_LOCAL_PROJECT ) ps
341+ @echo " "
342+ @echo " Stovepipe gRPC port: $$ (docker port $( STOVEPIPE_LOCAL_PROJECT) -stovepipe-service-1 8080 2>/dev/null | cut -d: -f2 || echo 'unknown')"
343+ @echo " Delve: 127.0.0.1:2345 — run launch config \" Debug: attach (dlv in docker)\" "
344+
323345local-stovepipe-logs : # # View logs from the running Stovepipe service
324346 @$(COMPOSE ) -f $(STOVEPIPE_COMPOSE_FILE ) -p $(STOVEPIPE_LOCAL_PROJECT ) logs -f
325347
0 commit comments