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

hack/scripts-dev: share docker image between test cases, clean up DNS tests #8958

Merged
merged 3 commits into from
Dec 1, 2017

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Dec 1, 2017

Clean up existing certs so that they can share the same docker image.
And address #8502.
Separate out from #8954.

/cc @fanminshi

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
Copy link
Member

Choose a reason for hiding this comment

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

why sleep?

Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

@fanminshi fanminshi Dec 1, 2017

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?

Copy link
Contributor Author

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.

Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

why sleep?

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

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

why sleep?

@fanminshi
Copy link
Member

any ideas on why jenkins are failing?

@gyuho
Copy link
Contributor Author

gyuho commented Dec 1, 2017

JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://wiki.jenkins-ci.org/display/JENKINS/Remove+Git+Plugin+BuildsByBranch+BuildData

Seems like jenkins plugin issue.

@fanminshi
Copy link
Member

@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>
@gyuho gyuho merged commit 413aa48 into etcd-io:master Dec 1, 2017
@gyuho gyuho deleted the test-scripts-2 branch December 1, 2017 23:41
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.

2 participants