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

*: move core to pkg #5781

Merged
merged 2 commits into from Jan 12, 2023
Merged

*: move core to pkg #5781

merged 2 commits into from Jan 12, 2023

Conversation

rleungx
Copy link
Member

@rleungx rleungx commented Dec 15, 2022

Signed-off-by: Ryan Leung rleungx@gmail.com

What problem does this PR solve?

Issue Number: Ref #5838.

What is changed and how does it work?

This PR does the following things:

  • move package core from server to pkg
  • delete operator/test_util.go and core/test_util.go
  • merge newTestRegionInfo in api package and NewTestRegionInfo in core package
  • adjust some tests and remove unused functions

Check List

Tests

  • Unit test

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Dec 15, 2022

[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.

@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Base: 74.96% // Head: 74.95% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (bc2e9ce) compared to base (bac5bf4).
Patch coverage: 92.78% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5781      +/-   ##
==========================================
- Coverage   74.96%   74.95%   -0.02%     
==========================================
  Files         337      335       -2     
  Lines       34065    34030      -35     
==========================================
- Hits        25536    25506      -30     
+ Misses       6341     6337       -4     
+ Partials     2188     2187       -1     
Flag Coverage Δ
unittests 74.95% <92.78%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
pkg/autoscaling/calculation.go 58.41% <ø> (ø)
pkg/core/basic_cluster.go 93.33% <ø> (ø)
pkg/core/factory.go 100.00% <ø> (ø)
pkg/core/kind.go 59.09% <ø> (ø)
pkg/core/peer.go 96.55% <ø> (ø)
pkg/core/rangetree/range_tree.go 61.81% <ø> (ø)
pkg/core/region_tree.go 95.56% <ø> (ø)
pkg/core/store_option.go 100.00% <ø> (ø)
pkg/core/store_stats.go 75.00% <ø> (ø)
pkg/core/storelimit/store_limit.go 87.09% <ø> (ø)
... and 124 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.

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.

Does the core package need to provided to the third party?

@rleungx
Copy link
Member Author

rleungx commented Dec 19, 2022

Does the core package need to provided to the third party?

Do you mean to use an individual mod?

@nolouch
Copy link
Contributor

nolouch commented Dec 19, 2022

Noop, just suspect really need to move?

@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 23, 2022
@rleungx
Copy link
Member Author

rleungx commented Jan 10, 2023

Noop, just suspect really need to move?

I think these definitions will be shared by multiple services so that moving them out will be more clear.

Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 12, 2023
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.

lgtm

@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 Jan 12, 2023
@rleungx
Copy link
Member Author

rleungx commented Jan 12, 2023

/merge

@ti-chi-bot
Copy link
Member

@rleungx: 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: bc2e9ce

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 12, 2023
@ti-chi-bot ti-chi-bot merged commit 40b6daf into tikv:master Jan 12, 2023
@rleungx rleungx deleted the move-core branch January 12, 2023 09:48
@binshi-bing
Copy link
Contributor

reviewed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none 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.

None yet

5 participants