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

add livez readyz e2e tests #16835

Merged
merged 2 commits into from
Oct 29, 2023
Merged

add livez readyz e2e tests #16835

merged 2 commits into from
Oct 29, 2023

Conversation

chaochn47
Copy link
Member

Replace #16784 since its CI test failed.

Based on #16792 (comment), this test should be merged first and #16792 will be rebased on top of it.

@siyuanfoundation on the second commit.

/cc @serathius

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

@chaochn47 chaochn47 marked this pull request as ready for review October 26, 2023 19:42
@chaochn47
Copy link
Member Author

Thanks for the review!

Could you please take a second look? @serathius

serathius and others added 2 commits October 28, 2023 17:57
Signed-off-by: Chao Chen <chaochn@amazon.com>
Signed-off-by: Chao Chen <chaochn@amazon.com>
Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM with a minor comment.

thx

Comment on lines +392 to +408
time.Sleep(time.Second)
select {
case <-ctx.Done():
require.NoError(t, err)
default:
}
response, err := etcdctl.AlarmList(ctx)
if err != nil {
continue
}
if len(response.Alarms) == 0 {
continue
}
require.Len(t, response.Alarms, 1)
if response.Alarms[0].Alarm == etcdserverpb.AlarmType_CORRUPT {
break
}
Copy link
Member

Choose a reason for hiding this comment

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

Nit: should we have a timeout for this indefinite for loop, and fail the test when timedout?

@ahrtr ahrtr merged commit 5cc9f7f into etcd-io:main Oct 29, 2023
27 checks passed
@chaochn47 chaochn47 deleted the e2e-livez-readyz branch October 29, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants