-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathJustfile
More file actions
106 lines (82 loc) · 3.76 KB
/
Copy pathJustfile
File metadata and controls
106 lines (82 loc) · 3.76 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
# Talon task runner. Run `just` to list recipes.
# The bench recipes are the agent-facing performance feedback loop.
# Show available recipes.
default:
@just --list
# --- build / quality gates (mirror CI) ---
# Format the whole workspace.
fmt:
cargo fmt --all
# Check formatting without modifying files.
fmt-check:
cargo fmt --all --check
# Lint with warnings denied.
clippy:
cargo clippy --workspace --all-targets --all-features -- -D warnings
# Run the test suite.
test:
cargo test --workspace --all-features --locked
# Everything CI checks, in order.
ci: fmt-check clippy test
# --- documentation ---
# Regenerate the configuration reference from the ConfigVar schemas.
gen-config-docs:
cargo run -q -p talon-coordinator --features etcd,kubernetes \
--bin talon-gen-config-docs -- docs/reference/configuration.md
# Fail if the committed configuration reference is stale vs. the schemas.
check-config-docs:
cargo run -q -p talon-coordinator --features etcd,kubernetes \
--bin talon-gen-config-docs > /tmp/talon-config-ref.md
diff -u docs/reference/configuration.md /tmp/talon-config-ref.md
# Regenerate the wire-protocol conformance vectors. Run after any intentional
# change to the wire format, and commit the result in the same change.
gen-conformance-vectors:
cargo run -q -p talon-transport --bin talon-gen-conformance-vectors -- \
crates/talon-transport/tests/conformance_vectors.json
# Regenerate the REST API reference from openapi.json.
gen-api-docs:
cargo run -q -p talon-coordinator --bin talon-gen-api-docs -- docs/reference/rest-api.md
# Fail if the committed REST API reference is stale vs. openapi.json.
check-api-docs:
cargo run -q -p talon-coordinator --bin talon-gen-api-docs > /tmp/talon-api-ref.md
diff -u docs/reference/rest-api.md /tmp/talon-api-ref.md
# Spell-check the repo (install: cargo install typos-cli). Config: typos.toml.
spell:
typos
# Link-check the docs (install: cargo install lychee). Config: lychee.toml.
# Offline: internal/relative links only, matching the CI gate.
linkcheck:
lychee --offline --no-progress README.md DESIGN.md CONTRIBUTING.md BENCHMARKS.md 'docs/**/*.md' '.github/**/*.md'
# Lint + render the Helm chart across every backend (install: helm v3).
helm-check:
for be in memory kubernetes etcd; do \
rp=3; [ "$be" = memory ] && rp=1; \
helm lint deploy/helm/talon --strict --set coordinator.backend=$be --set coordinator.replicas=$rp; \
helm template t deploy/helm/talon --set coordinator.backend=$be --set coordinator.replicas=$rp >/dev/null; \
done
# --- benchmarks (performance feedback loop) ---
# Run all microbenchmarks and write bench/results/latest.json.
bench *ARGS:
python3 scripts/bench.py run {{ARGS}}
# Promote the latest run to a committed baseline (default name: main).
bench-save NAME="main":
python3 scripts/bench.py save {{NAME}}
# Run benches and diff against a baseline; exits non-zero on regression.
# Pass --soft to report without failing, or --threshold N to tune sensitivity.
bench-check *ARGS:
python3 scripts/bench.py check {{ARGS}}
# Print the current committed baseline.
bench-baseline NAME="main":
@cat bench/baselines/{{NAME}}.json
# --- supply chain / coverage ---
# Check the dependency tree for RUSTSEC advisories, banned crates, and unknown
# sources (install: cargo install cargo-deny). Mirrors the CI `audit` gate.
# Known advisories are acknowledged with written justifications in deny.toml.
audit:
cargo deny check advisories bans sources
# Per-file line coverage (install: cargo install cargo-llvm-cov).
coverage:
cargo llvm-cov --workspace --all-features --summary-only
# Coverage as a browsable HTML report under target/llvm-cov/html.
coverage-html:
cargo llvm-cov --workspace --all-features --html