forked from eastreams/loong
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
226 lines (191 loc) Β· 7.68 KB
/
Taskfile.yml
File metadata and controls
226 lines (191 loc) Β· 7.68 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
version: "3"
tasks:
fmt:
desc: Check formatting for all crates
cmds:
- cargo fmt --all -- --check
lint:
desc: Run clippy across workspace targets
cmds:
- cargo clippy --workspace --all-targets --all-features
lint:strict:
desc: Run clippy with warnings denied (migration gate)
cmds:
- cargo clippy --workspace --all-targets --all-features -- -D warnings
test:
desc: Run workspace unit and doc tests
cmds:
- cargo test --workspace
test:all-features:
desc: Run tests with all features enabled
cmds:
- cargo test --workspace --all-features
test:quick:
desc: Fast local confidence bar with daemon smoke coverage but without the full heavy integration suite
cmds:
- ./scripts/cargo-local-toolchain.sh test --locked -p loong-contracts -p loong-kernel -p loong-protocol -p loong-bridge-runtime -p loong-spec -p loong-bench -p loong-app --lib --tests
- ./scripts/cargo-local-toolchain.sh test --locked -p loong --lib --bins
- ./scripts/test_daemon_smoke.sh
test:changed:
desc: Run tests for Rust packages touched in the current working tree plus reverse dependents
cmds:
- ./scripts/test_changed_rust_packages.sh
test:changed:all-features:
desc: Run changed-package tests with all features enabled
cmds:
- ./scripts/test_changed_rust_packages.sh --all-features
test:packages:
desc: Run targeted package tests (example: task test:packages PACKAGES='-p loong-app -p loong-spec')
preconditions:
- sh: test -n "{{.PACKAGES}}"
msg: "set PACKAGES, e.g. task test:packages PACKAGES='-p loong-app -p loong-spec'"
cmds:
- ./scripts/cargo-local-toolchain.sh test --locked {{.PACKAGES}}
test:daemon:smoke:
desc: Run the curated daemon integration smoke subset
cmds:
- ./scripts/test_daemon_smoke.sh
test:daemon:cli:
desc: Run the optional daemon CLI shard
cmds:
- ./scripts/cargo-local-toolchain.sh test --locked -p loong --features test-support --test daemon_cli
test:daemon:gateway:
desc: Run the optional daemon gateway shard
cmds:
- ./scripts/cargo-local-toolchain.sh test --locked -p loong --features test-support --test daemon_gateway
test:daemon:onboard:
desc: Run the optional daemon onboarding and migration shard
cmds:
- ./scripts/cargo-local-toolchain.sh test --locked -p loong --features test-support --test daemon_onboard
test:daemon:channels:
desc: Run the optional daemon channel-operations shard
cmds:
- ./scripts/cargo-local-toolchain.sh test --locked -p loong --features test-support --test daemon_channels
test:daemon:feishu:
desc: Run the optional daemon Feishu shard
cmds:
- ./scripts/cargo-local-toolchain.sh test --locked -p loong --features test-support --test daemon_feishu
test:daemon:runtime:
desc: Run the optional daemon runtime and spec shard
cmds:
- ./scripts/cargo-local-toolchain.sh test --locked -p loong --features test-support --test daemon_runtime
test:daemon:domains:
desc: Run all optional daemon domain shards
cmds:
- task: test:daemon:cli
- task: test:daemon:gateway
- task: test:daemon:onboard
- task: test:daemon:channels
- task: test:daemon:feishu
- task: test:daemon:runtime
test:daemon:heavy:
desc: Run the full daemon integration binary
cmds:
- ./scripts/cargo-local-toolchain.sh test --locked -p loong --test integration
test:daemon:stress:
desc: Stress daemon test binary across thread modes to catch intermittent regressions
cmds:
- ./scripts/stress_daemon_tests.sh 10 default,2,1
smoke:
desc: Run representative spec-runner smoke scenarios
cmds:
- cargo run -p loong --bin loong -- run-spec --spec examples/spec/runtime-extension.json --print-audit
- cargo run -p loong --bin loong -- run-spec --spec examples/spec/tool-search.json --print-audit
- cargo run -p loong --bin loong -- run-spec --spec examples/spec/programmatic-tool-call.json --print-audit
benchmark:pressure:
desc: Run programmatic pressure benchmark with gate enforcement
cmds:
- ./scripts/benchmark_programmatic_pressure.sh
check:docs:
desc: "Validate doc governance (dev mode: warn on missing local .docs release traces)"
cmds:
- scripts/check-docs.sh
check:docs:strict:
desc: Validate doc governance in strict release mode (missing .docs artifacts fail)
cmds:
- LOONG_RELEASE_DOCS_STRICT=1 scripts/check-docs.sh
check:github-labels:
desc: Validate generated GitHub label taxonomy artifacts
cmds:
- python3 scripts/sync_github_labels.py --check
- bash scripts/test_sync_github_labels.sh
check:architecture:
desc: Validate architecture boundary budgets and memory-operation abstraction
cmds:
- scripts/check_architecture_boundaries.sh
check:architecture:strict:
desc: Fail on any architecture boundary budget violations
cmds:
- LOONG_ARCH_STRICT=true scripts/check_architecture_boundaries.sh
check:conventions:
desc: Validate repo convention contracts
vars:
SKILL_DIR: '{{.HOME}}/.claude/skills/convention-engineering'
CONFIG_FILE: '{{default ".convention-engineering.json" .CONFIG}}'
preconditions:
- sh: test -f "{{.SKILL_DIR}}/scripts/main.go"
msg: "convention-engineering skill not installed"
- sh: test -f "{{.CONFIG_FILE}}"
msg: "convention config not found"
cmds:
- GO111MODULE=off go run {{.SKILL_DIR}}/scripts/main.go --repo-root . --config {{.CONFIG_FILE}} --json
check:dep-graph:
desc: Validate workspace crate dependency graph against architecture contract
cmds:
- scripts/check_dep_graph.sh
check:feature-deltas:
desc: Validate supported non-default Rust feature combinations
cmds:
- ./scripts/cargo-local-toolchain.sh check -p loong-spec --features test-hooks --locked
- >
./scripts/cargo-local-toolchain.sh check -p loong-app --no-default-features --locked
--features
channel-cli,channel-telegram,channel-feishu,channel-matrix,config-toml,memory-sqlite,feishu-integration,tool-shell,tool-file,tool-browser,provider-openai,provider-anthropic,provider-bedrock,provider-volcengine
check:harness:
desc: Verify agent guide mirrors are identical
cmds:
- diff CLAUDE.md AGENTS.md
check:deny:
desc: Run cargo-deny (advisories, bans, sources)
preconditions:
- sh: command -v cargo-deny
msg: "cargo-deny not installed. Run: cargo install cargo-deny"
cmds:
- cargo deny check advisories bans licenses sources
verify:changed:
desc: Changed-package local verification using the current working tree (not CI parity)
cmds:
- task: check:architecture
- task: check:dep-graph
- task: check:feature-deltas
- task: test:changed
verify:quick:
desc: Fast local verification loop for routine iteration (not CI parity)
cmds:
- task: fmt
- task: check:architecture
- task: check:dep-graph
- task: test:quick
- task: check:feature-deltas
verify:
desc: Canonical local verification gate (strict superset of CI checks)
cmds:
- task: fmt
- task: lint:strict
- task: check:architecture:strict
- task: check:dep-graph
- task: check:feature-deltas
- task: check:conventions
- task: check:harness
- task: test
- task: test:all-features
- task: check:docs
- task: check:github-labels
- task: check:deny
verify:full:
desc: Extended verification including architecture, smoke, and benchmark gates
cmds:
- task: verify
- task: check:architecture:strict
- task: smoke
- task: benchmark:pressure