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

[release-1.2] 🌱 Bump shellcheck version (0.7.0 -> 0.9.0) #7749

Conversation

killianmuldoon
Copy link
Contributor

This is a manual cherry-pick of #7737
What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added this to the v1.2 milestone Dec 13, 2022
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 13, 2022
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 13, 2022
@ykakarap
Copy link
Contributor

/test pull-cluster-api-verify-release-1-2

@killianmuldoon
Copy link
Contributor Author

Unfortunately the issue on this one isn't a flake - just digging into it now.

@fabriziopandini
Copy link
Member

/retest

@oscr
Copy link
Contributor

oscr commented Dec 13, 2022

There is a diff between 1.2 and main. But it's strange this would cause it to fail: git diff origin/release-1.2 main -- hack/ensure-golangci-lint.sh

@oscr
Copy link
Contributor

oscr commented Dec 13, 2022

@killianmuldoon @fabriziopandini @ykakarap I think I've found the issue by enabling tracing in main:

+ '[' 1 -ne 1 ']'
+ VERSION=v0.9.0
+ OS=unknown
+ [[ linux-gnu == \l\i\n\u\x* ]]
+ OS=linux
++ dirname ./hack/verify-shellcheck.sh
+ source ./hack/utils.sh
++ get_root_path
++ git rev-parse --show-toplevel
+ ROOT_PATH=/home/oscaru/go/src/k8s.io/kubernetes-sig/cluster-api
++ mktemp -d
+ TMP_DIR=/tmp/tmp.b77fDUlRC4
+ OUT=/tmp/tmp.b77fDUlRC4/out.log
+ trap cleanup EXIT
++ dirname ./hack/verify-shellcheck.sh
+ SHELLCHECK=././hack/tools/bin/shellcheck/v0.9.0/shellcheck
+ '[' '!' -f ././hack/tools/bin/shellcheck/v0.9.0/shellcheck ']'
+ echo 'Running shellcheck...'
Running shellcheck...
+ cd /home/oscaru/go/src/k8s.io/kubernetes-sig/cluster-api
++ find . -name '*.sh'
++ grep tilt_modules
+ IGNORE_FILES=
+ cleanup
+ ret=0
+ [[ -s /tmp/tmp.b77fDUlRC4/out.log ]]
+ echo 'Cleaning up...'
Cleaning up...
+ rm -rf /tmp/tmp.b77fDUlRC4
+ exit 0

Need to run and do some shopping but will look at it asap.

@oscr
Copy link
Contributor

oscr commented Dec 13, 2022

Can recreate now on main. Fix in progress.

@furkatgofurov7
Copy link
Member

/retest

@furkatgofurov7
Copy link
Member

furkatgofurov7 commented Dec 13, 2022

@killianmuldoon test pull-cluster-api-verify-release-1-2 needs a fix apparently


 Running shellcheck...
Ignoring shellcheck on ./third_party/japaric-trust/crate_install.sh
Found errors:
In ./hack/ensure-golangci-lint.sh line 167:
  echo "$0"
  ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
In ./hack/ensure-golangci-lint.sh line 230:
  echo ${arch}
       ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean: 
  echo "${arch}" 

Edit: Looks like this is waiting for other fix (7755) to land first

@sbueringer
Copy link
Member

sbueringer commented Dec 20, 2022

@killianmuldoon Should this be unblocked now as #7757 seems to be merged?

@killianmuldoon killianmuldoon force-pushed the pr-release-1-2-update-shellcheck branch from 8b9e5b1 to 3905030 Compare December 20, 2022 13:16
@killianmuldoon killianmuldoon force-pushed the pr-release-1-2-update-shellcheck branch from 3905030 to fc3a435 Compare December 20, 2022 13:32
@oscr
Copy link
Contributor

oscr commented Dec 20, 2022

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 20, 2022
@sbueringer
Copy link
Member

Thx!

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 20, 2022
@k8s-ci-robot k8s-ci-robot merged commit 99e2d3e into kubernetes-sigs:release-1.2 Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants