Coder Social home page Coder Social logo

test fails about vert.x HOT 14 CLOSED

eclipse-vertx avatar eclipse-vertx commented on May 16, 2024
test fails

from vert.x.

Comments (14)

purplefox avatar purplefox commented on May 16, 2024

Are you using master?

Test suite runs fine for me (tested using OSX and Ubuntu 11.04), OpenJDK and Oracle JDK 1.7

from vert.x.

fix avatar fix commented on May 16, 2024

yes

from vert.x.

purplefox avatar purplefox commented on May 16, 2024

What filesystem are you using?

from vert.x.

purplefox avatar purplefox commented on May 16, 2024

Can you attach the stack trace / log output too? Thx

from vert.x.

fix avatar fix commented on May 16, 2024

ok, more on this: when checked out v0.2, i have 6 failures as well but in TLSTest, with the following error

java.io.FileNotFoundException: ./src/tests/resources/keystores/server-keystore.jks (No such file or directory)

actually ./src/tests/resources does not exists in v0.2 but ./src/tests/keystores/ ...

As for master, i could not reproduce the error for FileSysteTest (maybe a non cleaned target folder...) However i still have the TLSTest failing with a slightly different error:

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

from vert.x.

fix avatar fix commented on May 16, 2024

and my file system is ext4 ....

from vert.x.

purplefox avatar purplefox commented on May 16, 2024

Try doing a clean git clone from master, then rebuild again.

For the certificate issue, I believe this is an OpenJDK issue, see this thread for more info http://groups.google.com/group/dynjs-dev/browse_thread/thread/cddf168c94363b28#

from vert.x.

fix avatar fix commented on May 16, 2024

ok, for FileSystemTest, i reproduced the failure once (no error stacktrace) when i did a clean clone, and then redoing the tests (hitting ant java-tests again), it passes!

I'll tell you for OpenJDK certificates issues.

from vert.x.

purplefox avatar purplefox commented on May 16, 2024

In case there's a race condition, I've run FileSystem tests in a loop for 10s of thousands of iterations, and it always passes for me.

If you see it fail again, please can you take a stack trace? Thanks.

from vert.x.

fix avatar fix commented on May 16, 2024

for openJDK certificates, i have 159 entries in my openjdk-7 cacerts, so it is hardly the issue. Trying to dig out more.

Also sometimes the FileSystemTest is failing every now and then. Doing something with the file system (chmod, touch...) solves the problem, until next failure. Odd!

from vert.x.

fix avatar fix commented on May 16, 2024

Ok got it again: here is the fail:

ubuntu@ubuntu:~/git/vert.x$ ant java-tests
Buildfile: build.xml

init:

compile-core:

jar-core:

compile-tests:

compile-test-apps:

