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

tls enforcement flaky tests #16543

Merged
merged 2 commits into from
Mar 17, 2023
Merged

tls enforcement flaky tests #16543

merged 2 commits into from
Mar 17, 2023

Conversation

shoenig
Copy link
Member

@shoenig shoenig commented Mar 17, 2023

  • tests: add WaitForLeaders helpers using must/wait timings
  • tests: start servers for mtls tests together

Fixes: #16253 ... 🤞

Comment on lines +1397 to +1398
TestJoin(t, h.mtlsServer1, h.mtlsServer2, h.nonVerifyServer)
testutil.WaitForLeaders(t, h.mtlsServer1.RPC, h.mtlsServer2.RPC, h.nonVerifyServer.RPC)
Copy link
Member Author

@shoenig shoenig Mar 17, 2023

Choose a reason for hiding this comment

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

instead of starting 1 & 2 with bootstrap = 2 then waiting for a leader then adding server 3 ... start all 3 together with bootstrap = 3 then wait for leader

@shoenig shoenig added backport/1.4.x backport to 1.4.x release line backport/1.5.x backport to 1.5.x release line backport/1.3.x backport to 1.3.x release line labels Mar 17, 2023
@shoenig shoenig requested review from lgfa29 and tgross March 17, 2023 18:56
@shoenig shoenig marked this pull request as ready for review March 17, 2023 18:57
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM 🤞

@shoenig shoenig merged commit 1cfa95e into main Mar 17, 2023
@shoenig shoenig deleted the tls-enforcement-flaky-tests branch March 17, 2023 19:11
shoenig added a commit that referenced this pull request Mar 17, 2023
(manual cherry pick of 1cfa95e)

* tests: add WaitForLeaders helpers using must/wait timings

* tests: start servers for mtls tests together

Fixes #16253 (hopefully)
shoenig added a commit that referenced this pull request Mar 17, 2023
(manual cherry pick of 1cfa95e)

* tests: add WaitForLeaders helpers using must/wait timings

* tests: start servers for mtls tests together

Fixes #16253 (hopefully)
shoenig added a commit that referenced this pull request Mar 17, 2023
(manual cherry pick of 1cfa95e)

* tests: add WaitForLeaders helpers using must/wait timings

* tests: start servers for mtls tests together

Fixes #16253 (hopefully)

Co-authored-by: Seth Hoenig <[email protected]>
shoenig added a commit that referenced this pull request Mar 17, 2023
(manual cherry pick of 1cfa95e)

* tests: add WaitForLeaders helpers using must/wait timings

* tests: start servers for mtls tests together

Fixes #16253 (hopefully)

Co-authored-by: Seth Hoenig <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.3.x backport to 1.3.x release line backport/1.4.x backport to 1.4.x release line backport/1.5.x backport to 1.5.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky tests: TestRPC_TLS_ are still unhappy
2 participants