Skip to content

HDDS-1628. Fix the execution and return code of smoketest executor shell script #902

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

Closed
wants to merge 2 commits into from

Conversation

elek
Copy link
Member

@elek elek commented Jun 4, 2019

Problem: Some of the smoketest executions were reported to green even if they contained failed tests.

Root cause: the legacy test executor (hadoop-ozone/dist/src/main/smoketest/test.sh) which just calls the new executor script (hadoop-ozone/dist/src/main/compose/test-all.sh) didn't handle the return code well (the failure of the smoketests should be signalled by the bash return code)

This patch:

  • Fixes the error code handling in smoketest/test.sh
  • Fixes the test execution in compose/test-all.sh (should work from any other directories)
  • Updates hadoop-ozone/dev-support/checks/acceptance.sh to use the newer test-all.sh executor instead of the old one.

See: https://issues.apache.org/jira/browse/HDDS-1628

@elek elek added the ozone label Jun 4, 2019
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 1390 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
0 shelldocs 0 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 _
0 mvndep 135 Maven dependency ordering for branch
+1 mvninstall 727 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 1115 branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
0 mvndep 34 Maven dependency ordering for patch
+1 mvninstall 617 the patch passed
+1 mvnsite 0 the patch passed
-1 shellcheck 0 The patch generated 1 new + 1 unchanged - 0 fixed = 2 total (was 1)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 852 patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 unit 121 hadoop-hdds in the patch passed.
+1 unit 254 hadoop-ozone in the patch passed.
+1 asflicense 70 The patch does not generate ASF License warnings.
5588
Subsystem Report/Notes
Docker Client=18.09.5 Server=18.09.5 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-902/1/artifact/out/Dockerfile
GITHUB PR #902
Optional Tests dupname asflicense mvnsite unit shellcheck shelldocs
uname Linux fdec2b2a02dd 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 7991159
shellcheck https://builds.apache.org/job/hadoop-multibranch/job/PR-902/1/artifact/out/diff-patch-shellcheck.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-902/1/testReport/
Max. process+thread count 294 (vs. ulimit of 5500)
modules C: hadoop-ozone hadoop-ozone/dist U: hadoop-ozone
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-902/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.

Copy link
Contributor

@xiaoyuyao xiaoyuyao left a comment

Choose a reason for hiding this comment

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

Change LGTM, +1. Please fix the shellcheck while committing it. Thanks!

@elek
Copy link
Member Author

elek commented Jun 5, 2019

Thanks the review @xiaoyuyao

I am merging it to the trunk (shellcheck is fixed)

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 128 Docker mode activated.
-1 patch 14 #902 does not apply to trunk. Rebase required? Wrong Branch? See https://wiki.apache.org/hadoop/HowToContribute for help.
Subsystem Report/Notes
Docker Client=18.09.5 Server=18.09.5 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-902/2/artifact/out/Dockerfile
GITHUB PR #902
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-902/2/console
versions git=2.7.4
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@elek elek closed this in 42cd861 Jun 5, 2019
shanthoosh added a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
SAMZA-2095: Update timeout for flaky test ZK connection test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants