-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
lint: enable more linter for all repo #41306
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
3b9cca7
to
7f1eab4
Compare
/test check-dev2 |
@hawkingrei: The specified target(s) for
Use In response to this:
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. |
/test |
@hawkingrei: The
Use In response to this:
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. |
/retest |
1 similar comment
/retest |
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.
rest lgtm
@@ -782,14 +782,13 @@ func progressFileWriterRoutine(ctx context.Context, progress glue.Progress, tota | |||
case <-ctx.Done(): | |||
return | |||
case <-time.After(500 * time.Millisecond): | |||
break |
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.
I slightly prefer the old style 😂
@@ -1356,13 +1356,9 @@ func (us *UnionScanExec) handleCachedTable(b *executorBuilder, x bypassDataSourc | |||
vars.StmtCtx.ReadFromTableCache = true | |||
x.setDummy() | |||
us.cacheTable = cacheData | |||
} else if loading { |
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.
ditto
@@ -5311,12 +5307,8 @@ func (b *executorBuilder) getCacheTable(tblInfo *model.TableInfo, startTS uint64 | |||
if cacheData != nil { | |||
sessVars.StmtCtx.ReadFromTableCache = true | |||
return cacheData | |||
} else if loading { |
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.
ditto
@@ -2971,6 +2971,7 @@ func formatDecimal(sctx sessionctx.Context, xBuf *chunk.Column, dInt64s []int64, | |||
locale := "en_US" | |||
if localeBuf == nil { | |||
// FORMAT(x, d) | |||
_ = "" |
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.
maybe add nolint directive? this is a bit confusing
@@ -277,9 +277,7 @@ func syncLog() { | |||
func checkTempStorageQuota() { | |||
// check capacity and the quota when EnableTmpStorageOnOOM is enabled | |||
c := config.GetGlobalConfig() | |||
if c.TempStorageQuota < 0 { | |||
// means unlimited, do nothing |
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.
comment is still needed
a134050
to
b78b183
Compare
b78b183
to
e139994
Compare
/retest |
/retest |
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
/test all |
@hawkingrei: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
@hawkingrei: PR needs rebase. 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. |
What problem does this PR solve?
Issue Number: close #xxx
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.