-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
statistics: using standard lib slices instead of exp slices #45996
Conversation
Welcome @fatelei! |
Hi @fatelei. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Hi @fatelei. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
/ok-to-test |
@fatelei Thank you. TiDB use bazel to speed up build/test/linter. so you need to run |
CI will tell you where to change. you can update config by it. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #45996 +/- ##
================================================
- Coverage 74.7898% 73.1256% -1.6643%
================================================
Files 1293 1300 +7
Lines 398010 399704 +1694
================================================
- Hits 297671 292286 -5385
- Misses 80960 88828 +7868
+ Partials 19379 18590 -789
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/cc |
cb78ffb
to
2c1c8a7
Compare
done |
@fatelei Please fix the linter.
|
done |
/test all |
@fatelei Some tests have failed, please check them. |
@fatelei Please run
|
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
if i.Count != j.Count { | ||
return i.Count > j.Count | ||
return cmp.Compare(j.Count, i.Count) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could please add a note here?
@@ -339,6 +339,18 @@ func TestMergePartTopN2GlobalTopNWithoutHists(t *testing.T) { | |||
require.Len(t, leftTopN, 1, "should have 1 left topN") | |||
} | |||
|
|||
func TestSortTopnMeta(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏿
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hawkingrei, hi-rustin 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 |
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
using builtin slices lib instead of exp slices
Issue Number: ref #45933
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.