-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-46726: [CI][Dev] fix shellcheck errors in the ci/scripts/conan_build.sh #46727
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
|
|
|
@github-actions crossbow submit -g conan |
ci/scripts/conan_build.sh
Outdated
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.
| conan_args+=(--options arrow/*:parquet="${ARROW_CONAN_PARQUET}") | |
| conan_args+=(--options "arrow/*:parquet=${ARROW_CONAN_PARQUET}") |
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 want to double check just in case.
Does the '*' character is just the character not a wildcard character ?
And suggested change means not only parquet but also with_thrift and with_boost too?
conan_args+=(--options "arrow/*:parquet=${ARROW_CONAN_PARQUET}")
conan_args+=(--options "arrow/*:with_thrift=${ARROW_CONAN_PARQUET}")
conan_args+=(--options "arrow/*:with_boost=${ARROW_CONAN_PARQUET}")
and the rest of belows
if [ -n "${ARROW_CONAN_WITH_GLOG:-}" ]; then
conan_args+=(--options arrow/*:with_glog="${ARROW_CONAN_WITH_GLOG}")
fi
if [ -n "${ARROW_CONAN_WITH_JEMALLOC:-}" ]; then
conan_args+=(--options arrow/*:with_jemalloc="${ARROW_CONAN_WITH_JEMALLOC}")
fi
if [ -n "${ARROW_CONAN_WITH_JSON:-}" ]; then
conan_args+=(--options arrow/*:with_json="${ARROW_CONAN_WITH_JSON}")
fi
if [ -n "${ARROW_CONAN_WITH_LZ4:-}" ]; then
conan_args+=(--options arrow/*:with_lz4="${ARROW_CONAN_WITH_LZ4}")
fi
if [ -n "${ARROW_CONAN_WITH_SNAPPY:-}" ]; then
conan_args+=(--options arrow/*:with_snappy="${ARROW_CONAN_WITH_SNAPPY}")
fi
if [ -n "${ARROW_CONAN_WITH_ZSTD:-}" ]; then
conan_args+=(--options arrow/*:with_zstd="${ARROW_CONAN_WITH_ZSTD}")
fi
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.
Yes.
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! done.
|
Revision: 07e75ebc00bbce24557c3f5a90ca0974eaea03f3 Submitted crossbow builds: ursacomputing/crossbow @ actions-fad6f67540
|
|
It seems that https://github.com/ursacomputing/crossbow/actions/runs/15484349076/job/43595828887#step:6:1006 |
|
Let's fix the failure before this. |
|
Thanks. I reverted all commits for testing conan-minimum build failure. After resolve build failure I will modify quote again. |
|
@github-actions crossbow submit -g conan |
|
Revision: c488ecb40159bde7a0cdb5d7f35aaf1dc0bfafcd Submitted crossbow builds: ursacomputing/crossbow @ actions-e4ffbae60d
|
|
conan-minimum build failure unrelated this change. |
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
…ipts/conan_build.sh" This reverts commit 07e75ebc00bbce24557c3f5a90ca0974eaea03f3~1..
…ripts/conan_build.sh" This reverts commit c488ecb40159bde7a0cdb5d7f35aaf1dc0bfafcd.
7bd880b to
c87a7f6
Compare
|
@github-actions crossbow submit -g conan |
|
Revision: c87a7f6 Submitted crossbow builds: ursacomputing/crossbow @ actions-ea3a3a556d
|
|
@kou crossbow passed. Please take a look when you get a chance. |
kou
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.
+1
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit f6bc089. There were 68 benchmark results with an error:
There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 146 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…an_build.sh (apache#46727) ### Rationale for this change This is the sub issue apache#44748. * SC2046 -- Quote this to prevent word splitt... * SC2206 -- Quote to prevent word splitting/g... * SC2086 -- Double quote to prevent globbing ... ``` In ci/scripts/conan_build.sh line 32: conan_args+=(--options arrow/*:parquet=${ARROW_CONAN_PARQUET}) ^--------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 33: conan_args+=(--options arrow/*:with_thrift=${ARROW_CONAN_PARQUET}) ^--------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 34: conan_args+=(--options arrow/*:with_boost=${ARROW_CONAN_PARQUET}) ^--------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 37: conan_args+=(--options arrow/*:with_brotli=${ARROW_CONAN_WITH_BROTLI}) ^------------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 40: conan_args+=(--options arrow/*:with_bz2=${ARROW_CONAN_WITH_BZ2}) ^---------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 43: conan_args+=(--options arrow/*:with_flight_rpc=${ARROW_CONAN_WITH_FLIGHT_RPC}) ^----------------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 44: conan_args+=(--options arrow/*:with_grpc=${ARROW_CONAN_WITH_FLIGHT_RPC}) ^----------------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 45: conan_args+=(--options arrow/*:with_protobuf=${ARROW_CONAN_WITH_FLIGHT_RPC}) ^----------------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 46: conan_args+=(--options arrow/*:with_re2=${ARROW_CONAN_WITH_FLIGHT_RPC}) ^----------------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 49: conan_args+=(--options arrow/*:with_glog=${ARROW_CONAN_WITH_GLOG}) ^----------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 52: conan_args+=(--options arrow/*:with_jemalloc=${ARROW_CONAN_WITH_JEMALLOC}) ^--------------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 55: conan_args+=(--options arrow/*:with_json=${ARROW_CONAN_WITH_JSON}) ^----------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 58: conan_args+=(--options arrow/*:with_lz4=${ARROW_CONAN_WITH_LZ4}) ^---------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 61: conan_args+=(--options arrow/*:with_snappy=${ARROW_CONAN_WITH_SNAPPY}) ^------------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 64: conan_args+=(--options arrow/*:with_zstd=${ARROW_CONAN_WITH_ZSTD}) ^----------------------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 67: version=$(grep '^set(ARROW_VERSION ' ${ARROW_HOME}/cpp/CMakeLists.txt | \ ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: version=$(grep '^set(ARROW_VERSION ' "${ARROW_HOME}"/cpp/CMakeLists.txt | \ In ci/scripts/conan_build.sh line 69: conan_args+=(--version ${version}) ^--------^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In ci/scripts/conan_build.sh line 72: rm -rf ${build_dir}/conan || sudo rm -rf ${build_dir}/conan ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm -rf "${build_dir}"/conan || sudo rm -rf "${build_dir}"/conan In ci/scripts/conan_build.sh line 73: mkdir -p ${build_dir}/conan || sudo mkdir -p ${build_dir}/conan ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mkdir -p "${build_dir}"/conan || sudo mkdir -p "${build_dir}"/conan In ci/scripts/conan_build.sh line 74: if [ -w ${build_dir} ]; then ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ -w "${build_dir}" ]; then In ci/scripts/conan_build.sh line 75: cp -a ${source_dir}/ci/conan/* ${build_dir}/conan/ ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: cp -a "${source_dir}"/ci/conan/* "${build_dir}"/conan/ In ci/scripts/conan_build.sh line 77: sudo cp -a ${source_dir}/ci/conan/* ${build_dir}/conan/ ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sudo cp -a "${source_dir}"/ci/conan/* "${build_dir}"/conan/ In ci/scripts/conan_build.sh line 78: sudo chown -R $(id -u):$(id -g) ${build_dir}/conan/ ^------^ SC2046 (warning): Quote this to prevent word splitting. ^------^ SC2046 (warning): Quote this to prevent word splitting. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sudo chown -R $(id -u):$(id -g) "${build_dir}"/conan/ In ci/scripts/conan_build.sh line 80: cd ${build_dir}/conan/all ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: cd "${build_dir}"/conan/all For more information: https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt... https://www.shellcheck.net/wiki/SC2206 -- Quote to prevent word splitting/g... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... ``` ### What changes are included in this PR? Add quote like `"${ARROW_CONAN_PARQUET}"` ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: apache#46726 Lead-authored-by: Hiroyuki Sato <hiroysato@gmail.com> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Rationale for this change
This is the sub issue #44748.
What changes are included in this PR?
Add quote like
"${ARROW_CONAN_PARQUET}"Are these changes tested?
Yes.
Are there any user-facing changes?
No.