-
Notifications
You must be signed in to change notification settings - Fork 642
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
Migrate bench to a cobra style command #680
base: main
Are you sure you want to change the base?
Migrate bench to a cobra style command #680
Conversation
353ed32
to
0a529bb
Compare
Signed-off-by: Ivan Valdes <[email protected]>
0a529bb
to
902557d
Compare
A quick question, @ivanvc is there any user-facing change? If there isn't such change, then we should be good to merge this PR. |
@ahrtr, I deleted the However, changing from built-in Go flags to Cobra flags isn't backward compatible, as Go flags aren't POSIX compliant. |
OK, thanks for the clarification. Then let's merge this PR once we cut release-1.4 branch. |
Drafting because of #711 |
@ivanvc: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
Migrates
bbolt bench
to a cobra-style command. I made some changes to clean up the code a bit.read-mode
option, the only available mode was sequential (seq
), So I removed this option.bbolt/cmd/bbolt/main.go
Lines 1313 to 1323 in 019c34e
While having these changes, the output of the command and the behavior remain the same.
Old run:
New:
Old:
New:
Relates to #472.