PythonMigrationStatus

Not logged in - Log In / Register

Revision 131 as of 2010-04-09 00:01:34

Clear message

Moving to newer Python versions

With Lucid fast approaching, efforts to actually migrate Launchpad to Python 2.6 are getting under way.

Relevant tagged bugs: https://bugs.launchpad.net/launchpad-foundations/+bugs?field.tag=python-upgrade

Branches

Obsolete branches from the last push, which got us to 2.5

Remaining useful content of these branches:

The new effort

With the two changes above I was able to get the test suite to run to completion: Total: 25856 tests, 71 failures, 119 errors in 300 minutes 55.792 seconds.

Here's the full log: tests.log

Known/Open issues

Setup caveat

Cleanup potential

Situation

A multitude of modules of modules (sha, md5, sets, ...) are deprecated in Python 2.6, and many tests would fail merely because of unexpected DeprecationWarnings, so we've had to jump through multiple hoops all over the place to suppress these. Ultimately we need a plan for removing these suppressions, because we want to know about deprecation long-term.

Known test failures and notes thereon

TEST RUN INCOMPLETE - Following layers run manually individually

Failed doctest test for shipit.txt
File "lib/canonical/shipit/tests/../doc/shipit.txt", line 0

----------------------------------------------------------------------
File "lib/canonical/shipit/tests/../doc/shipit.txt", line 445, in shipit.txt
Failed example:
    out, err
Differences (ndiff with -expected +actual):
    - ('', '')
    + ('', '/home/salgado/devel/launchpad/real-python-2.6/lib/cscvs/dircompare/ dirsums.py:18: DeprecationWarning: the md5 module is deprecated; use hashlib    instead\n  import md5\n/home/salgado/devel/launchpad/real-python-2.6/lib/       canonical/uuid.py:10: DeprecationWarning: the sha module is deprecated; use the hashlib module instead\n  import time, random, subprocess, thread, sha\n')
----------------------------------------------------------------------
File "lib/canonical/shipit/tests/../doc/shipit.txt", line 1211, in shipit.txt
Failed example:
    out, err
Differences (ndiff with -expected +actual):
    - ('', '')
    + ('', '/home/salgado/devel/launchpad/real-python-2.6/lib/canonical/uuid.py:10: DeprecationWarning: the sha module is deprecated; use the hashlib module    instead\n  import time, random, subprocess, thread, sha\n/home/salgado/devel/   launchpad/real-python-2.6/lib/cscvs/dircompare/dirsums.py:18:                   DeprecationWarning: the md5 module is deprecated; use hashlib instead\n  import md5\n')

Failure in test lib/canonical/shipit/tests/../doc/shipit-process-requests.txt
Failed doctest test for shipit-process-requests.txt
  File "lib/canonical/shipit/tests/../doc/shipit-process-requests.txt", line 0

----------------------------------------------------------------------
File "lib/canonical/shipit/tests/../doc/shipit-process-requests.txt", line 96,  in shipit-process-requests.txt
Failed example:
    out, err
Differences (ndiff with -expected +actual):
    - ('', '')
    + ('', '/home/salgado/devel/launchpad/real-python-2.6/lib/cscvs/dircompare/ dirsums.py:18: DeprecationWarning: the md5 module is deprecated; use hashlib    instead\n  import md5\n/home/salgado/devel/launchpad/real-python-2.6/lib/       canonical/uuid.py:10: DeprecationWarning: the sha module is deprecated; use the hashlib module instead\n  import time, random, subprocess, thread, sha\n')

Running canonical.testing.layers.PageTestLayer tests:
  Running in a subprocess.
  Set up canonical.testing.layers.BaseLayer in 0.007 seconds.
  Set up canonical.testing.layers.DatabaseLayer in 0.898 seconds.
  Set up canonical.testing.layers.LibrarianLayer in 10.149 seconds.
  Set up canonical.testing.layers.MemcachedLayer in 0.120 seconds.
  Set up canonical.testing.layers.LaunchpadLayer in 0.000 seconds.
  Set up canonical.testing.layers.FunctionalLayer in 7.771 seconds.
  Set up canonical.testing.layers.LaunchpadFunctionalLayer in 0.000 seconds.
  Set up canonical.testing.layers.GoogleServiceLayer Traceback (most recent     call last):
  File "/home/salgado/devel/lp-sourcedeps/2.6/eggs/zope.testing-3.8.1-py2.6.egg/zope/testing/testrunner/runner.py", line 364, in run_layer
    setup_layer(options, layer, setup_layers)
  File "/home/salgado/devel/lp-sourcedeps/2.6/eggs/zope.testing-3.8.1-py2.6.egg/zope/testing/testrunner/runner.py", line 624, in setup_layer
    setup_layer(options, base, setup_layers)
  File "/home/salgado/devel/lp-sourcedeps/2.6/eggs/zope.testing-3.8.1-py2.6.egg/zope/testing/testrunner/runner.py", line 629, in setup_layer
    layer.setUp()
  File "/home/salgado/devel/launchpad/real-python-2.6/lib/canonical/testing/    layers.py", line 1133, in setUp
    google.setUp()
  File "/home/salgado/devel/launchpad/real-python-2.6/lib/canonical/launchpad/  testing/tests/googleserviceharness.py", line 76, in setUp
    self.startService()
  File "/home/salgado/devel/launchpad/real-python-2.6/lib/canonical/launchpad/  testing/tests/googleserviceharness.py", line 88, in startService
    googletestservice.wait_for_service()
  File "/home/salgado/devel/launchpad/real-python-2.6/lib/canonical/launchpad/  testing/googletestservice.py", line 126, in wait_for_service
    sock.connect((host, port))
  File "<string>", line 1, in connect
error: [Errno 103] Software caused connection abort

  Tear down canonical.testing.layers.LaunchpadFunctionalLayer in 0.000 seconds.
  Tear down canonical.testing.layers.LaunchpadLayer in 0.000 seconds.
  Tear down canonical.testing.layers.LibrarianLayer in 0.011 seconds.
  Tear down canonical.testing.layers.MemcachedLayer in 0.101 seconds.
  Tear down canonical.testing.layers.FunctionalLayer ... not supported
  Tear down canonical.testing.layers.DatabaseLayer in 0.065 seconds.
  Tear down canonical.testing.layers.BaseLayer in 0.000 seconds.

Tests with errors:
   runTest (zope.testing.testrunner.runner.SetUpLayerFailure)