Skip to content

charts: be way more flexible about semver in tags#812

Merged
pinheadmz merged 2 commits into
bitcoin-dev-project:mainfrom
pinheadmz:helm-semver-flex
Jun 30, 2026
Merged

charts: be way more flexible about semver in tags#812
pinheadmz merged 2 commits into
bitcoin-dev-project:mainfrom
pinheadmz:helm-semver-flex

Conversation

@pinheadmz

Copy link
Copy Markdown
Contributor

The graph test is failing ci since I added 31.1rc1 to our supported tags in 0233dbc

This is not a new problem, we have a semver check so we don't create an invalid config file for old images. Problem is, the check is too strict and our tags are not always valid semver.

This patch uses LLM generated regex to make more tag variations valid semver.

pinheadmz and others added 2 commits June 29, 2026 15:44
Helm semverCompare does not match pre-release versions with >=
constraints. When the image tag is a pre-release like 31.1rc1, the
semver "31.1.0-rc.1" fails the ">=0.17.0" check, causing the [regtest]
section header to be omitted from bitcoin.conf.

Without the [regtest] header, Bitcoin Core >=0.17.0 rejects
network-specific options (addnode, rpcbind, rpcport) in the global
section, producing errors like:

    Error: Invalid setting for -regtest.rpcbind: 0.0.0.0
    Error: Invalid setting for -regtest.rpcport: 18444
    Error: Invalid setting for -regtest.addnode: tank-0001

This causes pods to enter Error state and prevents the warnet from
deploying successfully.

Fix: strip the pre-release suffix (e.g. "-rc.1") from the semver
string before passing it to semverCompare, so "31.1.0" correctly
matches ">=0.17.0" and the [regtest] header is emitted.

Tested: deployed a 12-node warnet with image.tag: 31.1rc1 — all tanks
reached Running 2/2 with correct [regtest] config sections.
@pinheadmz pinheadmz merged commit 3d4e1a8 into bitcoin-dev-project:main Jun 30, 2026
16 checks passed
@pinheadmz pinheadmz mentioned this pull request Jun 30, 2026
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.

1 participant