Closed Bug 1172426 Opened 9 years ago Closed 9 years ago

Cannot run gaia-test anymore

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gerard-majax, Unassigned)

References

Details

(Keywords: regression)

This used to work for me flawlessly. Running |./bin/gaia-test| results in:

VIRTUALENV_EXISTS= npm install && npm rebuild
npm WARN package.json mail-fakeservers@0.0.24 No README data
npm WARN package.json mocha-json-proxy@0.0.7 No repository field.
npm WARN package.json packaged-webapp@0.1.2 No repository field.
npm WARN package.json dateformat@1.0.6-1.2.3 No repository field.
npm WARN package.json marionette-apps@0.3.13 No repository field.
npm WARN package.json marionette-client@1.7.5 No repository field.
npm WARN package.json marionette-content-script@0.0.4 No repository field.
npm WARN package.json marionette-device-host@1.0.0 No repository field.
npm WARN package.json marionette-file-manager@0.0.4 No repository field.
npm WARN package.json marionette-js-logger@0.2.1 No repository field.
npm WARN package.json marionette-js-runner@1.1.2 No repository field.
npm WARN package.json marionette-profile-builder@0.0.4 No repository field.
npm WARN package.json mocha-parallel@0.1.0 No repository field.
npm ERR! notarget No compatible version found: json-wire-protocol@'file:./tests/jsmarionette/client/json-wire-protocol'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.0.1","0.1.0","0.1.1","0.1.2","0.1.3","0.2.0","0.2.1","1.0.0"]
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! System Linux 3.16.0-38-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/alex/codaz/Mozilla/b2g/gaia
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ETARGET
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/alex/codaz/Mozilla/b2g/gaia/npm-debug.log
npm ERR! not ok code 0
Makefile:750: recipe for target 'node_modules' failed
Flags: needinfo?(gaye)
According to Gareth's mail in dev-gaia channel, you can enable local test through following steps:
1. Make sure you have npm 2 installed |npm install -g npm@latest|
2. |make clean && make really-clean && npm install|

It works for me. Good luck! :)
(In reply to Jeremy Chen [:jeremychen] from comment #1)
> According to Gareth's mail in dev-gaia channel, you can enable local test
> through following steps:
> 1. Make sure you have npm 2 installed |npm install -g npm@latest|
> 2. |make clean && make really-clean && npm install|
> 
> It works for me. Good luck! :)

I just found that if I remove node_modules folder and run "make node_modules" in gaia, it won't work for now. To my knowledge, "make node_modules" is the right way to build the test environment agree with that on treeherder? So, I'm not sure if this comment really solves the problem....
(In reply to Jeremy Chen [:jeremychen] from comment #1)
> According to Gareth's mail in dev-gaia channel, you can enable local test
> through following steps:
> 1. Make sure you have npm 2 installed |npm install -g npm@latest|

Why cannot this be properly checked by the build system ?
(In reply to Alexandre LISSY :gerard-majax from comment #3)
> (In reply to Jeremy Chen [:jeremychen] from comment #1)
> > According to Gareth's mail in dev-gaia channel, you can enable local test
> > through following steps:
> > 1. Make sure you have npm 2 installed |npm install -g npm@latest|
> 
> Why cannot this be properly checked by the build system ?

And worst, this is going to conflict with my system's packages ...
Installed npm2 locally, running |PATH=$PATH:$PWD/node_modules/.bin/ npm install| still fails
(In reply to Alexandre LISSY :gerard-majax from comment #5)
> Installed npm2 locally, running |PATH=$PATH:$PWD/node_modules/.bin/ npm
> install| still fails

Which is expected ... Inverting the PATH components it's better now.
Resolved after:
 - npm install npm@latest (and not globally)
 - PATH=$PẄD/node_modules/.bin/ npm install
 - PATH=$PẄD/node_modules/.bin/ ./bin/gaia-test
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Flags: needinfo?(gaye)
You need to log in before you can comment on or make changes to this bug.