java-tests:
   [testng] [TestNG] Running:
   [testng]   Ant suite
   [testng] 
   [testng] [main] 11:53:33,762 FINE [org.vertx.tests.core.TestBase]  *** STARTING TEST org.vertx.tests.core.ConnectionPoolTest
   [testng] [main] 11:53:34,011 FINE [org.vertx.tests.core.TestBase]  *** STOPPING TEST org.vertx.tests.core.ConnectionPoolTest
   [testng] [main] 11:53:34,012 FINE [org.vertx.tests.core.TestBase]  *** STARTING TEST org.vertx.tests.core.GlobalHandlersTest
   [testng] [main] 11:53:34,022 FINE [org.vertx.tests.core.TestBase]  *** STOPPING TEST org.vertx.tests.core.GlobalHandlersTest
   [testng] [main] 11:53:34,022 FINE [org.vertx.tests.core.TestBase]  *** STARTING TEST org.vertx.tests.core.TimerTest
   [testng] [main] 11:53:35,987 FINE [org.vertx.tests.core.TestBase]  *** STOPPING TEST org.vertx.tests.core.TimerTest
   [testng] [main] 11:53:35,987 FINE [org.vertx.tests.core.TestBase]  *** STARTING TEST org.vertx.tests.core.appmanager.AppManagerTest
   [testng] [vert.x-core-thread-0] 11:53:36,140 INFO [org.vertx.java.core.app.AppManager]  Deploying application name : myapp type: JAVA main class: com.acme.someapp.TestApp2 instances: 4
   [testng] [vert.x-core-thread-0] 11:53:36,148 INFO [org.vertx.java.core.app.AppManager]  Started 4 instances ok
   [testng] [vert.x-core-thread-0] 11:53:36,396 INFO [org.vertx.java.core.app.AppManager]  Undeploying 4 instances of application: myapp
   [testng] [vert.x-core-thread-0] 11:53:37,007 INFO [org.vertx.java.core.app.AppManager]  Deploying application name : myapp type: JAVA main class: com.acme.someapp.TestApp1 instances: 4
   [testng] Starting app
   [testng] [vert.x-core-thread-0] 11:53:37,014 INFO [org.vertx.java.core.app.AppManager]  Started 4 instances ok
   [testng] Starting app
   [testng] Starting app
   [testng] Starting app
   [testng] Stopping app
   [testng] Stopping app
   [testng] Stopping app
   [testng] Stopping app
   [testng] [vert.x-core-thread-0] 11:53:37,234 INFO [org.vertx.java.core.app.AppManager]  Undeploying 4 instances of application: myapp
   [testng] [main] 11:53:37,737 FINE [org.vertx.tests.core.TestBase]  *** STOPPING TEST org.vertx.tests.core.appmanager.AppManagerTest
   [testng] [main] 11:53:37,739 FINE [org.vertx.tests.core.TestBase]  *** STARTING TEST org.vertx.tests.core.buffer.BufferTest
   [testng] [main] 11:53:37,760 FINE [org.vertx.tests.core.TestBase]  *** STOPPING TEST org.vertx.tests.core.buffer.BufferTest
   [testng] [main] 11:53:37,761 FINE [org.vertx.tests.core.TestBase]  *** STARTING TEST org.vertx.tests.core.composition.ComposerTest
   [testng] [main] 11:53:37,765 FINE [org.vertx.tests.core.TestBase]  *** STOPPING TEST org.vertx.tests.core.composition.ComposerTest
   [testng] [main] 11:53:37,774 FINE [org.vertx.tests.core.TestBase]  *** STARTING TEST org.vertx.tests.core.eventbus.EventBusTest
   [testng] [vert.x-core-thread-0] 11:53:40,394 INFO [org.vertx.tests.core.eventbus.EventBusTest]  ********** RUNNING TEST: doTestLocalHandler
   [testng] [vert.x-core-thread-0] 11:53:40,406 INFO [org.vertx.tests.core.eventbus.EventBusTest]  ********** RUNNING TEST: doTestNonLocalHandler
   [testng] [vert.x-core-thread-0] 11:53:40,432 INFO [org.vertx.tests.core.eventbus.EventBusTest]  ********** RUNNING TEST: doTestHandlersAll
   [testng] [vert.x-core-thread-0] 11:53:40,460 INFO [org.vertx.tests.core.eventbus.EventBusTest]  ********** RUNNING TEST: doTestHandlersAllMultiple
   [testng] [vert.x-core-thread-0] 11:53:40,504 INFO [org.vertx.tests.core.eventbus.EventBusTest]  ********** RUNNING TEST: doTestNonMatchingHandlers
   [testng] [main] 11:53:47,793 INFO [org.vertx.tests.core.TestBase]  ************************************************************************************************* netservers!!! 3 org.vertx.tests.core.eventbus.EventBusTest
   [testng] [main] 11:53:47,795 FINE [org.vertx.tests.core.TestBase]  *** STARTING TEST org.vertx.tests.core.file.FileSystemTest
   [testng] [main] 11:53:48,746 INFO [org.vertx.tests.core.TestBase]  ************************************************************************************************* netservers!!! 3 org.vertx.tests.core.file.FileSystemTest
   [testng] 
   [testng] ===============================================
   [testng] Ant suite
   [testng] Total tests run: 152, Failures: 8, Skips: 56
   [testng] Configuration Failures: 2, Skips: 28
   [testng] ===============================================
   [testng] 
   [testng] The tests failed.

from vert.x.

purplefox avatar purplefox commented on May 16, 2024

If you look in the test-output directory there is a file called testng-results which should contain more information (stacktrace etc). Can you post that please?

from vert.x.

fix avatar fix commented on May 16, 2024

ok, sorry, here it is https://gist.github.com/1533541

from vert.x.

fix avatar fix commented on May 16, 2024

for the record, it turned out that umask on recent ubuntu and fedora linux is set to 0002. To have the tests passed, do umask 0022 before running the test. It can automatically be set easily on gradle. I'll submit a patch.

from vert.x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.