-
Notifications
You must be signed in to change notification settings - Fork 134
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
Fix: Shell scripts to pass shellcheck linter for sensor.sh and central.sh #3578
Conversation
Hi @rachana-dani. Thanks for your PR. I'm waiting for a stackrox 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. |
/ok-to-test |
Images are ready for the commit at 4777193. To use with deploy scripts, first |
@rachana-dani Style check still failing |
deploy/k8s/sensor.sh
Outdated
@@ -1,13 +1,15 @@ | |||
#!/usr/bin/env bash | |||
# shellcheck disable=SC1091 | |||
# shellcheck disable=SC2086 |
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.
Where do we need this?
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.
Its needed for ROX_ADMIN_PASSWORD="$(cat ${K8S_DIR}/central-deploy/password)"
. I will move the suppress comment to appropriate position.
Hey @janisz, I have excluded the file names from stylecheck_skip.txt and the grouped_static_checks are failing. This check is to see if files present in stylecheck_skip.txt don't have linting issues anymore. If none of the other tests are failing , why is this one failing? |
Hey @janisz , I have not made any changes to |
/retest |
Please remove
|
Thanks @janisz. @gavin-stackrox @tommartensen, can you please review this PR? |
Hi @rachana-dani, thanks for the fix! It looks like @janisz has approved the PR and a single approver is sufficient to merge. Are you able to merge it? |
…l.sh (#3578) Co-authored-by: rdani <rachana_sudhindradani@intuit.com> Co-authored-by: Tomasz Janiszewski <janiszt@gmail.com>
Description
Fix shell scripts to pass Shellcheck linter for
deploy/k8s/sensor.sh
deploy/k8s/central.sh
deploy/openshift/central.sh
Checklist
If any of these don't apply, please comment below.
Testing Performed
CI pipeline is a sufficient indicator but tested by running
make shell-style
. It passed successfully.