GitHub user 1ambda opened a pull request:

    https://github.com/apache/zeppelin/pull/1648

    [ZEPPELIN-1673] CI Test should not fail due to maven log

    ### What is this PR for?
    
    Sometimes build fails due to log size for example, 
    
    {code}
    Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - 
in org.apache.zeppelin.ticket.TicketContainerTest
    Running org.apache.zeppelin.security.SecurityUtilsTest
    
    
    The log length has exceeded the limit of 4 MB (this usually means that the 
test suite is raising the same exception over and over).
    
    The job has been terminated
    {code}
    
    we can prevent this kind of failure by removing useless maven log such as 
    
    {code}
    [INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/2.13/maven-checkstyle-plugin-2.13.pom
 (13 KB at 1233.1 KB/sec)
    [INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/2.13/maven-checkstyle-plugin-2.13.jar
    [INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/2.13/maven-checkstyle-plugin-2.13.jar
 (112 KB at 4858.2 KB/sec)
    [INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.7/maven-resources-plugin-2.7.pom
    [INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.7/maven-resources-plugin-2.7.pom
 (8 KB at 627.2 KB/sec)
    [INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.7/maven-resources-plugin-2.7.jar
    [INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.7/maven-resources-plugin-2.7.jar
 (31 KB at 2048.3 KB/sec)
    [INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom
    [INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom
 (12 KB at 860.4 KB/sec)
    [INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.jar
    [INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.jar
 (150 KB at 5342.7 KB/sec)
    {code}
    
    {code}
    $  CI cat 176445046.log | grep Download | wc -l
        7044
    $  CI cat 176445046.log | wc -l
       38046
    $  CI cat 176445046.log| grep -v Download > filtered.log
    $  CI ls -alh
    total 7.7M
    drwxr-xr-x  4 lambda staff  136 Nov 17 02:50 .
    drwxr-xr-x 13 lambda staff  442 Nov 17 02:49 ..
    -rw-r--r--  1 lambda staff 4.3M Nov 17 02:49 176445046.log
    -rw-r--r--  1 lambda staff 3.4M Nov 17 02:50 filtered.log
    {code}
    
    ### What type of PR is it?
    [Improvement]
    
    ### What is the Jira issue?
    
    [ZEPPELIN-1673](https://issues.apache.org/jira/browse/ZEPPELIN-1673)
    
    ### How should this be tested?
    
    Checkout CI log and see if there are `Downloading` `Downloaded` log
    
    (see also https://api.travis-ci.org/jobs/176445045/log.txt?deansi=true)
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? - NO
    * Is there breaking changes for older versions? - NO
    * Does this needs documentation? - NO
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/1ambda/zeppelin feat-improve-ci

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/1648.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1648
    
----
commit 06c006eff45a3525cd82f261ad1c8b0537d7d277
Author: 1ambda <1am...@gmail.com>
Date:   2016-11-16T17:59:02Z

    fix: Disable download INFO log

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to