-
Notifications
You must be signed in to change notification settings - Fork 25.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI Failures: jarHell failed to run on Windows #47953
Comments
Pinging @elastic/ml-core (:ml) |
The worker had 32 CPUs. Does that mean it was doing 32 checks in parallel, each in a separate JVM? Certainly there are lots of very similar timestamps on the check tasks that are listed in the console log. Maybe on Windows the parallelism needs scaling back a little or the workers need more memory on Windows? |
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
Here's a scan: https://gradle-enterprise.elastic.co/s/4dnt4bscjqldo
|
The associated stack trace might also be useful because it shows which component doesn't like long path names - it's
|
A similar problem was worked around in the Elasticsearch code by getting the short (8.3) path before passing it to the |
I think the error is a bit misleading, as the path is rather short here |
I believe you are correct:
I don't think using
That said, this might be good enough for now, as I believe the current command line limit is 8k characters so perhaps that will solve the problem temporarily until Gradle 6.0 which has a permanent fix for this. |
For clarification, Gradle does not already do this. The only scenario in which Gradle circumvents OS command line length limits is for worker processes (like test workers, or the worker API using process isolation) where the classpath is passed via |
This jarHell failure has cropped up a few times in the last couple days on master and 7.4 branches.
https://groups.google.com/a/elastic.co/forum/#!searchin/build-elasticsearch/jarHell%7Csort:date
All with the same failure:
The text was updated successfully, but these errors were encountered: