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
update verify shellcheck to reduce the time to less than 15min #1863
update verify shellcheck to reduce the time to less than 15min #1863
Conversation
Hi @Vandit1604. 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 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. |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/ok-to-test |
hack/verify-shellcheck.sh
Outdated
# Currently disabled these errors will take care of them later | ||
DISABLED_ERRORS="SC2002,SC3028,SC3054,SC3014,SC3040,SC3046,SC3030,SC3010,SC3037,SC3045,SC3006,SC3018,SC3016,SC3011,SC3044,SC3043,SC3060,SC3024,SC1091,SC2066,SC2086,SC2034,SC1083,SC1009,SC1073,SC1072,SC2155,SC2046" | ||
SHELLCHECK_DISABLED="SC2002,SC3028,SC3054,SC3014,SC3040,SC3046,SC3030,SC3010,SC3037,SC3045,SC3006,SC3018,SC3016,SC3011,SC3044,SC3043,SC3060,SC3024,SC1091,SC2066,SC2086,SC2034,SC1083,SC1009,SC1073,SC1072,SC2155,SC2046" |
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.
shouldn't this variable be defined before line 25?
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.
Fixed.
while this is faster, verify is still taking more than 10 min Maybe there are more things we can do in other verifications. |
Is there a way to check how much time a rule is taking? I tried adding Furthermore, I'll check other verifications tomorrow. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, Vandit1604 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 |
LGTM label has been added. Git tree hash: ce28e080d3cb7aa80fbf28cbcca9fcc7161862d9
|
# set colorized output | ||
"--color=${SHELLCHECK_COLORIZED_OUTPUT}" | ||
) | ||
|
||
# Currently disabled these errors will take care of them later |
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.
Perhaps we should move this comment to line 23.
…netes-sigs#1863) * update verify shellcheck to reduce the time to less than 15min * put disabled_errors on the correct line
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR addresses
verify
rule taking more than 15 mins in Prow test suite.Which issue(s) this PR fixes:
Part of #1849
Special notes for your reviewer:
For more info, see #1849 (comment)
Does this PR introduce a user-facing change?