Skip to content

chore(tooling): add reth v2 db migration command - #3156

Draft
calbera wants to merge 4 commits into
mainfrom
reth-v2-tooling
Draft

chore(tooling): add reth v2 db migration command#3156
calbera wants to merge 4 commits into
mainfrom
reth-v2-tooling

Conversation

@calbera

@calbera calbera commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Keeping open as reference for now, do not need to merge

@calbera
calbera requested review from bar-bera and fridrik01 August 17, 2026 04:03
@calbera
calbera requested a review from a team as a code owner August 17, 2026 04:03
Copilot AI lite review requested due to automatic review settings August 17, 2026 04:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Makefile target in the build/testing tooling to migrate an existing Reth mainnet datadir from the v1 database format to the v2 storage format, using the bera-reth Docker image. This fits into the repo’s local/devnet/mainnet testing helpers under scripts/build/.

Changes:

  • Introduces migrate-reth-v2-mainnet to run reth db migrate-v2 against the configured mainnet genesis.
  • Pins the migration command to ghcr.io/berachain/bera-reth:v1.5.0-rc0 and reuses existing mount paths for .tmp and network files.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/build/testing.mk
@calbera
calbera marked this pull request as draft August 17, 2026 04:05
@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.10%. Comparing base (d9f0673) to head (7c119d3).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3156   +/-   ##
=======================================
  Coverage   63.10%   63.10%           
=======================================
  Files         372      372           
  Lines       15549    15549           
=======================================
  Hits         9812     9812           
  Misses       4777     4777           
  Partials      960      960           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

calbera and others added 2 commits August 16, 2026 22:48
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Cal Bera <calbera@berachain.com>
@calbera
calbera marked this pull request as ready for review August 17, 2026 05:49
Comment thread scripts/build/testing.mk
--rm -v $(PWD)/${TESTAPP_FILES_DIR}:/${TESTAPP_FILES_DIR} \
--rm -v $(PWD)/${MAINNET_NETWORK_FILES_DIR}:/${MAINNET_NETWORK_FILES_DIR} \
-v $(PWD)/.tmp:/.tmp \
ghcr.io/berachain/bera-reth:v1.5.0-rc0 db \

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait till berachain/bera-reth#277 is merged and included in nightly, then switch this version back to nightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants