fix: remove datadir before devnet run#379
Conversation
🤖 Kimi Code ReviewMakefile: Lines 41-43
Otherwise, the workaround for the broken Automated review by Kimi (Moonshot AI) · kimi-k2.5 · custom prompt |
🤖 Claude Code ReviewPR #379 Review:
|
Greptile SummaryThis PR fixes a repeated-run failure in Confidence Score: 5/5The change is safe to merge — it adds a single The addition deletes only the transient database state directory before each devnet run. The No files require special attention.
|
| Filename | Overview |
|---|---|
| Makefile | Adds rm -rf lean-quickstart/local-devnet/data/ before the devnet run to clear stale database state; the -f flag handles the first-run case gracefully, and the path is always valid because the lean-quickstart dependency is resolved before the recipe executes. |
Sequence Diagram
sequenceDiagram
participant Dev as Developer
participant Make as make run-devnet
participant Docker as docker-build
participant Git as lean-quickstart (clone)
participant FS as Filesystem
participant Devnet as spin-node.sh
Dev->>Make: make run-devnet
Make->>Docker: docker build (dependency)
Docker-->>Make: image built
Make->>Git: clone (if not present)
Git-->>Make: repo ready
Make->>FS: rm -rf lean-quickstart/local-devnet/data/ (NEW)
FS-->>Make: stale data removed
Make->>Devnet: ./spin-node.sh --node all --generateGenesis --metrics
Devnet-->>Dev: devnet running (logs → devnet.log)
Reviews (1): Last reviewed commit: "fix: remove datadir before devnet run" | Re-trigger Greptile
🤖 Codex Code Review
No other issues stood out in this PR. It only changes a devnet helper target, so there are no fork-choice, attestation, justification/finalization, state-transition, XMSS, or SSZ correctness concerns in the diff itself. Automated review by OpenAI Codex · gpt-5.4 · custom prompt |
🗒️ Description / Motivation
Running
make run-devnetmore than once results in errors due to another database already existing. This can be solved by deleting the whole datadir after a devnet run.What Changed
A step deleting
lean-quickstart/local-devnet/data/was added to therun-devnetmake target.