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

pkg, scripts: refine the use of require.Error/NoError #5124

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

JmPotato
Copy link
Member

@JmPotato JmPotato commented Jun 8, 2022

Signed-off-by: JmPotato ghzpotato@gmail.com

What problem does this PR solve?

Issue Number: ref #4813.

What is changed and how does it work?

Refine the use of require.Error/NoError.

Check List

Tests

  • Unit test
  • Integration test

Release note

None.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato JmPotato added component/testing CI testing. require-LGT1 Indicates that the PR requires an LGTM. labels Jun 8, 2022
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jun 8, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • rleungx

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.

@ti-chi-bot ti-chi-bot added the release-note-none Denotes a PR that doesn't merit a release note. label Jun 8, 2022
@ti-chi-bot ti-chi-bot requested a review from disksing June 8, 2022 03:55
@codecov
Copy link

codecov bot commented Jun 8, 2022

Codecov Report

Merging #5124 (5778309) into master (df25b66) will increase coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5124      +/-   ##
==========================================
+ Coverage   75.49%   75.54%   +0.05%     
==========================================
  Files         309      309              
  Lines       30518    30518              
==========================================
+ Hits        23039    23056      +17     
+ Misses       5468     5459       -9     
+ Partials     2011     2003       -8     
Flag Coverage Δ
unittests 75.54% <ø> (+0.05%) ⬆️

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

Impacted Files Coverage Δ
pkg/tempurl/tempurl.go 45.00% <0.00%> (-15.00%) ⬇️
pkg/metricutil/metricutil.go 82.75% <0.00%> (-10.35%) ⬇️
server/storage/kv/etcd_kv.go 79.71% <0.00%> (-5.80%) ⬇️
server/schedulers/random_merge.go 60.00% <0.00%> (-3.34%) ⬇️
server/cluster/cluster.go 83.14% <0.00%> (-0.83%) ⬇️
server/schedule/operator_controller.go 85.37% <0.00%> (-0.41%) ⬇️
client/client.go 68.51% <0.00%> (-0.32%) ⬇️
server/id/id.go 80.95% <0.00%> (ø)
server/server.go 73.26% <0.00%> (+0.27%) ⬆️
server/tso/allocator_manager.go 63.39% <0.00%> (+0.33%) ⬆️
... and 12 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 df25b66...5778309. Read the comment docs.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 8, 2022
@JmPotato
Copy link
Member Author

JmPotato commented Jun 8, 2022

/merge

@ti-chi-bot
Copy link
Member

@JmPotato: 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: 5778309

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 8, 2022
@ti-chi-bot ti-chi-bot merged commit 1382857 into tikv:master Jun 8, 2022
@JmPotato JmPotato deleted the refine_require_error branch June 8, 2022 05:50
CabinfeverB pushed a commit to CabinfeverB/pd that referenced this pull request Jul 14, 2022
ref tikv#4813

Refine the use of require.Error/NoError.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/testing CI testing. release-note-none Denotes a PR that doesn't merit a release note. require-LGT1 Indicates that the PR requires an LGTM. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants