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

*: enable error check for some files #8301

Merged
merged 7 commits into from
Jun 19, 2024
Merged

Conversation

okJiang
Copy link
Member

@okJiang okJiang commented Jun 17, 2024

What problem does this PR solve?

Issue Number: Ref #1919

What is changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

Side effects

  • Possible performance regression
  • Increased code complexity
  • Breaking backward compatibility

Related changes

Release note

None.

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the dco. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 17, 2024
@okJiang
Copy link
Member Author

okJiang commented Jun 17, 2024

/retest

1 similar comment
@okJiang
Copy link
Member Author

okJiang commented Jun 17, 2024

/retest

pkg/tso/allocator_manager.go Outdated Show resolved Hide resolved
plugin/scheduler_example/evict_leader.go Show resolved Hide resolved
Signed-off-by: okJiang <[email protected]>
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jun 18, 2024
Comment on lines -277 to 280
err := handler.config.Persist()
err := handler.config.BuildWithArgs(args)
if err != nil {
handler.rd.JSON(w, http.StatusInternalServerError, err.Error())
_ = handler.rd.JSON(w, http.StatusBadRequest, err.Error())
return
}
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 using if err := BuildWithArgs(); err != nil ?

Copy link
Member Author

@okJiang okJiang Jun 19, 2024

Choose a reason for hiding this comment

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

Unless all places maintain a habit, either one is fine, no big deal😊

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I mean all repo keep one habit~

pkg/schedule/placement/rule.go Outdated Show resolved Hide resolved
Signed-off-by: okJiang <[email protected]>
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

Attention: Patch coverage is 61.11111% with 7 lines in your changes missing coverage. Please review.

Project coverage is 77.32%. Comparing base (463aee9) to head (2c4a203).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8301      +/-   ##
==========================================
- Coverage   77.39%   77.32%   -0.07%     
==========================================
  Files         470      470              
  Lines       61387    61356      -31     
==========================================
- Hits        47508    47443      -65     
- Misses      10315    10342      +27     
- Partials     3564     3571       +7     
Flag Coverage Δ
unittests 77.32% <61.11%> (-0.07%) ⬇️

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

@ti-chi-bot ti-chi-bot bot added the lgtm label Jun 19, 2024
Copy link
Contributor

ti-chi-bot bot commented Jun 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: HuSharp, rleungx

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jun 19, 2024
Copy link
Contributor

ti-chi-bot bot commented Jun 19, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-06-18 03:42:25.804065944 +0000 UTC m=+86272.289554771: ☑️ agreed by rleungx.
  • 2024-06-19 05:30:21.008551009 +0000 UTC m=+179147.494039842: ☑️ agreed by HuSharp.

@ti-chi-bot ti-chi-bot bot merged commit cb28ca8 into tikv:master Jun 19, 2024
19 of 21 checks passed
@okJiang okJiang deleted the enable-errcheck-2 branch June 19, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants