polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Merlin <paulmer...@apache.org>
Subject Re: npmTests
Date Fri, 26 May 2017 15:25:26 GMT
I can reproduce locally:

./gradlew :tools:generator:check

But, I also get different errors depending on the generated project...


I tried to look at the changes around the docker machinery but see my
other email about promoting docker testing machinery to core.testsupport.

And direct docker based tests don't work anymore on this branch. E.g:

./gradlew :ext:cache-memcache:test

So before going down into generated project failures, I'd suggest to fix
direct tests.



Niclas Hedhman a écrit :
> Gang,
> I have the beginning of testcase (BootstrapTest) for generated classes,
> which I intend to boot up the generated application and do a REST API call
> to...
>
> However, I am confounded by a problem, and no idea what is going on.
>
> First testcase succeeds. Second one will give a stacktrace saying a
> NullPointerException on line 31 in BootstrapTest.java. However, when I look
> in the generated folder, that test is lacking most of the generated files.
>
> Can someone help do a sanity check?  check out the "yeoman-works" branch
> and build Polygene normally "./gradlew clean assemble " is what I normally
> do. Once built, you can step into tools/generator-polygene and run "npm run
> test" for just the npm stuff.
>
> Any help is greatly appreciated.
>
>
> Build output... See verification of missing files further below.
>
> :app:test
>
> org.apache.polygene.generator.test.app.BootstrapTest >
> applicationBootstrapSucceeds FAILED
>    org.apache.polygene.api.activation.ActivationException at
> BootstrapTest.java:31
>        Caused by:
> org.apache.polygene.api.service.ServiceUnavailableException at
> BootstrapTest.java:31
>            Caused by:
> org.apache.polygene.api.activation.ActivationException at
> BootstrapTest.java:31
>                Caused by:
> org.apache.polygene.api.service.ServiceUnavailableException at
> BootstrapTest.java:31
>                    Caused by:
> org.apache.polygene.api.activation.ActivationException at
> BootstrapTest.java:31
>                        Caused by:
> org.apache.polygene.api.service.ServiceUnavailableException at
> BootstrapTest.java:31
>                            Caused by:
> org.apache.polygene.api.activation.ActivationException at
> BootstrapTest.java:31
>                                Caused by:
> org.apache.polygene.spi.entitystore.EntityStoreException at
> BootstrapTest.java:31
>                                    Caused by:
> java.lang.NullPointerException at BootstrapTest.java:31
>
> 1 test completed, 1 failed
> :app:test FAILED
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':app:test'.
>> There were failing tests. See the report at:
> file:///home/niclas/dev/polygene/java/tools/generator-polygene/build/npm-test/
> *generates_a_Gradle_buildable_Apache_Polygene_project_with_MemoryEntityStore__RdfIndexing__JavaxJsonSerialization__MemcacheCaching__CodahaleMetrics__and_%5B%5D.*/app/build/reports/tests/test/index.html
>
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
>
> BUILD FAILED
>
>
> /////////////////////  WEIRD!!!  ////////////////////////////////
>
>
> $ cd
> build/npm-test/generates_a_Gradle_buildable_Apache_Polygene_project_with_MemoryEntityStore__RdfIndexing__JavaxJsonSerialization__MemcacheCaching__CodahaleMetrics__and_\[\]./
>
> $ find | grep -v \.idea
> .
> ./build.gradle
> ./gradle
> ./gradle/wrapper
> ./gradle/wrapper/gradle-wrapper.jar
> ./gradle/wrapper/gradle-wrapper.properties
> ./.gradle
> ./.gradle/buildOutputCleanup
> ./.gradle/buildOutputCleanup/cache.properties.lock
> ./.gradle/buildOutputCleanup/cache.properties
> ./.gradle/buildOutputCleanup/built.bin
> ./.gradle/3.5
> ./.gradle/3.5/taskHistory
> ./.gradle/3.5/taskHistory/taskHistory.lock
> ./.gradle/3.5/file-changes
> ./.gradle/3.5/file-changes/last-build.bin
> ./gradlew
> ./model
> ./model/build.gradle
> ./bootstrap
> ./bootstrap/build.gradle
> ./bootstrap/src
> ./bootstrap/src/main
> ./bootstrap/src/main/java
> ./bootstrap/src/main/java/org
> ./bootstrap/src/main/java/org/apache
> ./bootstrap/src/main/java/org/apache/polygene
> ./bootstrap/src/main/java/org/apache/polygene/generator
> ./bootstrap/src/main/java/org/apache/polygene/generator/test
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/ui
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/ui/UserInterfaceLayer.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/ui/CommandLineModule.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/config
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/config/ConfigurationLayer.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/config/ConfigModule.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/infrastructure
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/infrastructure/JavaxJsonSerializationModule.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/infrastructure/MemcacheCachingModule.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/infrastructure/MemoryStorageModule.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/infrastructure/RdfIndexingModule.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/infrastructure/CodahaleMetricsModule.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/infrastructure/FileConfigurationModule.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/infrastructure/InfrastructureLayer.java
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/domain
> ./bootstrap/src/main/java/org/apache/polygene/generator/test/bootstrap/domain/DomainLayer.java
> ./app
> ./app/build.gradle
> ./gradlew.bat
> ./settings.gradle
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message