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

filter: migrate test framework to testify #5133

Merged
merged 2 commits into from Jun 9, 2022

Conversation

LLThomas
Copy link
Contributor

@LLThomas LLThomas commented Jun 8, 2022

Signed-off-by: LLThomas zs033@qq.com

What problem does this PR solve?

Issue Number: Ref #4813

What is changed and how does it work?

Just as the title says.

Check List

Tests

  • Unit test

Release note

None

Signed-off-by: LLThomas <zs033@qq.com>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jun 8, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • CabinfeverB
  • JmPotato

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 Jun 8, 2022

Codecov Report

Merging #5133 (5d33e61) into master (6c0985d) will decrease coverage by 0.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5133      +/-   ##
==========================================
- Coverage   75.63%   75.47%   -0.16%     
==========================================
  Files         309      309              
  Lines       30518    30518              
==========================================
- Hits        23082    23034      -48     
- Misses       5436     5476      +40     
- Partials     2000     2008       +8     
Flag Coverage Δ
unittests 75.47% <ø> (-0.16%) ⬇️

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

Impacted Files Coverage Δ
server/tso/local_allocator.go 62.16% <0.00%> (-16.22%) ⬇️
server/tso/allocator_manager.go 63.22% <0.00%> (-5.50%) ⬇️
server/id/id.go 76.19% <0.00%> (-4.77%) ⬇️
server/tso/tso.go 69.49% <0.00%> (-3.39%) ⬇️
server/schedule/operator_controller.go 84.56% <0.00%> (-1.21%) ⬇️
tools/pd-ctl/pdctl/command/operator.go 66.66% <0.00%> (-1.15%) ⬇️
server/storage/hot_region_storage.go 78.14% <0.00%> (-1.10%) ⬇️
server/server.go 72.43% <0.00%> (-0.84%) ⬇️
server/grpc_service.go 52.08% <0.00%> (-0.71%) ⬇️
server/handler.go 52.58% <0.00%> (-0.39%) ⬇️
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c0985d...5d33e61. Read the comment docs.

@LLThomas
Copy link
Contributor Author

LLThomas commented Jun 8, 2022

CI/CD log is here:

✘  https://revive.run/r#confusing-naming  Method 'NewCandidates' differs only by capitalization to function 'newCandidates' in /home/runner/work/pd/pd/server/schedule/filter/candidates_test.go  
  /home/runner/work/pd/pd/server/schedule/filter/candidates.go:32:6

The error is 'NewCandidates' in candidates.go differs only by capitalization to function 'newCandidates' in candidates_test.go. Should we give 'newCandidates' a new function name?

@JmPotato
Copy link
Member

JmPotato commented Jun 9, 2022

CI/CD log is here:

✘  https://revive.run/r#confusing-naming[](https://revive.run/r#confusing-naming)  Method 'NewCandidates' differs only by capitalization to function 'newCandidates' in /home/runner/work/pd/pd/server/schedule/filter/candidates_test.go  
  /home/runner/work/pd/pd/server/schedule/filter/candidates.go:32:6

The error is 'NewCandidates' in candidates.go differs only by capitalization to function 'newCandidates' in candidates_test.go. Should we give 'newCandidates' a new function name?

Yeah, we cound rename newCandidates to newTestCandidates.

Copy link
Member

@JmPotato JmPotato left a comment

Choose a reason for hiding this comment

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

LGTM. Please fix the check.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 9, 2022
Signed-off-by: LLThomas <zs033@qq.com>
@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 Jun 9, 2022
@nolouch
Copy link
Contributor

nolouch commented Jun 9, 2022

/merge

@ti-chi-bot
Copy link
Member

@nolouch: 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: 5d33e61

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 9, 2022
@ti-chi-bot ti-chi-bot merged commit ec1fbda into tikv:master Jun 9, 2022
@rleungx rleungx mentioned this pull request Jun 13, 2022
85 tasks
CabinfeverB pushed a commit to CabinfeverB/pd that referenced this pull request Jul 14, 2022
ref tikv#4813

Signed-off-by: LLThomas <zs033@qq.com>
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