Skip to content

fix gradle custom step with closure and configuration cache #1997

fix gradle custom step with closure and configuration cache

fix gradle custom step with closure and configuration cache #1997

Triggered via pull request January 3, 2025 01:47
Status Failure
Total duration 12m 25s
Artifacts

ci.yml

on: pull_request
spotlessCheck assemble testClasses
1m 2s
spotlessCheck assemble testClasses
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

24 errors and 12 warnings
CombinedJavaFormatStepTest.checkIssue1679(): testlib/src/test/java/com/diffplug/spotless/combined/CombinedJavaFormatStepTest.java#L46
org.opentest4j.AssertionFailedError: expected: com.diffplug.spotless.Formatter@8cccbf54 but was: com.diffplug.spotless.Formatter@6a1b24a0
FenceStepTest.broken(): testlib/src/test/java/com/diffplug/spotless/generic/FenceStepTest.java#L92
org.opentest4j.AssertionFailedError: Snapshot mismatch at L1:C2 -L1-6 fence(fenceRemoved) An intermediate step removed a match of spotless:off spotless:on +LINE_UNDEFINED fence(java.lang.IllegalArgumentException) This step requires the underlying file. If this is a test, use StepHarnessWithFile (...)
build (gradle, 23, ubuntu-latest)
Process completed with exit code 1.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-9803233615385786354 with arguments [spotlessApply] Output: Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: spotlessApply FAILURE: Build failed with an exception. * Where: Build file '/tmp/junit-9803233615385786354/build.gradle' line: 7 * What went wrong: Could not determine the dependencies of task ':spotlessApply'. > Could not create task ':spotlessMiscApply'. > Could not create task ':spotlessMisc'. > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 6.6 * 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 10s
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-16434267441969115956 with arguments [spotlessApply] Output: Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: spotlessApply FAILURE: Build failed with an exception. * Where: Build file '/tmp/junit-16434267441969115956/build.gradle' line: 7 * What went wrong: Could not determine the dependencies of task ':spotlessApply'. > Could not create task ':spotlessMiscApply'. > Could not create task ':spotlessMisc'. > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 6.6 * 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 477ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-8244767924573643625 with arguments [spotlessApply] Output: Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: spotlessApply FAILURE: Build failed with an exception. * Where: Build file '/tmp/junit-8244767924573643625/build.gradle' line: 7 * What went wrong: Could not determine the dependencies of task ':spotlessApply'. > Could not create task ':spotlessMiscApply'. > Could not create task ':spotlessMisc'. > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 6.6 * 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 210ms
CombinedJavaFormatStepTest.checkIssue1679(): testlib/src/test/java/com/diffplug/spotless/combined/CombinedJavaFormatStepTest.java#L46
org.opentest4j.AssertionFailedError: expected: com.diffplug.spotless.Formatter@8cccbf54 but was: com.diffplug.spotless.Formatter@6a1b24a0
FenceStepTest.broken(): testlib/src/test/java/com/diffplug/spotless/generic/FenceStepTest.java#L92
org.opentest4j.AssertionFailedError: Snapshot mismatch at L1:C2 -L1-6 fence(fenceRemoved) An intermediate step removed a match of spotless:off spotless:on +LINE_UNDEFINED fence(java.lang.IllegalArgumentException) This step requires the underlying file. If this is a test, use StepHarnessWithFile (...)
build (gradle, 11, ubuntu-latest)
Process completed with exit code 1.
CombinedJavaFormatStepTest.checkIssue1679(): testlib/src/test/java/com/diffplug/spotless/combined/CombinedJavaFormatStepTest.java#L46
org.opentest4j.AssertionFailedError: expected: com.diffplug.spotless.Formatter@8cccbf54 but was: com.diffplug.spotless.Formatter@6a1b24a0
FenceStepTest.broken(): testlib/src/test/java/com/diffplug/spotless/generic/FenceStepTest.java#L92
org.opentest4j.AssertionFailedError: Snapshot mismatch at L1:C2 -L1-6 fence(fenceRemoved) An intermediate step removed a match of spotless:off spotless:on +LINE_UNDEFINED fence(java.lang.IllegalArgumentException) This step requires the underlying file. If this is a test, use StepHarnessWithFile (...)
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-15058908465918969293 with arguments [spotlessApply] Output: Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: spotlessApply FAILURE: Build failed with an exception. * Where: Build file '/tmp/junit-15058908465918969293/build.gradle' line: 7 * What went wrong: Could not determine the dependencies of task ':spotlessApply'. > Could not create task ':spotlessMiscApply'. > Could not create task ':spotlessMisc'. > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3 * 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 1s
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-1217007624683498690 with arguments [spotlessApply] Output: Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: spotlessApply FAILURE: Build failed with an exception. * Where: Build file '/tmp/junit-1217007624683498690/build.gradle' line: 7 * What went wrong: Could not determine the dependencies of task ':spotlessApply'. > Could not create task ':spotlessMiscApply'. > Could not create task ':spotlessMisc'. > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3 * 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 136ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-1414949745538183067 with arguments [spotlessApply] Output: Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: spotlessApply FAILURE: Build failed with an exception. * Where: Build file '/tmp/junit-1414949745538183067/build.gradle' line: 7 * What went wrong: Could not determine the dependencies of task ':spotlessApply'. > Could not create task ':spotlessMiscApply'. > Could not create task ':spotlessMisc'. > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3 * 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 234ms
CombinedJavaFormatStepTest.checkIssue1679(): testlib/src/test/java/com/diffplug/spotless/combined/CombinedJavaFormatStepTest.java#L46
org.opentest4j.AssertionFailedError: expected: com.diffplug.spotless.Formatter@8cccbf54 but was: com.diffplug.spotless.Formatter@6a1b24a0
FenceStepTest.broken(): testlib/src/test/java/com/diffplug/spotless/generic/FenceStepTest.java#L92
org.opentest4j.AssertionFailedError: Snapshot mismatch at L1:C2 -L1-6 fence(fenceRemoved) An intermediate step removed a match of spotless:off spotless:on +LINE_UNDEFINED fence(java.lang.IllegalArgumentException) This step requires the underlying file. If this is a test, use StepHarnessWithFile (...)
build (gradle, 17, ubuntu-latest)
Process completed with exit code 1.
build (gradle, 21, ubuntu-latest)
Process completed with exit code 1.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): plugin-gradle\build\classes\java\test\com\diffplug\gradle\spotless\BumpThisNumberIfACustomStepChangesTest$WithConfigCache.class#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-7657422355202277066 with arguments [spotlessApply] Output: Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: spotlessApply FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\runneradmin\AppData\Local\Temp\junit-7657422355202277066\build.gradle' line: 7 * What went wrong: Could not determine the dependencies of task ':spotlessApply'. > Could not create task ':spotlessMiscApply'. > Could not create task ':spotlessMisc'. > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3 * 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 979ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): plugin-gradle\build\classes\java\test\com\diffplug\gradle\spotless\BumpThisNumberIfACustomStepChangesTest$WithConfigCache.class#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-6706289916313995420 with arguments [spotlessApply] Output: Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: spotlessApply FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\runneradmin\AppData\Local\Temp\junit-6706289916313995420\build.gradle' line: 7 * What went wrong: Could not determine the dependencies of task ':spotlessApply'. > Could not create task ':spotlessMiscApply'. > Could not create task ':spotlessMisc'. > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3 * 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 454ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): plugin-gradle\build\classes\java\test\com\diffplug\gradle\spotless\BumpThisNumberIfACustomStepChangesTest$WithConfigCache.class#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-11600297151028149055 with arguments [spotlessApply] Output: Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: spotlessApply FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\runneradmin\AppData\Local\Temp\junit-11600297151028149055\build.gradle' line: 7 * What went wrong: Could not determine the dependencies of task ':spotlessApply'. > Could not create task ':spotlessMiscApply'. > Could not create task ':spotlessMisc'. > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3 * 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 295ms
CombinedJavaFormatStepTest.checkIssue1679(): testlib\build\classes\java\test\com\diffplug\spotless\combined\CombinedJavaFormatStepTest.class#L46
org.opentest4j.AssertionFailedError: expected: com.diffplug.spotless.Formatter@8cccbf54 but was: com.diffplug.spotless.Formatter@6a1b24a0
FenceStepTest.broken(): testlib\build\classes\java\test\com\diffplug\spotless\generic\FenceStepTest.class#L92
org.opentest4j.AssertionFailedError: Snapshot mismatch at L1:C2 -L1-6 fence(fenceRemoved) An intermediate step removed a match of spotless:off spotless:on +LINE_UNDEFINED fence(java.lang.IllegalArgumentException) This step requires the underlying file. If this is a test, use StepHarnessWithFile (...)
build (gradle, 17, windows-latest)
Process completed with exit code 1.
spotlessCheck assemble testClasses
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build (shfmt, 11, ubuntu-latest, v3.8.0)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build (shfmt, 11, ubuntu-latest, v3.8.0)
Restore cache failed: Dependencies file is not found in /home/runner/work/spotless/spotless. Supported file pattern: go.sum
build (maven, 11, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build (maven, 17, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build (gradle, 23, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build (gradle, 11, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build (gradle, 17, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build (gradle, 21, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build (npm, 11, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build (maven, 21, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build (maven, 23, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636