fix gradle custom
step with closure and configuration cache
#2012
GitHub Actions / JUnit gradle 11 ubuntu-latest
failed
Jan 6, 2025 in 0s
497 tests run, 486 passed, 10 skipped, 1 failed.
Annotations
Check failure on line 1 in BumpThisNumberIfACustomStepChangesTest$WithConfigCache
github-actions / JUnit gradle 11 ubuntu-latest
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate()
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-3228568989924824466 with arguments [spotlessApply]
Output:
Calculating task graph as no configuration cache is available for tasks: spotlessApply
> Task :spotlessInternalRegisterDependencies
> Task :spotlessMisc
> Task :spotlessMiscApply
> Task :spotlessApply
FAILURE: Build failed with an exception.
* What went wrong:
Configuration cache problems found in this build.
2 problems were found storing the configuration cache.
- Class `org.eclipse.jgit.util.FS`: external process started '/usr/bin/git --version'
See https://docs.gradle.org/8.4/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Class `org.eclipse.jgit.util.FS`: external process started '/usr/bin/git config --system --show-origin --list -z'
See https://docs.gradle.org/8.4/userguide/configuration_cache.html#config_cache:requirements:external_processes
See the complete report at file:///tmp/junit-3228568989924824466/build/reports/configuration-cache/6zcla3pgu8qenz6arrs5m2199/8gbndj0xysqy32ihrt7jouir1/configuration-cache-report.html
> Starting an external process '/usr/bin/git --version' during configuration time is unsupported.
> Starting an external process '/usr/bin/git config --system --show-origin --list -z' during configuration time is unsupported.
* 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 16s
3 actionable tasks: 3 executed
Configuration cache entry discarded with 2 problems.
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-3228568989924824466 with arguments [spotlessApply]
Output:
Calculating task graph as no configuration cache is available for tasks: spotlessApply
> Task :spotlessInternalRegisterDependencies
> Task :spotlessMisc
> Task :spotlessMiscApply
> Task :spotlessApply
FAILURE: Build failed with an exception.
* What went wrong:
Configuration cache problems found in this build.
2 problems were found storing the configuration cache.
- Class `org.eclipse.jgit.util.FS`: external process started '/usr/bin/git --version'
See https://docs.gradle.org/8.4/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Class `org.eclipse.jgit.util.FS`: external process started '/usr/bin/git config --system --show-origin --list -z'
See https://docs.gradle.org/8.4/userguide/configuration_cache.html#config_cache:requirements:external_processes
See the complete report at file:///tmp/junit-3228568989924824466/build/reports/configuration-cache/6zcla3pgu8qenz6arrs5m2199/8gbndj0xysqy32ihrt7jouir1/configuration-cache-report.html
> Starting an external process '/usr/bin/git --version' during configuration time is unsupported.
> Starting an external process '/usr/bin/git config --system --show-origin --list -z' during configuration time is unsupported.
* 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 16s
3 actionable tasks: 3 executed
Configuration cache entry discarded with 2 problems.
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:566)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
Loading