Skip to content
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

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

DarrylWong
Copy link
Contributor

@DarrylWong DarrylWong commented Dec 11, 2024

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

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@DarrylWong DarrylWong force-pushed the mvt-env-var-override branch 4 times, most recently from 7106ac3 to 0e22e10 Compare December 19, 2024 22:16
@DarrylWong
Copy link
Contributor Author

I personally found this very useful when testing out separate_process mode (especially on TC), but curious if there's any thoughts on the UX?

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.

@DarrylWong DarrylWong marked this pull request as ready for review December 19, 2024 22:33
@DarrylWong DarrylWong requested review from a team as code owners December 19, 2024 22:33
@DarrylWong DarrylWong requested review from sambhav-jain-16 and shailendra-patel and removed request for a team December 19, 2024 22:33
// LatestPatchRelease returns the latest patch release version for a given
// release series.
func LatestPatchRelease(series string) (*Version, error) {
seriesStr := strings.TrimPrefix(series, "v")
Copy link
Member

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.
@DarrylWong
Copy link
Contributor Author

TFTR!

bors r=srosenberg

@craig craig bot merged commit c035a6d into cockroachdb:master Dec 20, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants