Commit 12a44e2
Improve error handling, robustness, and resource cleanup across testnode
- Add try/finally around all WebSocket provider lifecycles to prevent
connection leaks on errors (ethcommands.ts)
- Replace fragile `tail | tr` output parsing with capture_output and
capture_last_field helpers that fail on empty results (test-node.bash)
- Replace `sleep 45` with deterministic wait_for_chain_progress that
confirms block production before proceeding (test-node.bash)
- Add timeouts to previously-infinite polling loops in bridgeFunds,
bridgeNativeToken, and waitForSync (ethcommands.ts)
- Add Docker healthchecks for geth, sequencer, redis, postgres and use
service_healthy conditions in depends_on for proper startup ordering
(docker-compose.yaml)
- Track background PIDs and clean up on exit via trap (test-node.bash)
- Add Redis connection cleanup via finally blocks (redis.ts)
- Separate l3node-data volume from validator-data (docker-compose.yaml)
- Replace sed-based JSON rewriting with jq for timeboost config
- Move S3 credential warning to point of use instead of module level
- Add .gitignore, enable set -euo pipefail, fix --dev-contracts shift
bug, fix yargs l3 boolean type, validate flag dependencies post-parse
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e1d439b commit 12a44e2
8 files changed
Lines changed: 580 additions & 333 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
51 | 69 | | |
52 | 70 | | |
53 | 71 | | |
| |||
157 | 175 | | |
158 | 176 | | |
159 | 177 | | |
| 178 | + | |
160 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
161 | 186 | | |
162 | 187 | | |
163 | 188 | | |
| |||
177 | 202 | | |
178 | 203 | | |
179 | 204 | | |
180 | | - | |
| 205 | + | |
| 206 | + | |
181 | 207 | | |
182 | 208 | | |
183 | 209 | | |
| |||
236 | 262 | | |
237 | 263 | | |
238 | 264 | | |
| 265 | + | |
239 | 266 | | |
240 | 267 | | |
241 | 268 | | |
| |||
246 | 273 | | |
247 | 274 | | |
248 | 275 | | |
249 | | - | |
250 | | - | |
251 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
252 | 282 | | |
253 | 283 | | |
254 | 284 | | |
255 | 285 | | |
| 286 | + | |
256 | 287 | | |
257 | 288 | | |
258 | 289 | | |
| |||
263 | 294 | | |
264 | 295 | | |
265 | 296 | | |
266 | | - | |
267 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
268 | 301 | | |
269 | 302 | | |
270 | 303 | | |
| |||
301 | 334 | | |
302 | 335 | | |
303 | 336 | | |
| 337 | + | |
304 | 338 | | |
305 | 339 | | |
306 | 340 | | |
| |||
311 | 345 | | |
312 | 346 | | |
313 | 347 | | |
314 | | - | |
315 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
316 | 352 | | |
317 | 353 | | |
318 | 354 | | |
319 | 355 | | |
| 356 | + | |
320 | 357 | | |
321 | 358 | | |
322 | 359 | | |
323 | 360 | | |
324 | 361 | | |
325 | | - | |
| 362 | + | |
326 | 363 | | |
327 | 364 | | |
328 | 365 | | |
| |||
521 | 558 | | |
522 | 559 | | |
523 | 560 | | |
| 561 | + | |
524 | 562 | | |
525 | 563 | | |
526 | 564 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | | - | |
12 | | - | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | | - | |
15 | | - | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
| |||
189 | 196 | | |
190 | 197 | | |
191 | 198 | | |
192 | | - | |
| 199 | + | |
193 | 200 | | |
194 | | - | |
195 | 201 | | |
196 | 202 | | |
197 | | - | |
198 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
199 | 214 | | |
200 | 215 | | |
201 | 216 | | |
| |||
406 | 421 | | |
407 | 422 | | |
408 | 423 | | |
409 | | - | |
| 424 | + | |
410 | 425 | | |
411 | 426 | | |
412 | 427 | | |
| |||
449 | 464 | | |
450 | 465 | | |
451 | 466 | | |
452 | | - | |
| 467 | + | |
453 | 468 | | |
454 | 469 | | |
455 | 470 | | |
| |||
467 | 482 | | |
468 | 483 | | |
469 | 484 | | |
470 | | - | |
| 485 | + | |
471 | 486 | | |
472 | 487 | | |
473 | 488 | | |
| |||
882 | 897 | | |
883 | 898 | | |
884 | 899 | | |
| 900 | + | |
885 | 901 | | |
886 | 902 | | |
887 | 903 | | |
| |||
0 commit comments