-
Notifications
You must be signed in to change notification settings - Fork 3.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
release-23.2: roachtest: clean up command-line flags #114432
Merged
RaduBerinde
merged 1 commit into
cockroachdb:release-23.2
from
RaduBerinde:backport23.2-112078
Nov 15, 2023
Merged
release-23.2: roachtest: clean up command-line flags #114432
RaduBerinde
merged 1 commit into
cockroachdb:release-23.2
from
RaduBerinde:backport23.2-112078
Nov 15, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for opening a backport. Please check the backport criteria before merging:
If your backport adds new functionality, please ensure that the following additional criteria are satisfied:
Also, please add a brief release justification to the body of your PR to justify this |
blathers-crl
bot
added
the
backport
Label PR's that are backports to older release branches
label
Nov 14, 2023
Your pull request contains more than 1000 changes. It is strongly encouraged to split big PRs into smaller chunks. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
The code around command-line flags is pretty messy: they're defined in many places; the name and description of a flag are far away from the variable; the variable names look like local variables and in many cases it's not obvious we're accessing a global. This commit moves all flags to a separate subpackage, `roachtestflags`, making all uses of global flags obvious. We also add a bit of infrastructure to allow defining all information about a flag right next to where the variable is declared. We also provide a `Changed()` function that determines if a flag value was changed (without the caller having to use the Command or even the flag name). There should be no functional changes (just some cosmetic improvements to the flag usage texts). Epic: none Release note: None
RaduBerinde
force-pushed
the
backport23.2-112078
branch
from
November 14, 2023 20:20
065fa1a
to
a357561
Compare
renatolabs
approved these changes
Nov 15, 2023
TFTR! Run looks good. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport 1/1 commits from #112078.
/cc @cockroachdb/release
Release justification: test-only change, keeping roachtest in sync.
This PR is only for the last commit. The rest are #111811
roachtest: clean up command-line flags
The code around command-line flags is pretty messy: they're defined in
many places; the name and description of a flag are far away from
the variable; the variable names look like local variables and in many
cases it's not obvious we're accessing a global.
This commit moves all flags to a separate subpackage,
roachtestflags
, making all uses of global flags obvious. We also adda bit of infrastructure to allow defining all information about a flag
right next to where the variable is declared.
We also provide a
Changed()
function that determines if a flag valuewas changed (without the caller having to use the Command or even the
flag name).
There should be no functional changes (just some cosmetic improvements
to the flag usage texts).
Epic: none
Release note: None