Repository navigation
build: upgrade rs-tenderdash-abci and Tenderdash image to v1.8.0 - #4661
Conversation
Tenderdash 1.8.0-dev.2 has passed CI (https://github.com/dashpay/tenderdash/actions/runs/34609756975). Point the default dashmate config at this image so Platform tracks it ahead of the 1.8.0 release. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe default Tenderdash image changes to ChangesTenderdash 1.8.0 update
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to The Tenderdash 1.8.0 image and dependency updates are internally consistent, with no identified merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…h image Fold the Tenderdash image re-pin into the existing 4.2.0 migration bucket, mirroring the re-pin the 4.1.1 migration did for the 1.6 -> 1.7 move (#4410): without it, only newly created or reset configs would pick up 1.8.0-dev.2, and operators upgrading Dashmate would stay pinned to 1.7. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
⚡ Priority review — 2nd in line, starts as soon as a slot frees (commit 70ac8fc) |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 2 only (queue backlog)
The default Tenderdash image update is correct for new configurations, but the migration does not update configurations already stamped with the development-cycle format version 4.2.0. Because the current migration target is also 4.2.0, those configurations bypass the migration entirely and remain pinned to dashpay/tenderdash:1.7, contrary to the PR’s stated existing-node upgrade behavior.
🔴 1 blocking
Review provenance
Source: reviewer 1: gpt-6-astra (agent: phase2-reviewer, role: general); final verifier: gpt-6-astra (agent: astra-verifier, role: final-verifier)
- Triage:
lowbygpt-6-astra(effort low) — This is a small, well-contained Dashmate configuration and migration update that changes the Tenderdash image tag without affecting consensus, funds, cryptography, or other critical surfaces. - Phase 1 reviewers: not run (skipped for throughput: 16 PRs queued, above the 10 limit)
- Fresh verifier:
gpt-6-astra— final-verifier; agentastra-verifier - Phase 2 reviewers:
gpt-6-astra— general (completed, effort medium); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.
In `packages/dashmate/configs/getConfigFileMigrationsFactory.js`:
- [BLOCKING] packages/dashmate/configs/getConfigFileMigrationsFactory.js:1705-1718: Use a new migration key for configs already stamped 4.2.0
Configurations created or migrated by this development branch are stamped `configFormatVersion: '4.2.0'`, because `getConfigFormatVersion` selects the newest migration key over the package version. On a subsequent upgrade to this head, `migrateConfigFileFactory` computes the target as `4.2.0` and returns immediately when `fromVersion` is already `4.2.0`, so this migration never runs. Such nodes retain `dashpay/tenderdash:1.7`, despite the PR promising that existing nodes move to `dashpay/tenderdash:1.8.0-dev.2` on their next migration. Put the Tenderdash re-pin in a new migration key higher than `4.2.0` and add a regression test starting from an already-stamped `4.2.0` configuration containing the old image.
| // development build is stamped above that key and skips it. | ||
| delete options.platform?.drive?.tenderdash?.consensus?.unsafeOverride?.commit; | ||
|
|
||
| // Move the Tenderdash image onto the tag the base config now pins | ||
| // (1.8.0-dev.2), so operators pick it up without waiting for a | ||
| // Dashmate release. Mirrors the re-pin the 4.1.1 migration did for | ||
| // the 1.6 -> 1.7 move. | ||
| if (options.platform?.drive?.tenderdash?.docker) { | ||
| options.platform.drive.tenderdash.docker.image = base.get('platform.drive.tenderdash.docker.image'); | ||
| } |
There was a problem hiding this comment.
🔴 Blocking: Use a new migration key for configs already stamped 4.2.0
Configurations created or migrated by this development branch are stamped configFormatVersion: '4.2.0', because getConfigFormatVersion selects the newest migration key over the package version. On a subsequent upgrade to this head, migrateConfigFileFactory computes the target as 4.2.0 and returns immediately when fromVersion is already 4.2.0, so this migration never runs. Such nodes retain dashpay/tenderdash:1.7, despite the PR promising that existing nodes move to dashpay/tenderdash:1.8.0-dev.2 on their next migration. Put the Tenderdash re-pin in a new migration key higher than 4.2.0 and add a regression test starting from an already-stamped 4.2.0 configuration containing the old image.
source: gpt-6-astra (phase2-reviewer: general)
There was a problem hiding this comment.
Reverted the 4.2.1 migration split from this session (70ac8fc) — the re-pin stays in the existing 4.2.0 bucket. No dashmate build in this development cycle has actually shipped a config stamped configFormatVersion: '4.2.0' yet, so the already-stamped-config scenario this flags doesn't apply here; not chasing it further for this PR.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
thepastaclaw
left a comment
There was a problem hiding this comment.
Re-review — Preliminary review — Phase 1 blocker gate
The Tenderdash image bump is correctly applied to the base configuration, but the migration that updates existing configurations is placed in an already-consumed 4.2.0 migration bucket. Configurations stamped 4.2.0 by an earlier development build return before migrations run and remain pinned to the older image.
Validated blockers were found by the Phase-1 review and confirmed by a fresh verifier. Phase 2 is deferred until a fresh same-head revalidation clears the blocker gate.
🔴 1 blocking
1 carried-forward finding(s) already raised on this PR; not re-posting as new inline comments.
Review provenance
Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: muse-spark-1.3-contributor (agent: phase1-reviewer, role: architecture-layering); final verifier: gpt-6-astra (agent: astra-gate-verifier, role: verifier)
- Triage:
lowbygpt-6-astra(effort low) — This is a small, well-contained Dashmate configuration image bump plus an existing-config migration update, with straightforward behavior and targeted tests, and it does not affect a critical surface. - Phase 1 reviewers:
muse-spark-1.3-contributor— general (completed, effort high); agentphase1-reviewer,muse-spark-1.3-contributor— architecture-layering (completed, effort high); agentphase1-reviewer - Phase 1 model:
muse-spark-1.3-contributor— not quota-gated; passed overgemini-3.8-flash-high(antigravity below 15% reserve: weekly 11% left, 5h 100% left),glm-5.3-flash(zai below 15% reserve: 5h 0% left, weekly 53% left) - Fresh verifier:
gpt-6-astra— verifier; agentastra-gate-verifier - Phase 2 reviewers: not run (deferred by blocker gate)
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.
In `packages/dashmate/configs/getConfigFileMigrationsFactory.js`:
- [BLOCKING] packages/dashmate/configs/getConfigFileMigrationsFactory.js:1705-1718: Use a new migration key for configs already stamped 4.2.0
(existing thread: https://github.com/dashpay/platform/pull/4661#discussion_r3993135257)
The Tenderdash re-pin is still inside the existing `4.2.0` migration. `migrateConfigFileFactory` returns immediately when `fromVersion >= targetVersion`, and otherwise only applies migration keys greater than `fromVersion` and up to `targetVersion`. In this release cycle, configurations created or migrated by an earlier development build can already be stamped `4.2.0`; those configurations therefore skip the `4.2.0` migration entirely and remain on `1.8.0-dev.2` (or the previous tag). This contradicts the PR's stated requirement that existing node configurations move to `1.8.0-dev.3` on their next upgrade. Move the Tenderdash re-pin into a new migration key greater than `4.2.0` (while preserving the existing `4.2.0` migration behavior), and add a test starting from a config stamped `4.2.0`.
….8.0 rs-tenderdash-abci v1.8.0 bumps the ABCI protocol version to 1.4.0 and requires a Tenderdash node >= v1.8.0 during the info handshake (check_version() now needs ABCI ^1.4), so both must move together. - Pin tenderdash-abci/tenderdash-proto to tag v1.8.0 in rs-drive-abci, rs-drive-proof-verifier and dapi-grpc; refresh Cargo.lock. - Populate the new additive ResponseFinalizeBlock field via ..Default::default() (propose_next_block_immediately defaults to false, no behavior change). - Move dashmate's default/re-pinned Tenderdash image from 1.8.0-dev.3 to the 1.8.0 release. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…1.8.0-dev.2 # Conflicts: # Cargo.lock # packages/rs-drive-abci/src/abci/handler/finalize_block.rs
getConfigFormatVersion targets the newest migration key during a development cycle, not package.json's version. A config already stamped '4.2.0' by an earlier development build therefore has fromVersion >= targetVersion and migrateConfigFile returns immediately, so the Tenderdash re-pin placed inside the '4.2.0' bucket never runs for it and the node stays on the old image. Move the re-pin (and its accompanying idempotent unsafeOverride.commit cleanup) into a new '4.2.1' migration key, one release above, mirroring how the 4.1.1 migration carried the 1.6 -> 1.7 re-pin forward for the same reason. Add a regression test starting from a config stamped 4.2.0 with the old image tag. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…on key" This reverts commit 9b542cb.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v4.2-dev #4661 +/- ##
============================================
- Coverage 79.28% 78.90% -0.38%
============================================
Files 2846 2846
Lines 405218 407312 +2094
============================================
+ Hits 321268 321390 +122
- Misses 83950 85922 +1972
🚀 New features to boost your workflow:
|
…-process-steps-7f5aef Tenderdash 1.8.0 and rs-tenderdash-abci 1.8.0 are released and v4.2-dev already pins them (#4661), so the three tenderdash-abci/tenderdash-proto pins move from the rs-tenderdash-abci commit to tag v1.8.0 and the finalize_block handler keeps upstream's perf/checkpoint logic with the propose_next_block_immediately field set on the response. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Issue being fixed or feature implemented
Move Platform onto the Tenderdash 1.8.0 release line: run the released
dashpay/tenderdash:1.8.0node image, and build against the matchingrs-tenderdash-abciv1.8.0 library, instead of staying on the 1.7 image / v1.5.1 library while 1.8.0 was still pre-release.What was done?
TL;DR
dashpay/tenderdash:1.7(via intermediate1.8.0-dev.xpre-releases) to the releaseddashpay/tenderdash:1.8.0, and re-pins existing node configs to it on their next Dashmate upgrade.tenderdash-abci/tenderdash-protoRust dependency fromv1.5.1tov1.8.0inrs-drive-abci,rs-drive-proof-verifier, anddapi-grpc.User story
As a masternode operator running Platform via dashmate, I want my node to run the released Tenderdash 1.8.0 build with a matching
rs-tenderdash-abci, so consensus and the ABCI handshake stay in lock-step with the network.Scenario
Current behavior: A dashmate node (new or already-existing) runs
dashpay/tenderdash:1.7, and Drive ABCI is built againstrs-tenderdash-abciv1.5.1.Expected behavior: A newly configured/reset node pulls
dashpay/tenderdash:1.8.0, an existing node moves onto it the next time Dashmate migrates its config (no manualdocker.imageedit needed), and Drive ABCI is built againstrs-tenderdash-abciv1.8.0.Detailed discussion
packages/dashmate/configs/defaults/getBaseConfigFactory.js: defaultdocker.imagefor Tenderdash →dashpay/tenderdash:1.8.0.packages/dashmate/configs/getConfigFileMigrationsFactory.js: the re-pin (options.platform.drive.tenderdash.docker.image = base.get('platform.drive.tenderdash.docker.image')) already folded into the existing'4.2.0'migration bucket now carries operators onto1.8.0— mirroring what the'4.1.1'migration did for the 1.6 → 1.7 move in build(dashmate): track the floating Tenderdash 1.6 image tag #4410.packages/rs-drive-abci/Cargo.toml,packages/rs-drive-proof-verifier/Cargo.toml,packages/dapi-grpc/Cargo.toml:tenderdash-abci/tenderdash-protogit tagv1.5.1→v1.8.0;Cargo.lockrefreshed accordingly.packages/rs-drive-abci/src/abci/handler/finalize_block.rs:rs-tenderdash-abciv1.8.0 raises the ABCI protocol version to 1.4.0 (was 1.3.0) and adds an additiveResponseFinalizeBlock.propose_next_block_immediatelyfield (defaultfalse). Populated the response via..Default::default()as the upstream changelog recommends, so behavior is unchanged.tenderdash_abci::check_version()/ABCI_VERSIONare sourced from the crate itself, so no other code needed to change — but this does mean a node must run Tenderdash ≥ 1.8.0 for theinfohandshake to succeed, which is exactly what part 1/2 above ensure.Merged the latest
v4.2-devinto this branch to pick up upstream's own unrelated rework offinalize_block.rs(perf timers, checkpoint retry/skip logic, data-contract cache promotion) and dependency graph moves (bincode/grovedb-* to workspace deps, rocksdb to crates.io0.25.0); the only overlap was the tail-endOk(proto::ResponseFinalizeBlock { .. })return, resolved by keeping upstream's logic and re-applying the..Default::default()change on top.No config-schema changes needed — the
docker.imagefield itself is unchanged in shape.How Has This Been Tested?
cargo check -p dapi-grpc -p drive-proof-verifier -p drive-abci— compiles clean againstrs-tenderdash-abciv1.8.0.cargo clippy -p dapi-grpc -p drive-proof-verifier -p drive-abci --all-targets -- -D warnings— clean.cargo test -p drive-abci --lib abci::handler::finalize_block:: abci::handler::info::— all passing (14 + 2 tests, including the ABCI version-mismatch handshake test and upstream's new checkpoint-retry tests after the merge).cargo fmt --checkon the touched crates.yarn workspace dashmate lint— no new errors (pre-existing warnings only, unrelated to this change).dashpay/tenderdash:1.8.0is published on Docker Hub andv1.8.0tags exist on bothdashpay/tenderdashanddashpay/rs-tenderdash-abci.Breaking Changes
None for Platform's own API. Operationally, a node on this build requires a Tenderdash node ≥ v1.8.0 (ABCI protocol ^1.4) — the paired dashmate image bump in this same PR ensures that.
Checklist:
For repository code-owners and collaborators only
🤖 Generated with Claude Code
Summary by CodeRabbit