Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
91 lines (68 loc) · 2.57 KB
/
Copy pathMakefile
File metadata and controls
91 lines (68 loc) · 2.57 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
# Makefile: repeatable SynapDrive-AI validation and research commands.
PY ?= python
.PHONY: help install install-dev run run-signal dashboard benchmark stress evidence-test \
test test-core lint typecheck quality record replay docker-build docker-build-dev \
docker-run docker-dashboard docker-test
help:
@echo ""
@echo "Core:"
@echo " make install Install runtime dependencies"
@echo " make install-dev Install development dependencies"
@echo " make run Run a governed text cycle"
@echo " make run-signal Run an explicit synthetic fixture cycle"
@echo " make dashboard Run the local WSGI dashboard"
@echo " make test Run the complete pytest suite"
@echo " make test-core Run the core test subset"
@echo " make quality Compile + test + validation smoke"
@echo " make lint Run ruff"
@echo " make typecheck Run pyright"
@echo ""
@echo "Research tools:"
@echo " synapdrive-benchmark DATASET.npz"
@echo " synapdrive-stress --runs 100 --seed 7"
@echo " synapdrive-evidence verify-chain evidence.jsonl"
@echo ""
install:
$(PY) -m pip install --upgrade pip
$(PY) -m pip install -e .
install-dev:
$(PY) -m pip install --upgrade pip
$(PY) -m pip install -e ".[dev]"
run:
$(PY) -m synapdrive_ai --text "move left" --image road --no-delay
run-signal:
$(PY) -m synapdrive_ai --signal walk --no-delay
dashboard:
$(PY) -m synapdrive_ai.interface.web_dashboard
benchmark:
@echo "Usage: synapdrive-benchmark DATASET.npz [--decoder ensemble]"
stress:
$(PY) -m synapdrive_ai.stress.cli --runs 25 --seed 7
evidence-test:
@echo "Usage: synapdrive-evidence verify-chain evidence.jsonl"
test:
$(PY) -m pytest -q
test-core:
$(PY) -m pytest -q synapdrive_ai/tests --ignore=synapdrive_ai/tests/test_web_dashboard.py
lint:
$(PY) -m ruff check .
typecheck:
$(PY) -m pyright
quality:
$(PY) -m compileall -q synapdrive_ai core scripts
$(PY) -m pytest -q
$(PY) -m scripts.run_v1_validation
record:
$(PY) -m synapdrive_ai --text "move left" --image road --record runs.jsonl --no-delay
replay:
$(PY) -m synapdrive_ai --replay runs.jsonl
docker-build:
docker build -t synapdrive-ai:latest .
docker-build-dev:
docker build --build-arg INSTALL_DEV=true -t synapdrive-ai:dev .
docker-run: docker-build
docker run --rm synapdrive-ai:latest python -m synapdrive_ai --text "move left" --no-delay
docker-dashboard: docker-build
docker run --rm -p 5055:5055 synapdrive-ai:latest python -m synapdrive_ai.interface.web_dashboard
docker-test: docker-build-dev
docker run --rm synapdrive-ai:dev pytest -q