Closed
Bug 773015
Opened 14 years ago
Closed 14 years ago
[*AMO] Upgrade spidermonkey
Categories
(Cloud Services :: Operations: Marketplace, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: clouserw, Assigned: jason)
References
Details
(Whiteboard: [ReviewTeam])
+++ This bug was initially created as a clone of Bug #650728 +++
Please upgrade the spidermonkey installs on the AMO boxes - as before, this is only needed on the celeryd boxes and the hudson master/slaves.
Bug 618173 has step by step instructions for building spidermonkey. Thanks.
Updated•14 years ago
|
Whiteboard: [ReviewTeam]
Updated•14 years ago
|
Assignee: server-ops-webops → server-ops
Component: Server Operations: Web Operations → Server Operations: AMO Operations
QA Contact: cshields → oremj
| Assignee | ||
Updated•14 years ago
|
Assignee: server-ops → jthomas
| Assignee | ||
Comment 1•14 years ago
|
||
Upgraded spidermonkey on hosts.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 2•14 years ago
|
||
(In reply to Jason Thomas [:jason] from comment #1)
> Upgraded spidermonkey on hosts.
Can you specify which hosts? (ie. did this hit production already?)
| Assignee | ||
Comment 3•14 years ago
|
||
(In reply to Wil Clouser [:clouserw] from comment #2)
> (In reply to Jason Thomas [:jason] from comment #1)
> > Upgraded spidermonkey on hosts.
>
> Can you specify which hosts? (ie. did this hit production already?)
This was updated on all hosts, dev,stage and prod.
| Reporter | ||
Comment 4•14 years ago
|
||
(In reply to Jason Thomas [:jason] from comment #3)
> (In reply to Wil Clouser [:clouserw] from comment #2)
> > (In reply to Jason Thomas [:jason] from comment #1)
> > > Upgraded spidermonkey on hosts.
> >
> > Can you specify which hosts? (ie. did this hit production already?)
>
> This was updated on all hosts, dev,stage and prod.
And hudson?
Comment 5•14 years ago
|
||
Did someone run the validator test suite against the latest Spidermonkey before the upgrade? Next time we should upgrade dev at least a week or so before prod as changes to the reflect output have potential to cause serious breakage.
| Assignee | ||
Comment 6•14 years ago
|
||
Yes, this was also added to jenkins1.dmz.phx1.mozilla.com.
Comment 7•14 years ago
|
||
When the validator encounters a node type that it doesn't recognize, it tries to traverse each branch as an expression. If it fails, it simply continues traversing where it left off. Upgrading Spidermonkey should prevent the compilation errors form happening and the validator should continue to run as it normally does (sans comprehensive support for the new JS constructs).
Comment 8•14 years ago
|
||
Jason, what exact Spidermonkey version are we using now? We're still getting parse errors for features that were added in Gecko 13.
| Assignee | ||
Comment 9•14 years ago
|
||
(In reply to Kris Maglione [:kmag] from comment #8)
> Jason, what exact Spidermonkey version are we using now? We're still getting
> parse errors for features that were added in Gecko 13.
Is this right way to get the version?
[jthomas@addonsadm.private.phx1 ~]$ tracemonkey
js> version()
185
Comment 10•14 years ago
|
||
jason, the executable path we look for is `js` unless the SPIDERMONKEY setting has been configured to use tracemonkey. Can you check the version of js and/or check the settings for AMO? The default is None (which falls back to js) https://github.com/mozilla/zamboni/blob/master/lib/settings_base.py#L1219
| Assignee | ||
Comment 11•14 years ago
|
||
Current AMO settings:
settings_local_base.py:SPIDERMONKEY = '/usr/bin/tracemonkey'
Comment 12•14 years ago
|
||
The return value of version() isn't all that useful at the moment. If the following snippet runs without issue it should be sufficient:
for (a of []) ;
| Assignee | ||
Comment 13•14 years ago
|
||
[jthomas@addonsadm.private.phx1 ~]$ tracemonkey
js> for (a of []) ;
typein:2: SyntaxError: missing ; after for-loop initializer:
typein:2: for (a of []) ;
typein:2: .......^
Comment 14•14 years ago
|
||
That's not new enough, then.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 15•14 years ago
|
||
I tried building this again with instructions in Bug 618173 with the same results. Can someone verify that these instructions are correct?
[jthomas@rhel6dev64.sandbox.phx1 spidermonkey]$ hg summary
parent: 73897:74b2b46fca7d tip
Dummy merge to revert tracemonkey to mozilla-inbound tip so we can run TM-specific tests on the CLOSED TREE known as tracemonkey (r=testing-gods)
branch: default
commit: (clean)
update: (current)
[jthomas@rhel6dev64.sandbox.phx1 Linux_DBG.OBJ]$ ./js
js> for (a of []) ;
typein:1: SyntaxError: missing ; after for-loop initializer:
typein:1: for (a of []) ;
typein:1: .......^
Comment 16•14 years ago
|
||
Oh... you should probably be building from mozilla-central. The last update to that tree was in 2011.
| Assignee | ||
Comment 17•14 years ago
|
||
I rebuilt js using mozilla-central. I have deployed it on -dev and jenkins.
[root@dev1.addons.phx1 ~]# tracemonkey
js> for (a of []) ;
js>
Let me know when it is okay to roll on stage/prod.
Comment 18•14 years ago
|
||
I just ran the test suite against the shell in m-c and it looks like it now requires running options("allow_xml") in order for E4X to work, so the upgrade needs to wait for the validator to support that.
Comment 19•14 years ago
|
||
Is "allow_xml" required even for the parser API?
Comment 20•14 years ago
|
||
Yep. Like I said, tests were failing if they used E4X.
Comment 21•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Comment 22•14 years ago
|
||
Thanks, Matt. Reopening until Spidermonkey is actually updated.
I think it should be OK to update dev and stage now. Maybe wait a couple of days for prod?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 23•14 years ago
|
||
Update is already on dev. I just installed this on stage.
| Assignee | ||
Comment 24•14 years ago
|
||
Are we okay to update this in prod on the next code push?
Status: REOPENED → ASSIGNED
Comment 25•14 years ago
|
||
The validator has been updated, so it's fine to push the Spidermonkey update.
| Assignee | ||
Comment 26•14 years ago
|
||
Updated on all prod hosts.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Component: Server Operations: AMO Operations → Operations: Marketplace
Product: mozilla.org → Mozilla Services
You need to log in
before you can comment on or make changes to this bug.
Description
•