-
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
roachtest: fix clusterImpl.IsLocal() #98371
Conversation
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.
Thank you for fixing! LGTM once we reuse the existing function in the config
package.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @msbutler, @smg260, and @srosenberg)
pkg/cmd/roachtest/cluster.go
line 2385 at r1 (raw file):
func (c *clusterImpl) IsLocal() bool { return strings.HasPrefix(c.name, "local")
We should use config.IsLocalClusterName
.
9ea2707
to
0a4da2f
Compare
Done! |
0a4da2f
to
9b13055
Compare
Previously, c.IsLocal() would always return false because local clusters have a time based suffix. This patch changes c.IsLocal() to return true if the cluster name is prefixed with "local". Epic: none Release note: none
9b13055
to
8cb2803
Compare
bors r=renatolabs |
Build failed: |
bors r=retry |
Build succeeded: |
Previously, c.IsLocal() would always return false because local clusters have a time based suffix. This patch changes c.IsLocal() to return true if the cluster name is prefixed with "local".
Epic: none
Release note: none