[HotFix] Fix an issue with Gradle 8.10 and worker threads realising values on Properties #785
Triggered via pull request
January 18, 2025 13:38
marchermans
opened
#261
Status
Success
Total duration
12s
Artifacts
–
publish-prs.yml
on: pull_request_target
publish-prs
/
publish
3s
Annotations
2 errors and 1 warning
RunTests.userdev supports unit testing:
userdev/src/functionalTest/groovy/net/neoforged/gradle/userdev/RunTests.groovy#L443
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /home/runner/work/NeoGradle/NeoGradle/userdev/build/unit-testing-2/userdev_supports_unit_tests with arguments [:testJunit]
Output:
> Task :cacheVersionManifest1.21.4
> Task :cacheVersionExecutableClient1.21.4
> Task :cacheVersionExecutableServer1.21.4
> Task :cacheVersionMappingsClient1.21.4
> Task :cacheVersionMappingsServer1.21.4
> Task :neoFormListLibraries
> Task :neoFormStripClient
> Task :neoFormExtractServer
> Task :neoFormStripServer
> Task :neoFormMerge
> Task :neoFormMergeMappings
> Task :neoFormRename
> Task :neoFormDecompile
> Task :neoFormApplyForgesAccessTransformer
> Task :neoFormInject
> Task :neoFormPatch
> Task :neoFormPatchUserDev
> Task :neoFormApplyOfficialMappings
> Task :neoFormUnzipSources
> Task :create1.21.4ClientExtraJar
> Task :selectRawArtifactNg_dummy_ng.net.minecraft_client_1.21.4_client-extra
> Task :neoFormRecompile
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :neoFormPackRecomp
> Task :supplyRawJarForneoFormJoined1.21.4-20241203.161809
> Task :selectRawArtifactNg_dummy_ng.net.neoforged_neoforge_21.4.63-beta
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestJava
> Task :neoFormJoined1.21.4-20241203.161809DownloadAssets
> Task :neoFormJoined1.21.4-20241203.161809ExtractNatives
> Task :processTestResources
> Task :testClasses
> Task :writeMinecraftClasspathJunit
> Task :testJunit
Unrecognized option: --launchTarget
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
> Task :testJunit FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':testJunit'.
> Process 'Gradle Test Executor 2' finished with non-zero exit value 1
* 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 2m 40s
31 actionable tasks: 31 executed
|
RunTests.userdev supports unit testing:
userdev/src/functionalTest/groovy/net/neoforged/gradle/userdev/RunTests.groovy#L443
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in D:\a\NeoGradle\NeoGradle\userdev\build\unit-testing-2\userdev_supports_unit_tests with arguments [:testJunit]
Output:
> Task :cacheVersionManifest1.21.4
> Task :cacheVersionExecutableClient1.21.4
> Task :cacheVersionExecutableServer1.21.4
> Task :cacheVersionMappingsClient1.21.4
> Task :cacheVersionMappingsServer1.21.4
> Task :neoFormListLibraries
> Task :neoFormStripClient
> Task :neoFormExtractServer
> Task :neoFormStripServer
> Task :neoFormMerge
> Task :neoFormMergeMappings
> Task :neoFormRename
> Task :neoFormDecompile
> Task :neoFormApplyForgesAccessTransformer
> Task :neoFormInject
> Task :neoFormPatch
> Task :neoFormPatchUserDev
> Task :neoFormApplyOfficialMappings
> Task :neoFormUnzipSources
> Task :create1.21.4ClientExtraJar
> Task :selectRawArtifactNg_dummy_ng.net.minecraft_client_1.21.4_client-extra
> Task :neoFormRecompile
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :neoFormPackRecomp
> Task :supplyRawJarForneoFormJoined1.21.4-20241203.161809
> Task :selectRawArtifactNg_dummy_ng.net.neoforged_neoforge_21.4.63-beta
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestJava
> Task :neoFormJoined1.21.4-20241203.161809DownloadAssets
> Task :neoFormJoined1.21.4-20241203.161809ExtractNatives
> Task :processTestResources
> Task :testClasses
> Task :writeMinecraftClasspathJunit
Could not write standard input to Gradle Test Executor 2.
java.io.IOException: The pipe is being closed
at java.base/java.io.FileOutputStream.writeBytes(Native Method)
at java.base/java.io.FileOutputStream.write(FileOutputStream.java:349)
at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.writeBuffer(ExecOutputHandleRunner.java:98)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:85)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:64)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
> Task :testJunit FAILED
Unrecognized option: --launchTarget
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':testJunit'.
> Process 'Gradle Test Executor 2' finished with non-zero exit value 1
* 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 4m 14s
31 actionable tasks: 31 executed
|
publish-prs / publish
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|