-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (52 loc) · 1.99 KB
/
Makefile
File metadata and controls
66 lines (52 loc) · 1.99 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
.PHONY: help up down reset logs doctor doctor-consistency smoke build check test clippy fmt plan
help:
@echo "Cortex local stack targets:"
@echo " make up - docker compose up + first-time init"
@echo " make down - stop the stack (volumes preserved)"
@echo " make reset - destroy volumes + restart clean"
@echo " make logs S=<svc> - tail logs for one (or all) service"
@echo " make doctor - liveness probe against every backend"
@echo " make doctor-consistency - cross-backend coverage doctor (phase4d/h)"
@echo " make smoke - end-to-end smoke check"
@echo
@echo "Cortex workspace targets:"
@echo " make build / check / test / clippy / fmt"
@echo " make plan - emit bootstrap plan JSON via cortex-ops"
up:
bin/cortex-up
down:
bin/cortex-down
reset:
bin/cortex-reset
logs:
bin/cortex-logs $(S)
doctor:
bin/cortex-doctor
# Phase4j — cross-backend consistency doctor used by the CI gate.
# Reads the same env vars the streaming workers honour:
# CORTEX_ARCHIVE_ROOT archive root (defaults to ~/.cortex/archive)
# CORTEX_FULLTEXT_MEILI_URL Meilisearch base URL (required)
# CORTEX_FULLTEXT_MEILI_API_KEY Meilisearch master key (optional)
# CORTEX_EMBEDDER_VECTORIZER_URL Vectorizer base URL (optional — Vectorizer
# probe runs only when URL + creds present)
# CORTEX_EMBEDDER_VECTORIZER_USER admin username (optional)
# CORTEX_EMBEDDER_VECTORIZER_PASSWORD admin password (optional)
# CORTEX_NEXUS_URL Nexus base URL (optional)
# Emits the markdown table on stdout; exits non-zero on any
# `inconsistent` row. The CI gate captures the JSON variant.
doctor-consistency:
cargo run -q -p cortex-ops -- doctor-consistency
smoke: up doctor plan
@echo "smoke ok"
build:
cargo build --workspace
check:
cargo check --workspace
test:
cargo test --workspace
clippy:
cargo clippy --workspace --all-targets -- -D warnings
fmt:
cargo fmt --all
plan:
cargo run -q -p cortex-ops -- plan --pretty