PythonMigrationStatus

Not logged in - Log In / Register

Revision 93 as of 2009-10-22 20:08:28

Clear message

Moving to newer Python versions

The ultimate goal is to migrate Launchpad to Python 2.6. Rather than go straight to Python 2.6, we are focusing on Python 2.5 first as a stepping stone. People involved in this effort: maxb, gary, salgado, barry, simono. We are treating this work as a sprint; come join us on #launchpad-sprint on freenode.

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

Branches

In general, we'll merge from devel -> python-migration -> ztk-2.5 -> python-migration2.6, but we're keeping them separate in case something prevents us from making it all the way to 2.6.

Things you'll need to do

Current status of the Python 2.5 effort

It passes all of its tests!

Known/Open issues

Bustimications

Cleanup potential


Python 2.5 w/Zope Toolkit

This is a branch off of python-migration which uses Python 2.5 and the Zope Toolkit.

test failures

Python 2.6

This is the ztk-2.5 branch, converted to use Python 2.6.

Also, a multitude of modules of modules (sha, md5, sets, ...) are deprecated in Python 2.6, and many tests will fail merely because of unexpected DeprecationWarnings (but see below).

Getting started

make run failures

Tests with failures:
   test_import_script (lp.codehosting.codeimport.tests.test_worker.TestGitImport)
   testLibrarianRunning (canonical.testing.ftests.test_layers.DatabaseTestCase)
   testLibrarianRunning (canonical.testing.ftests.test_layers.ZopelessTestCase)
   lib/canonical/launchpad/ftests/../doc/old-testing.txt
   testLaunchpadDbAvailable (canonical.testing.ftests.test_layers.FunctionalTestCase)
   testLibrarianRunning (canonical.testing.ftests.test_layers.FunctionalTestCase)
   lib/canonical/shipit/tests/../doc/shipit-process-requests.txt
   lib/canonical/signon/browser/tests/loginservice-unauthorized-view.txt
   lp.codehosting.tests.test_rewrite.TestBranchRewriterScript.test_script
   lib/lp/registry/browser/tests/gpg-views.txt
   lib/lp/registry/tests/../doc/cache-country-mirrors.txt
   lib/lp/registry/tests/../doc/convert-person-to-team.txt
   lib/lp/registry/tests/../doc/teammembership.txt
   BuilddSlaveTestSetup (canonical.buildd.tests.harness)
   make_test_tarball_2 (canonical.launchpad.tests.test_helpers)
   shortlist (canonical.launchpad.helpers)
   shortlist (canonical.launchpad.helpers)
   _enable_bzr_ssh_in_urlparse (canonical.launchpad.webapp.url)
   urlparse (canonical.launchpad.webapp.url)
   urlsplit (canonical.launchpad.webapp.url)
   /home/barry/projects/launchpad/python-migration2.6/lib/canonical/lazr/tests/../doc/timeout.txt
   LibrarianTestSetup (canonical.librarian.ftests.harness)
   ZecaTestSetup (canonical.zeca.ftests.harness)
   test_successful_start_then_stop (lp.codehosting.tests.test_lpserve.TestLaunchpadServe)
   test_unexpected_error_logs_oops (lp.codehosting.tests.test_lpserve.TestLaunchpadServe)
   lp.services.scripts.tests.test_all_scripts.ScriptsTestCase.test_scripts
   lib/lp/translations/tests/../doc/remove-upstream-translations-script.txt
Total: 6208 tests, 27 failures, 27 errors in 28 minutes 46.400 seconds.