kind icon indicating copy to clipboard operation
kind copied to clipboard

Be more clear on the expected format of --wait option

Open radeksm opened this issue 1 year ago • 17 comments

This is just a very minor follow up on this pull request 3418.

kind create cluster --help does not explain what is expected format of --wait option. This is documented well in site/content/docs/user/quick-start.md but this simple change to command line help is going to save some time and confusion.

radeksm avatar Nov 13 '23 07:11 radeksm

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: radeksm Once this PR has been reviewed and has the lgtm label, please assign aojea for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Nov 13 '23 07:11 k8s-ci-robot

Hi @radeksm. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

k8s-ci-robot avatar Nov 13 '23 07:11 k8s-ci-robot

/ok-to-test

neolit123 avatar Nov 13 '23 07:11 neolit123

/test pull-kind-e2e-kubernetes-1-24

radeksm avatar Nov 13 '23 13:11 radeksm

/lgtm

stmcginnis avatar Nov 13 '23 13:11 stmcginnis

FWIW, this problem exists in kubectl as well, e.g. kubectl wait --help --timeout docs, these are go https://pkg.go.dev/time#Duration if we want to be more specific.

This change seems fine, but I prefer to align with kubectl where possible on the CLI flags and behaviors for consistency, maybe we need (or have already and can just reference?) a kubernetes.io docs page to cover these duration strings, they're used in other places in the project.

BenTheElder avatar Nov 13 '23 17:11 BenTheElder

FWIW, this problem exists in kubectl as well, e.g. kubectl wait --help --timeout docs, these are go https://pkg.go.dev/time#Duration if we want to be more specific.

This change seems fine, but I prefer to align with kubectl where possible on the CLI flags and behaviors for consistency, maybe we need (or have already and can just reference?) a kubernetes.io docs page to cover these duration strings, they're used in other places in the project.

@BenTheElder I will create new pull req to adjust in for kubectl so we can make it more clear and consistent.

Actually the same kind of inconsistency exists in kubectl on blow three subcommands too:

kubectl drain --timeout=...
kubectl wait  --timeout=...
kubectl delete  --timeout=...

radeksm avatar Nov 14 '23 15:11 radeksm

/test pull-kind-e2e-kubernetes-1-24 /test pull-kind-e2e-kubernetes-1-25

radeksm avatar Nov 14 '23 15:11 radeksm

New changes are detected. LGTM label has been removed.

k8s-ci-robot avatar Nov 14 '23 15:11 k8s-ci-robot

/retest

radeksm avatar Nov 15 '23 05:11 radeksm

/test pull-kind-e2e-kubernetes-1-24

radeksm avatar Nov 15 '23 08:11 radeksm

/test pull-kind-e2e-kubernetes-1-24

radeksm avatar Nov 15 '23 12:11 radeksm

/test pull-kind-e2e-kubernetes-1-24

radeksm avatar Nov 16 '23 06:11 radeksm

/test pull-kind-e2e-kubernetes-1-24

radeksm avatar Nov 16 '23 07:11 radeksm

1.24 seems to be permanently failing https://prow.k8s.io/pr-history/?org=kubernetes-sigs&repo=kind&pr=3419, keep retesting is not going to solve the problem ;)

aojea avatar Nov 16 '23 07:11 aojea

1.24 seems to be permanently failing https://prow.k8s.io/pr-history/?org=kubernetes-sigs&repo=kind&pr=3419, keep retesting is not going to solve the problem ;)

Yeahhh but it seems to be not related to my change and I thought it's some CI problem with lack of resources. It was the same with pull-kind-e2e-kubernetes-1-25 which eventually passed. Sorry but I am not familiar with the CI.

radeksm avatar Nov 16 '23 08:11 radeksm

@radeksm: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kind-e2e-kubernetes-1-24 56db1281bc0666368896a5aabf24584c5eedb6dd link true /test pull-kind-e2e-kubernetes-1-24

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

k8s-ci-robot avatar Nov 16 '23 08:11 k8s-ci-robot