build(ci): Basic Gradle workflow to build on Github #5134
Closed
Terasology Jenkins.io / Jenkins
failed
Nov 8, 2023 in 58m 4s
Integration Tests: warning in 'junit' step
Integration Tests / Shell Script
Error in sh
step, with arguments ./gradlew --console=plain integrationTest
.
script returned exit code 1
Build log
+ ./gradlew --console=plain integrationTest
Processing facade facades:PC, including it as a sub-project
> Task :build-logic:generateExternalPluginSpecBuilders UP-TO-DATE
> Task :build-logic:extractPrecompiledScriptPluginPlugins UP-TO-DATE
> Task :build-logic:compilePluginsBlocks UP-TO-DATE
> Task :build-logic:generatePrecompiledScriptPluginAccessors UP-TO-DATE
> Task :build-logic:generateScriptPluginAdapters UP-TO-DATE
> Task :build-logic:compileKotlin UP-TO-DATE
> Task :build-logic:compileJava NO-SOURCE
> Task :build-logic:pluginDescriptors UP-TO-DATE
> Task :build-logic:processResources UP-TO-DATE
> Task :build-logic:classes UP-TO-DATE
> Task :build-logic:jar UP-TO-DATE
> Configure project :engine
Scanning for version in module.txt for engine
Version for engine loaded as 5.4.0-SNAPSHOT for group org.terasology.engine
> Configure project :engine-tests
Scanning for version in module.txt for engine-tests
Version for engine-tests loaded as 5.4.0-SNAPSHOT for group org.terasology.engine
> Task :extractJNLuaNatives UP-TO-DATE
> Task :extractLinuxNatives UP-TO-DATE
> Task :extractMacOSXNatives UP-TO-DATE
> Task :extractNativeBulletNatives UP-TO-DATE
> Task :extractWindowsNatives UP-TO-DATE
> Task :extractNatives UP-TO-DATE
> Task :engine:createVersionInfoFile
> Task :engine:extractProto UP-TO-DATE
> Task :engine:processResources
> Task :engine:copyResourcesToClasses
> Task :subsystems:TypeHandlerLibrary:compileJava UP-TO-DATE
> Task :subsystems:TypeHandlerLibrary:processResources NO-SOURCE
> Task :engine:extractIncludeProto UP-TO-DATE
> Task :engine:generateProto UP-TO-DATE
> Task :engine:compileJava UP-TO-DATE
> Task :engine:classes
> Task :engine:jar
> Task :engine-tests:processResources UP-TO-DATE
> Task :engine-tests:copyResourcesToClasses UP-TO-DATE
> Task :engine-tests:compileJava UP-TO-DATE
> Task :engine-tests:classes UP-TO-DATE
> Task :engine-tests:compileTestJava UP-TO-DATE
> Task :engine-tests:processTestResources UP-TO-DATE
> Task :engine-tests:testClasses UP-TO-DATE
> Task :subsystems:TypeHandlerLibrary:classes UP-TO-DATE
> Task :subsystems:TypeHandlerLibrary:jar UP-TO-DATE
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.esotericsoftware.reflectasm.AccessClassLoader (file:/home/jenkins/.gradle/caches/modules-2/files-2.1/com.esotericsoftware/reflectasm/1.11.9/fd51ad1705d5e27d8785550172a4ab0cb9b8ad23/reflectasm-1.11.9.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.esotericsoftware.reflectasm.AccessClassLoader
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
> Task :engine-tests:integrationTest
ExampleTest > testClientConnection() FAILED
java.lang.RuntimeException at ExampleTest.java:42
StorageManagerTest > testEntitySurvivesStorageInChunkStore(ReadWriteStorageManager, BlockManager, ExtraBlockDataManager, Context) FAILED
java.lang.RuntimeException at StateMainMenu.java:86
170 tests completed, 2 failed, 10 skipped
> Task :engine-tests:integrationTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':engine-tests:integrationTest'.
> There were failing tests. See the report at: file:///home/jenkins/agent/workspace/ogy_engine_topic_github-workflow/engine-tests/build/reports/tests/integrationTest/index.html
* Try:
> Run with --scan to get full insights.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 38m 16s
30 actionable tasks: 5 executed, 25 up-to-date
Integration Tests / Archive JUnit-formatted test results
Warning in junit
step.
2 tests failed
Details
- Declarative: Checkout SCM (26 sec)
- Setup (13 sec)
- Build (7 min 19 sec)
- Unit Tests (1 min 49 sec)
- Publish (1 sec)
- Analytics (8 min 35 sec)
- Documentation (1 min 11 sec)
- Integration Tests (38 min)
Error: script returned exit code 1
Unstable: 2 tests failed
Loading