-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (32 loc) · 1.56 KB
/
Copy pathMakefile
File metadata and controls
40 lines (32 loc) · 1.56 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
# Cross-service build/test/lint orchestration (Technical Roadmap.md §8:
# "a single top-level Makefile/Taskfile orchestrating per-service builds
# rather than adopting a heavyweight monorepo build system at this scale").
#
# GOWORKPKGS lists every workspace module that currently has real code —
# updated as each milestone ships an implementation, not pre-added as
# no-ops for services that are still empty scaffolding (e.g. cli/ as of
# Milestone 2). `go test`/`go vet` are invoked with explicit paths (not a
# bare `./...` from the repo root) because `go.work` workspaces reject a
# root-relative `./...` that spans multiple modules with a "directory
# prefix . does not contain modules" error — this is expected multi-module
# workspace behavior, not a build misconfiguration.
GOWORKPKGS := ./shared/... ./services/collector/... ./services/query-api/...
.PHONY: test vet up down logs ps test-integration
test:
go vet $(GOWORKPKGS) && go test $(GOWORKPKGS) -race -cover
vet:
go vet $(GOWORKPKGS)
# Integration tests require live infrastructure (`make up` first) and are
# excluded from `make test` by their `//go:build integration` tag —
# Technical Roadmap.md §7's testcontainers-driven suite for the
# writer/authkeys ClickHouse and Postgres paths.
test-integration:
go test -tags integration ./shared/authkeys/... ./services/collector/internal/writer/... -v
up:
cd deploy && docker compose -p agentmesh up -d
down:
cd deploy && docker compose -p agentmesh down
ps:
cd deploy && docker compose -p agentmesh ps
logs:
cd deploy && docker compose -p agentmesh logs -f