pingcap / tiup

A component manager for TiDB
https://tiup.io
Apache License 2.0
427 stars 313 forks source link

Support tidb upgrade api #2287

Closed nexustar closed 1 year ago

nexustar commented 1 year ago

What problem does this PR solve?

What is changed and how it works?

Check List

Tests

Code changes

Side effects

Related changes

Release notes:

NONE
codecov-commenter commented 1 year ago

Codecov Report

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

Comparison is base (3653dc5) 55.93% compared to head (462dead) 55.84%.

:exclamation: Current head 462dead differs from pull request most recent head 99c83db. Consider uploading reports for the commit 99c83db to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2287 +/- ## ========================================== - Coverage 55.93% 55.84% -0.09% ========================================== Files 323 324 +1 Lines 34108 34164 +56 ========================================== + Hits 19075 19076 +1 - Misses 12757 12809 +52 - Partials 2276 2279 +3 ``` | [Flag](https://app.codecov.io/gh/pingcap/tiup/pull/2287/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | Coverage Δ | | |---|---|---| | [cluster](https://app.codecov.io/gh/pingcap/tiup/pull/2287/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `44.91% <25.42%> (-0.06%)` | :arrow_down: | | [dm](https://app.codecov.io/gh/pingcap/tiup/pull/2287/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `25.65% <8.47%> (-0.12%)` | :arrow_down: | | [playground](https://app.codecov.io/gh/pingcap/tiup/pull/2287/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `15.70% <0.00%> (-0.03%)` | :arrow_down: | | [tiup](https://app.codecov.io/gh/pingcap/tiup/pull/2287/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `15.89% <0.00%> (-0.06%)` | :arrow_down: | | [unittest](https://app.codecov.io/gh/pingcap/tiup/pull/2287/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `22.57% <0.00%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/pingcap/tiup/pull/2287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | Coverage Δ | | |---|---|---| | [pkg/cluster/manager/patch.go](https://app.codecov.io/gh/pingcap/tiup/pull/2287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#diff-cGtnL2NsdXN0ZXIvbWFuYWdlci9wYXRjaC5nbw==) | `42.24% <100.00%> (ø)` | | | [pkg/cluster/manager/reload.go](https://app.codecov.io/gh/pingcap/tiup/pull/2287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#diff-cGtnL2NsdXN0ZXIvbWFuYWdlci9yZWxvYWQuZ28=) | `67.00% <100.00%> (ø)` | | | [pkg/cluster/manager/upgrade.go](https://app.codecov.io/gh/pingcap/tiup/pull/2287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#diff-cGtnL2NsdXN0ZXIvbWFuYWdlci91cGdyYWRlLmdv) | `56.72% <100.00%> (ø)` | | | [pkg/tidbver/tidbver.go](https://app.codecov.io/gh/pingcap/tiup/pull/2287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#diff-cGtnL3RpZGJ2ZXIvdGlkYnZlci5nbw==) | `90.48% <100.00%> (+0.31%)` | :arrow_up: | | [pkg/cluster/operation/upgrade.go](https://app.codecov.io/gh/pingcap/tiup/pull/2287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#diff-cGtnL2NsdXN0ZXIvb3BlcmF0aW9uL3VwZ3JhZGUuZ28=) | `47.19% <47.62%> (+0.04%)` | :arrow_up: | | [pkg/cluster/api/tidbapi.go](https://app.codecov.io/gh/pingcap/tiup/pull/2287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#diff-cGtnL2NsdXN0ZXIvYXBpL3RpZGJhcGkuZ28=) | `0.00% <0.00%> (ø)` | | ... and [4 files with indirect coverage changes](https://app.codecov.io/gh/pingcap/tiup/pull/2287/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

kaaaaaaang commented 1 year ago

/lgtm

ti-chi-bot[bot] commented 1 year ago

[LGTM Timeline notifier]

Timeline:

kaaaaaaang commented 1 year ago

/approve

ti-chi-bot[bot] commented 1 year ago

[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: - ~~[OWNERS](https://github.com/pingcap/tiup/blob/master/OWNERS)~~ [kaaaaaaang] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment