Repository navigation
build(dashmate): track the floating Tenderdash 1.6 image tag - #4410
Merged
Merged
Conversation
The base config pinned dashpay/tenderdash:1.6.0, so a patch release on the 1.6 line only reached operators through a Dashmate release. Pin the floating minor tag instead and let Docker resolve it. Config files store resolved values, so the base config alone does not move an existing node. The last migration to re-pin this image ran at 4.0.0-rc.3, which means every config written or migrated since holds the exact version that release pinned - a tag nothing moves. The new migration moves them onto whatever the base config pins. Keyed at 4.1.1 rather than the released 4.1.0: the runner returns early on fromVersion === toVersion, so a key equal to an operator's current version never fires. The migration also carries the drive and rs-dapi re-pin forward from the 4.1.0 entry. Those tags are derived from the package version and the entry that re-pins them stops firing once a config is stamped at it, so the newest key has to hold the re-pin; without it, migrateConfigFileFactory's table walk fails for a config stamped 4.1.0 while still carrying dashpay/drive:4-rc. Trade-off: a floating tag costs reproducibility. Two nodes on the same Dashmate version can run different Tenderdash binaries depending on when they last pulled, and a bad 1.6.x publish reaches every node with no Dashmate release to bisect against. No test: a regression test pinning the 4.0.x/4.1.x cohort was written and verified red-to-green, then dropped at the owner's request. The pre-existing table walk still fails if the drive/rs-dapi re-pin is removed. Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Collaborator
|
🔍 Review in progress — actively reviewing now (commit 616fad0) |
2 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue being fixed or feature implemented
The base config pinned
dashpay/tenderdash:1.6.0, so a Tenderdash patch release published on the 1.6 line only reached operators through a Dashmate release. Pinning the floating minor tag lets Docker resolve the latest 1.6.x instead (1.6currently resolves to 1.6.0, digest766bdca9).Config files store resolved values, so changing the base config alone does not move an existing node. The last migration to re-pin this image ran at
4.0.0-rc.3, so every config written or migrated since holds the exact version that release pinned — a tag nothing moves.What was done?
packages/dashmate/configs/defaults/getBaseConfigFactory.js—dashpay/tenderdash:1.6.0→dashpay/tenderdash:1.6.packages/dashmate/configs/getConfigFileMigrationsFactory.js— new4.1.1migration moving an existing config's Tenderdash image onto whatever the base config pins.Keyed at
4.1.1rather than the released4.1.0: the runner returns early onfromVersion === toVersion, so a key equal to an operator's current version never fires. This matches the reasoning recorded on the4.0.0-rc.3and4.1.0-rc.2entries.The migration also carries the drive and rs-dapi re-pin forward from the
4.1.0entry. Those tags are derived from the package version, and the entry that re-pins them stops firing once a config is stamped at it, so the newest key has to hold the re-pin. Without it,migrateConfigFileFactory's existing table walk fails for a config stamped4.1.0while still carryingdashpay/drive:4-rc.Trade-off worth a reviewer's attention
A floating tag costs reproducibility. Two nodes on the same Dashmate version can run different Tenderdash binaries depending on when they last pulled, and a bad 1.6.x publish reaches every node with no Dashmate release or changelog entry to bisect against. Tenderdash is consensus-critical, so the blast radius is network-wide rather than per-operator. Implemented as specified; flagging it for the merge decision.
How Has This Been Tested?
yarn workspace dashmate test:unit→ 158 passing, 0 failing.migrateConfigFileFactory.spec.js→ 4 passing, including the table walk that pins the drive/rs-dapi re-pin described above.yarn eslinton both changed files → clean.createConfigFile+migrateConfigFile): the base config emitsdashpay/tenderdash:1.6, and a config stamped4.1.0holdingdashpay/tenderdash:1.6.0migrates todashpay/tenderdash:1.6(it stays on1.6.0with the migration removed).A regression test pinning that 4.0.x/4.1.x cohort was written and confirmed red→green, then dropped at the owner's request; the pre-existing table walk still fails if the drive/rs-dapi re-pin is removed.
Note for in-flight
v4.2-dev: under thegetConfigFormatVersionmechanism added there, a config already stamped4.2.0by an in-cycle dev build skips every key at or below4.2.0, including this one. Those operators needdashmate config set platform.drive.tenderdash.docker.image dashpay/tenderdash:1.6. Not introduced by this key choice — no key at or below4.2.0can reach them.Breaking Changes
None.
Checklist:
For repository code-owners and collaborators only
🤖 Generated with Claude Code