dweiss opened a new issue, #12907:
URL: https://github.com/apache/lucene/issues/12907
### Description
These stack traces at the end of jenkins runs are super annoying:
```
...
Archiving artifacts
hudson.FilePath$ValidateAntFileMask$1Cancel
at
hudson.FilePath$ValidateAntFileMask$1.isCaseSensitive(FilePath.java:3300)
at
org.apache.tools.ant.DirectoryScanner.lambda$isIncluded$3(DirectoryScanner.java:1374)
at
java.base/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
at
java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
...
at hudson.FilePath$ValidateAntFileMask.hasMatch(FilePath.java:3313)
Caused: hudson.FilePath$FileMaskNoMatchesFoundException: no matches found
within 10000
```
This is a weird path traversal limit in jenkins (to dodge circular link
structure, I guess) that is configurable via system properties -
https://www.jenkins.io/doc/book/managing/system-properties/#hudson-filepath-validate_ant_file_mask_bound
I don't think we can tweak it but we can change the default path traversal
patterns to be more restrictive:
```
No artifacts found that match the file pattern
"**/*.events,heapdumps/**,**/hs_err_pid*". Configuration error?
```
The *.events is no longer used (used to be emitted from the custom runner in
ant). I don't think we can limit the scanning pattern to not exceed the limit
but I think we can add a test finalization task to gradle that will scan only
those folders that _can_ contains hs_err_pid* files and perhaps copy them over
to one top-level directory, then add a much simpler pattern to include anything
present in that folder?
### Version and environment details
_No response_
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]