Skip to content

fix gradle custom step with closure and configuration cache #3931

fix gradle custom step with closure and configuration cache

fix gradle custom step with closure and configuration cache #3931

GitHub Actions / JUnit gradle 21 ubuntu-latest failed Jan 2, 2025 in 0s

499 tests run, 487 passed, 9 skipped, 3 failed.

Annotations

Check failure on line 1 in BumpThisNumberIfACustomStepChangesTest$WithConfigCache

See this annotation in the file changed.

@github-actions github-actions / JUnit gradle 21 ubuntu-latest

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate()

org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-13950862483444596260 with arguments [spotlessApply]

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply
> Task :spotlessInternalRegisterDependencies
> Task :spotlessMisc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessMisc'.
> Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@ca38d553' cannot be serialized.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 520ms
2 actionable tasks: 2 executed
Configuration cache entry stored.
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-13950862483444596260 with arguments [spotlessApply]

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply
> Task :spotlessInternalRegisterDependencies
> Task :spotlessMisc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessMisc'.
> Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@ca38d553' cannot be serialized.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 520ms
2 actionable tasks: 2 executed
Configuration cache entry stored.

	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.lambda$build$2(DefaultGradleRunner.java:274)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.run(DefaultGradleRunner.java:367)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.build(DefaultGradleRunner.java:272)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.taskIsUpToDate(GradleIntegrationHarness.java:208)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.applyIsUpToDate(GradleIntegrationHarness.java:193)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.applyIsUpToDate(BumpThisNumberIfACustomStepChangesTest.java:73)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.customRuleNeverUpToDate(BumpThisNumberIfACustomStepChangesTest.java:81)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1596)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 1 in BumpThisNumberIfACustomStepChangesTest$WithConfigCache

See this annotation in the file changed.

@github-actions github-actions / JUnit gradle 21 ubuntu-latest

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges()

org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-13856724116850563582 with arguments [spotlessApply]

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply
> Task :spotlessInternalRegisterDependencies
> Task :spotlessMisc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessMisc'.
> Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@a7d359f2' cannot be serialized.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 106ms
2 actionable tasks: 2 executed
Configuration cache entry stored.
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-13856724116850563582 with arguments [spotlessApply]

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply
> Task :spotlessInternalRegisterDependencies
> Task :spotlessMisc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessMisc'.
> Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@a7d359f2' cannot be serialized.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 106ms
2 actionable tasks: 2 executed
Configuration cache entry stored.

	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.lambda$build$2(DefaultGradleRunner.java:274)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.run(DefaultGradleRunner.java:367)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.build(DefaultGradleRunner.java:272)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.taskIsUpToDate(GradleIntegrationHarness.java:208)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.applyIsUpToDate(GradleIntegrationHarness.java:193)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.applyIsUpToDate(BumpThisNumberIfACustomStepChangesTest.java:73)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.unlessBumpThisNumberIfACustomStepChanges(BumpThisNumberIfACustomStepChangesTest.java:90)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1596)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 1 in BumpThisNumberIfACustomStepChangesTest$WithConfigCache

See this annotation in the file changed.

@github-actions github-actions / JUnit gradle 21 ubuntu-latest

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges()

org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-7862896137574866959 with arguments [spotlessApply]

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply
> Task :spotlessInternalRegisterDependencies
> Task :spotlessMisc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessMisc'.
> Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@a7d359f2' cannot be serialized.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 98ms
2 actionable tasks: 2 executed
Configuration cache entry stored.
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-7862896137574866959 with arguments [spotlessApply]

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply
> Task :spotlessInternalRegisterDependencies
> Task :spotlessMisc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessMisc'.
> Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@a7d359f2' cannot be serialized.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 98ms
2 actionable tasks: 2 executed
Configuration cache entry stored.

	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.lambda$build$2(DefaultGradleRunner.java:274)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.run(DefaultGradleRunner.java:367)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.build(DefaultGradleRunner.java:272)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.taskIsUpToDate(GradleIntegrationHarness.java:208)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.applyIsUpToDate(GradleIntegrationHarness.java:193)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.applyIsUpToDate(BumpThisNumberIfACustomStepChangesTest.java:73)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.andRunsAgainIfNumberChanges(BumpThisNumberIfACustomStepChangesTest.java:105)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1596)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1596)