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-1800. Result of author check is inverted #1092

Closed
wants to merge 2 commits into from

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Fix:

  1. author check fails when no violations are found
  2. author check violations are duplicated in the output

Eg. https://ci.anzix.net/job/ozone-nightly/173/consoleText says that:

The following tests are FAILED:

[author]: author check is failed (https://ci.anzix.net/job/ozone-nightly/173//artifact/build/author.out/*view*/)

but no actual @author tags were found:

$ curl -s 'https://ci.anzix.net/job/ozone-nightly/173//artifact/build/author.out/*view*/' | wc
       0       0       0

How was this patch tested?

$ bash -o pipefail -c 'hadoop-ozone/dev-support/checks/author.sh | tee build/author.out'; echo $?
0

$ wc build/author.out
       0       0       0 build/author.out

$ echo '// @author Tolkien' >> hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/BucketManager.java

$ bash -o pipefail -c 'hadoop-ozone/dev-support/checks/author.sh | tee build/author.out'; echo $?
./hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/BucketManager.java:// @author Tolkien
1

$ wc build/author.out
       1       3     108 build/author.out

@adoroszlai
Copy link
Contributor Author

/label ozone

@elek elek added the ozone label Jul 15, 2019
@adoroszlai
Copy link
Contributor Author

@elek please review

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 39 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
0 shelldocs 1 Shelldocs was not available.
0 @author 0 Skipping @author checks as author.sh has been patched.
-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 550 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 804 branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 mvninstall 484 the patch passed
+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 682 patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 unit 103 hadoop-hdds in the patch passed.
+1 unit 179 hadoop-ozone in the patch passed.
+1 asflicense 39 The patch does not generate ASF License warnings.
3076
Subsystem Report/Notes
Docker Client=18.09.7 Server=18.09.7 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1092/1/artifact/out/Dockerfile
GITHUB PR #1092
Optional Tests dupname asflicense mvnsite unit shellcheck shelldocs
uname Linux d4fd95ae4ab3 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 18ee109
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1092/1/testReport/
Max. process+thread count 411 (vs. ulimit of 5500)
modules C: hadoop-ozone U: hadoop-ozone
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1092/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
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 fix @adoroszlai

But I would prefer to commit it under a separated issue number. I created https://issues.apache.org/jira/browse/HDDS-1800 to use.

@adoroszlai adoroszlai changed the title HDDS-1735. Result of author check is inverted HDDS-1800. Result of author check is inverted Jul 15, 2019
@elek elek closed this in 61bbdee Jul 15, 2019
elek pushed a commit that referenced this pull request Jul 15, 2019
@adoroszlai adoroszlai deleted the HDDS-1735 branch July 25, 2019 16:16
shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
… to ms instead of ns (apache#1092)

* Making container-startup-time a gauge. It is currently a timer.
* Using long-gauge for container-startup-time
* Converting startup time to millis
amahussein pushed a commit to amahussein/hadoop that referenced this pull request Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants