-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Check report #1347
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
Check report #1347
Conversation
|
||
/** | ||
* OzoneACL classes define bucket ACLs used in OZONE. | ||
* |
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.
whitespace:end of line
|
||
|
||
#Collect of all of the FAILED results | ||
for dir in $(find "." -name surefire-reports); do |
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.
shellcheck:12: warning: For loops over find output are fragile. Use find -exec or a while read loop. [SC2044]
|
||
#Collect of all of the FAILED results | ||
for dir in $(find "." -name surefire-reports); do | ||
for file in $(grep -l -r FAILURE --include="*.txt" $dir | grep -v output.txt ); do |
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.
shellcheck:16: note: To read lines rather than words, pipe/redirect to a 'while read' loop. [SC2013]
shellcheck:55: note: Double quote to prevent globbing and word splitting. [SC2086]
#Collect of all of the FAILED results | ||
for dir in $(find "." -name surefire-reports); do | ||
for file in $(grep -l -r FAILURE --include="*.txt" $dir | grep -v output.txt ); do | ||
DIR_OF_TESTFILE=$(dirname $file) |
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.
shellcheck:33: note: Double quote to prevent globbing and word splitting. [SC2086]
for dir in $(find "." -name surefire-reports); do | ||
for file in $(grep -l -r FAILURE --include="*.txt" $dir | grep -v output.txt ); do | ||
DIR_OF_TESTFILE=$(dirname $file) | ||
NAME_OF_TESTFILE=$(basename $file) |
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.
shellcheck:35: note: Double quote to prevent globbing and word splitting. [SC2086]
DIR_OF_TESTFILE=$(dirname $file) | ||
NAME_OF_TESTFILE=$(basename $file) | ||
NAME_OF_TEST="${NAME_OF_TESTFILE%.*}" | ||
DESTDIRNAME=$(realpath --relative-to="$PWD" $DIR_OF_TESTFILE/../..) |
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.
shellcheck:51: note: Double quote to prevent globbing and word splitting. [SC2086]
NAME_OF_TEST="${NAME_OF_TESTFILE%.*}" | ||
DESTDIRNAME=$(realpath --relative-to="$PWD" $DIR_OF_TESTFILE/../..) | ||
mkdir -p "$REPORT_DIR/$DESTDIRNAME" | ||
cp -r "$DIR_OF_TESTFILE/"*$NAME_OF_TEST* "$REPORT_DIR/$DESTDIRNAME/" |
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.
shellcheck:33: note: Double quote to prevent globbing and word splitting. [SC2086]
printf " Failing tests: \n\n" > "$SUMMARY_FILE" | ||
for TEST_RESULT_FILE in $(find "$REPORT_DIR" -name "*.txt" | grep -v output); do | ||
|
||
FAILURES=$(cat $TEST_RESULT_FILE | grep FAILURE | grep "Tests run" | awk '{print $18}' | sort | uniq) |
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.
shellcheck:20: note: Double quote to prevent globbing and word splitting. [SC2086]
shellcheck:20: note: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. [SC2002]
FAILURES=$(cat $TEST_RESULT_FILE | grep FAILURE | grep "Tests run" | awk '{print $18}' | sort | uniq) | ||
|
||
for FAILURE in $FAILURES; do | ||
printf " $FAILURE\n" >> "$SUMMARY_FILE" |
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.
shellcheck:16: note: Don't use variables in the printf format string. Use printf "..%s.." "$foo". [SC2059]
|
||
for FAILURE in $FAILURES; do | ||
printf " $FAILURE\n" >> "$SUMMARY_FILE" | ||
TEST_RESULT_LOCATION=$(realpath --relative-to=$REPORT_DIR $TEST_RESULT_FILE) |
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.
shellcheck:55: note: Double quote to prevent globbing and word splitting. [SC2086]
shellcheck:67: note: Double quote to prevent globbing and word splitting. [SC2086]
for FAILURE in $FAILURES; do | ||
printf " $FAILURE\n" >> "$SUMMARY_FILE" | ||
TEST_RESULT_LOCATION=$(realpath --relative-to=$REPORT_DIR $TEST_RESULT_FILE) | ||
printf " (result)[./$TEST_RESULT_LOCATION]\n\n" >> "$SUMMARY_FILE" |
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.
shellcheck:16: note: Don't use variables in the printf format string. Use printf "..%s.." "$foo". [SC2059]
REPORT_DIR=${OUTPUT_DIR:-"$DIR/../../../target"} | ||
mkdir -p "$REPORT_DIR" | ||
|
||
source "$DIR/_mvn_unit_report.sh" |
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.
shellcheck:1: warning: Can't follow non-constant source. Use a directive to specify location. [SC1090]
|
||
REPORT_DIR=${OUTPUT_DIR:-"$DIR/../../../target"} | ||
mkdir -p "$REPORT_DIR" | ||
|
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.
shellcheck:1: warning: Can't follow non-constant source. Use a directive to specify location. [SC1090]
💔 -1 overall
This message was automatically generated. |
|
||
/** | ||
* OzoneACL classes define bucket ACLs used in OZONE. | ||
* |
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.
whitespace:end of line
|
||
|
||
#Collect of all of the FAILED results | ||
for dir in $(find "." -name surefire-reports); do |
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.
shellcheck:12: warning: For loops over find output are fragile. Use find -exec or a while read loop. [SC2044]
|
||
#Collect of all of the FAILED results | ||
for dir in $(find "." -name surefire-reports); do | ||
for file in $(grep -l -r FAILURE --include="*.txt" $dir | grep -v output.txt ); do |
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.
shellcheck:16: note: To read lines rather than words, pipe/redirect to a 'while read' loop. [SC2013]
shellcheck:55: note: Double quote to prevent globbing and word splitting. [SC2086]
#Collect of all of the FAILED results | ||
for dir in $(find "." -name surefire-reports); do | ||
for file in $(grep -l -r FAILURE --include="*.txt" $dir | grep -v output.txt ); do | ||
DIR_OF_TESTFILE=$(dirname $file) |
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.
shellcheck:33: note: Double quote to prevent globbing and word splitting. [SC2086]
for dir in $(find "." -name surefire-reports); do | ||
for file in $(grep -l -r FAILURE --include="*.txt" $dir | grep -v output.txt ); do | ||
DIR_OF_TESTFILE=$(dirname $file) | ||
NAME_OF_TESTFILE=$(basename $file) |
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.
shellcheck:35: note: Double quote to prevent globbing and word splitting. [SC2086]
DIR_OF_TESTFILE=$(dirname $file) | ||
NAME_OF_TESTFILE=$(basename $file) | ||
NAME_OF_TEST="${NAME_OF_TESTFILE%.*}" | ||
DESTDIRNAME=$(realpath --relative-to="$PWD" $DIR_OF_TESTFILE/../..) |
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.
shellcheck:51: note: Double quote to prevent globbing and word splitting. [SC2086]
NAME_OF_TEST="${NAME_OF_TESTFILE%.*}" | ||
DESTDIRNAME=$(realpath --relative-to="$PWD" $DIR_OF_TESTFILE/../..) | ||
mkdir -p "$REPORT_DIR/$DESTDIRNAME" | ||
cp -r "$DIR_OF_TESTFILE/"*$NAME_OF_TEST* "$REPORT_DIR/$DESTDIRNAME/" |
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.
shellcheck:33: note: Double quote to prevent globbing and word splitting. [SC2086]
printf " Failing tests: \n\n" > "$SUMMARY_FILE" | ||
for TEST_RESULT_FILE in $(find "$REPORT_DIR" -name "*.txt" | grep -v output); do | ||
|
||
FAILURES=$(cat $TEST_RESULT_FILE | grep FAILURE | grep "Tests run" | awk '{print $18}' | sort | uniq) |
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.
shellcheck:20: note: Double quote to prevent globbing and word splitting. [SC2086]
shellcheck:20: note: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. [SC2002]
FAILURES=$(cat $TEST_RESULT_FILE | grep FAILURE | grep "Tests run" | awk '{print $18}' | sort | uniq) | ||
|
||
for FAILURE in $FAILURES; do | ||
printf " $FAILURE\n" >> "$SUMMARY_FILE" |
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.
shellcheck:16: note: Don't use variables in the printf format string. Use printf "..%s.." "$foo". [SC2059]
|
||
for FAILURE in $FAILURES; do | ||
printf " $FAILURE\n" >> "$SUMMARY_FILE" | ||
TEST_RESULT_LOCATION=$(realpath --relative-to=$REPORT_DIR $TEST_RESULT_FILE) |
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.
shellcheck:55: note: Double quote to prevent globbing and word splitting. [SC2086]
shellcheck:67: note: Double quote to prevent globbing and word splitting. [SC2086]
for FAILURE in $FAILURES; do | ||
printf " $FAILURE\n" >> "$SUMMARY_FILE" | ||
TEST_RESULT_LOCATION=$(realpath --relative-to=$REPORT_DIR $TEST_RESULT_FILE) | ||
printf " (result)[./$TEST_RESULT_LOCATION]\n\n" >> "$SUMMARY_FILE" |
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.
shellcheck:16: note: Don't use variables in the printf format string. Use printf "..%s.." "$foo". [SC2059]
REPORT_DIR=${OUTPUT_DIR:-"$DIR/../../../target"} | ||
mkdir -p "$REPORT_DIR" | ||
|
||
source "$DIR/_mvn_unit_report.sh" |
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.
shellcheck:1: warning: Can't follow non-constant source. Use a directive to specify location. [SC1090]
|
||
REPORT_DIR=${OUTPUT_DIR:-"$DIR/../../../target"} | ||
mkdir -p "$REPORT_DIR" | ||
|
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.
shellcheck:1: warning: Can't follow non-constant source. Use a directive to specify location. [SC1090]
💔 -1 overall
This message was automatically generated. |
Ozone has been separated from Hadoop. Closing. |
No description provided.