Skip to content
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

Spotless Gradle plugin 7.0.0-BETA4 fails with "Cannot fingerprint input property 'stepsInternalEquality'" #2331

Open
breskeby opened this issue Nov 8, 2024 · 0 comments
Labels

Comments

@breskeby
Copy link
Contributor

breskeby commented Nov 8, 2024

I'm testing updating the elasticsearch build to use the Spotless Gradle plugin 7.0.0-BETA4.

In our CI we see multiple spotlessJava tasks in our build failing due to this error message:

Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@a34eb6af' cannot be serialized.
> java.io.IOException: Failed to load eclipse jdt formatter: java.lang.RuntimeException: java.io.IOException: failed to rename /opt/buildkite-agent/.m2/repository/dev/equo/p2-data/metadata/connection/262c4c2033ccf5f3c3389c1676a00fac.0.tmp to /opt/buildkite-agent/.m2/repository/dev/equo/p2-data/metadata/connection/262c4c2033ccf5f3c3389c1676a00fac.0
  > Failed to load eclipse jdt formatter: java.lang.RuntimeException: java.io.IOException: failed to rename /opt/buildkite-agent/.m2/repository/dev/equo/p2-data/metadata/connection/262c4c2033ccf5f3c3389c1676a00fac.0.tmp to /opt/buildkite-agent/.m2/repository/dev/equo/p2-data/metadata/connection/262c4c2033ccf5f3c3389c1676a00fac.0
    > java.io.IOException: failed to rename /opt/buildkite-agent/.m2/repository/dev/equo/p2-data/metadata/connection/262c4c2033ccf5f3c3389c1676a00fac.0.tmp to /opt/buildkite-agent/.m2/repository/dev/equo/p2-data/metadata/connection/262c4c2033ccf5f3c3389c1676a00fac.0
      > failed to rename /opt/buildkite-agent/.m2/repository/dev/equo/p2-data/metadata/connection/262c4c2033ccf5f3c3389c1676a00fac.0.tmp to /opt/buildkite-agent/.m2/repository/dev/equo/p2-data/metadata/connection/262c4c2033ccf5f3c3389c1676a00fac.0

The further stacktrace

at dev.equo.solstice.p2.Unchecked.wrap(Unchecked.java:25) |  
-- | --
  | at dev.equo.solstice.p2.P2Model.query(P2Model.java:144) |  
  | at com.diffplug.spotless.extra.EquoBasedStepBuilder.lambda$build$0(EquoBasedStepBuilder.java:113) |  
  | at com.diffplug.spotless.JarState$Promised.get(JarState.java:53) |  
  | at com.diffplug.spotless.extra.EquoBasedStepBuilder$EquoStep.state(EquoBasedStepBuilder.java:168) |  
  | at com.diffplug.spotless.extra.EquoBasedStepBuilder.lambda$build$cc29b8bc$1(EquoBasedStepBuilder.java:129) |  
  | at com.diffplug.spotless.FormatterStepSerializationRoundtrip.stateSupplier(FormatterStepSerializationRoundtrip.java:57) |  
  | at com.diffplug.spotless.ThrowingEx.get(ThrowingEx.java:67) |  
  | at com.diffplug.spotless.FormatterStepSerializationRoundtrip$HackClone.writeObject(FormatterStepSerializationRoundtrip.java:113) |  
  | at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)

It runs on Ubuntu 20.04.6

My changes are public available https://github.com/breskeby/elasticsearch/tree/update-spotless-gradle-plugin-700beta4

We don't run this in configuration cache mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants