-
Notifications
You must be signed in to change notification settings - Fork 102
Conversation
Please include a flag to disable version check (e.g. |
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
/run-integration-test |
Co-authored-by: kennytm <kennytm@gmail.com>
/run-integration-test |
5 similar comments
/run-integration-test |
/run-integration-test |
/run-integration-test |
/run-integration-test |
/run-integration-test |
Maybe PD returns |
Codecov Report
@@ Coverage Diff @@
## master #311 +/- ##
==========================================
- Coverage 72.44% 71.56% -0.88%
==========================================
Files 48 48
Lines 5277 5135 -142
==========================================
- Hits 3823 3675 -148
- Misses 976 989 +13
+ Partials 478 471 -7
Continue to review full report at Codecov.
|
I found it's BRReleaseVersion is None, but CI has build BR with ldflags, after a few attempt to adjust CI, It didn't work well, So I decide to add skip to work around. |
dbe6e2e
to
b67be9d
Compare
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
@@ -116,6 +118,9 @@ func DefineCommonFlags(flags *pflag.FlagSet) { | |||
flags.Uint64(flagRateLimitUnit, utils.MB, "The unit of rate limit") | |||
_ = flags.MarkHidden(flagRateLimitUnit) | |||
|
|||
flags.Bool(flagCheckRequirement, true, |
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.
Boolean flags seems must use the form --some=false
to disable(see here), otherwise when it appears, it would be set to true
.
Maybe --skip-check-reqirements
here would be better? Since we must use --check-requirements=false
to skip check requirements if we let the default value be true
on this flag.
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.
IMO this is fine since we've got --checksum=false
already.
--skip-check-requirements
would be a "negative flag".
You can add |
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
Please remove .DS_Store files https://github.com/pingcap/br/blob/1a825f01f7e61fc0ac6b3d2408de7b75116d89f3/.DS_Store Rest LGTM |
/run-integration-test |
/run-cherry-picker |
cherry pick to release-3.1 failed |
1 similar comment
cherry pick to release-3.1 failed |
cherry pick to release-4.0 in PR #326 |
* add version check * Update pkg/utils/version.go Co-authored-by: kennytm <kennytm@gmail.com> * fix test * add flag to control check * address comment * fix ci * remove DS_Store Co-authored-by: luancheng <luancheng@pingcap.com> Co-authored-by: kennytm <kennytm@gmail.com>
* add version check * Update pkg/utils/version.go Co-authored-by: kennytm <kennytm@gmail.com> * fix test * add flag to control check * address comment * fix ci * remove DS_Store Co-authored-by: kennytm <kennytm@gmail.com> Co-authored-by: Neil Shen <overvenus@gmail.com>
* add version check * Update pkg/utils/version.go Co-authored-by: kennytm <kennytm@gmail.com> * fix test * add flag to control check * address comment * fix ci * remove DS_Store Co-authored-by: kennytm <kennytm@gmail.com> Co-authored-by: Neil Shen <overvenus@gmail.com>
What problem does this PR solve?
Resolve #301
What is changed and how it works?
Add cluster version check when br start
Check List
Tests
Related changes
Release Note