Skip to content

Conversation

elek
Copy link
Member

@elek elek commented Aug 24, 2019

No description provided.


/**
* OzoneACL classes define bucket ACLs used in OZONE.
*

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

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

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)

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)

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/../..)

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/"

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)

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"

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)

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"

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"

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"

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]

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 43 Docker mode activated.
_ Prechecks _
+1 dupname 4 No case conflicting files found.
0 shelldocs 0 Shelldocs was not available.
0 @author 0 Skipping @author checks as author.sh has been patched.
+1 test4tests 0 The patch appears to include 46 new or modified test files.
_ trunk Compile Tests _
0 mvndep 28 Maven dependency ordering for branch
+1 mvninstall 625 trunk passed
+1 compile 400 trunk passed
+1 checkstyle 84 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 803 branch has no errors when building and testing our client artifacts.
+1 javadoc 178 trunk passed
0 spotbugs 476 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 700 trunk passed
_ Patch Compile Tests _
0 mvndep 42 Maven dependency ordering for patch
+1 mvninstall 562 the patch passed
+1 compile 405 the patch passed
+1 javac 107 hadoop-hdds in the patch passed.
+1 javac 298 hadoop-ozone generated 0 new + 5 unchanged - 3 fixed = 5 total (was 8)
-0 checkstyle 46 hadoop-ozone: The patch generated 4 new + 0 unchanged - 0 fixed = 4 total (was 0)
+1 mvnsite 0 the patch passed
-1 shellcheck 2 The patch generated 15 new + 0 unchanged - 0 fixed = 15 total (was 0)
-1 whitespace 0 The patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 xml 8 The patch has no ill-formed XML file.
+1 shadedclient 696 patch has no errors when building and testing our client artifacts.
-1 javadoc 95 hadoop-ozone generated 1 new + 27 unchanged - 1 fixed = 28 total (was 28)
+1 findbugs 729 the patch passed
_ Other Tests _
-1 unit 323 hadoop-hdds in the patch failed.
-1 unit 61 hadoop-ozone in the patch failed.
+1 asflicense 41 The patch does not generate ASF License warnings.
6264
Reason Tests
Failed junit tests hadoop.hdds.scm.block.TestBlockManager
hadoop.ozone.TestOmUtils
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/1/artifact/out/Dockerfile
GITHUB PR #1347
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle xml shellcheck shelldocs
uname Linux 9081334c6268 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / d2225c8
Default Java 1.8.0_222
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/1/artifact/out/diff-checkstyle-hadoop-ozone.txt
shellcheck https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/1/artifact/out/diff-patch-shellcheck.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/1/artifact/out/whitespace-eol.txt
javadoc https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/1/artifact/out/diff-javadoc-javadoc-hadoop-ozone.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/1/artifact/out/patch-unit-hadoop-hdds.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/1/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/1/testReport/
Max. process+thread count 488 (vs. ulimit of 5500)
modules C: hadoop-hdds/common hadoop-ozone hadoop-ozone/client hadoop-ozone/common hadoop-ozone/datanode hadoop-ozone/dist hadoop-ozone/integration-test hadoop-ozone/ozone-manager hadoop-ozone/ozonefs hadoop-ozone/s3gateway hadoop-ozone/tools U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/1/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.4.6 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.


/**
* OzoneACL classes define bucket ACLs used in OZONE.
*

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

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

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)

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)

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/../..)

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/"

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)

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"

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)

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"

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"

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"

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]

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 43 Docker mode activated.
_ Prechecks _
+1 dupname 6 No case conflicting files found.
0 shelldocs 0 Shelldocs was not available.
0 @author 0 Skipping @author checks as author.sh has been patched.
+1 test4tests 0 The patch appears to include 46 new or modified test files.
_ trunk Compile Tests _
0 mvndep 479 Maven dependency ordering for branch
+1 mvninstall 820 trunk passed
+1 compile 395 trunk passed
+1 checkstyle 100 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 777 branch has no errors when building and testing our client artifacts.
+1 javadoc 193 trunk passed
0 spotbugs 424 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 632 trunk passed
_ Patch Compile Tests _
0 mvndep 48 Maven dependency ordering for patch
+1 mvninstall 532 the patch passed
+1 compile 391 the patch passed
+1 javac 112 hadoop-hdds in the patch passed.
+1 javac 279 hadoop-ozone generated 0 new + 5 unchanged - 3 fixed = 5 total (was 8)
-0 checkstyle 52 hadoop-ozone: The patch generated 4 new + 0 unchanged - 0 fixed = 4 total (was 0)
+1 mvnsite 0 the patch passed
-1 shellcheck 1 The patch generated 15 new + 0 unchanged - 0 fixed = 15 total (was 0)
-1 whitespace 0 The patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 xml 7 The patch has no ill-formed XML file.
+1 shadedclient 694 patch has no errors when building and testing our client artifacts.
-1 javadoc 101 hadoop-ozone generated 1 new + 26 unchanged - 1 fixed = 27 total (was 27)
+1 findbugs 633 the patch passed
_ Other Tests _
+1 unit 319 hadoop-hdds in the patch passed.
-1 unit 67 hadoop-ozone in the patch failed.
+1 asflicense 54 The patch does not generate ASF License warnings.
6791
Reason Tests
Failed junit tests hadoop.ozone.TestOmUtils
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/2/artifact/out/Dockerfile
GITHUB PR #1347
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle xml shellcheck shelldocs
uname Linux a84be8aa2abd 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / b69ac57
Default Java 1.8.0_222
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/2/artifact/out/diff-checkstyle-hadoop-ozone.txt
shellcheck https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/2/artifact/out/diff-patch-shellcheck.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/2/artifact/out/whitespace-eol.txt
javadoc https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/2/artifact/out/diff-javadoc-javadoc-hadoop-ozone.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/2/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/2/testReport/
Max. process+thread count 484 (vs. ulimit of 5500)
modules C: hadoop-hdds/common hadoop-ozone hadoop-ozone/client hadoop-ozone/common hadoop-ozone/datanode hadoop-ozone/dist hadoop-ozone/integration-test hadoop-ozone/ozone-manager hadoop-ozone/ozonefs hadoop-ozone/s3gateway hadoop-ozone/tools U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1347/2/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.4.6 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@aajisaka
Copy link
Member

Ozone has been separated from Hadoop. Closing.

@aajisaka aajisaka closed this Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants