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

feat(tidbgroup): refactor to use task v3 #6018

Merged
merged 4 commits into from
Jan 3, 2025

Conversation

liubog2008
Copy link
Member

  • use task v3 for tidb group
  • add more uts
  • extract finalizer del task to common

@ti-chi-bot ti-chi-bot bot added the size/XXL label Dec 30, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 30, 2024

Codecov Report

Attention: Patch coverage is 70.35831% with 91 lines in your changes missing coverage. Please review.

Project coverage is 44.88%. Comparing base (7a1150d) to head (c56ad48).
Report is 1 commits behind head on feature/v2.

Additional details and impacted files
@@              Coverage Diff               @@
##           feature/v2    #6018      +/-   ##
==============================================
+ Coverage       42.47%   44.88%   +2.40%     
==============================================
  Files             154      154              
  Lines           10130    10089      -41     
==============================================
+ Hits             4303     4528     +225     
+ Misses           5516     5256     -260     
+ Partials          311      305       -6     
Flag Coverage Δ
unittest 44.88% <70.35%> (+2.40%) ⬆️

// if it's paused just return
task.IfBreak(common.CondClusterIsPaused(state)),

// get all tikvs
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// get all tikvs
// get all tidbs

Comment on lines 50 to 57
selector := labels.SelectorFromSet(labels.Set{
// TODO(liubo02): add label of managed by operator ?
v1alpha1.LabelKeyCluster: dbg.Spec.Cluster.Name,
v1alpha1.LabelKeyComponent: v1alpha1.LabelValComponentPD,
v1alpha1.LabelKeyGroup: dbg.Name,
})

revisions, err := historyCli.ListControllerRevisions(dbg, selector)
Copy link
Member

Choose a reason for hiding this comment

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

only TiDB Operator will create revisions for dbg, right? I think it's better to add "managed by operator"

Copy link
Member Author

Choose a reason for hiding this comment

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

lgtm. I'll add it in another PR

@liubog2008 liubog2008 force-pushed the liubo02/refactor-tidb branch from 203e5be to eb736f6 Compare December 31, 2024 02:04
@liubog2008
Copy link
Member Author

/run-pull-kind-e2e-v2

@liubog2008
Copy link
Member Author

/run-pull-e2e-kind-v2

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

/run-pull-e2e-kind-v2

1 similar comment
@liubog2008
Copy link
Member Author

/run-pull-e2e-kind-v2

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

/run-pull-e2e-kind-v2

1 similar comment
@liubog2008
Copy link
Member Author

/run-pull-e2e-kind-v2

@liubog2008 liubog2008 added the v2 for operator v2 label Jan 3, 2025
@liubog2008
Copy link
Member Author

/run-pull-e2e-kind-v2

Copy link
Contributor

ti-chi-bot bot commented Jan 3, 2025

@csuzhangxc: 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-sigs/prow repository.

Copy link
Contributor

ti-chi-bot bot commented Jan 3, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: csuzhangxc

The full list of commands accepted by this bot can be found 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

@csuzhangxc csuzhangxc merged commit 8468aa9 into pingcap:feature/v2 Jan 3, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL v2 for operator v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants