Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ SUBMITQUEUE_LOCAL_PROJECT = submitqueue

# Stovepipe compose file (single Ping-only service)
STOVEPIPE_COMPOSE_FILE = $(abspath service/stovepipe/docker-compose.yml)
STOVEPIPE_WEB_COMPOSE_FILE = $(abspath web/service/stovepipe/docker-compose.yml)
STOVEPIPE_DEBUG_COMPOSE_FILE = $(abspath service/stovepipe/docker-compose.debug.yml)

# Fixed project name for local manual testing (tests use unique random names)
Expand Down Expand Up @@ -568,7 +569,7 @@ local-submitqueue-stop: ## Stop the SubmitQueue stack (keeps PROVIDER=git's sand
local-stop: ## Stop every local stack — SubmitQueue, Stovepipe, and Runway
@echo "Stopping all services..."
@$(COMPOSE) -f $(COMPOSE_FILE) -f $(PROVIDER_COMPOSE_FILE) -f $(WEB_COMPOSE_FILE) -p $(SUBMITQUEUE_LOCAL_PROJECT) down
@$(COMPOSE) -f $(STOVEPIPE_COMPOSE_FILE) -p $(STOVEPIPE_LOCAL_PROJECT) down
@$(COMPOSE) -f $(STOVEPIPE_COMPOSE_FILE) -f $(STOVEPIPE_WEB_COMPOSE_FILE) -p $(STOVEPIPE_LOCAL_PROJECT) down
@$(COMPOSE) -f $(RUNWAY_COMPOSE_FILE) -p $(RUNWAY_LOCAL_PROJECT) down
@echo "Services stopped. Anonymous database volumes are not reused on the next start."

Expand All @@ -586,7 +587,7 @@ local-stovepipe-debug-start: build-stovepipe-linux-debug ## Start Stovepipe unde
@echo "Delve: 127.0.0.1:2345 — run launch config \"Debug: attach (dlv in docker)\""

local-stovepipe-logs: ## View logs from the running Stovepipe service
@$(COMPOSE) -f $(STOVEPIPE_COMPOSE_FILE) -p $(STOVEPIPE_LOCAL_PROJECT) logs -f
@$(COMPOSE) -f $(STOVEPIPE_COMPOSE_FILE) -f $(STOVEPIPE_WEB_COMPOSE_FILE) -p $(STOVEPIPE_LOCAL_PROJECT) logs -f

local-stovepipe-start: build-stovepipe-linux ## Start Stovepipe service (gRPC service + MySQL storage + MySQL queue)
@echo "Starting Stovepipe service with compose..."
Expand All @@ -602,9 +603,15 @@ local-stovepipe-start: build-stovepipe-linux ## Start Stovepipe service (gRPC se

local-stovepipe-stop: ## Stop the Stovepipe service
@echo "Stopping Stovepipe service..."
@$(COMPOSE) -f $(STOVEPIPE_COMPOSE_FILE) -p $(STOVEPIPE_LOCAL_PROJECT) down
@$(COMPOSE) -f $(STOVEPIPE_COMPOSE_FILE) -f $(STOVEPIPE_WEB_COMPOSE_FILE) -p $(STOVEPIPE_LOCAL_PROJECT) down
@echo "Stovepipe service stopped."

local-stovepipe-web-start: local-stovepipe-start ## Start Stovepipe and its web UI on free ports
@$(BAZEL) run //web/service/stovepipe:image_load
@$(COMPOSE) -f $(STOVEPIPE_COMPOSE_FILE) -f $(STOVEPIPE_WEB_COMPOSE_FILE) -p $(STOVEPIPE_LOCAL_PROJECT) up -d --no-build --wait web-service
@echo "Web UX: http://localhost:$$($(COMPOSE) -f $(STOVEPIPE_COMPOSE_FILE) -f $(STOVEPIPE_WEB_COMPOSE_FILE) -p $(STOVEPIPE_LOCAL_PROJECT) port web-service 3000 | sed 's/.*://')"
@echo "Web username: test; password: $${STOVEPIPE_WEB_TOKEN:-test}"

# go generate does not walk the module; every tree with a //go:generate directive is listed here.
GO_GENERATE_PACKAGES := \
./platform/consumer/... \
Expand Down Expand Up @@ -698,12 +705,12 @@ tidy-go: ## Run go mod tidy
@echo "Running go mod tidy..."
@$(BAZEL) run @rules_go//go -- mod tidy -e

web-build: ## Build the web packages and deployable Next.js image with Bazel
@$(BAZEL) build //web/submitqueue:pkg //web/service/submitqueue:image
web-build: ## Build the web packages and deployable Next.js images with Bazel
@$(BAZEL) build //web/stovepipe:pkg //web/submitqueue:pkg //web/service/submitqueue:image //web/service/stovepipe:image

web-check: ## Run web generation, packaging, lint, type, unit, and image checks with Bazel
@$(BAZEL) test //web:check --test_output=errors
@$(BAZEL) build //web/service/submitqueue:image
@$(BAZEL) build //web/service/submitqueue:image //web/service/stovepipe:image

web-e2e-test: ## Run the Bazel-managed real-stack Playwright and axe web test
@$(BAZEL) test //web/test/e2e:web_test --test_output=errors
Expand Down
7 changes: 7 additions & 0 deletions web/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ test_suite(
"//web/service/shared:lint",
"//web/service/shared:test",
"//web/service/shared:typecheck_typecheck_test",
"//web/service/stovepipe:lint",
"//web/service/stovepipe:test",
"//web/service/stovepipe:typecheck_typecheck_test",
"//web/stovepipe:lint",
"//web/stovepipe:test",
"//web/stovepipe:typecheck_typecheck_test",
"//web/submitqueue:lint",
"//web/test/package:stovepipe_pack_contents_test",
":e2e_typecheck_typecheck_test",
],
)
Expand Down
2 changes: 2 additions & 0 deletions web/api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ load("//web/tool:generate_api.bzl", "generate_web_api")
package(default_visibility = [
"//web:__pkg__",
"//web/service/submitqueue:__pkg__",
"//web/service/stovepipe:__pkg__",
"//web/test/e2e:__pkg__",
])

Expand All @@ -29,6 +30,7 @@ generate_web_api(
"//api/base/change/proto:change.proto",
"//api/base/mergestrategy/proto:mergestrategy.proto",
"//api/submitqueue/gateway/proto:gateway.proto",
"//api/stovepipe/proto:stovepipe.proto",
],
)

Expand Down
4 changes: 4 additions & 0 deletions web/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"./submitqueue/gateway": {
"types": "./dist/api/submitqueue/gateway/proto/gateway_pb.d.ts",
"import": "./dist/api/submitqueue/gateway/proto/gateway_pb.js"
},
"./stovepipe": {
"types": "./dist/api/stovepipe/proto/stovepipe_pb.d.ts",
"import": "./dist/api/stovepipe/proto/stovepipe_pb.js"
}
},
"scripts": {
Expand Down
Loading
Loading