Skip to content

*: use a separate runner for updating subtree#8158

Merged
ti-chi-bot[bot] merged 12 commits intotikv:masterfrom
rleungx:queue
May 21, 2024
Merged

*: use a separate runner for updating subtree#8158
ti-chi-bot[bot] merged 12 commits intotikv:masterfrom
rleungx:queue

Conversation

@rleungx
Copy link
Member

@rleungx rleungx commented May 9, 2024

What problem does this PR solve?

Issue Number: Ref #7897

What is changed and how does it work?

Check List

Tests

  • Manual test

Release note

None.

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented May 9, 2024

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • JmPotato
  • 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.

Details

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 bot added do-not-merge/needs-linked-issue release-note-none Denotes a PR that doesn't merit a release note. labels May 9, 2024
@ti-chi-bot ti-chi-bot bot requested review from lhy1024 and nolouch May 9, 2024 03:28
@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed do-not-merge/needs-linked-issue labels May 9, 2024
@codecov
Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 93.33333% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 77.38%. Comparing base (7731ee4) to head (eae4f6a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8158      +/-   ##
==========================================
+ Coverage   77.34%   77.38%   +0.03%     
==========================================
  Files         471      471              
  Lines       61398    61407       +9     
==========================================
+ Hits        47489    47520      +31     
+ Misses      10350    10325      -25     
- Partials     3559     3562       +3     
Flag Coverage Δ
unittests 77.38% <93.33%> (+0.03%) ⬆️

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

@rleungx rleungx requested review from JmPotato and removed request for lhy1024 May 9, 2024 06:51
Copy link
Member

Choose a reason for hiding this comment

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

Should we also add metrics to tell the task number of different priorities?

@rleungx rleungx requested review from JmPotato and nolouch May 13, 2024 07:07
@ti-chi-bot ti-chi-bot bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 15, 2024
@rleungx rleungx changed the title *: distinguish the task priority *: use a separate runner for updating subtree May 16, 2024
Copy link
Member Author

Choose a reason for hiding this comment

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

SaveRegionToKV is put into the statistics runner, the runner name might be strange. But I cannot come up with a better name.

Copy link
Member

Choose a reason for hiding this comment

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

How about just calling it MiscRunner?

rleungx added 4 commits May 17, 2024 13:32
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
rleungx added 5 commits May 17, 2024 13:32
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
taskRunner, statisticsRunner, logRunner = syncRunner, syncRunner, syncRunner
if c.persistConfig.GetScheduleConfig().EnableHeartbeatConcurrentRunner {
taskRunner = c.heartbeatRunnner
taskRunner = c.heartbeatRunner
Copy link
Contributor

Choose a reason for hiding this comment

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

need to add in here?

statisticsRunner = c.statisticsRunner

Copy link
Member Author

Choose a reason for hiding this comment

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

nice catch

Copy link
Contributor

@nolouch nolouch 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

Signed-off-by: Ryan Leung <rleungx@gmail.com>
@rleungx rleungx requested a review from nolouch May 17, 2024 06:11
@ti-chi-bot ti-chi-bot bot added the status/LGT1 Indicates that a PR has LGTM 1. label May 17, 2024
Comment on lines +27 to +29
TaskRunner ratelimit.Runner
StatisticsRunner ratelimit.Runner
LogRunner ratelimit.Runner
Copy link
Member

Choose a reason for hiding this comment

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

Could you please help add some comments here to explain the different responsibilities of these runners?

opts *TaskOpts
f func(context.Context)
name string
retained bool
Copy link
Member

Choose a reason for hiding this comment

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

This naming is vague without looking at the actual logic, maybe a line of comment would be helpful.

Copy link
Member

Choose a reason for hiding this comment

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

How about just calling it MiscRunner?

Signed-off-by: Ryan Leung <rleungx@gmail.com>
@ti-chi-bot ti-chi-bot bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 21, 2024
@rleungx
Copy link
Member Author

rleungx commented May 21, 2024

/merge

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented May 21, 2024

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

/run-all-tests

You only need to trigger /merge once, and 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.

If you have any questions about the PR merge process, please refer to pr process.

Details

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
Contributor

ti-chi-bot bot commented May 21, 2024

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

DetailsCommit hash: eae4f6a

@ti-chi-bot ti-chi-bot bot added the status/can-merge Indicates a PR has been approved by a committer. label May 21, 2024
@ti-chi-bot ti-chi-bot bot merged commit 58e7580 into tikv:master May 21, 2024
@rleungx rleungx deleted the queue branch May 21, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. 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.

3 participants