Suppress node configuration details during tests#10688
Suppress node configuration details during tests#10688openshift-bot merged 1 commit intoopenshift:masterfrom
Conversation
|
[test] |
|
I think you need it in |
Disregard me ... no nodes in that test. Instead of using the |
|
test flake unrelated, these bits look good |
|
@stevekuznetsov Don't you want me to squash first? |
|
@enj yeah, squash down and we can merge it |
b47cb55 to
15762a3
Compare
|
Post 1.3 |
|
@stevekuznetsov merge plz. |
hack/util.sh
Outdated
| wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/api/v1/nodes/${KUBELET_HOST}" "apiserver(nodes): " 0.25 80 | ||
| os::test::junit::declare_suite_start "util/start_os_server" | ||
| os::cmd::try_until_text "oc get --raw /healthz --config='${MASTER_CONFIG_DIR}/admin.kubeconfig'" 'ok' | ||
| os::cmd::try_until_text "oc get --raw ${KUBELET_SCHEME}://${KUBELET_HOST}:${KUBELET_PORT}/healthz --config='${MASTER_CONFIG_DIR}/admin.kubeconfig'" 'ok' |
There was a problem hiding this comment.
using --raw against a kubelet threw errors trying to fetch discovery information from the kubelet for me
There was a problem hiding this comment.
Ignoring the rebase flakes the tests seem to be fine.
15762a3 to
a3a35d1
Compare
|
re[test] flake #11016 |
a3a35d1 to
9f3f501
Compare
|
@liggitt any last comments or was this good to go? |
|
no other comments from me but I didn't review in detail |
stevekuznetsov
left a comment
There was a problem hiding this comment.
Most comments are generic and apply to all diffs.
hack/lib/start.sh
Outdated
|
|
||
| wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/healthz" "apiserver: " 0.25 160 | ||
| wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/healthz/ready" "apiserver(ready): " 0.25 160 | ||
| os::test::junit::declare_suite_start "os::start::master" |
There was a problem hiding this comment.
We don't use colons as separators in the jUnit suites - we can just have setup/start-master
hack/lib/start.sh
Outdated
| wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/healthz/ready" "apiserver(ready): " 0.25 80 | ||
| wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/api/v1/nodes/${KUBELET_HOST}" "apiserver(nodes): " 0.25 80 | ||
| os::test::junit::declare_suite_start "os::start::all_in_one" | ||
| os::cmd::try_until_text "oc get --raw /healthz --config='${MASTER_CONFIG_DIR}/admin.kubeconfig'" 'ok' |
There was a problem hiding this comment.
We don't want to lose the poll & timeout info from before.
hack/util.sh
Outdated
| echo "ERROR: gave up waiting for ${url}" | ||
| echo $(${cmd}) | ||
| echo "ERROR: gave up waiting for ${url}" 1>&2 | ||
| echo $(${cmd}) 1>&2 |
There was a problem hiding this comment.
This can be written:
${cmd} 1>&2| wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/healthz" "apiserver: " 0.25 80 | ||
| wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/healthz/ready" "apiserver(ready): " 0.25 80 | ||
| wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/api/v1/nodes/${KUBELET_HOST}" "apiserver(nodes): " 0.25 80 | ||
| wait_for_command "oc get --raw ${KUBELET_SCHEME}://${KUBELET_HOST}:${KUBELET_PORT}/healthz --config='${MASTER_CONFIG_DIR}/admin.kubeconfig' | grep ok" |
There was a problem hiding this comment.
We shouldn't touch these scripts, they should reflect the previous state to enforce backwards compat.
9f3f501 to
69ae428
Compare
|
@stevekuznetsov PTAL |
stevekuznetsov
left a comment
There was a problem hiding this comment.
One remaining nit, rest LGTM
hack/util.sh
Outdated
| echo "ERROR: gave up waiting for ${url}" | ||
| echo $(${cmd}) | ||
| echo "ERROR: gave up waiting for ${url}" 1>&2 | ||
| echo ${cmd} 1>&2 |
There was a problem hiding this comment.
Sorry, not what I meant.
When you do something like:
echo "$( ${commands} )"You are:
- spawning a subshell
$() - running
${commands}in that subshell - collecting stdout from it
- asking
echoto take that and put it into stdout
Instead, if you do simply:
${commands}You then are:
- running the
${commands}and letting them touchstd{out,err}as it would
There was a problem hiding this comment.
echo ${commands}Won't actually run the ${commands}.
Signed-off-by: Monis Khan <mkhan@redhat.com>
69ae428 to
b86eca7
Compare
|
Evaluated for origin test up to b86eca7 |
|
[merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9738/) (Image: devenv-rhel7_5156) |
|
Evaluated for origin merge up to b86eca7 |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9738/) |
Fixes #7193