Closed Bug 618173 Opened 14 years ago Closed 14 years ago

[.*]AMO: Put spidermonkey on all AMO boxes

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

All
Other
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clouserw, Assigned: oremj)

References

Details

Our new validator uses spidermonkey for some JS static analysis.  This is very similar to what we had going with JSHydra (bug 509503) but, naturally, way better (fwiw, you can remove jshydra from the requirements for AMO boxes).  spidermonkey requires compiling on the box and using autoconf-2.13 (note that's not the default autoconf!).  These are the same requirements as jshydra so it's probably already on the box.  Please let us know where you install this - we'll need to put it in a config file soon.

If you're doing this by hand, here is what it should look like:

$ mkdir spidermonkey
$ cd spidermonkey
/spidermonkey$ hg clone http://hg.mozilla.org/tracemonkey/ .
/spidermonkey$ mkdir js/src/Linux_DBG.OBJ
/spidermonkey$ cd js/src/
/spidermonkey/js/src$ autoconf-2.13
/spidermonkey/js/src$ cd Linux_DBG.OBJ/
/spidermonkey/js/src/Linux_DBG.OBJ$ ../configure --enable-debug --disable-optimize
/spidermonkey/js/src/Linux_DBG.OBJ$ make

And to test it:

/spidermonkey/js/src/Linux_DBG.OBJ$ ./js
js> print("hello world")
hello world
js> Reflect.parse("2 + 3")
({start:{line:0, column:0}, end:{line:1, column:5}, type:"Program", body:[{start:{line:1, column:0}, end:{line:1, column:5}, type:"ExpressionStatement", expression:{start:{line:1, column:0}, end:{line:1, column:5}, type:"Literal", value:5}}]})
js> ^D
This is only required on boxes that run celeryd if that makes any difference.
(In reply to comment #1)
> This is only required on boxes that run celeryd if that makes any difference.

That's true.  Also, on the hudson boxes (master/slave).
Blocks: 618099
Assignee: server-ops → jeremy.orem+bugs
This is on the celery boxes now. I don't know the hostnames of the hudson master/slave.
(In reply to comment #3)
> This is on the celery boxes now. I don't know the hostnames of the hudson
> master/slave.

sm-hudson01.mozilla.org
dm-hudson01-slave01
On sm-hudson01/dm-hudson it's /usr/local/bin/tracemonkey
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.