Repository navigation
fix(dashmate): move every Core 23 image of dashpay/dashd to Core 24 - #6209
Conversation
Platform 5.1 needs Dash Core 24, but the 5.1 config migration moved only the exact tag `dashpay/dashd:23`. A node pinned to `dashpay/dashd:23.0.2`, `23.1`, `23.1.4`, a nightly or PR build, or a digest-pinned 23 image stayed on Core 23 after the upgrade. A new migration moves any dashpay/dashd image whose tag is a Core 23 version (23, 23.x, 23.x.y, with or without a suffix or digest) to the Core image this release ships, for mainnet, testnet and the `local` preset. Local network nodes and devnets stay as they are, as before: Core 24 discards the sporks Core 23 stored. An image from another repository is kept, with a warning that names the config and the command to switch when its tag names a Core before 24 or no version. The exact-tag move in the 5.1.0-dev.1 migration is folded into the new one. Keyed at 5.1.0-dev.5: 5.1.0-dev.4 was tagged from 46d6339 without this change, and its dashmate stamps configs 5.1.0-dev.4, so a dev.4 key would skip them. Configs stamped 5.0.x and 5.1.0-dev.1 through dev.4 run it. Test would have caught this in CI: ✖ before fix (6 failing: pinned Core 23 tags not moved from 5.0.3 and 5.1.0-dev.1/dev.3/dev.4 formats, no warning for another repository's Core 23 image, the `local` preset pinned to 23.1.4 not moved), ✔ after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
✅ Final review complete — no blockers (commit 21e823e) · triage: normal |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
Changes requested: 1 blocker
- Official Core 23 pins stay on Core 23 when the Docker Hub hostname is explicit —
packages/dashmate/configs/getConfigFileMigrationsFactory.js:1973-1979(new)
Impact: A mainnet or testnet operator who pinneddocker.io/dashpay/dashd:23.0.2can complete the documented Dashmate update and restart but still run Core 23, which stops following the chain once V24 activates.
Dashmate adds a 5.1.0-dev.5 config migration that upgrades Core 23 image pins on mainnet, testnet, and the local preset while leaving existing local nodes and devnets unchanged. The Dashmate tests, all three Dashmate E2E jobs, JS lint, the main Platform suite, and both browser shards passed; PR Hygiene and the automated review check are still pending.
🔴 1 blocking | 🟡 2 suggestion(s)
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.2-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.2-sol (agent: phase2-reviewer, role: architecture-layering); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.2-sol(effort low) — The behavior change is confined to a Dashmate config migration that updates matching Core 23 image references, warns about retained images, and tests upgrades from prior config versions. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 51% left, weekly 66% left; passed overgemini-3.8-flash-high(lane failed) - Fresh verifier:
gpt-6.2-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.2-sol— general (completed, effort medium); agentphase2-reviewer,gpt-6.2-sol— architecture-layering (completed, effort medium); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review (PastaClaw). How to work through them:
- Verify each finding against the code; fix only what is real, as narrowly as the finding.
- If a finding is wrong, decline it on its thread in one or two sentences; the bot answers once and stops.
- To defer one, link a tracking issue on its thread (or reply asking the bot to file one).
- Suggestions don't block the merge, but most are worth fixing in this PR; judge each on its merits.
- Keep the PR's scope; don't grow it to satisfy hardening suggestions.
- Carried items were raised in an earlier round: read the thread first, and don't re-fix what you already fixed, declined or deferred there. Disputed and deferred items are already handled and are not listed.
In `packages/dashmate/configs/getConfigFileMigrationsFactory.js`:
- [BLOCKING] packages/dashmate/configs/getConfigFileMigrationsFactory.js:1973-1979: Official Core 23 pins stay on Core 23 when the Docker Hub hostname is explicit
Impact: A mainnet or testnet operator who pinned `docker.io/dashpay/dashd:23.0.2` can complete the documented Dashmate update and restart but still run Core 23, which stops following the chain once V24 activates.
The normal upgrade leaves the node on the incompatible binary even though the pin points to the same repository as the default image. `parseCoreImage` preserves the hostname, so the literal comparison skips the rewrite, the migration saves the unchanged pin with the dev.5 stamp, and update and start use that pin. Docker resolves `dashpay/dashd`, `docker.io/dashpay/dashd`, and `index.docker.io/dashpay/dashd` to the same repository. The older Drive migrations matched only spellings previous releases had written; this migration explicitly covers operator pins from the official Core repository. Recognize both Docker Hub spellings, test a qualified Core 23 pin, and keep genuinely different registries warning-only.
- [SUGGESTION] packages/dashmate/configs/getConfigFileMigrationsFactory.js:1981-1987: A Core 24 tag suppresses the warning even when the digest pins Core 23
Impact: An operator who changes a custom image's tag to `24.0.3` without replacing its Core 23 digest gets no upgrade warning and still runs Core 23.
The migration treats `myorg/dashd:24.0.3@sha256:<old-digest>` as compatible without inspecting what the pin selects. Docker uses the digest, not the tag, to select the image, but `parseCoreImage` discards the digest and the `coreMajor >= 24` branch skips the warning. Preserve digest pins outside the automatic rewrite, but warn that their Core version needs verification even when the tag says 24 or later.
- [SUGGESTION] packages/dashmate/configs/getConfigFileMigrationsFactory.js:1989-1995: The Core upgrade warning stays in helper logs when the helper migrates first
Impact: If an upgraded helper migrates the shared config before the operator runs the new CLI, `dashmate update` and `dashmate start` give no compatibility warning for the retained custom image.
The operator can miss the only actionable warning even though the image still needs attention. Helper startup and certificate renewal both call `readAndMigrate` on the shared config, so the migration writes the warning to helper logs and saves the dev.5 stamp. Later CLI commands skip the migration and do not check the retained pin. Keep the rewrite in the migration, but reuse a Core image diagnostic in the operator-facing update and start paths so the warning does not depend on which process read the file first.
Out-of-scope follow-up suggestions (1)
These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.
- Drive startup does not report an incompatible running Core version — Drive's startup checks confirm Core sync and credit-pool RPC availability, but do not check the running binary's version. A self-managed Core 23 node can pass those checks before V24 activates and later stall without a version-specific diagnostic.
- Follow-up: Track a separate Drive-ABCI startup diagnostic using the connected Core's
getnetworkinfoversion, with warning or refusal behavior based on the network and activation policy.
- Follow-up: Track a separate Drive-ABCI startup diagnostic using the connected Core's
|
Your move: thepastaclaw requested changes on this head; dismiss the review or push a fix; thepastaclaw left review threads unresolved; resolve them. |
v5.1.0-rc.1 was tagged without this migration and stamps configs 5.1.0-rc.1. Semver orders 5.1.0-dev.5 below that, so the dev.5 key would never run for a config rc.1 had read. Keying it at 5.1.0-rc.2 puts it above every stamp a released build writes, and it runs whether rc.2 or 5.1.0 ships it: both migrate rc.1-stamped configs and stamp their own version. The tests now start from the rc.1 format too, and cover both releases that could ship the move. Test would have caught this in CI: 4 failing before the re-key (rc.1 format, rc.2 and 5.1.0 shipping it, local/devnet from rc.1), all 42 passing after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r Hub host The Core 24 migration compared the repository literally, so `docker.io/dashpay/dashd:23.0.2` read as another repository: the node was kept on Core 23 and only warned about. Docker pulls `docker.io/`, `index.docker.io/` and `registry-1.docker.io/dashpay/dashd` from the same Docker Hub repository as `dashpay/dashd`, so the parser now drops those hostnames before the comparison. The same path on any other registry, such as `ghcr.io/dashpay/dashd`, is still kept and warned about. Test would have caught this in CI: the Core 23 move failed from every config format (5 failing) on `docker.io/dashpay/dashd:23.0.2` before the fix; all 32 pass after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… its tag says Docker runs the image a digest names and ignores the tag next to it, so `myorg/dashd:24.0.3@sha256:<Core 23 digest>` still runs Core 23. The Core 24 migration read only the tag and stayed silent for any tag of 24 or later. It now warns about every image it keeps that a digest pins, from any repository: the digest is what decides the Core version, and dashmate cannot tell which one it names. A kept Core 24 image without a digest is still not warned about. Test would have caught this in CI: no warning for `myorg/dashd:24.0.3@sha256:…` or `dashpay/dashd:24.0.1@sha256:…` before the fix (1 failing); all 43 pass after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
thepastaclaw
left a comment
There was a problem hiding this comment.
Re-review — Final validation — Phase 1 + Phase 2
New on this head: This revision moves the Dashmate migration to 5.1.0-rc.2 so it reaches configs stamped by rc.1, recognizes Docker Hub-qualified Core 23 pins, and warns about retained digest pins regardless of their tags. Dashmate tests, lint, all three Dashmate E2E jobs, and both browser suites passed; PastaClaw review and PR Hygiene are pending.
🔴 0 blocking | 🟡 0 suggestion(s) | 💬 0 nitpick(s)
Review provenance
Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.2-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.2-sol (agent: phase2-reviewer, role: architecture-layering); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)
- Triage:
normalbygpt-6.2-sol(effort low) — The migration requires checking SemVer ordering, Docker image reference matching, and which configs are rewritten or warned about, but it changes operator configuration rather than protocol state or database storage. - Phase 1 reviewers:
muse-spark-1.3-contributor— general (completed, effort xhigh); agentphase1-reviewer - Phase 1 model:
muse-spark-1.3-contributor— not quota-gated; passed overgemini-3.8-flash-high(antigravity quota lookup failed),glm-5.3-flash(not used above high effort; tier asks max) - Fresh verifier:
gpt-6.2-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.2-sol— general (completed, effort high); agentphase2-reviewer,gpt-6.2-sol— architecture-layering (completed, effort high); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify the current code and confirm that no unresolved issues remain.
No unresolved findings remain from the prior review on this head.
|
Bots are done — your move: post |
Brings v5.1-dev's 7 commits into v5.2-dev: dashpay#6315, dashpay#6316, dashpay#6289, dashpay#6209, dashpay#6210, dashpay#6267 and dashpay#6274. Conflicts, all in dashmate doctor, where dashpay#6316 (v5.1-dev) and dashpay#6317 (v5.2-dev) changed the same code: - archiveSamples.js: combined. Config secrets are scrubbed, samples are staged in a private mkdtemp directory that is removed afterwards, and the tar is portable and lists the staged files (dashpay#6316). The archive name is Windows-safe, the archive is packed into a `wx` 0600 partial file renamed into place inside its cleanup guard, and its path is returned (dashpay#6317). The staging directory and the mkdtemp prefix use the Windows-safe name. When the archive fails, the staging directory is removed inside a guard, so the error that stopped the archive is the one reported, as dashpay#6317 already did for the partial file. - report.js: passes the config and prints the returned archive path. - collectSamplesTaskFactory.js: both sides' imports. - archiveSamples.spec.js (add/add): v5.1's tests take the archive path from the return value; the "did not write" test plants a directory under both earlier staging names; v5.2's tests sit in an "archive file" block and pass the config. New test: the packing error is reported when removing the staged files fails too (fails on a plain `finally`, passes on the resolution). - collectSamplesTaskFactory.spec.js: both sides' imports. Merged without mergiraf (core.attributesFile=/dev/null). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Issue being fixed or feature implemented
Platform 5.1 needs Dash Core 24. The 5.1 config migration (
5.1.0-dev.1) moved only the exact tagdashpay/dashd:23to the Core image 5.1 ships. A node whose operator pinned a Core 23 release or build, such asdashpay/dashd:23.0.2,23.1,23.1.4,23.1.8-nightly…or23@sha256:…, stayed on Core 23 after upgrading dashmate. A Core image from another repository was also kept without any notice.This was found by the 5.0.3 → 5.1.0-dev.3 config migration test (D3, finding 3): scenario F's
mn-evo-2, pinned todashpay/dashd:23.0.2, stayed on Core 23.What was done?
5.1.0-rc.2. It moves anydashpay/dashdimage whose tag is a Core 23 version (23,23.x,23.x.y, with or without a suffix or digest) to the Core image this release ships (dashpay/dashd:24). It covers the same configs as before: mainnet, testnet and thelocalpreset.docker.io/dashpay/dashd,index.docker.io/dashpay/dashdandregistry-1.docker.io/dashpay/dashdare pulled from the same Docker Hub repository asdashpay/dashd, so a Core 23 pin spelled that way moves too. The same path on another registry, such asghcr.io/dashpay/dashd, is another repository and is kept.local_*) and devnets stay as they are, for the same reason as before: Core 24 discards the sporks Core 23 stored, and dashmate signs local sporks only while setting the network up.myorg/dashd:patched, ordashpay/dashd@sha256:…pinned by digest alone). It also warns when a digest pins the image, even if the tag names Core 24 or later. Docker runs the image the digest names, so inmyorg/dashd:24.0.3@sha256:<Core 23 digest>the tag proves nothing. The warning names the config and gives the command to switch.dashmate stop, install the new package,dashmate update) that is the operator's ownupdate. The helper can't migrate first: its image isdashpay/dashmate-helper:<CLI version>, so a helper with this migration runs only after a CLI of the same version started it, and that CLI has already migrated the file inBaseCommand.init.5.1.0-dev.1into the new migration. The new migration covers every config the old one did, so a 5.0.x config ends up the same.5.1.0-dev.1keeps only theprotxinfowhitelist entry.5.1.0-rc.2:v5.1.0-rc.1was already tagged from v5.1-dev without this change. That dashmate stamps configs5.1.0-rc.1, and semver orders any5.1.0-dev.Nkey below that, so a dev key would skip every config rc.1 has read. Withrc.2the migration runs for configs stamped 5.0.x, 5.1.0-dev.2 through dev.4, and 5.1.0-rc.1. It also runs for5.1.0-dev.5, which local builds of this branch wrote before the re-key; running it again is harmless. Until rc.2 ships, this build stamps configs5.1.0-rc.2(seegetConfigFormatVersion).5.1.0-rc.2.5.1.0.5.1.0, above this key. One that pins a Core 23 image other thandashpay/dashd:23has to be switched by hand:dashmate config set core.docker.image dashpay/dashd:24 --config=<name>.5.1.0-dev.2. It now checks that a dev.1 build stamps configs past the Tenderdash migration, which was the point of that test.drive-abci 5.1 on Core 23 (checked; no code change)
getspecialtxesanswers, so it starts normally on Core 23.update_core_infov1 reads V24 activation from the coinbase payload version. Core 23 never produces the version 4 coinbase, so Drive reads V24 as not active, and Drive runs on Core 23.CCbTx::Version, v23.1.10). It rejects the first V24 block withbad-cbtx-versionand stops following the chain. Drive then stalls behind its Core with generic Core RPC errors, not a "needs Core 24" message.getnetworkinfo's version and decide when to refuse to start. It is left out and can be a follow-up if wanted. A check of the running Core's version is also the reliable way to catch a kept image that isn't Core 24, whichever process migrated the config.How Has This Been Tested?
TDD. Each change's tests in
migrateConfigFileFactory.spec.jswere run against the code without it first:dashpay/dashd:23.1stayed. From every dev format, evendashpay/dashd:23stayed.myorg/dashd:23.0.2-patched,myorg/dashd:patched,dashpay/dashd@sha256:…orregistry.example.org:5000/dashd:23.1.4.localpreset pinned todashpay/dashd:23.1.4was not moved.5.1.0-rc.2: 4 failing with thedev.5key. These were the 5.1.0-rc.1 format, rc.2 and 5.1.0 each shipping the move from an rc.1 config, and local/devnet from rc.1.docker.io/dashpay/dashd:23.0.2stayed on Core 23 from every config format.myorg/dashd:24.0.3@sha256:…ordashpay/dashd:24.0.1@sha256:….yarn workspace dashmate test:unit: 1182 passing, 0 failing. ESLint is clean on the changed files; the only warning reported is an unusedno-param-reassigndisable that was already there.23,23.1,23.0.2,23.1.4,23-nightly,23.1.8-nightly.2026.09.22,23@sha256:…and23.1.4@sha256:…. Also moved:docker.io/,index.docker.io/andregistry-1.docker.io/spellings, one of them with a digest. Each runs on mainnet/testnet nodes and thelocalpreset, from formats 5.0.3, 5.1.0-dev.1, dev.3, dev.4 and rc.1.ghcr.io/dashpay/dashd:23.0.2, and any kept image pinned by a digest.myorg/dashd:24.0.3anddashpay/dashd:24.1.0-nightly.local_seed/local_1and a devnet pinned to Core 23.5.1.0-rc.1was run twice through this checkout'sdashmate config list, which goes throughreadAndMigrate.docker.io/dashpay/dashd:23.0.2(mainnet),dashpay/dashd:23.1.4(testnet) andindex.docker.io/dashpay/dashd:23.1(local) moved todashpay/dashd:24.ghcr.io/dashpay/dashd:23.0.2andmyorg/dashd:24.0.3@sha256:…were kept and warned about once.5.1.0-rc.2.dev.5key, and not re-run since). The six 5.0.3 homes from the D3 migration test went throughdashmate config listonce as written by 5.0.3, and once after the published 5.1.0-dev.3 had migrated and stamped them.mn-evo-2(dashpay/dashd:23.0.2) moved todashpay/dashd:24from both starting points.myorg/dashd:23.0.2-patchedwas kept and warned about once.local_1..3andlocal_seed, and Fdevnet-ops, stayed ondashpay/dashd:23.Breaking Changes
None in the API. Operators: a node on mainnet or testnet, or the
localpreset, pinned to a Core 23 image ofdashpay/dashdis moved todashpay/dashd:24on the first dashmate command after the upgrade.Release note (operators): Dashmate now moves every Core 23 image of
dashpay/dashdon mainnet, testnet and thelocalpreset to Core 24. This includes pinned versions such asdashpay/dashd:23.0.2, digest-pinned Core 23 images, and the same images named with a Docker Hub hostname (docker.io/dashpay/dashd:23.0.2). Before, only thedashpay/dashd:23tag was moved. Any other Core image is kept. Dashmate warns about one whose tag doesn't name Core 24 or later, or that a digest pins. If you see the warning, make sure the image is Core 24, or rundashmate config set core.docker.image dashpay/dashd:24 --config=<name>. Existing local networks and devnets stay on Core 23. A config last written by dashmate 5.1.0-dev.1 that pins a Core 23 image other thandashpay/dashd:23must be switched by hand withdashmate config set core.docker.image dashpay/dashd:24 --config=<name>.Checklist:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on this pull requestFor repository code-owners and collaborators only
🤖 Generated with Claude Code
PR Hygiene ·
21e823e/self-reviewedWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.Summary by CodeRabbit