feat: prepare v1.1 deploy and presenter load test
- build and push v1.1 images from the service main worktrees - switch manifests to :v1.1; add web control Secret refs - configure API BOOTSTRAP_REFRESH=60s and remove unused DATA_DIR - add k6 presenter scenario with a mid-run control POST - require control credentials in make load; update runbook and drills
This commit is contained in:
1 parent
40bc8e47d0
commit
b98a1bab42
12 files changed
+264
-117
No files matched your search
@@ -11,20 +11,20 @@ PYTHON ?= python3
|
||||
|
||||
REGISTRY ?= git.noelsabia.dev
|
||||
OWNER ?= noel
|
||||
TAG ?= gate1
|
||||
TAG ?= v1.1
|
||||
WEB_IMAGE ?= $(REGISTRY)/$(OWNER)/pulsecast-web:$(TAG)
|
||||
API_IMAGE ?= $(REGISTRY)/$(OWNER)/pulsecast-api:$(TAG)
|
||||
ML_IMAGE ?= $(REGISTRY)/$(OWNER)/pulsecast-ml:$(TAG)
|
||||
|
||||
# Service repos are bare Git repos beside this one, each with per-task worktrees:
|
||||
# Hackathon_2026/web-nuxt.git/feat-web-bootstrap
|
||||
# Hackathon_2026/api-go.git/feat-api-bootstrap
|
||||
# Hackathon_2026/ML-py.git/feat-ml-bootstrap
|
||||
# Release images are built from the service integration branches:
|
||||
# Hackathon_2026/web-nuxt.git/main
|
||||
# Hackathon_2026/api-go.git/main
|
||||
# Hackathon_2026/ML-py.git/main
|
||||
# Override any *_DIR on the command line when the layout differs.
|
||||
SERVICE_REPOS ?= $(abspath $(ROOT)/../..)
|
||||
WEB_DIR ?= $(or $(firstword $(wildcard $(SERVICE_REPOS)/web-nuxt.git/feat-*)),$(firstword $(wildcard $(SERVICE_REPOS)/web-nuxt.git/main)))
|
||||
API_DIR ?= $(or $(firstword $(wildcard $(SERVICE_REPOS)/api-go.git/feat-*)),$(firstword $(wildcard $(SERVICE_REPOS)/api-go.git/main)))
|
||||
ML_DIR ?= $(or $(firstword $(wildcard $(SERVICE_REPOS)/ML-py.git/feat-*)),$(firstword $(wildcard $(SERVICE_REPOS)/ML-py.git/main)))
|
||||
WEB_DIR ?= $(SERVICE_REPOS)/web-nuxt.git/main
|
||||
API_DIR ?= $(SERVICE_REPOS)/api-go.git/main
|
||||
ML_DIR ?= $(SERVICE_REPOS)/ML-py.git/main
|
||||
|
||||
WEB_URL ?= https://pulse.noelsabia.dev
|
||||
API_URL ?= https://api-pulse.noelsabia.dev
|
||||
@@ -36,6 +36,11 @@ SKIP_ML ?= 0
|
||||
SSE_VUS ?= 120
|
||||
SSE_HOLD_PINGS ?= 20
|
||||
SSE_MAX_DURATION ?= 6m
|
||||
CONTROL_USER ?=
|
||||
CONTROL_PASS ?=
|
||||
PRESENTER_SCENARIO ?= rainy-saturday
|
||||
PRESENTER_AT ?= 2m30s
|
||||
PRESENTER_TIMEOUT ?= 10s
|
||||
K6 ?=
|
||||
K6_BIN ?= $(ROOT)/k6/k6-sse
|
||||
# xk6-sse v0.2.0 exposes client.on/client.close correctly on k6 v2.0.x but not
|
||||
@@ -153,8 +158,13 @@ smoke-local: ## Smoke the three local dev servers
|
||||
SMOKE_SSE="$(SMOKE_SSE)" SKIP_ML="$(SKIP_ML)" \
|
||||
"$(ROOT)/scripts/smoke.sh"
|
||||
|
||||
load: ## Run the 120-client / 5-minute SSE load test
|
||||
load: ## Run the 120-client / 5-minute SSE load test + one presenter POST
|
||||
@mkdir -p "$(K6_RESULTS)"
|
||||
@if [ -z "$(CONTROL_USER)" ] || [ -z "$(CONTROL_PASS)" ]; then \
|
||||
echo "CONTROL_USER and CONTROL_PASS are required for the presenter scenario."; \
|
||||
echo "Run: set -a; source ~/.config/pulsecast/control-auth.env; set +a"; \
|
||||
exit 1; \
|
||||
fi
|
||||
@set -e; \
|
||||
if [ -n "$(K6)" ]; then \
|
||||
runner="$(K6)"; \
|
||||
@@ -166,7 +176,9 @@ load: ## Run the 120-client / 5-minute SSE load test
|
||||
echo "No k6 binary. Run 'make k6-build' once (needs Go), then retry."; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
export API_URL="$(LOAD_API_URL)" SSE_VUS="$(SSE_VUS)" SSE_HOLD_PINGS="$(SSE_HOLD_PINGS)" SSE_MAX_DURATION="$(SSE_MAX_DURATION)"; \
|
||||
export API_URL="$(LOAD_API_URL)" SSE_VUS="$(SSE_VUS)" SSE_HOLD_PINGS="$(SSE_HOLD_PINGS)" SSE_MAX_DURATION="$(SSE_MAX_DURATION)" \
|
||||
CONTROL_USER="$(CONTROL_USER)" CONTROL_PASS="$(CONTROL_PASS)" \
|
||||
PRESENTER_SCENARIO="$(PRESENTER_SCENARIO)" PRESENTER_AT="$(PRESENTER_AT)" PRESENTER_TIMEOUT="$(PRESENTER_TIMEOUT)"; \
|
||||
stamp=$$(date +%Y%m%dT%H%M%S); \
|
||||
echo "Using $$runner"; \
|
||||
"$$runner" run --summary-export="$(K6_RESULTS)/summary-$$stamp.json" "$(K6_SCRIPT)"
|
||||
|
||||
Reference in new issue
Block a user