Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outputdir --> destinationDirectory, prepare gradle upgrade #5111

Closed

Conversation

soloturn
Copy link
Contributor

@soloturn soloturn commented Jul 8, 2023

Contains

outputdir --> destinationDirectory, prepare gradle upgrade

How to test

cleaning the folder and unit test gives no errors.

git clean -xfd
./gradlew clean unitTest

@soloturn
Copy link
Contributor Author

soloturn commented Jul 8, 2023

when doing gradlew test instead of gradlew unitTest it gives errors i did not see otherwise. what can this be?

./gradlew test
...
> Task :engine-tests:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.terasology.engine.utilities.ReflectionUtil (file:/run/media/rt/4tb-home/1tb-no-space/src/Terasology/engine/build/libs/engine-5.4.0-SNAPSHOT.jar) to field java.util.concurrent.ExecutorCompletionService$QueueingFuture.task
WARNING: Please consider reporting this to the maintainers of org.terasology.engine.utilities.ReflectionUtil
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

ModuleManagerTest > [1] class org.terasology.engine.world.block.structure.AttachSupportRequiredComponent FAILED
    java.lang.NullPointerException at ModuleManagerTest.java:47

ModuleManagerTest > [2] class org.terasology.engine.logic.permission.PermissionSetComponent FAILED
    java.lang.NullPointerException at ModuleManagerTest.java:47

ModuleManagerTest > [1] class org.terasology.engine.core.PathManager FAILED
    java.lang.NullPointerException at ModuleManagerTest.java:47

ModuleManagerTest > [2] class org.terasology.engine.logic.permission.PermissionSetComponent FAILED
    java.lang.NullPointerException at ModuleManagerTest.java:47

ModuleManagerTest > engineModuleContainsSubsystems() FAILED
    java.lang.NullPointerException at ModuleManagerTest.java:47

TestModuleEnvironmentSandbox > findSubtypeOfEngineClass() FAILED
    java.lang.NullPointerException at TestModuleEnvironmentSandbox.java:38

TestModuleEnvironmentSandbox > findSubtypeOfModuleClass() FAILED
    java.lang.NullPointerException at TestModuleEnvironmentSandbox.java:38

TestModuleEnvironmentSandbox > findSubtypeOfGlobalClass() FAILED
    java.lang.NullPointerException at TestModuleEnvironmentSandbox.java:38

846 tests completed, 8 failed, 20 skipped
There were failing tests. See the report at: file:///run/media/rt/4tb-home/1tb-no-space/src/Terasology/engine-tests/build/reports/tests/test/index.html

the error is for all similar:

java.lang.NullPointerException
	at org.terasology.engine.utilities.Jvm.logClasspath(Jvm.java:23)
	at org.terasology.engine.core.module.ModuleManager.newModuleFactory(ModuleManager.java:114)
	at org.terasology.engine.core.module.ModuleManager.<init>(ModuleManager.java:73)
	at org.terasology.engine.testUtil.ModuleManagerFactory.create(ModuleManagerFactory.java:17)
	at org.terasology.engine.persistence.typeHandling.reflection.TestModuleEnvironmentSandbox.provideSandbox(TestModuleEnvironmentSandbox.java:38)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

@DarkWeird
Copy link
Contributor

when doing gradlew test instead of gradlew unitTest it gives errors i did not see otherwise. what can this be?

./gradlew test
...
> Task :engine-tests:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.terasology.engine.utilities.ReflectionUtil (file:/run/media/rt/4tb-home/1tb-no-space/src/Terasology/engine/build/libs/engine-5.4.0-SNAPSHOT.jar) to field java.util.concurrent.ExecutorCompletionService$QueueingFuture.task
WARNING: Please consider reporting this to the maintainers of org.terasology.engine.utilities.ReflectionUtil
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

ModuleManagerTest > [1] class org.terasology.engine.world.block.structure.AttachSupportRequiredComponent FAILED
    java.lang.NullPointerException at ModuleManagerTest.java:47

ModuleManagerTest > [2] class org.terasology.engine.logic.permission.PermissionSetComponent FAILED
    java.lang.NullPointerException at ModuleManagerTest.java:47

ModuleManagerTest > [1] class org.terasology.engine.core.PathManager FAILED
    java.lang.NullPointerException at ModuleManagerTest.java:47

ModuleManagerTest > [2] class org.terasology.engine.logic.permission.PermissionSetComponent FAILED
    java.lang.NullPointerException at ModuleManagerTest.java:47

ModuleManagerTest > engineModuleContainsSubsystems() FAILED
    java.lang.NullPointerException at ModuleManagerTest.java:47

TestModuleEnvironmentSandbox > findSubtypeOfEngineClass() FAILED
    java.lang.NullPointerException at TestModuleEnvironmentSandbox.java:38

TestModuleEnvironmentSandbox > findSubtypeOfModuleClass() FAILED
    java.lang.NullPointerException at TestModuleEnvironmentSandbox.java:38

TestModuleEnvironmentSandbox > findSubtypeOfGlobalClass() FAILED
    java.lang.NullPointerException at TestModuleEnvironmentSandbox.java:38

846 tests completed, 8 failed, 20 skipped
There were failing tests. See the report at: file:///run/media/rt/4tb-home/1tb-no-space/src/Terasology/engine-tests/build/reports/tests/test/index.html

the error is for all similar:

java.lang.NullPointerException
	at org.terasology.engine.utilities.Jvm.logClasspath(Jvm.java:23)
	at org.terasology.engine.core.module.ModuleManager.newModuleFactory(ModuleManager.java:114)
	at org.terasology.engine.core.module.ModuleManager.<init>(ModuleManager.java:73)
	at org.terasology.engine.testUtil.ModuleManagerFactory.create(ModuleManagerFactory.java:17)
	at org.terasology.engine.persistence.typeHandling.reflection.TestModuleEnvironmentSandbox.provideSandbox(TestModuleEnvironmentSandbox.java:38)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Strange.
Seems, PathManager didn't find installPath.

Can you debug PathManager#findInstallPath()?

@skaldarnar
Copy link
Member

Related to #5109.

@skaldarnar skaldarnar added the Category: Build/CI Requests, Issues and Changes targeting gradle, groovy, Jenkins, etc. label Jul 8, 2023
@soloturn soloturn closed this Jul 28, 2023
@soloturn
Copy link
Contributor Author

#5109 obsoleted this one.

@soloturn soloturn deleted the prepare-gradle-upgrade branch October 28, 2023 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Build/CI Requests, Issues and Changes targeting gradle, groovy, Jenkins, etc.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants