Commit d0a7234
committed
test(docker): comprehensive 5-validator integration test with WASM challenge lifecycle
Add validator-5 to docker-compose (IP 172.28.1.5, port 9005, key ...0005)
and rewrite test-multi-validator.sh as a comprehensive integration test
covering all 5 requirements:
1. Consensus: distributed storage on all 5 validators, P2P peer activity,
validator startup verification, consensus engine initialization
2. WASM module: binary validation (magic bytes, size), directory existence
in containers, copy to all 5 validators, size verification
3. Sudo/challenges: sudo key recognition, challenge update message type,
WASM executor initialization status
4. Persistence: storage DB existence and stability, WASM module persistence,
hash consistency across all validators
5. Evaluation architecture: mock-subtensor health, neuron data, commit/reveal
weight flow, P2P network topology, subtensor connectivity
Additional changes:
- Dockerfile.test-validator: create /wasm_modules/challenges directory
- entrypoint-test.sh: add WASM_MODULE_DIR env var passthrough to CLI args
- docker-compose: add BOOTSTRAP_PEERS to validator-1 (self-bootstrap) to
prevent crash from empty bootstrap check
- Test script auto-builds term-challenge WASM if binary not found
- 20 tests across 5 suites with pass/fail/skip tracking and per-validator
log collection1 parent 60f98ae commit d0a7234
4 files changed
Lines changed: 541 additions & 73 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
195 | 196 | | |
196 | 197 | | |
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 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
198 | 239 | | |
199 | 240 | | |
200 | 241 | | |
201 | 242 | | |
202 | 243 | | |
| 244 | + | |
203 | 245 | | |
204 | 246 | | |
205 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
0 commit comments