Skip to content

[v26.1.x] rpk/connect: don't cap version segments at two digits - #31449

Merged
r-vasquez merged 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:ai-backport-pr-31438-v26.1.x-1785959552
Aug 5, 2026
Merged

[v26.1.x] rpk/connect: don't cap version segments at two digits#31449
r-vasquez merged 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:ai-backport-pr-31438-v26.1.x-1785959552

Conversation

@vbotbuildovich

Copy link
Copy Markdown
Collaborator

Backport of PR #31438

  • Command: git cherry-pick -x 4f03977
  • Commits backported: 1
  • Conflicts resolved: 0
  • Commits skipped (already on target): 0
  • Backport branch: ai-backport-pr-31438-v26.1.x-1785959552

Note on the PR's second commit

The PR lists two commits. 7d6f0758de is a Merge remote-tracking branch 'origin/dev' sync merge, not PR content, and it is intentionally not
cherry-picked:

  • Its combined diff (git show 7d6f0758de) is empty, so it is not an evil
    merge — it carries no conflict-resolution changes of its own.
  • git diff 4f03977837 7d6f0758de -- src/go/rpk/pkg/cli/connect/ is empty,
    so it contributes nothing to the files this PR touches.

All of the PR's content is in 4f03977837, and the three files it changes
match the PR's file list exactly (src/go/rpk/pkg/cli/connect/BUILD +8/-1,
install.go +6/-3, install_test.go +27/-0).

Conflict details

None — 4f03977837 applied cleanly onto v26.1.x.

@com_github_stretchr_testify//require (the new go_test target's only dep)
is already available on v26.1.x: github.com/stretchr/testify v1.11.1 is in
src/go/rpk/go.mod and the label is used by existing rpk BUILD files.

The new TestValidateVersion was not executed locally; CI covers it.

Fixes: #31448,

install validated --connect-version against
`^v?\d{1,2}\.\d{1,2}\.\d{1,2}`. The two-digit cap on each segment
rejected every Redpanda Connect release since 4.100.0 before the plugin
manifest was ever consulted.

Segments are now unbounded in width, and the pattern is anchored at both
ends so trailing garbage fails validation up front rather than at
download time. The optional [-+] suffix group preserves prereleases like
4.102.0-rc1, which the previous unanchored pattern accepted and forwarded
to the manifest.

The ai, check and k8s plugin validators carry a copy of the same regex
and are deliberately left untouched here.

Covered by a new TestValidateVersion; the package had no test file
previously.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 4f03977)
@vbotbuildovich vbotbuildovich added this to the v26.1.x-next milestone Aug 5, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Aug 5, 2026
@vbotbuildovich
vbotbuildovich requested review from a team and kbatuigas as code owners August 5, 2026 19:54
@r-vasquez
r-vasquez enabled auto-merge August 5, 2026 23:18
@vbotbuildovich

Copy link
Copy Markdown
Collaborator Author

CI test results

test results on build#88279
test_status test_class test_method test_arguments test_kind job_url passed reason test_history
FLAKY(PASS) ControllerLogLimitMirrorMakerTests test_mirror_maker_with_limits null integration https://buildkite.com/redpanda/redpanda/builds/88279#019fd390-6475-49d5-a375-77d209bee28e 10/11 Test PASSES after retries.No significant increase in flaky rate(baseline=0.0000, p0=1.0000, reject_threshold=0.0100. adj_baseline=0.1000, p1=0.3487, trust_threshold=0.5000) https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=ControllerLogLimitMirrorMakerTests&test_method=test_mirror_maker_with_limits

@r-vasquez
r-vasquez merged commit 567d745 into redpanda-data:v26.1.x Aug 5, 2026
25 checks passed
@tyson-redpanda tyson-redpanda modified the milestones: v26.1.x-next, v26.1.15 Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build area/rpk kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants