Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1800

Result of author check is inverted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.1
    • None
    • Done

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m