-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (68 loc) · 3.36 KB
/
Copy pathMakefile
File metadata and controls
80 lines (68 loc) · 3.36 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
.PHONY: help validate validate-full ci-local ci-full extension-tests test-fast test install dev live-smoke package-check
help:
@echo "StorageOps — Pi Coding Agent extension + skill pack"
@echo ""
@echo "Usage:"
@echo " make validate Fast skill/extension/doc gates (no tests run)"
@echo " make ci-local Offline PR gate (mirrors CI validate job; run before PR)"
@echo " make validate-full Alias for ci-local"
@echo " make ci-full ci-local + package-check (pre-release)"
@echo " make test Alias for ci-local"
@echo " make test-fast pytest + extension tests + fast validate only"
@echo " make extension-tests Run the TypeScript extension behavioral tests"
@echo " make install Install thin CLI shim (pip install -e .)"
@echo " make dev One-shot dev setup (scripts/dev_setup.sh; DEV_SETUP_FLAGS=...)"
@echo " make live-smoke Model smoke + 5 golden-case live diagnoses (needs API key)"
@echo " make package-check Build wheel and run package_check.py (needs network once)"
@echo ""
@echo " Note: install-smoke and diagnosis-smoke run in CI when configured"
@echo " (wheel install / STORAGEOPS_MODEL_KEY) — see docs/release.md."
validate:
@echo "=== Validating skills ==="
@python3 scripts/skill_integrity_check.py
@python3 scripts/no_hardcoded_pricing.py
@python3 scripts/reference_scope_check.py
@python3 scripts/version_reference_check.py
@echo "=== Validating extension ==="
@test -f storageops_cli/extensions/storageops.ts && echo " OK: extension file exists" || { echo " FAIL: extension not found"; exit 1; }
@grep -q "scan_secrets" storageops_cli/extensions/storageops.ts && echo " OK: scan_secrets tool" || { echo " FAIL: scan_secrets missing"; exit 1; }
@grep -q "detect_domain" storageops_cli/extensions/storageops.ts && echo " OK: detect_domain tool" || { echo " FAIL: detect_domain missing"; exit 1; }
@grep -q "search_memory" storageops_cli/extensions/storageops.ts && echo " OK: search_memory tool" || { echo " FAIL: search_memory missing"; exit 1; }
@grep -q "capture_http_trace" storageops_cli/extensions/storageops.ts && echo " OK: capture_http_trace tool" || { echo " FAIL: capture_http_trace missing"; exit 1; }
@echo "=== All validations passed ==="
extension-tests:
@bash scripts/run_extension_tests.sh
# Mirrors .github/workflows/ci.yml validate job (everything offline).
ci-local: validate
python3 scripts/provider_scope_check.py
python3 scripts/contract_check.py
python3 scripts/coverage_check.py
python3 skills/storageops-eval-golden-cases/scripts/golden_case_validator.py \
skills/storageops-eval-golden-cases/cases
python3 -m pytest
$(MAKE) extension-tests
python3 scripts/repo_size_gate.py
python3 scripts/routing_contract_check.py
python3 skills/storageops-eval-golden-cases/scripts/eval_all.py \
--cases skills/storageops-eval-golden-cases/cases \
--outputs skills/storageops-eval-golden-cases/baseline-outputs \
--only-with-outputs
validate-full: ci-local
test: ci-local
test-fast:
python3 -m pytest
$(MAKE) extension-tests
$(MAKE) validate
ci-full: ci-local
$(MAKE) package-check
install:
pip install -e .
dev:
@bash scripts/dev_setup.sh $(DEV_SETUP_FLAGS)
live-smoke:
@bash scripts/live_smoke.sh
package-check:
python3 -m pip install --upgrade pip build
python3 scripts/prepare_httpmon_vendor.py
python3 -m build --wheel
python3 scripts/package_check.py