pingcap / tiup

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

cluster: fix tiproxy will restart even if version is the same #2358

Closed xhebox closed 10 months ago

xhebox commented 10 months ago

What problem does this PR solve?

Restart tiproxy iff version becomes different after --tiproxyversion or new cluster version(only nightly is possible though).

Tests

Code changes

Side effects

Related changes

Release notes:

NONE
codecov-commenter commented 10 months ago

Codecov Report

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

Comparison is base (0c6dda9) 55.40% compared to head (0bc8dd9) 55.44%. Report is 2 commits behind head on master.

:exclamation: Current head 0bc8dd9 differs from pull request most recent head 6a4c5d4. Consider uploading reports for the commit 6a4c5d4 to get more accurate results

Files Patch % Lines
components/playground/instance/tiflash.go 7.14% 26 Missing :warning:
components/playground/instance/tiflash_config.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2358 +/- ## ========================================== + Coverage 55.40% 55.44% +0.05% ========================================== Files 329 329 Lines 34845 34849 +4 ========================================== + Hits 19304 19322 +18 + Misses 13232 13214 -18 - Partials 2309 2313 +4 ``` | [Flag](https://app.codecov.io/gh/pingcap/tiup/pull/2358/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/2358/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `44.76% <100.00%> (+0.04%)` | :arrow_up: | | [dm](https://app.codecov.io/gh/pingcap/tiup/pull/2358/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `25.53% <100.00%> (+0.03%)` | :arrow_up: | | [playground](https://app.codecov.io/gh/pingcap/tiup/pull/2358/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `15.37% <6.90%> (-0.01%)` | :arrow_down: | | [tiup](https://app.codecov.io/gh/pingcap/tiup/pull/2358/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `33.60% <ø> (-0.05%)` | :arrow_down: | | [unittest](https://app.codecov.io/gh/pingcap/tiup/pull/2358/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `22.33% <0.00%> (-0.01%)` | :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.

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

kaaaaaaang commented 10 months ago

/lgtm

kaaaaaaang commented 10 months ago

/approve

kaaaaaaang commented 10 months ago

/hold

ti-chi-bot[bot] commented 10 months ago

@xhebox: Your PR was out of date, I have automatically updated it for you.

Instructions for interacting with me using PR comments are available [here](https://prow.tidb.net/command-help). If you have questions or suggestions related to my behavior, please file an issue against the [ti-community-infra/tichi](https://github.com/ti-community-infra/tichi/issues/new?title=Prow%20issue:) repository.
kaaaaaaang commented 10 months ago

/lgtm

ti-chi-bot[bot] commented 10 months ago

[LGTM Timeline notifier]

Timeline:

kaaaaaaang commented 10 months ago

/approve

ti-chi-bot[bot] commented 10 months 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