kind icon indicating copy to clipboard operation
kind copied to clipboard

Shellcheck fixes

Open BenTheElder opened this issue 3 years ago • 1 comments

  • upgrade shellcheck
  • support host binary without docker if it's the correct version
  • support podman instead of docker
  • fix vagrant-helper
  • upgrade gimmee

BenTheElder avatar Aug 01 '22 21:08 BenTheElder

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Aug 01 '22 21:08 k8s-ci-robot

at current main, when calling make verify, I had this warning:

make verify
hack/make-rules/verify/all.sh
verifying lints ...
verifying generated ...
hack/make-rules/update/generated.sh
hack/make-rules/update/gofmt.sh
verifying shellcheck ...
shellcheck: timer_create: Resource temporarily unavailable

One or more verify checks failed! See output above...
make: *** [verify] Error 1

Using this PR, it fixed that issue:

make verify
hack/make-rules/verify/all.sh
verifying lints ...
verifying generated ...
hack/make-rules/update/generated.sh
hack/make-rules/update/gofmt.sh
verifying shellcheck ...
Using host shellcheck 0.8.0 binary.

All verify checks passed, congrats!

It runs on a Mac M1

converge avatar Oct 16 '22 01:10 converge

Given that your output shows it using the host binary it may just be that requiring the same version you currently have installed fixed it and that this will still be broken when those skew.

BenTheElder avatar Oct 16 '22 18:10 BenTheElder

Sounds like a ulimit problem with docker desktop

BenTheElder avatar Oct 16 '22 18:10 BenTheElder

I actually don't have kind binary on the host. I also tried setting the ulimit manually, and it doesn't fix the issue (using current main code / shellcheck 0.7.1)

converge avatar Oct 17 '22 11:10 converge

I actually don't have kind binary on the host.

shellcheck binary, not kind. (See the logs / script logic)

I also tried setting the ulimit manually, and it doesn't fix the issue (using current main code / shellcheck 0.7.1)

To be clear: there are many limits, I'm talking about a limit inside the docker desktop VM. And not file handles.

BenTheElder avatar Oct 17 '22 15:10 BenTheElder

cc @aojea we should probably do this

BenTheElder avatar Nov 02 '22 20:11 BenTheElder

/lgtm

aojea avatar Nov 03 '22 01:11 aojea

hmm can't find how to force actions to run again and the logs are gone

BenTheElder avatar Nov 03 '22 03:11 BenTheElder

hmm can't find how to force actions to run again and the logs are gone

rebase and push ?

aojea avatar Nov 03 '22 14:11 aojea

rebase and push ?

: effort :, too many other things to do. prow I can just /retest or /test

BenTheElder avatar Nov 08 '22 06:11 BenTheElder

rebased

BenTheElder avatar Nov 08 '22 06:11 BenTheElder

@BenTheElder: The following tests 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-20 f8cd7207e0594f154eb1843b1fe82844fcd08479 link true /test pull-kind-e2e-kubernetes-1-20
pull-kind-e2e-kubernetes-1-21 f8cd7207e0594f154eb1843b1fe82844fcd08479 link true /test pull-kind-e2e-kubernetes-1-21
pull-kind-e2e-kubernetes f8cd7207e0594f154eb1843b1fe82844fcd08479 link true /test pull-kind-e2e-kubernetes

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 08 '22 07:11 k8s-ci-robot

/lgtm

aojea avatar Nov 08 '22 08:11 aojea

actions failed with

ERROR: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": dial unix /var/run/docker.sock: connect: permission denied

aojea avatar Nov 08 '22 08:11 aojea

and the podman job with

ERROR: failed to create cluster: running kind with rootless provider requires setting systemd property "Delegate=yes", see https://kind.sigs.k8s.io/docs/user/rootless/

aojea avatar Nov 08 '22 08:11 aojea

/lgtm cancel

aojea avatar Nov 08 '22 08:11 aojea

Fixed the vagrant script. All green now.

BenTheElder avatar Dec 15 '22 08:12 BenTheElder

since this was opened, v0.9.0 came out, updated

BenTheElder avatar Dec 15 '22 19:12 BenTheElder

/lgtm

aojea avatar Dec 15 '22 20:12 aojea

/lgtm

stmcginnis avatar Dec 15 '22 21:12 stmcginnis

/retest

BenTheElder avatar Dec 15 '22 22:12 BenTheElder