arturobernalg opened a new pull request, #3589:
URL: https://github.com/apache/maven-surefire/pull/3589

   FileReporter and StatelessXmlReporter built the .txt/.xml report file name 
directly from the test's fully-qualified class name with no length cap. A 
sufficiently long package/class name - easily produced by deeply nested 
packages or long generated/parameterized test names - exceeds the per-component 
length most filesystems enforce (255 bytes on ext4/NTFS, less on eCryptfs), so 
the file can't be created. The build still reports success, just with "Tests 
run: 0" for that class and a warning buried in a dump file.
   
   Add FileReporterUtils.truncateFileName(), which shortens an overlong name to 
a safe length while keeping it unique by appending a short hash of the 
untruncated name, and apply it at both report-file-naming call sites.
   
   Fixes #2697
   
   
   
   
   To make clear that you license your contribution under
   the [Apache License Version 2.0, January 
2004](https://www.apache.org/licenses/LICENSE-2.0)
   check one of the following:
   
   - [x] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [x] I hereby declare that I have filed an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to