-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathjustfile
More file actions
503 lines (421 loc) · 20.1 KB
/
Copy pathjustfile
File metadata and controls
503 lines (421 loc) · 20.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
# Duckgres — PostgreSQL wire protocol server backed by DuckDB
# Default recipe: list all available recipes
default:
@just --list --list-submodules
# === Build ===
# Build the duckgres binary
[group('build')]
build:
go build -o duckgres .
# Build with version info baked in
[group('build')]
build-release version="dev":
go build -ldflags "-X main.version={{version}} -X main.commit=$(git rev-parse --short HEAD) -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" -o duckgres .
# Build Docker image
[group('build')]
docker tag="duckgres:dev":
docker build -t {{tag}} .
# Clean build artifacts
[group('build')]
clean:
go clean
rm -f duckgres
# === Dev ===
num_cores := `sysctl -n hw.ncpu 2>/dev/null || nproc 2>/dev/null || echo 4`
# Run in standalone mode
[group('dev')]
run: build
./duckgres
# Run in control-plane mode
[group('dev')]
run-control-plane: build
./duckgres --mode control-plane --process-min-workers {{num_cores}} --socket-dir ./sockets
# Build a Kubernetes-enabled image for local cluster work
[group('dev')]
build-k8s-image tag="duckgres:test":
docker build --build-arg BUILD_TAGS=kubernetes -t {{tag}} .
# Build the admin console SPA into controlplane/admin/ui/dist (embedded by the
# kubernetes build via //go:embed all:ui/dist). dist is a gitignored build
# artifact (only .gitkeep is tracked); the Docker images rebuild it in a node
# stage, so run this locally before `go build -tags kubernetes` if you want the
# real bundle embedded instead of the "UI not built" fallback.
[group('dev')]
ui-build:
cd controlplane/admin/ui && npm ci && npm run build
# Frontend typecheck + unit tests (Vitest) + production build — the derivation
# logic guard, and proves the embedded SPA still builds on every PR.
[group('dev')]
ui-test:
cd controlplane/admin/ui && npm ci && npm run typecheck && npm run test && npm run build
# Live React dev server (HMR) against a port-forwarded control plane. Point
# VITE_PROXY_TARGET at the CP (or the Go devserver) — default http://127.0.0.1:8080.
[group('dev')]
ui-dev-vite target="http://127.0.0.1:8080":
cd controlplane/admin/ui && VITE_PROXY_TARGET={{target}} npm run dev
# Serve the admin UI locally for one kube context. The devserver fetches the
# internal secret, port-forwards that context's control plane, and serves the
# built SPA with a context banner (RED when the context name contains "prod").
[group('dev')]
ui-dev context listen="127.0.0.1:5173" namespace="duckgres":
go run ./controlplane/admin/devserver --context {{context}} --namespace {{namespace}} --listen {{listen}}
# Serve BOTH environments side by side: prod on :5173 (red banner), dev on :5174.
[group('dev')]
ui-dev-all prod_context="mw-prod-us-admin" dev_context="mw-dev-admin":
#!/usr/bin/env bash
set -euo pipefail
go run ./controlplane/admin/devserver --context {{prod_context}} --listen 127.0.0.1:5173 &
go run ./controlplane/admin/devserver --context {{dev_context}} --listen 127.0.0.1:5174 &
echo "prod → http://127.0.0.1:5173 dev → http://127.0.0.1:5174"
wait
# Recreate the local kind cluster used by the portable K8s integration flow
[group('dev')]
kind-cluster-reset:
kind delete cluster --name "${DUCKGRES_KIND_CLUSTER_NAME:-duckgres}" || true
if [ -n "${DUCKGRES_KIND_NODE_IMAGE:-}" ]; then \
kind create cluster --name "${DUCKGRES_KIND_CLUSTER_NAME:-duckgres}" --image "${DUCKGRES_KIND_NODE_IMAGE}" --wait 120s; \
else \
kind create cluster --name "${DUCKGRES_KIND_CLUSTER_NAME:-duckgres}" --wait 120s; \
fi
kind export kubeconfig --name "${DUCKGRES_KIND_CLUSTER_NAME:-duckgres}" --kubeconfig "${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}"
# Delete the local kind cluster used by the portable K8s integration flow
[group('dev')]
kind-cluster-down:
kind delete cluster --name "${DUCKGRES_KIND_CLUSTER_NAME:-duckgres}" || true
# Load the local Kubernetes-enabled image into the kind cluster
[group('dev')]
kind-load-k8s-image tag="duckgres:test":
kind load docker-image {{tag}} --name "${DUCKGRES_KIND_CLUSTER_NAME:-duckgres}"
# Verify that the fixed local dependency ports needed by the optional OrbStack workflow are available
[group('dev')]
check-multitenant-local-ports:
@set -eu; \
failed=0; \
for spec in \
"5434 config-store-postgres" \
"35434 warehouse-postgres" \
"35433 ducklake-metadata" \
"39000 minio-api" \
"39001 minio-console"; do \
port="${spec%% *}"; \
name="${spec#* }"; \
if nc -z 127.0.0.1 "${port}" >/dev/null 2>&1; then \
echo "Required local dev port ${port} is already in use (${name})."; \
if command -v lsof >/dev/null 2>&1; then \
lsof -nP -iTCP:"${port}" -sTCP:LISTEN || true; \
elif command -v ss >/dev/null 2>&1; then \
ss -ltn "( sport = :${port} )" || true; \
fi; \
failed=1; \
fi; \
done; \
if [ "${failed}" -ne 0 ]; then \
echo "Free the occupied local dev ports before running the duckgres multitenant K8s setup."; \
exit 1; \
fi
# Verify that the config-store port needed by the kind-backed multitenant K8s flow is available
[group('dev')]
check-multitenant-kind-ports:
@set -eu; \
if nc -z 127.0.0.1 5434 >/dev/null 2>&1; then \
echo "Required local dev port 5434 is already in use (config-store-postgres)."; \
if command -v lsof >/dev/null 2>&1; then \
lsof -nP -iTCP:5434 -sTCP:LISTEN || true; \
elif command -v ss >/dev/null 2>&1; then \
ss -ltn "( sport = :5434 )" || true; \
fi; \
echo "Free the occupied local dev port before running the duckgres multitenant kind setup."; \
exit 1; \
fi
# Start the local PostgreSQL config store used by the multi-tenant K8s flow
[group('dev')]
multitenant-config-store-up: check-multitenant-local-ports
docker compose -f k8s/local-config-store.compose.yaml -f k8s/orbstack/dependency-ports.overlay.yaml up -d --wait
docker exec duckgres-local-minio mc alias set local http://127.0.0.1:9000 minioadmin minioadmin
docker exec duckgres-local-minio mc mb local/duckgres-local --ignore-existing
# Start the local PostgreSQL config store used by the kind-backed multi-tenant K8s flow
[group('dev')]
multitenant-config-store-up-kind: check-multitenant-kind-ports
docker compose -f k8s/local-config-store.compose.yaml -f k8s/kind/config-store.overlay.yaml up -d --wait
docker exec duckgres-local-minio mc alias set local http://127.0.0.1:9000 minioadmin minioadmin
docker exec duckgres-local-minio mc mb local/duckgres-local --ignore-existing
# Stop the local PostgreSQL config store used by the multi-tenant K8s flow
[group('dev')]
multitenant-config-store-down:
docker compose -f k8s/local-config-store.compose.yaml -f k8s/orbstack/dependency-ports.overlay.yaml down -v
# Stop the local PostgreSQL config store used by the kind-backed multi-tenant K8s flow
[group('dev')]
multitenant-config-store-down-kind:
docker compose -f k8s/local-config-store.compose.yaml -f k8s/kind/config-store.overlay.yaml down -v
# Seed a default local tenant/user into the config store for psql access
[group('dev')]
multitenant-seed-local:
docker exec -i duckgres-config-store psql -v ON_ERROR_STOP=1 -U duckgres -d duckgres_config < k8s/local-config-store.seed.sql
# Seed a default local tenant/user into the config store for the kind-backed K8s flow.
# Retries up to 30 seconds waiting for the control plane to finish migrating the schema.
[group('dev')]
multitenant-seed-kind:
#!/usr/bin/env bash
set -euo pipefail
for i in $(seq 1 30); do
if docker exec -i duckgres-config-store psql -v ON_ERROR_STOP=1 -U duckgres -d duckgres_config < k8s/kind/config-store.seed.sql 2>/dev/null; then
exit 0
fi
echo "Waiting for config store schema (attempt $i/30)..."
sleep 1
done
echo "Config store schema not ready after 30s, final attempt:"
docker exec -i duckgres-config-store psql -v ON_ERROR_STOP=1 -U duckgres -d duckgres_config < k8s/kind/config-store.seed.sql
# Deploy the local multi-tenant control plane to the optional OrbStack Kubernetes workflow
[group('dev')]
deploy-multitenant-local:
kubectl apply -f k8s/namespace.yaml
kubectl apply -f k8s/rbac.yaml
kubectl apply -f k8s/configmap.yaml
kubectl apply -f k8s/secret.yaml
kubectl apply -f k8s/worker-identity.yaml
kubectl apply -f k8s/managed-warehouse-secrets.yaml
kubectl apply -f k8s/networkpolicy.yaml
kubectl apply -f k8s/control-plane-multitenant-local.yaml
kubectl -n duckgres wait deployment/duckgres-control-plane --for=condition=available --timeout=120s
# Deploy the local multi-tenant control plane to kind Kubernetes
[group('dev')]
deploy-multitenant-kind:
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl apply -f k8s/namespace.yaml
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl apply -f k8s/rbac.yaml
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl apply -f k8s/configmap.yaml
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl apply -f k8s/secret.yaml
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl apply -f k8s/worker-identity.yaml
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl apply -f k8s/managed-warehouse-secrets.yaml
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl apply -f k8s/networkpolicy.yaml
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl apply -f k8s/kind/control-plane.yaml
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl -n duckgres wait deployment/duckgres-control-plane --for=condition=available --timeout=120s || { echo "=== Pod status ==="; KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl -n duckgres get pods -o wide; echo "=== Pod describe ==="; KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl -n duckgres describe pod -l app=duckgres-control-plane; echo "=== Pod logs ==="; KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl -n duckgres logs -l app=duckgres-control-plane --tail=100 --all-containers; exit 1; }
# End-to-end local multi-tenant setup: optional OrbStack K8s + config store + control plane
[group('dev')]
run-multitenant-local: multitenant-config-store-up build-k8s-image deploy-multitenant-local multitenant-seed-local
sleep 2
kubectl -n duckgres rollout restart deployment/duckgres-control-plane
kubectl -n duckgres wait deployment/duckgres-control-plane --for=condition=available --timeout=120s
@echo "Multi-tenant control plane ready."
@echo "Default login: postgres / postgres"
@echo "Fetch admin token with: kubectl -n duckgres logs deployment/duckgres-control-plane | rg 'Generated admin API token'"
@echo "Run 'just multitenant-port-forward-pg' and 'just multitenant-port-forward-api' in separate terminals."
# End-to-end local multi-tenant setup: kind K8s + config store + control plane
[group('dev')]
run-multitenant-kind: kind-cluster-reset multitenant-config-store-up-kind build-k8s-image kind-load-k8s-image deploy-multitenant-kind multitenant-seed-kind
sleep 2
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl -n duckgres rollout restart deployment/duckgres-control-plane
KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" kubectl -n duckgres wait deployment/duckgres-control-plane --for=condition=available --timeout=120s
@echo "Multi-tenant control plane ready on kind."
@echo "Default login: postgres / postgres"
@echo "Fetch admin token with: kubectl -n duckgres logs deployment/duckgres-control-plane | rg 'Generated admin API token'"
@echo "Run 'just multitenant-port-forward-pg' in another terminal for direct pgwire access."
# Tear down the optional OrbStack/local multitenant environment
[group('dev')]
cleanup-multitenant-local:
kubectl delete namespace duckgres --ignore-not-found --wait=true || true
just multitenant-config-store-down
# Tear down the kind-backed multitenant environment
[group('dev')]
cleanup-multitenant-kind:
kubectl delete namespace duckgres --ignore-not-found --wait=true || true
just multitenant-config-store-down-kind
just kind-cluster-down
# Port-forward pgwire traffic from the local control plane
[group('dev')]
multitenant-port-forward-pg:
kubectl -n duckgres port-forward svc/duckgres 5432:5432
# Port-forward the API server (admin + provisioning) from the local control plane
[group('dev')]
multitenant-port-forward-api:
kubectl -n duckgres port-forward deployment/duckgres-control-plane 8080:8080
# Run with DuckLake config
[group('dev')]
run-ducklake: build
./duckgres --config duckgres_local_ducklake.yaml
# Connect via psql (standalone default port)
[group('dev')]
psql port="5432":
PGPASSWORD=postgres psql "host=127.0.0.1 port={{port}} user=postgres dbname=duckgres sslmode=require"
# Watch for changes and rebuild
[group('dev')]
watch:
watchexec -e go -- go build -o duckgres .
# Format Go source files
[group('dev')]
format:
gofmt -w .
# === Test ===
# Run the default local test suite
[group('test')]
test:
just test-unit
just test-scenario
just test-integration
just test-controlplane
just test-configstore-integration
just test-controlplane-k8s
# Run unit tests only
[group('test')]
test-unit:
go test -v -p 1 . ./configresolve/... ./duckdbservice/... ./server/... ./transpiler/... ./internal/... ./tests/manifests/...
go test -v -count=1 ./tests/mw-dev/...
# Run scenario runner unit tests
[group('test')]
test-scenario:
go test -v -count=1 ./tests/mw-dev/scenario/...
# Run cache-proxy tests
[group('test')]
test-cache-proxy:
go test -v ./cmd/cache-proxy/...
# Run integration tests
[group('test')]
test-integration:
go test -v ./tests/integration/...
# Run shared/process control plane tests
[group('test')]
test-controlplane:
go test -v -count=1 ./controlplane ./controlplane/configstore ./controlplane/provisioning
go test -v -timeout 300s ./tests/controlplane/...
# Run Postgres-backed config store integration tests
[group('test')]
test-configstore-integration:
go test -v -count=1 ./tests/configstore/...
# Run Kubernetes-only control plane package tests
[group('test')]
test-controlplane-k8s:
go test -v -count=1 -tags kubernetes . ./controlplane ./controlplane/admin ./controlplane/provisioner
# Print the test impact plan for the current branch
[group('test')]
test-impact-plan base="origin/main" head="HEAD":
python3 scripts/test_impact_plan.py --base {{base}} --head {{head}}
# Run Kubernetes integration tests against the default kind-backed multitenant setup
[group('test')]
test-k8s-integration:
DUCKGRES_K8S_TEST_SETUP="${DUCKGRES_K8S_TEST_SETUP:-kind}" DUCKGRES_K8S_TEST_KUBECONFIG="${DUCKGRES_KIND_KUBECONFIG:-/tmp/duckgres-kind-kubeconfig}" go test -v -count=1 -tags k8s_integration -timeout 600s ./tests/k8s/...
# Run perf tests
[group('test')]
test-perf:
go test -v ./tests/perf/...
# Run DuckLake-specific tests
[group('test')]
test-ducklake:
./scripts/test_ducklake.sh
# Verify read-only Trino access to the Duckgres-created local DuckLake fixture.
# Set TRINO_DUCKLAKE_SMOKE_ARTIFACT_DIR to override the version-report location.
[group('test')]
trino-ducklake-smoke:
TZ=UTC TRINO_DUCKLAKE_SMOKE_ARTIFACT_DIR=artifacts/trino-ducklake-smoke go test -v -count=1 -timeout 10m ./tests/trino-ducklake-smoke
# Run DuckLake concurrency benchmarks (current version)
[group('test')]
test-ducklake-concurrency:
go test -v -run TestDuckLakeConcurrentTransactions -timeout 300s ./tests/integration/...
# Run DuckLake concurrency benchmarks with JSON output (current version)
[group('test')]
bench-ducklake:
./scripts/ducklake_version_matrix.sh --current-only
# Run DuckLake concurrency benchmarks across multiple DuckDB/DuckLake versions
[group('test')]
bench-ducklake-matrix:
./scripts/ducklake_version_matrix.sh
# Run DuckLake concurrency benchmarks with metadata latency sensitivity analysis
[group('test')]
bench-ducklake-latency latencies="0ms,25ms,50ms,100ms":
DUCKGRES_BENCH_LATENCIES={{latencies}} go test -v -run TestDuckLakeConcurrentTransactions -timeout 600s ./tests/integration/...
# Run full version x latency matrix
[group('test')]
bench-ducklake-full-matrix latencies="0ms,50ms,100ms":
DUCKGRES_BENCH_LATENCIES={{latencies}} ./scripts/ducklake_version_matrix.sh
# Run extension loading tests
[group('test')]
test-extensions:
./scripts/test_extensions.sh
# Run rate limiting tests
[group('test')]
test-ratelimit:
./scripts/test_ratelimit.sh
# Run Prometheus metrics tests
[group('test')]
test-metrics:
./scripts/test_metrics.sh
# Quick perf smoke test
[group('test')]
perf-smoke:
./scripts/perf_smoke.sh
# Compare local Duckgres PGWire and Trino against the same synthetic DuckLake data.
# Override TRINO_DUCKLAKE_PERF_ROWS (default 1000000) to change the fixture size.
[group('test')]
perf-trino-ducklake:
TZ=UTC TRINO_DUCKLAKE_PERF=1 TRINO_DUCKLAKE_PERF_ARTIFACT_DIR=artifacts/trino-ducklake-perf go test -v -count=1 -timeout 30m -run TestTrinoDuckLakePerf ./tests/trino-ducklake-smoke
# Compare local Duckgres and Trino with wide, PostHog-shaped synthetic DuckLake events.
# Set TRINO_DUCKLAKE_REALISTIC_PERF_PROFILE=realistic-local for 1m events.
[group('test')]
perf-trino-ducklake-realistic:
TZ=UTC TRINO_DUCKLAKE_REALISTIC_PERF=1 TRINO_DUCKLAKE_PERF_ARTIFACT_DIR=artifacts/trino-ducklake-perf go test -v -count=1 -timeout 30m -run TestTrinoDuckLakeRealisticPerf ./tests/trino-ducklake-smoke
# Full perf nightly suite
[group('test')]
perf-nightly:
./scripts/perf_nightly.sh
# Run a Duckgres scenario file against a configured dev environment
[group('test')]
scenario scenario="tests/mw-dev/scenario/scenarios/provision_smoke.yaml":
./scripts/scenario_run.sh {{scenario}}
# Run the dev provision smoke scenario
[group('test')]
scenario-smoke:
just scenario-provision-success
# Run the dev provision success scenario
[group('test')]
scenario-provision-success:
./scripts/scenario_run.sh tests/mw-dev/scenario/scenarios/provision_smoke.yaml
# Run the dev provision rejection scenario
[group('test')]
scenario-provision-rejection:
./scripts/scenario_run.sh tests/mw-dev/scenario/scenarios/provision_rejection.yaml
# Run the dev frozen dataset metadata exploration scenario
[group('test')]
scenario-frozen-metadata:
./scripts/scenario_run.sh tests/mw-dev/scenario/scenarios/posthog_frozen_metadata.yaml
# Run the dev frozen dataset perf scenario
[group('test')]
scenario-frozen-perf:
./scripts/scenario_run.sh tests/mw-dev/scenario/scenarios/posthog_frozen_perf.yaml
# Run the dev frozen dataset dbt scenario
[group('test')]
scenario-frozen-dbt:
./scripts/scenario_run.sh tests/mw-dev/scenario/scenarios/posthog_frozen_dbt.yaml
# Lint (matches CI — uses golangci-lint, not go vet)
[group('test')]
lint:
golangci-lint run
# Run what CI runs locally (excluding kind-backed K8s integration)
[group('test')]
ci: lint test-unit test-scenario test-cache-proxy test-integration test-controlplane test-configstore-integration test-controlplane-k8s
# === Metrics ===
# Start Prometheus only
[group('metrics')]
prometheus:
docker compose -f metrics-compose.yml up -d prometheus
@echo "Prometheus ready at http://localhost:9091"
# Start Prometheus + Grafana, open dashboard
[group('metrics')]
grafana: prometheus
docker compose -f metrics-compose.yml up -d grafana
@echo "Waiting for Grafana to start..."
@until curl -sf http://localhost:3000/api/health > /dev/null 2>&1; do sleep 1; done
@echo "Grafana ready at http://localhost:3000/d/duckgres-overview/duckgres"
open http://localhost:3000/d/duckgres-overview/duckgres
# Stop Prometheus + Grafana
[group('metrics')]
metrics-stop:
docker compose -f metrics-compose.yml down
# Client compatibility tests (just client-compat --list to see recipes)
mod client-compat 'scripts/client-compat/justfile'
# === Scripts ===
# Generate self-signed TLS certs
[group('scripts')]
gen-certs:
./scripts/gen-certs.sh
# Seed DuckLake test data
[group('scripts')]
seed-ducklake:
./scripts/seed_ducklake.sh