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

Upgrade the PD client to adopt the latest refactor #1525

Merged
merged 4 commits into from
Dec 20, 2024

Conversation

JmPotato
Copy link
Member

Integration testing can only resume normal operation after TiDB has completed its update.

@ti-chi-bot ti-chi-bot bot added dco-signoff: yes Indicates the PR's author has signed the dco. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 17, 2024
@@ -49,7 +50,7 @@ type apiTestSuite struct {
func (s *apiTestSuite) SetupTest() {
require := s.Require()
addrs := strings.Split(*pdAddrs, ",")
pdClient, err := pd.NewClient(addrs, pd.SecurityOption{})
pdClient, err := pd.NewClient(caller.Component("client-go-integration-test"), addrs, pd.SecurityOption{})
Copy link
Member

@rleungx rleungx Dec 17, 2024

Choose a reason for hiding this comment

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

@okJiang Do we have a standard for the definition of the component?

Copy link
Member

Choose a reason for hiding this comment

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

If it is in the test, we can use caller.TestComponent. Otherwise, we can put it empty now, I will update them in #1516

Copy link
Member

Choose a reason for hiding this comment

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

BTW, how about adding a DefaultComponent = "" in pd repo?

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Dec 17, 2024
@JmPotato JmPotato force-pushed the update_pd_client branch 2 times, most recently from 588f013 to 1b9895b Compare December 20, 2024 03:11
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Dec 20, 2024
Copy link

ti-chi-bot bot commented Dec 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rleungx, you06

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

Copy link

ti-chi-bot bot commented Dec 20, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-12-17 07:19:58.092915434 +0000 UTC m=+941388.181717961: ☑️ agreed by you06.
  • 2024-12-20 05:20:34.416845525 +0000 UTC m=+1193424.505648065: ☑️ agreed by rleungx.

@ti-chi-bot ti-chi-bot bot merged commit ff126df into tikv:master Dec 20, 2024
12 checks passed
@JmPotato JmPotato deleted the update_pd_client branch December 20, 2024 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants