Skip to content

fix gradle custom step with closure and configuration cache #3947

fix gradle custom step with closure and configuration cache

fix gradle custom step with closure and configuration cache #3947

GitHub Actions / JUnit gradle 23 ubuntu-latest failed Jan 6, 2025 in 0s

499 tests run, 485 passed, 11 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 23 ubuntu-latest

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate()

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

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* What went wrong:
Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`.
> java.lang.ClassNotFoundException: build_c5qb51w7y8znkoa4fukvro8jp$_run_closure1$_closure2$_closure3

* 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 599ms
Configuration cache entry stored.
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-11506098872614781018 with arguments [spotlessApply]

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* What went wrong:
Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`.
> java.lang.ClassNotFoundException: build_c5qb51w7y8znkoa4fukvro8jp$_run_closure1$_closure2$_closure3

* 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 599ms
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:1597)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)

Check failure on line 1 in BumpThisNumberIfACustomStepChangesTest$WithConfigCache

See this annotation in the file changed.

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

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges()

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

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* What went wrong:
Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`.
> java.lang.ClassNotFoundException: build_7sjkl8co7zkpgew7780udtrl5$_run_closure1$_closure2$_closure3

* 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 157ms
Configuration cache entry stored.
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-1335235316589106374 with arguments [spotlessApply]

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* What went wrong:
Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`.
> java.lang.ClassNotFoundException: build_7sjkl8co7zkpgew7780udtrl5$_run_closure1$_closure2$_closure3

* 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 157ms
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:95)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)

Check failure on line 1 in BumpThisNumberIfACustomStepChangesTest$WithConfigCache

See this annotation in the file changed.

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

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges()

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

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* What went wrong:
Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`.
> java.lang.ClassNotFoundException: build_6kydasj8o3gcxysv5fdwjrgd0$_run_closure1$_closure2$_closure3

* 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 141ms
Configuration cache entry stored.
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-6634199116168859893 with arguments [spotlessApply]

Output:
Calculating task graph as no cached configuration is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* What went wrong:
Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`.
> java.lang.ClassNotFoundException: build_6kydasj8o3gcxysv5fdwjrgd0$_run_closure1$_closure2$_closure3

* 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 141ms
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:110)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)