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

Force setting pre-vote flag even if it uses default value. #17463

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joshuazh-x
Copy link
Contributor

@k8s-ci-robot
Copy link

Hi @joshuazh-x. Thanks for your PR.

I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@serathius
Copy link
Member

Not sure about the proposed approach, we don't want to set --pre-vote everywhere, just in robustness test. Please consider adding it to baseOptions

baseOptions := []e2e.EPClusterOption{
options.WithSnapshotCount(50, 100, 1000),
options.WithSubsetOptions(randomizableOptions...),
e2e.WithGoFailEnabled(true),
e2e.WithCompactionBatchLimit(100),
e2e.WithWatchProcessNotifyInterval(100 * time.Millisecond),
}

@joshuazh-x
Copy link
Contributor Author

Not sure about the proposed approach, we don't want to set --pre-vote everywhere, just in robustness test. Please consider adding it to baseOptions

baseOptions := []e2e.EPClusterOption{
options.WithSnapshotCount(50, 100, 1000),
options.WithSubsetOptions(randomizableOptions...),
e2e.WithGoFailEnabled(true),
e2e.WithCompactionBatchLimit(100),
e2e.WithWatchProcessNotifyInterval(100 * time.Millisecond),
}

Simply adding an option to change prevote does not work, because any option same as the default one will be ignored.
Set --pre-vote with default value is equivalent to skipping it so I believe it won't cause any problem.

@serathius
Copy link
Member

Right, forgot that now e2e framework uses defaults on the main branch to decide what flags to pass. Good find!

@joshuazh-x
Copy link
Contributor Author

Fix goword check failure.

@serathius
Copy link
Member

cc @ahrtr

@@ -172,6 +172,9 @@ type EtcdProcessClusterConfig struct {
IsPeerAutoTLS bool
CN bool

// ExplicitFlags contains flags to be explicitly set even if their values are same as default ones
ExplicitFlags map[string]struct{}
Copy link
Member

Choose a reason for hiding this comment

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

Long term we might consider hardcoding differences between defaults on previous releases, however this should be a good solution for now.

@ahrtr
Copy link
Member

ahrtr commented Feb 21, 2024

Pls see my comment #17455 (comment)

@k8s-ci-robot
Copy link

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants