-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
roachtest: allow for overriding mvt planner params through env vars #137312
Conversation
7106ac3
to
0e22e10
Compare
I personally found this very useful when testing out I still think a dry run mode would be good, complimentary with this even, since I don't see an easy way to handcraft when certain steps are inserted through env vars. But from anecdotal experience, it seems like most mixed version bugs repro with just the version and deployment mode. |
// LatestPatchRelease returns the latest patch release version for a given | ||
// release series. | ||
func LatestPatchRelease(series string) (*Version, error) { | ||
seriesStr := strings.TrimPrefix(series, "v") |
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.
The ping-pong around the "v" prefix is amusing.
When debugging mixed version tests, one often wishes to generate a specific upgrade path or use a specific deployment mode. The latter is not possible without changing the source code while the former is not supported at all. This change exposes two env vars, MVT_UPGRADE_PATH and MVT_DEPLOYMENT_MODE to allow for overriding mixed version plan generation.
0e22e10
to
c34f407
Compare
TFTR! bors r=srosenberg |
When debugging mixed version tests, one often wishes to generate a specific
upgrade path or use a specific deployment mode. The latter is not possible
without changing the source code while the former is not supported at all.
This change exposes two env vars, MVT_UPGRADE_PATH and MVT_DEPLOYMENT_MODE
to allow for overriding mixed version plan generation.
Release note: none
Epic: none
Fixes: none