[ 
https://issues.apache.org/jira/browse/HADOOP-19707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022929#comment-18022929
 ] 

ASF GitHub Bot commented on HADOOP-19707:
-----------------------------------------

MikaelSmith opened a new pull request, #7998:
URL: https://github.com/apache/hadoop/pull/7998

   ### Description of PR
   
   Adds the `quiet-surefire` profile to set enableOutErrElements=false for 
maven-surefire-plugin. This restores the behavior prior to Surefire 3.3 that 
stdout/stderr are not included in the TEST-<package>.<class>.xml file for 
passing tests. The newer default behavior results in much larger TEST-*.xml 
files that can be a problem for CI tools processing them.
   
   ### How was this patch tested?
   
   Ran `mvn clean test -Dtest=TestHttpServer` and `mvn clean test 
-Dtest=TestHttpServer -Pquiet-surefire` and compared size and contents of 
hadoop-common-project/hadoop-common/target/surefire-reports/TEST-org.apache.hadoop.http.TestHttpServer.xml.
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   




> Surefire upgrade leads to increased report output, can cause Jenkins OOM
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-19707
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19707
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 3.5.0
>            Reporter: Michael Smith
>            Assignee: Michael Smith
>            Priority: Major
>
> The Surefire upgrade to 3.3+ added enableOutErrElements which defaults to 
> true and includes system-out and system-err in the xml artifacts. This 
> significantly increases their size: ~45KB to ~1MB in many cases. In my test 
> environment, that leads to
> {code}
> Recording test results
> ERROR: Step ‘Publish JUnit test result report’ aborted due to exception: 
> java.lang.OutOfMemoryError: Java heap space
> {code}
> Capturing stdout seems useful when doing ad-hoc testing or smaller test runs. 
> I'd propose adding a profile to set enableOutErrElements=false for CI 
> environments where that extra output can cause problems.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to