-
Notifications
You must be signed in to change notification settings - Fork 38.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
Remove option 'T' from wget on Windows #107983
Remove option 'T' from wget on Windows #107983
Conversation
Command 'wget' in Windows image agnhost does not support option timeout, this test fails: - should be able to up and down services
Hi @hxietkg. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
cc @kubernetes/sig-windows-bugs
/release-note-none |
/lgtm |
(context - hongsheng is getting the ntepol tests vetted fully for windows so , this is one more iterative improvement we found |
Great. I was just checking and it doesn't look like we run this in https://testgrid.k8s.io/sig-windows-signal#aks-engine-windows-containerd-master. |
@@ -328,7 +328,11 @@ func verifyServeHostnameServiceUp(c clientset.Interface, ns string, expectedPods | |||
|
|||
// verify service from pod | |||
cmdFunc := func(podName string) string { | |||
wgetCmd := "wget -q -T 1 -O -" | |||
wgetCmd := "wget -q -O -" | |||
// Command 'wget' in Windows image may not support option 'T' |
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.
may not?
Is this test using an actual wget binary or relying on the wget powershell alias that is actually just an alias for Invoke-WebRequest?
It looks like this test is using anghost which uses powershell as the default shell so i think this is just using the powershell alias - which also doesn't support -q.
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.
It is using wget binary:
STEP: verifying service has 3 reachable backends
Feb 6 23:42:16.428: INFO: Executing cmd "for i in $(seq 1 150); do wget -q -O - http://100.70.143.81:80 2>&1 || true; echo; done" in pod services-2563/verify-service-up-host-exec-pod
Feb 6 23:42:16.428: INFO: Running '/home/kubo/path/kubectl --kubeconfig=/home/kubo/.kube/config --namespace=services-2563 exec verify-service-up-host-exec-pod -- /bin/sh -x -c for i in $(seq 1 150); do wget -q -O - http://100.70.143.81:80 2>&1 || true; echo; done'
here are args of command wget:
/ # wget -h
wget: unknown option -- h
BusyBox v1.29.0.git (2018-10-29 11:20:48 PDT) multi-call binary
Usage: wget [-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE]
[--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
[-S|--server-response] [-U|--user-agent AGENT] URL...
Retrieve files via HTTP or FTP
--spider Only check URL existence: $? is 0 if exists
-c Continue retrieval of aborted transfer
-q Quiet
-P DIR Save to DIR (default .)
-S Show server response
-O FILE Save to FILE ('-' for stdout)
-U STR Use STR for User-Agent header
-Y on/off Use proxy
It seems feature FEATURE_WGET_TIMEOUT is not enabled when busybox-1.29 was built for windows.
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.
Thanks!
/retest |
@hxietkg: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
LGTM too.
/ok-to-test |
/triage accepted |
/test pull-kubernetes-conformance-kind-ipv6-parallel |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, hxietkg, jayunit100 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Command 'wget' in Windows image agnhost does not support option timeout,
this test fails:
What type of PR is this?
/kind bug
/kind failing-test
What this PR does / why we need it:
Command wget in Windows image agnhost does not support option 'T', so the test "should be able to up and down services" fails on Windows cluster.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: