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

client: both Support names and config path #5886

Merged
merged 16 commits into from
Feb 2, 2023

Conversation

HuSharp
Copy link
Member

@HuSharp HuSharp commented Jan 31, 2023

Signed-off-by: husharp [email protected]

What problem does this PR solve?

Issue Number: Close #5885, Ref #pingcap/tiflow#8110, should merged after #5887 #5888 and pingcap/kvproto#1051

What is changed and how does it work?

The global config needs to support both names and configuration paths, not only for compatibility but also to make more sense.

Check List

Tests

  • Unit test

Release note

None

@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Base: 75.54% // Head: 75.72% // Increases project coverage by +0.18% 🎉

Coverage data is based on head (93c4a2a) compared to base (abb62d2).
Patch coverage: 62.50% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5886      +/-   ##
==========================================
+ Coverage   75.54%   75.72%   +0.18%     
==========================================
  Files         343      343              
  Lines       34993    35021      +28     
==========================================
+ Hits        26434    26519      +85     
+ Misses       6275     6237      -38     
+ Partials     2284     2265      -19     
Flag Coverage Δ
unittests 75.72% <62.50%> (+0.18%) ⬆️

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

Impacted Files Coverage Δ
client/resourcemanager_client.go 75.77% <ø> (ø)
server/grpc_service.go 49.19% <60.71%> (+0.26%) ⬆️
client/client.go 70.66% <66.66%> (-0.03%) ⬇️
pkg/storage/endpoint/meta.go 61.36% <0.00%> (-6.82%) ⬇️
server/storage/storage.go 67.30% <0.00%> (-3.85%) ⬇️
server/region_syncer/client.go 84.32% <0.00%> (-1.50%) ⬇️
server/api/region.go 68.09% <0.00%> (-1.43%) ⬇️
server/schedule/region_scatterer.go 77.86% <0.00%> (-1.19%) ⬇️
server/schedule/operator_controller.go 85.97% <0.00%> (-0.91%) ⬇️
server/cluster/coordinator.go 71.59% <0.00%> (-0.76%) ⬇️
... and 25 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ti-chi-bot ti-chi-bot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jan 31, 2023
Signed-off-by: husharp <[email protected]>
Signed-off-by: husharp <[email protected]>
Signed-off-by: husharp <[email protected]>
ti-chi-bot added a commit that referenced this pull request Feb 1, 2023
Signed-off-by: husharp <[email protected]>
Signed-off-by: husharp <[email protected]>
@HuSharp HuSharp marked this pull request as ready for review February 1, 2023 07:44
@ti-chi-bot ti-chi-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 1, 2023
server/grpc_service.go Show resolved Hide resolved
server/grpc_service.go Show resolved Hide resolved
Signed-off-by: husharp <[email protected]>
Copy link
Contributor

@glorv glorv left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: husharp <[email protected]>
@HuSharp
Copy link
Member Author

HuSharp commented Feb 2, 2023

@JmPotato @nolouch @CabinfeverB friendly ping, thx! :)

Signed-off-by: husharp <[email protected]>
Signed-off-by: husharp <[email protected]>
@YangKeao
Copy link
Member

YangKeao commented Feb 2, 2023

/run-build-arm64

@sre-bot
Copy link
Contributor

sre-bot commented Feb 2, 2023

Copy link
Member

@CabinfeverB CabinfeverB left a comment

Choose a reason for hiding this comment

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

Rest LGTM

server/grpc_service.go Show resolved Hide resolved
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Feb 2, 2023

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • CabinfeverB
  • nolouch

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Feb 2, 2023
Signed-off-by: husharp <[email protected]>
@ti-chi-bot
Copy link
Member

@BornChanger: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments.

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 ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Feb 2, 2023
@nolouch
Copy link
Contributor

nolouch commented Feb 2, 2023

/merge

@ti-chi-bot
Copy link
Member

@nolouch: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

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 ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 9e839ec

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Feb 2, 2023
@HuSharp
Copy link
Member Author

HuSharp commented Feb 2, 2023

/test

@ti-chi-bot
Copy link
Member

@HuSharp: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test

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.

@ti-chi-bot
Copy link
Member

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

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

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 ti-community-infra/tichi repository.

@CabinfeverB
Copy link
Member

/ok-to-test

@ti-chi-bot ti-chi-bot added the ok-to-test Indicates a PR is ready to be tested. label Feb 2, 2023
@HuSharp
Copy link
Member Author

HuSharp commented Feb 2, 2023

/test build

@ti-chi-bot ti-chi-bot merged commit 18df271 into tikv:master Feb 2, 2023
@HuSharp HuSharp deleted the fix_cdc_compatible branch March 10, 2023 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Indicates a PR is ready to be tested. release-note-none Denotes a PR that doesn't merit a release note. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

client: both Support names and config path
9 participants