github-actions[bot] commented on PR #20716:
URL: https://github.com/apache/doris/pull/20716#issuecomment-1628628143

   #### `sh-checker report`
   
   To get the full details, please check in the 
[job]("https://github.com/apache/doris/actions/runs/5506697412";) output.
   
   <details>
   <summary>shellcheck errors</summary>
   
   ```
   
   'shellcheck ' returned error 1 finding the following syntactical issues:
   
   ----------
   
   In minidump/nereids_ut.sh line 172:
           ${JAVA} "${final_java_opt}" -Xmx2g 
org.apache.doris.nereids.minidump.Minidump "${dir}" "${OPT_VERSION}" "$@" > 
"${temp_file}"        result=$(cat "${temp_file}")
                                                                                
                                          ^------------^ SC2094 (info): Make 
sure not to read and write the same file in the same pipeline.
                                                                                
                                                                       
^-------------------^ SC2046 (warning): Quote this to prevent word splitting.
                                                                                
                                                                             
^------------^ SC2094 (info): Make sure not to read and write the same file in 
the same pipeline.
   
   For more information:
     https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word 
splitt...
     https://www.shellcheck.net/wiki/SC2094 -- Make sure not to read and write 
t...
   ----------
   
   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:
   
   ----------
   --- minidump/nereids_ut.sh.orig
   +++ minidump/nereids_ut.sh
   @@ -169,7 +169,7 @@
        if [[ -d "${dir}" ]]; then # Check if the path is a directory
            query_id=${dir: -33}
            temp_file=${LOG_DIR}/temp
   -        ${JAVA} "${final_java_opt}" -Xmx2g 
org.apache.doris.nereids.minidump.Minidump "${dir}" "${OPT_VERSION}" "$@" > 
"${temp_file}"        result=$(cat "${temp_file}")
   +        ${JAVA} "${final_java_opt}" -Xmx2g 
org.apache.doris.nereids.minidump.Minidump "${dir}" "${OPT_VERSION}" "$@" 
result=$(cat "${temp_file}") >"${temp_file}"
            echo "${query_id_head} ${query_id} ${sql_head} ${result}" | tee 
>>"${LOG_DIR}/minidump.out"
        fi
    done
   ----------
   
   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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to