Closed Bug 773015 Opened 14 years ago Closed 14 years ago

[*AMO] Upgrade spidermonkey

Categories

(Cloud Services :: Operations: Marketplace, task)

All
Other
task
Not set
normal

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.
Whiteboard: [ReviewTeam]
Assignee: server-ops-webops → server-ops
Component: Server Operations: Web Operations → Server Operations: AMO Operations
QA Contact: cshields → oremj
Assignee: server-ops → jthomas
Upgraded spidermonkey on hosts.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
(In reply to Jason Thomas [:jason] from comment #1) > Upgraded spidermonkey on hosts. Can you specify which hosts? (ie. did this hit production already?)
(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.
(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?
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.
Yes, this was also added to jenkins1.dmz.phx1.mozilla.com.
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).
Jason, what exact Spidermonkey version are we using now? We're still getting parse errors for features that were added in Gecko 13.
(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
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
Current AMO settings: settings_local_base.py:SPIDERMONKEY = '/usr/bin/tracemonkey'
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 []) ;
[jthomas@addonsadm.private.phx1 ~]$ tracemonkey js> for (a of []) ; typein:2: SyntaxError: missing ; after for-loop initializer: typein:2: for (a of []) ; typein:2: .......^
That's not new enough, then.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
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: .......^
Oh... you should probably be building from mozilla-central. The last update to that tree was in 2011.
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.
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.
Is "allow_xml" required even for the parser API?
Yep. Like I said, tests were failing if they used E4X.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
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 → ---
Update is already on dev. I just installed this on stage.
Are we okay to update this in prod on the next code push?
Status: REOPENED → ASSIGNED
The validator has been updated, so it's fine to push the Spidermonkey update.
Updated on all prod hosts.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
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.