Skip to content

Conversation

@jdoupe
Copy link
Contributor

@jdoupe jdoupe commented Sep 17, 2025

Addresses #719

@jdoupe jdoupe force-pushed the add-vtbackup-extraflags branch 2 times, most recently from 2a84146 to 2008e1e Compare September 22, 2025 13:47
Copy link
Member

@frouioui frouioui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good start, thank you. Could you add a test for this please?

@jdoupe jdoupe force-pushed the add-vtbackup-extraflags branch from 2008e1e to 89242c4 Compare September 24, 2025 03:04
@jdoupe
Copy link
Contributor Author

jdoupe commented Sep 24, 2025

This is a good start, thank you. Could you add a test for this please?

I added a test. Not a lot of examples to work with, and also wasn't really able to execute on my laptop, so hopefully it works well. I may have to work on an alternate development / test environment if it has issues.

Resolved comments. Made things a bit cleaner. Thank you.

@jdoupe jdoupe requested a review from frouioui September 30, 2025 14:24
@mattlord mattlord self-requested a review November 12, 2025 00:47
Copy link
Collaborator

@mattlord mattlord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a couple of tiny nits/suggestions. @jdoupe can you please merge in origin/main? I think the tests might then pass.

Comment on lines 203 to 208
if !strings.Contains(joined, "--foo=bar") {
f.Fatalf("vtbackup args missing --foo=bar: %v", args)
}
if !strings.Contains(joined, "--baz=qux") {
f.Fatalf("vtbackup args missing --baz=qux: %v", args)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if !strings.Contains(joined, "--foo=bar") {
f.Fatalf("vtbackup args missing --foo=bar: %v", args)
}
if !strings.Contains(joined, "--baz=qux") {
f.Fatalf("vtbackup args missing --baz=qux: %v", args)
}
require.Contains(t, joined, "--foo=bar", "vtbackup args missing --foo=bar: %v", args)
require.Contains(t, joined, "--baz=qux", "vtbackup args missing --baz=qux: %v", args)

Copy link
Contributor Author

@jdoupe jdoupe Nov 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I blindly updated this, however, I'll note that "require" is currently only also used in test/integration/framework/fixture.go. The strings form I used originally is used elsewhere.
Am I to assume this is just the direction you want to move, and thus the suggested change?

@jdoupe jdoupe force-pushed the add-vtbackup-extraflags branch from a0d1816 to da9317f Compare November 15, 2025 15:43
@jdoupe
Copy link
Contributor Author

jdoupe commented Nov 15, 2025

LGTM! Just a couple of tiny nits/suggestions. @jdoupe can you please merge in origin/main? I think the tests might then pass.

Rebased instead... just to be sure.

@jdoupe jdoupe force-pushed the add-vtbackup-extraflags branch from da9317f to f9b8dc4 Compare November 16, 2025 17:10
@frouioui frouioui requested a review from mattlord November 18, 2025 13:49
@mattlord
Copy link
Collaborator

mattlord commented Nov 18, 2025

@jdoupe it looks like the test is failing. Reach out to me in the Vitess Slack and I'll be happy to walk through how you can run the tests locally to see what's failing and why.

Signed-off-by: Jeremy Doupe <[email protected]>
@jdoupe jdoupe force-pushed the add-vtbackup-extraflags branch from 2d024ff to 3b2dd63 Compare November 20, 2025 15:49
Copy link
Collaborator

@mattlord mattlord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks, @jdoupe !

I'm curious if you've also done any local testing with Minikube or anything as well? It's worth doing IMO: https://vitess.io/docs/24.0/get-started/operator/

But not required.

@jdoupe
Copy link
Contributor Author

jdoupe commented Nov 20, 2025

I'm curious if you've also done any local testing with Minikube or anything as well? It's worth doing IMO: https://vitess.io/docs/24.0/get-started/operator/

I have! And I'm also running this in production on two small clusters. (patched version of v2.15.1)

@mattlord mattlord merged commit 91c619f into planetscale:main Nov 20, 2025
12 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