-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore: Fix warnings produced by shellcheck on bench.sh #12303
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
Conversation
edmondop
left a comment
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.
I wonder if we want to add something here https://github.com/apache/datafusion/tree/main/dev (lint_scripts.sh) maybe? And maybe also a task in CI?
| usage | ||
| ;; | ||
| -*|--*) | ||
| -*) |
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.
The removed pattern is a subset of -* and will therefore never match. https://www.shellcheck.net/wiki/SC2221
Agreed. If people agree that this is a change in the desired direction. Then it makes sense to address the same issues in other bash scripts in this repo and add a CI check as a follow up. |
| echo "RESULTS_DIR: ${RESULTS_DIR}" | ||
| echo "CARGO_COMMAND: ${CARGO_COMMAND}" | ||
| echo "PREFER_HASH_JOIN": ${PREFER_HASH_JOIN} | ||
| echo "PREFER_HASH_JOIN: ${PREFER_HASH_JOIN}" |
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.
👍
comphead
left a comment
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.
Thanks @eejbyfeldt I feel this PR is great.
This is a nice idea. Not sure about having another CI task though. |
Which issue does this PR close?
N/A
Rationale for this change
Many of the warnings produced by shellcheck are indications of bugs in the script that would break under certain circumstances.
What changes are included in this PR?
The following warnings was previously produced:
SC2006
SC2035
SC2045
SC2086
SC2140
SC2221 (SC2222)
Are these changes tested?
Manually running the script.
Are there any user-facing changes?
No.