-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Testcases failure for PhantomJS2.0 #1898
Comments
Are you still running into issues? Did you try running the tests with the latest LoopBack? |
@superkhau , i did try with the latest top of the tree for loopback . It still fails with above "PhantmoJS crashed " error. |
@superkhau /**********************************/ Running "karma:unit-once" (karma) task /*******************************/ My phantomJS version is : Regards, |
The latest master is failing on my machine too. Unfortunately, I do not have the time to look into why yet, but feel free to submit a patch and I'll get it merged. The basic unit tests are failing ATM and we need to address this first. |
I think it may be related to loopbackio/loopback-datasource-juggler#815 (comment) |
@superkhau , @jannyHou - is your machine "ppc64le" architecture one ? Asking to confirm if these failures are observed on x86 machines as well. Also let me know how/where to debug this issue , i am a newbie to both phantomjs/strongloop , i would be glad to contribute if i can debug it better .. Regards, |
Thank you @ghatwala my system is 64-bit windows, I haven't get your error but loopback master fails on some windows tests and I am trying to fix it. |
@jannyHou , @superkhau - Were u guys able to test the loopback master , is it working at ur end ? .Please let me know if in case i can help debug further ? |
@jannyHou , @superkhau - i installed nodejs from IBM sdk , now below is my set up,
Warning: Task "mochaTest:unit" failed. Use --force to continue. Aborted due to warnings. /*****************/ Any pointers on above ? |
As part of our backlog grooming, we are closing issues that were inactive for a long period of time. @ghatwala please open a new issue if the problem can be still reproduced on the latest loopback version. |
@bajtos : ok sure !!! |
Hi,
I am having issue of PhantomJS crashing while running the testcases.
The PHANTOMJS_BIN set to /bin/phantomjs where I do have a PhantomJS2.0 which has been ported for ppc64le machine and working correctly.
Strongloop should migrate to 2.0.0 because the breakpad code is removed from 2.0.0. Since this is a very complex code to port, 1.9.8 can not be ported to ppc64le easily.
The log while running testcase for karma:unit-once is as follow:
Running "karma:unit-once" (karma) task
[D] Task source: /root/ravi/loopback/node_modules/grunt-karma/tasks/grunt-karma.js
DEBUG [config]: autoWatch set to false, because of singleRun
DEBUG [plugin]: Loading plugin karma-browserify.
DEBUG [plugin]: Loading plugin karma-mocha.
DEBUG [plugin]: Loading plugin karma-phantomjs-launcher.
DEBUG [plugin]: Loading plugin karma-chrome-launcher.
DEBUG [plugin]: Loading plugin karma-junit-reporter.
DEBUG [framework.browserify]: created browserify bundle: /root/ravi/loopback/90275854a59f43cdfd49f868813a09b9.browserify
DEBUG [framework.browserify]: add bundle to config.files at position 3
DEBUG [framework.browserify]: building bundle
DEBUG [framework.browserify]: updating test/support.js in bundle
DEBUG [framework.browserify]: updating test/loopback.test.js in bundle
DEBUG [framework.browserify]: updating test/model.test.js in bundle
DEBUG [framework.browserify]: updating test/geo-point.test.js in bundle
DEBUG [framework.browserify]: updating test/replication.test.js in bundle
DEBUG [framework.browserify]: updating test/change.test.js in bundle
DEBUG [framework.browserify]: updating test/checkpoint.test.js in bundle
DEBUG [framework.browserify]: updating test/app.test.js in bundle
DEBUG [framework.browserify]: bundling
INFO [framework.browserify]: bundle built
DEBUG [watcher]: Resolved files:
/root/ravi/loopback/node_modules/mocha/mocha.js
/root/ravi/loopback/node_modules/karma-mocha/lib/adapter.js
/root/ravi/loopback/node_modules/es5-shim/es5-shim.js
/root/ravi/loopback/90275854a59f43cdfd49f868813a09b9.browserify
/root/ravi/loopback/test/support.js
/root/ravi/loopback/test/loopback.test.js
/root/ravi/loopback/test/model.test.js
/root/ravi/loopback/test/geo-point.test.js
/root/ravi/loopback/test/replication.test.js
/root/ravi/loopback/test/change.test.js
/root/ravi/loopback/test/checkpoint.test.js
/root/ravi/loopback/test/app.test.js
INFO [karma]: Karma v0.12.37 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
DEBUG [temp-dir]: Creating temp dir at /root/ravi/loopback/karma-89306115
DEBUG [launcher]: /bin/phantomjs /root/ravi/loopback/karma-89306115/capture.js
DEBUG [web-server]: serving: /root/ravi/loopback/node_modules/karma/static/client.html
DEBUG [web-server]: serving: /root/ravi/loopback/node_modules/karma/static/karma.js
DEBUG [web-server]: upgrade /socket.io/1/websocket/Kp0iF6V1ftr4l4hqXepN
DEBUG [karma]: A browser has connected on socket Kp0iF6V1ftr4l4hqXepN
INFO [PhantomJS 2.0.0 (Linux 0.0.0)]: Connected on socket Kp0iF6V1ftr4l4hqXepN with id 89306115
DEBUG [launcher]: PhantomJS (id 89306115) captured in 0.631 secs
DEBUG [web-server]: serving: /root/ravi/loopback/node_modules/karma/static/context.html
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/mocha/mocha.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/model.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/karma-mocha/lib/adapter.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/geo-point.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/replication.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/es5-shim/es5-shim.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/90275854a59f43cdfd49f868813a09b9.browserify
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/support.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/loopback.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/change.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/checkpoint.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/app.test.js
DEBUG [PhantomJS 2.0.0 (Linux 0.0.0)]: Disconnected during run, waiting 10000ms for reconnecting.
DEBUG [launcher]: Process PhantomJS exited with code 0
ERROR [launcher]: PhantomJS crashed.
DEBUG [temp-dir]: Cleaning temp dir /root/ravi/loopback/karma-89306115
INFO [launcher]: Trying to start PhantomJS again (1/2).
DEBUG [launcher]: Restarting PhantomJS
DEBUG [temp-dir]: Creating temp dir at /root/ravi/loopback/karma-89306115
DEBUG [launcher]: /bin/phantomjs /root/ravi/loopback/karma-89306115/capture.js /root/ravi/loopback/karma-89306115/capture.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/karma/static/client.html
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/karma/static/karma.js
DEBUG [web-server]: upgrade /socket.io/1/websocket/xWs4OD14gBdwrNHKXepO
DEBUG [karma]: A browser has connected on socket xWs4OD14gBdwrNHKXepO
DEBUG [PhantomJS 2.0.0 (Linux 0.0.0)]: Reconnected on xWs4OD14gBdwrNHKXepO.
WARN [PhantomJS 2.0.0 (Linux 0.0.0)]: Disconnected (1 times), because no message in 30000 ms.
PhantomJS 2.0.0 (Linux 0.0.0): Executed 0 of 0 DISCONNECTED (30.397 secs / 0 secs)
INFO [karma]: Restarting PhantomJS 2.0.0 (Linux 0.0.0) (1 of 1 attempts)
DEBUG [launcher]: Process PhantomJS exited with code 0
DEBUG [temp-dir]: Cleaning temp dir /root/ravi/loopback/karma-89306115
DEBUG [launcher]: Restarting PhantomJS
DEBUG [temp-dir]: Creating temp dir at /root/ravi/loopback/karma-89306115
DEBUG [launcher]: /bin/phantomjs /root/ravi/loopback/karma-89306115/capture.js /root/ravi/loopback/karma-89306115/capture.js /root/ravi/loopback/karma-89306115/capture.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/karma/static/client.html
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/karma/static/karma.js
DEBUG [web-server]: upgrade /socket.io/1/websocket/_aNT-FDPsHQyJ-zyXepP
DEBUG [karma]: A browser has connected on socket _aNT-FDPsHQyJ-zyXepP
INFO [PhantomJS 2.0.0 (Linux 0.0.0)]: Connected on socket _aNT-FDPsHQyJ-zyXepP with id 89306115
DEBUG [launcher]: PhantomJS (id 89306115) captured in 31.193 secs
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/karma/static/context.html
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/mocha/mocha.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/model.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/karma-mocha/lib/adapter.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/geo-point.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/replication.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/node_modules/es5-shim/es5-shim.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/90275854a59f43cdfd49f868813a09b9.browserify
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/support.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/loopback.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/change.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/checkpoint.test.js
DEBUG [web-server]: serving (cached): /root/ravi/loopback/test/app.test.js
DEBUG [PhantomJS 2.0.0 (Linux 0.0.0)]: Disconnected during run, waiting 10000ms for reconnecting.
DEBUG [launcher]: Process PhantomJS exited with code 0
ERROR [launcher]: PhantomJS crashed.
...
Can any please help me in contributing to this issue
Regards,
Salamani
The text was updated successfully, but these errors were encountered: