Skip to content

build(dashmate): track the floating Tenderdash 1.6 image tag - #4410

Merged
shumkov merged 1 commit into
v4.1-devfrom
chore/dashmate/tenderdash-image-1.6
Aug 17, 2026
Merged

shumkov merged 1 commit into
v4.1-devfrom
chore/dashmate/tenderdash-image-1.6

Conversation

@shumkov

@shumkov shumkov commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

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.6 currently resolves to 1.6.0, digest 766bdca9).

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 — new 4.1.1 migration moving an existing config's Tenderdash image 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. This matches the reasoning recorded on the 4.0.0-rc.3 and 4.1.0-rc.2 entries.

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 existing table walk fails for a config stamped 4.1.0 while still carrying dashpay/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 eslint on both changed files → clean.
  • Verified through the real DI container (createConfigFile + migrateConfigFile): the base config emits dashpay/tenderdash:1.6, and a config stamped 4.1.0 holding dashpay/tenderdash:1.6.0 migrates to dashpay/tenderdash:1.6 (it stays on 1.6.0 with 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 the getConfigFormatVersion mechanism added there, a config already stamped 4.2.0 by an in-cycle dev build skips every key at or below 4.2.0, including this one. Those operators need dashmate config set platform.drive.tenderdash.docker.image dashpay/tenderdash:1.6. Not introduced by this key choice — no key at or below 4.2.0 can reach them.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

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]>
@github-actions github-actions Bot added this to the v4.1.0 milestone Aug 17, 2026
@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f4743491-8ce2-4706-84ec-92589a0ee255

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@thepastaclaw

thepastaclaw commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

🔍 Review in progress — actively reviewing now (commit 616fad0)

@shumkov
shumkov merged commit c79342e into v4.1-dev Aug 17, 2026
16 of 17 checks passed
@shumkov
shumkov deleted the chore/dashmate/tenderdash-image-1.6 branch August 17, 2026 13:22
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