Update to Storm 0.15

Bug #405772 reported by Stuart Bishop
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Stuart Bishop

Bug Description

We should update to Storm 0.15 when it is released. Currently we are running a custom build, found at lp:~stub/storm/launchpad.

Related branches

Revision history for this message
Stuart Bishop (stub) wrote :

Targetting for 3.0 - a 0.15 release should be made before then.

Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 3.0
Revision history for this message
Stuart Bishop (stub) wrote :
Download full text (17.1 KiB)

The code in 0.14 to better handle distinct with aggregate functions was backed out. A new fix needs to be landed before 0.15 can be released. The proposed fix is https://code.launchpad.net/~jamesh/storm/bug-217644/+merge/7680.

The Launchpad test suite has two failing tests when run against this branch. Perhaps the fix isn't complete, or perhaps we were relying on broken behavior?

File "lib/lp/registry/tests/../doc/vocabularies.txt", line 1132, in vocabularies.txt
Failed example:
   people.count() > 0
Exception raised:
   Traceback (most recent call last):
     File "/var/launchpad/test/lib/zope/testing/doctest.py", line 1360, in __run
       compileflags, 1) in test.globs
     File "<doctest vocabularies.txt[327]>", line 1, in ?
       people.count() > 0
     File "/var/launchpad/tmp/eggs/storm-0.14jamesh_storm_bug_217644_311-py2.4-linux-x86_64.egg/storm/store.py", line 1217, in count
       return int(self._aggregate(lambda expr: Count(expr, distinct), expr))
     File "/var/launchpad/tmp/eggs/storm-0.14jamesh_storm_bug_217644_311-py2.4-linux-x86_64.egg/storm/store.py", line 1206, in _aggregate
       result = self._store._connection.execute(select)
     File "/var/launchpad/tmp/eggs/storm-0.14jamesh_storm_bug_217644_311-py2.4-linux-x86_64.egg/storm/databases/postgres.py", line 257, in execute
       return Connection.execute(self, statement, params, noresult)
     File "/var/launchpad/tmp/eggs/storm-0.14jamesh_storm_bug_217644_311-py2.4-linux-x86_64.egg/storm/database.py", line 203, in execute
       raw_cursor = self.raw_execute(statement, params)
     File "/var/launchpad/tmp/eggs/storm-0.14jamesh_storm_bug_217644_311-py2.4-linux-x86_64.egg/storm/databases/postgres.py", line 267, in raw_execute
       return Connection.raw_execute(self, statement, params)
     File "/var/launchpad/tmp/eggs/storm-0.14jamesh_storm_bug_217644_311-py2.4-linux-x86_64.egg/storm/database.py", line 285, in raw_execute
       self._check_disconnect(raw_cursor.execute, *args)
     File "/var/launchpad/tmp/eggs/storm-0.14jamesh_storm_bug_217644_311-py2.4-linux-x86_64.egg/storm/database.py", line 328, in _check_disconnect
       return function(*args, **kwargs)
     File "/var/launchpad/test/lib/canonical/ftests/pgsql.py", line 108, in execute
       return self.real_cursor.execute(*args, **kwargs)
   ProgrammingError: for SELECT DISTINCT, ORDER BY expressions must appear in select list

Failure in test lib/lp/registry/tests/../stories/foaf/xx-adminteammerge.txt
Failed doctest test for xx-adminteammerge.txt
 File "lib/lp/registry/tests/../stories/foaf/xx-adminteammerge.txt", line 0

----------------------------------------------------------------------
File "lib/lp/registry/tests/../stories/foaf/xx-adminteammerge.txt", line 84, in xx-adminteammerge.txt
Failed example:
   admin_browser.getControl('Merge').click()
Exception raised:
   Traceback (most recent call last):
     File "/var/launchpad/test/lib/zope/testing/doctest.py", line 1360, in __run
       compileflags, 1) in test.globs
     File "<doctest xx-adminteammerge.txt[34]>", line 1, in ?
     File "/var/launchpad/test/lib/zope/testbrowser/browser.py", line 591, in click
       self.browser._clickSubmit(sel...

Revision history for this message
Stuart Bishop (stub) wrote :

Branch that uses the updated Storm is lp:~stub/launchpad/update-storm

Revision history for this message
James Henstridge (jamesh) wrote :

I've uploaded r312 of my lp:~jamesh/storm/bug-217644 branch, which should fix the above problem (and probably not introduce new ones).

Revision history for this message
Stuart Bishop (stub) wrote :

The full test suite passes with r312 of James' Storm branch.

Revision history for this message
Stuart Bishop (stub) wrote :

Launchpad devel is now running with lp:storm r321.

Changed in launchpad-foundations:
assignee: nobody → Stuart Bishop (stub)
status: Triaged → Fix Released
Revision history for this message
Michael Nelson (michael.nelson) wrote :

There are a number of XXX references to bug 217644 in the code.

Changed in soyuz:
status: New → In Progress
assignee: nobody → Michael Nelson (michael.nelson)
milestone: none → 10.09
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Changed in soyuz:
status: In Progress → Fix Committed
tags: added: qa-untestable
removed: qa-needstesting
tags: added: qa-needstesting
removed: qa-untestable
tags: added: qa-untestable
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in soyuz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.