Skip to content

Conversation

@shanshanying
Copy link
Contributor

@shanshanying shanshanying commented Jan 21, 2026

Previously, version mapping used prefix/regex matching which could incorrectly match similar versions. This change adds a two-pass approach that first looks for an exact match before falling back to prefix/regex matching, ensuring more accurate version resolution.

Previously, version mapping used prefix/regex matching which could
incorrectly match similar versions. This change adds a two-pass approach
that first looks for an exact match before falling back to prefix/regex
matching, ensuring more accurate version resolution.
@shanshanying shanshanying requested review from a team, ldming and wangyelei as code owners January 21, 2026 08:35
@shanshanying shanshanying added pick-1.0 Auto cherry-pick to release-1.0 when PR merged pick-1.1 Auto cherry-pick to release-1.1 when PR merged labels Jan 21, 2026
@github-actions github-actions bot added the size/M Denotes a PR that changes 30-99 lines. label Jan 21, 2026
@apecloud-bot
Copy link
Collaborator

Auto Cherry-pick Instructions

Usage:
  - /nopick: Not auto cherry-pick when PR merged.
  - /pick: release-x.x [release-x.x]: Auto cherry-pick to the specified branch when PR merged.

Example:
  - /nopick
  - /pick release-1.1

@apecloud-bot apecloud-bot added the approved PR Approved Test label Jan 21, 2026
@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

❌ Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.44%. Comparing base (544c4a0) to head (cb79eb5).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rs/dataprotection/backuppolicydriver_controller.go 0.00% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10012      +/-   ##
==========================================
+ Coverage   51.41%   51.44%   +0.02%     
==========================================
  Files         541      541              
  Lines       58763    58770       +7     
==========================================
+ Hits        30215    30235      +20     
+ Misses      25598    25575      -23     
- Partials     2950     2960      +10     
Flag Coverage Δ
unittests 51.44% <0.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shanshanying shanshanying merged commit 2275dc0 into main Jan 21, 2026
69 of 75 checks passed
@shanshanying shanshanying deleted the bugfix/backup-policy-version-mapping-exact-match branch January 21, 2026 09:00
@github-actions github-actions bot added this to the Release 0.9.6 milestone Jan 21, 2026
@apecloud-bot
Copy link
Collaborator

/cherry-pick release-1.1

@apecloud-bot
Copy link
Collaborator

/cherry-pick release-1.0

@apecloud-bot
Copy link
Collaborator

🤖 says: cherry pick action finished successfully 🎉!
See: https://github.com/apecloud/kubeblocks/actions/runs/21203376996

@apecloud-bot
Copy link
Collaborator

🤖 says: cherry pick action finished successfully 🎉!
See: https://github.com/apecloud/kubeblocks/actions/runs/21203375955

apecloud-bot pushed a commit that referenced this pull request Jan 21, 2026
apecloud-bot pushed a commit that referenced this pull request Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved PR Approved Test pick-1.0 Auto cherry-pick to release-1.0 when PR merged pick-1.1 Auto cherry-pick to release-1.1 when PR merged size/M Denotes a PR that changes 30-99 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Version mapping used prefix/regex matching which could incorrectly match similar versions.

6 participants