Skip to content
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

HDDS-2265. integration.sh may report false negative #1608

Closed
wants to merge 1 commit into from

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Check if Maven was killed during test run (observable in integration test runs). If so, mention it in summary.txt. Non-empty summary.txt is handled as "failure".

https://issues.apache.org/jira/browse/HDDS-2265

How was this patch tested?

Tested both positive and negative case:

  1. successful run, summary.txt remains empty
  2. manually killed mvn process, verified that summary.txt contains the expected line

@adoroszlai
Copy link
Contributor Author

/label ozone

@elek elek added the ozone label Oct 7, 2019
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 82 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
0 shelldocs 1 Shelldocs was not available.
+1 @author 0 The patch does not contain any @author tags.
-1 test4tests 0 The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
-1 mvninstall 51 hadoop-hdds in trunk failed.
-1 mvninstall 43 hadoop-ozone in trunk failed.
+1 mvnsite 0 trunk passed
+1 shadedclient 1006 branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
-1 mvninstall 43 hadoop-hdds in the patch failed.
-1 mvninstall 44 hadoop-ozone in the patch failed.
+1 mvnsite 0 the patch passed
+1 shellcheck 0 There were no new shellcheck issues.
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 862 patch has no errors when building and testing our client artifacts.
_ Other Tests _
-1 unit 27 hadoop-hdds in the patch failed.
-1 unit 29 hadoop-ozone in the patch failed.
+1 asflicense 36 The patch does not generate ASF License warnings.
2368
Subsystem Report/Notes
Docker Client=19.03.2 Server=19.03.2 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1608/1/artifact/out/Dockerfile
GITHUB PR #1608
Optional Tests dupname asflicense mvnsite unit shellcheck shelldocs
uname Linux 0d929d98df52 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 / 7f332eb
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1608/1/artifact/out/branch-mvninstall-hadoop-hdds.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1608/1/artifact/out/branch-mvninstall-hadoop-ozone.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1608/1/artifact/out/patch-mvninstall-hadoop-hdds.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1608/1/artifact/out/patch-mvninstall-hadoop-ozone.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1608/1/artifact/out/patch-unit-hadoop-hdds.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1608/1/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1608/1/testReport/
Max. process+thread count 335 (vs. ulimit of 5500)
modules C: hadoop-ozone U: hadoop-ozone
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1608/1/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.4.6
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@adoroszlai
Copy link
Contributor Author

@elek please review (let me know if I should retest until we hit the case when integration test gets killed)

@@ -45,6 +45,11 @@ grep -A1 'Crashed tests' "${REPORT_DIR}/output.log" \
| cut -f2- -d' ' \
| sort -u >> "${REPORT_DIR}/summary.txt"

## Check if Maven was killed
if grep -q 'Killed.* mvn .* test ' "${REPORT_DIR}/output.log"; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we are presuming that Killed will never be used by a test? :) I am fine with that.
+1. LGTM.

Copy link
Member

@elek elek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Thanks the contribution @adoroszlai

Later we can improve it to collect all of the test names which are failing, but it's good enough to show the "JVM crash" type failures.

@elek elek closed this in 2d81abc Oct 9, 2019
@adoroszlai adoroszlai deleted the HDDS-2265 branch October 9, 2019 14:43
@adoroszlai
Copy link
Contributor Author

Thanks @anuengineer and @elek for reviewing, and @elek for committing it.

amahussein pushed a commit to amahussein/hadoop that referenced this pull request Oct 29, 2019
RogPodge pushed a commit to RogPodge/hadoop that referenced this pull request Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants