github-actions[bot] commented on PR #14436:
URL: https://github.com/apache/doris/pull/14436#issuecomment-1321527356
#### `sh-checker report`
To get the full details, please check in the
[job]("https://github.com/apache/doris/actions/runs/3512047361") output.
<details>
<summary>shellcheck errors</summary>
```
'shellcheck ' returned error 2 finding the following syntactical issues:
----------
docker/runtime/fe/resource/run_fe.sh: <stdout>: commitBuffer: invalid
argument (invalid character)
In docker/runtime/be/Dockerfile line 27:
ADD ./resource/apache-doris-be-"${x.x.x}"-bin-x86_64.tar.gz /opt/
^------^ SC2154 (warning): x is referenced
but not assigned.
In docker/runtime/be/resource/run_be.sh line 54:
feServerArray=(${FE_SERVERS})
^-----------^ SC2206 (warning): Quote to prevent word
splitting/globbing, or split robustly with mapfile or read -a.
In docker/runtime/be/resource/run_be.sh line 60:
tmpFeId=$(echo $val | awk -F ':' '{ sub(/fe/, ""); sub(/ /, "");
print$1}')
^--^ SC2086 (info): Double quote to prevent globbing and
word splitting.
^--^ SC2250 (style): Prefer putting braces around
variable references even when not strictly required.
Did you mean:
tmpFeId=$(echo "$val" | awk -F ':' '{ sub(/fe/, ""); sub(/ /, "");
print$1}')
In docker/runtime/be/resource/run_be.sh line 61:
tmpFeIp=$(echo $val | awk -F ':' '{ sub(/ /, ""); print$2}')
^--^ SC2086 (info): Double quote to prevent globbing and
word splitting.
^--^ SC2250 (style): Prefer putting braces around
variable references even when not strictly required.
Did you mean:
tmpFeIp=$(echo "$val" | awk -F ':' '{ sub(/ /, ""); print$2}')
In docker/runtime/be/resource/run_be.sh line 62:
tmpFeEditLogPort=$(echo $val | awk -F ':' '{ sub(/ /, ""); print$3}')
^--^ SC2086 (info): Double quote to prevent
globbing and word splitting.
^--^ SC2250 (style): Prefer putting braces
around variable references even when not strictly required.
Did you mean:
tmpFeEditLogPort=$(echo "$val" | awk -F ':' '{ sub(/ /, ""); print$3}')
In docker/runtime/be/resource/run_be.sh line 68:
be_ip=$(echo ${BE_ADDR} | awk -F ':' '{ sub(/ /, ""); print$1}')
^--------^ SC2086 (info): Double quote to prevent globbing and
word splitting.
Did you mean:
be_ip=$(echo "${BE_ADDR}" | awk -F ':' '{ sub(/ /, ""); print$1}')
In docker/runtime/be/resource/run_be.sh line 69:
be_heartbeat_port=$(echo ${BE_ADDR} | awk -F ':' '{ sub(/ /, ""); print$2}')
^--------^ SC2086 (info): Double quote to prevent
globbing and word splitting.
Did you mean:
be_heartbeat_port=$(echo "${BE_ADDR}" | awk -F ':' '{ sub(/ /, "");
print$2}')
In docker/runtime/be/resource/run_be.sh line 76:
priority_networks=$(echo ${be_ip} | awk -F '.' '{print$1"."$2"."$3".0/24"}')
^------^ SC2086 (info): Double quote to prevent
globbing and word splitting.
Did you mean:
priority_networks=$(echo "${be_ip}" | awk -F '.'
'{print$1"."$2"."$3".0/24"}')
In docker/runtime/be/resource/run_be.sh line 80:
registerMySQL=$(echo "mysql -uroot -P9030 -h${feIpArray[1]} -e" "\"alter
system add backend '${be_ip}:${be_heartbeat_port}'\"")
^-- SC2116 (style): Useless echo? Instead of 'cmd $(echo
foo)', just use 'cmd foo'.
In docker/runtime/be/resource/run_be.sh line 88:
echo "DEBUG >>>>>> The " "$i" "time to register BE node,
be_join_status=${be_join_status}"
^-- SC2250 (style): Prefer putting braces
around variable references even when not strictly required.
Did you mean:
echo "DEBUG >>>>>> The " "${i}" "time to register BE node,
be_join_status=${be_join_status}"
In docker/runtime/be/resource/run_be.sh line 98:
eval ${registerShell}
^--------------^ SC2248 (style): Prefer double quoting even
when variables don't contain special characters.
Did you mean:
eval "${registerShell}"
In docker/runtime/be/resource/run_be.sh line 102:
eval ${registerMySQL}
^--------------^ SC2086 (info): Double quote to prevent
globbing and word splitting.
Did you mean:
eval "${registerMySQL}"
In docker/runtime/fe/Dockerfile line 27:
ADD ./resource/apache-doris-fe-"${x.x.x}"-bin.tar.gz /opt/
^------^ SC2154 (warning): x is referenced
but not assigned.
In docker/runtime/fe/resource/run_fe.sh line 53:
feServerArray=(${FE_SERVERS})
^-----------^ SC2206 (warning): Quote to prevent word
splitting/globbing, or split robustly with mapfile or read -a.
In docker/runtime/fe/resource/run_fe.sh line 59:
tmpFeId=$(echo "$val" | awk -F ':' '{ sub(/fe/, ""); sub(/ /, "");
print$1}')
^--^ SC2250 (style): Prefer putting braces around
variable references even when not strictly required.
Did you mean:
tmpFeId=$(echo "${val}" | awk -F ':' '{ sub(/fe/, ""); sub(/ /, "");
print$1}')
In docker/runtime/fe/resource/run_fe.sh line 60:
tmpFeIp=$(echo "$val" | awk -F ':' '{ sub(/ /, ""); print$2}')
^--^ SC2250 (style): Prefer putting braces around
variable references even when not strictly required.
Did you mean:
tmpFeIp=$(echo "${val}" | awk -F ':' '{ sub(/ /, ""); print$2}')
In docker/runtime/fe/resource/run_fe.sh line 61:
tmpFeEditLogPort=$(echo "$val" | awk -F ':' '{ sub(/ /, ""); print$3}')
^--^ SC2250 (style): Prefer putting braces
around variable references even when not strictly required.
Did you mean:
tmpFeEditLogPort=$(echo "${val}" | awk -F ':' '{ sub(/ /, ""); print$3}')
In docker/runtime/fe/resource/run_fe.sh line 89:
registerMySQL=$(echo "mysql -uroot -P9030 -h${feIpArray[1]} -e" "\"alter
system add follower '${feIpArray[FE_ID]}:${feEditLogPortArray[FE_ID]}'\"")
^-- SC2116 (style): Useless echo? Instead of 'cmd $(echo
foo)', just use 'cmd foo'.
In docker/runtime/fe/resource/run_fe.sh line 97:
echo "DEBUG >>>>>> feMasterStat = For more information:
https://www.shellcheck.net/wiki/SC2027 -- The surrounding quotes actually
u...
https://www.shellcheck.net/wiki/SC2154 -- x is referenced but not assigned.
https://www.shellcheck.net/wiki/SC2206 -- Quote to prevent word
splitting/g...
----------
You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
# shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.
```
</details>
<details>
<summary>shfmt errors</summary>
```
'shfmt ' returned error 1 finding the following formatting issues:
----------
docker/runtime/be/Dockerfile:27:35: invalid parameter name
docker/runtime/fe/Dockerfile:27:35: invalid parameter name
----------
You can reformat the above files to meet shfmt's requirements by typing:
shfmt -w filename
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]