-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add cassandra option test #644
Conversation
[CHATOPS:HELP] ChatOps commands.
|
Best reviewed: commit by commit
Optimal code review plan (8 warnings, 2 commits squashed)
|
/rebase |
[REBASE] Rebase triggered by kevindiu for branch: test/internal/db/cassandra/option |
c4dbb6c
to
ed0a05b
Compare
Codecov Report
@@ Coverage Diff @@
## master #644 +/- ##
==========================================
+ Coverage 15.35% 15.43% +0.08%
==========================================
Files 412 417 +5
Lines 21629 22177 +548
==========================================
+ Hits 3321 3424 +103
- Misses 18060 18518 +458
+ Partials 248 235 -13
Continue to review full report at Codecov.
|
/rebase |
[REBASE] Rebase triggered by kevindiu for branch: test/internal/db/cassandra/option |
/rebase |
[REBASE] Rebase triggered by kevindiu for branch: test/internal/db/cassandra/option |
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.
LGTM
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.
LGTM
but, it contains logic changes, please ask for authors.
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.
LGTM
}, | ||
}, | ||
{ | ||
name: "set timeout success if the time format is invalid", |
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.
why??
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.
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.
it is because I didn't fix this implementation.
https://github.com/vdaas/vald/blob/test/internal/db/cassandra/option/internal/db/nosql/cassandra/option.go#L124
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 you please tell me the reason of this implementation?
maybe, I heard at once, but I forgot 😓
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.
@vankichi There's no reason of this implementation. I haven't fix this implementation😂
Please let me fix it in next PR as changing it cause logic changes which requires approval from authors, which may cause time.
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.
what should we do?
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.
@vankichi can we ignore it in this PR and work on it in next PR?
}, | ||
}, | ||
{ | ||
name: "set timeout success if the time format is invalid", |
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.
what should we do?
/rebase |
[REBASE] Rebase triggered by kpango for branch: test/internal/db/cassandra/option |
[REBASE] Failed to rebase. |
return nil, errors.ErrOptionFailed(err, reflect.ValueOf(opt)) | ||
werr := errors.ErrOptionFailed(err, reflect.ValueOf(opt)) | ||
|
||
e := new(errors.ErrCriticalOption) |
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.
[LanguageTool] reported by reviewdog 🐶
This sentence does not start with an uppercase letter (UPPERCASE_SENTENCE_START)
Suggestions: E
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING
return nil, errors.ErrOptionFailed(err, reflect.ValueOf(opt)) | ||
werr := errors.ErrOptionFailed(err, reflect.ValueOf(opt)) | ||
|
||
e := new(errors.ErrCriticalOption) |
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.
[LanguageTool] reported by reviewdog 🐶
Add a space between sentences (SENTENCE_WHITESPACE)
Suggestions: ErrCriticalOption
Rule: https://community.languagetool.org/rule/show/SENTENCE_WHITESPACE?lang=en-US
Category: TYPOGRAPHY
werr := errors.ErrOptionFailed(err, reflect.ValueOf(opt)) | ||
|
||
e := new(errors.ErrCriticalOption) | ||
if errors.As(err, &e) { |
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.
[LanguageTool] reported by reviewdog 🐶
Add a space between sentences (SENTENCE_WHITESPACE)
Suggestions: As
Rule: https://community.languagetool.org/rule/show/SENTENCE_WHITESPACE?lang=en-US
Category: TYPOGRAPHY
werr := errors.ErrOptionFailed(err, reflect.ValueOf(opt)) | ||
|
||
e := new(errors.ErrCriticalOption) | ||
if errors.As(err, &e) { |
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.
[LanguageTool] reported by reviewdog 🐶
Don't put a space after the opening parenthesis (COMMA_PARENTHESIS_WHITESPACE)
Suggestions: {
Rule: https://community.languagetool.org/rule/show/COMMA_PARENTHESIS_WHITESPACE?lang=en-US
Category: TYPOGRAPHY
/rebase |
[REBASE] Rebase triggered by kpango for branch: test/internal/db/cassandra/option |
[REBASE] Failed to rebase. |
/format |
[FORMAT] Updating license headers and formatting go codes triggered by kpango. |
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.
[APPROVED] This PR is approved by kpango.
Description:
This PR includes the cassandra_option test code, and some refactoring for writing the test code.
It is only the part of the option test.
It also contains the changes to update the coding guideline for FOP implementation and handling.
Reference: #638
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: