-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
hack/scripts-dev: share docker image between test cases, clean up DNS tests #8958
Conversation
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
…s-wildcard-run Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
cat /dev/null >/etc/hosts | ||
|
||
goreman -f /certs-wildcard/Procfile start & | ||
sleep 7s |
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.
why sleep?
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.
sleep in code always seems hacky.
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.
You need sleep until cluster is ready in this case.
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.
hmm, it seems like this test can be flaky since we don't really know when etcd cluster will be ready. if etcd cluster is rdy at 30s, the test will fail right?
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.
We don't run these in CIs anyway. For now, I just manually tested it and confirm that it works. Later when we integrate with CI, we can add some timeouts.
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.
@gyuho maybe add a TODO here to create some sort of waiting logic with timeout. if etcd cluster is ready, then go ahead. if not and has timeout, exit with error.
--endpoints=https://m1.etcd.local:2379 \ | ||
endpoint health --cluster | ||
|
||
sleep 2s |
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.
why sleep?
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.
Removed.
cat /dev/null >/etc/hosts | ||
|
||
goreman -f /certs/Procfile start & | ||
sleep 7s |
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.
why sleep?
any ideas on why jenkins are failing? |
Seems like jenkins plugin issue. |
@gyuho yeah, the code lgtm. we can add the timeout logic when we integrate into ci. |
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Clean up existing certs so that they can share the same docker image.
And address #8502.
Separate out from #8954.
/cc @fanminshi