You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into an issue when using the dependency submission plugin - we switched from GH ubuntu-latest standard runners (2 CPU) to a large runner (ubuntu-latest, 8 CPU); Gradle, as part of dependency submission, would either hang or error out with CC issues:
1: Task failed with an exception.
-----------
* What went wrong:
Error while saving task graph
> Configuration cache state could not be cached: field `value` of `org.gradle.internal.Try$Success` bean found in field `result` of `org.gradle.internal.serialization.Cached$Fixed` bean found in field `configurationResolvers` of task `:common:ForceDependencyResolutionPlugin_resolveProjectDependencies` of type `org.gradle.forceresolve.ResolveProjectDependenciesTask`: error writing value of type 'java.util.ArrayList'
> Something has been appended to this collector already
Seems like a race condition in Gradle itself (8.12.1) or the ForceDependencyResolutionPlugin_resolveProjectDependencies tasks (wherever that lives), tickled by what dependency submission does.
Worked around this by adding action argument to disable parallel configuration cache (this is enabled by default in a custom Gradle distribution):
Perhaps that option should be forced to false for dependency submission as the parallel configuration cache is an incubating feature with some caveats:
This is an incubating feature and may expose concurrency issues in some builds.
e.g. adding it to the set of options that are currently provided when running Gradle:
Perhaps, if the Gradle version is known, -Dorg.gradle.configuration-cache.parallel=false could be selectively added such that for some future Gradle version (where parallel CC cache is no longer incubating) forcing it to false can be removed (yet the same dependency submission plugin would add the arg for older Gradle versions).
Ran into an issue when using the dependency submission plugin - we switched from GH
ubuntu-latest
standard runners (2 CPU) to a large runner (ubuntu-latest, 8 CPU); Gradle, as part of dependency submission, would either hang or error out with CC issues:Seems like a race condition in Gradle itself (8.12.1) or the
ForceDependencyResolutionPlugin_resolveProjectDependencies
tasks (wherever that lives), tickled by what dependency submission does.Worked around this by adding action argument to disable parallel configuration cache (this is enabled by default in a custom Gradle distribution):
Perhaps that option should be forced to
false
for dependency submission as the parallel configuration cache is an incubating feature with some caveats:e.g. adding it to the set of options that are currently provided when running Gradle:
/home/runner/work/clario-saas-app/clario-saas-app/gradlew -Dorg.gradle.configureondemand=false -Dorg.gradle.dependency.verification=off -Dorg.gradle.unsafe.isolated-projects=false -Dorg.gradle.configuration-cache.parallel=false :ForceDependencyResolutionPlugin_resolveAllDependencies
(while this fails for dependency submission with parallel CC, the main build succeeds with parallel CC so we don't want to globally disable it)
The text was updated successfully, but these errors were encountered: