Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update tidbver.TiDBSupportUpgradeAPI #2289

Merged
merged 2 commits into from
Oct 17, 2023
Merged

update tidbver.TiDBSupportUpgradeAPI #2289

merged 2 commits into from
Oct 17, 2023

Conversation

kaaaaaaang
Copy link
Collaborator

What problem does this PR solve?

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has exported function/method change
  • Has exported variable/fields change
  • Has interface methods change
  • Has persistent data change

Side effects

  • Possible performance regression
  • Increased code complexity
  • Breaking backward compatibility

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Release notes:

NONE

@kaaaaaaang kaaaaaaang added this to the v1.14.0 milestone Oct 17, 2023
@ti-chi-bot ti-chi-bot bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 17, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (4f5d9e3) 55.87% compared to head (96924dc) 55.85%.

❗ Current head 96924dc differs from pull request most recent head 8626df3. Consider uploading reports for the commit 8626df3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2289      +/-   ##
==========================================
- Coverage   55.87%   55.85%   -0.02%     
==========================================
  Files         324      324              
  Lines       34164    34164              
==========================================
- Hits        19087    19079       -8     
- Misses      12799    12808       +9     
+ Partials     2278     2277       -1     
Flag Coverage Δ
tiup 15.89% <0.00%> (-0.02%) ⬇️
unittest 22.57% <0.00%> (-<0.01%) ⬇️

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

Files Coverage Δ
pkg/cluster/operation/upgrade.go 47.60% <ø> (+0.41%) ⬆️
pkg/cluster/manager/patch.go 41.61% <0.00%> (-0.62%) ⬇️
pkg/cluster/manager/reload.go 66.00% <0.00%> (-1.00%) ⬇️
pkg/cluster/manager/upgrade.go 56.22% <0.00%> (-0.50%) ⬇️
pkg/tidbver/tidbver.go 86.15% <0.00%> (-4.32%) ⬇️

... and 1 file with indirect coverage changes

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

Copy link

@zimulala zimulala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Oct 17, 2023

@zimulala: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@@ -28,7 +28,9 @@ func TiDBSupportSecureBoot(version string) bool {

// TiDBSupportUpgradeAPI return if given version of TiDB support upgrade API
func TiDBSupportUpgradeAPI(version string) bool {
return semver.Compare(version, "v7.4.0") >= 0 || strings.Contains(version, "nightly")
return semver.Compare(version, "v7.4.0") >= 0 ||
(semver.MajorMinor(version) == "v7.1" && semver.Compare(version, "v7.1.2") >= 0) ||

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, probably not.
For example, upgrade from v7.1.2 to v7.4. However v7.4 does not support the upgrade function.

@ti-chi-bot ti-chi-bot bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 17, 2023
Copy link

@zimulala zimulala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kaaaaaaang
Copy link
Collaborator Author

/approve

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Oct 17, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaaaaaaang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kaaaaaaang
Copy link
Collaborator Author

/lgtm

@ti-chi-bot ti-chi-bot bot added the approved label Oct 17, 2023
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Oct 17, 2023

@kaaaaaaang: you cannot LGTM your own PR.

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kaaaaaaang kaaaaaaang merged commit 8fd533d into master Oct 17, 2023
17 of 18 checks passed
@kaaaaaaang kaaaaaaang deleted the kaaaaaaang-patch-1 branch October 17, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants