PythonMigrationStatus

Not logged in - Log In / Register

Revision 22 as of 2009-10-13 18:34:06

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.

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

Branches

Known/Open issues

Bustimications

Cleanup potential

Launchpad source dependencies (sourcecode bzr trees)

The Makefiles of pygettextpo & pygpgme make direct reference to Python 2.4, you'll need to amend them appropriately.

Baseline

Baseline failures using Karmic + devel + Python 2.4. There is no plan to fix failures in Python 2.5 for tests that are already broken in Python 2.4.

Tests with errors:
   lp.translations.tests.test_autoapproval.TestCleanup.test_cleanUpInactiveProductEntries
   lp.translations.tests.test_autoapproval.TestCleanup.test_cleanUpObsoleteDistroEntries
   lp.translations.tests.test_autoapproval.TestCleanup.test_cleanUpObsoleteEntries_affected_statuses
   lp.translations.tests.test_autoapproval.TestCleanup.test_cleanUpObsoleteEntries_unaffected_statuses
   lp.translations.tests.test_autoapproval.TestGetPOFileFromLanguage.test_get_pofile_from_language_feeds_enabled_template
   lp.translations.tests.test_autoapproval.TestGetPOFileFromLanguage.test_get_pofile_from_language_starves_disabled_template
   test_CustomLanguageCodeEnablesMatch (lp.translations.tests.test_autoapproval.TestGuessPOFileCustomLanguageCode)
   test_CustomLanguageCodeHidesPOFile (lp.translations.tests.test_autoapproval.TestGuessPOFileCustomLanguageCode)
   test_CustomLanguageCodeParsesBogusLanguage (lp.translations.tests.test_autoapproval.TestGuessPOFileCustomLanguageCode)
   test_CustomLanguageCodePreventsMatch (lp.translations.tests.test_autoapproval.TestGuessPOFileCustomLanguageCode)
   test_CustomLanguageCodeRedirectsMatch (lp.translations.tests.test_autoapproval.TestGuessPOFileCustomLanguageCode)
   test_CustomLanguageCodeReplacesMatch (lp.translations.tests.test_autoapproval.TestGuessPOFileCustomLanguageCode)
   test_CustomLanguageCodesSwitchLanguages (lp.translations.tests.test_autoapproval.TestGuessPOFileCustomLanguageCode)
   test_MatchWithoutCustomLanguageCode (lp.translations.tests.test_autoapproval.TestGuessPOFileCustomLanguageCode)
   test_kde3 (lp.translations.tests.test_autoapproval.TestKdePOFileGuess)
   test_kde4 (lp.translations.tests.test_autoapproval.TestKdePOFileGuess)
   test_ByPathAndOriginDistroFromSourcePackageNoCurrentTemplate (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByPathAndOriginDistroFromSourcePackageNonCurrentDuplicate (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByPathAndOriginDistroNoCurrentTemplate (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByPathAndOriginDistroNonCurrentDuplicate (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByPathAndOriginProductNoCurrentTemplate (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByPathAndOriginProductNonCurrentDuplicate (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByPathAndOrigin_from_package_duplicate (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByPathAndOrigin_package_duplicate (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByPathAndOrigin_preferred_match (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByPathAndOrigin_product_duplicate (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByTranslationDomain (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByTranslationDomain_duplicate (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ByTranslationDomain_none (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   test_ClashingEntries (lp.translations.tests.test_autoapproval.TestTemplateGuess)
   lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror
   lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror_with_destination_self_locked
   lp.code.mail.tests.test_codehandler.TestCodeHandler.test_reviewer_with_diff

Tests with failures:
   lp.soyuz.tests.test_packageupload.PackageUploadTestCase.test_realiseUpload_for_delayed_copies
   lib/lp/translations/tests/../doc/sourcepackagerelease-translations.txt
   /home/barry/projects/launchpad/eggs/launchpadlib-1.5.1-py2.4.egg/launchpadlib/docs/people.txt
   /home/barry/projects/launchpad/eggs/launchpadlib-1.5.1-py2.4.egg/launchpadlib/docs/toplevel.txt
   lib/canonical/launchpad/pagetests/webservice/xx-wadl.txt
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_hosted_branch_stacked_on_mirrored_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_manual_stacking
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_mirror_hosted_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_mirror_hosted_loom_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_mirror_imported_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_mirror_mirrored_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_mirror_private_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_remirror_hosted_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_stack_mirrored_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_stack_mirrored_branch_onto_private
   lp.services.scripts.tests.test_all_scripts.ScriptsTestCase.test_scripts
Total: 24555 tests, 16 failures, 33 errors in 135 minutes 18.295 seconds.

test status for ~gary/launchpad/py25

Tests with errors:
   lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror
   lp.codehosting.puller.tests.test_scheduler.TestPullerMasterIntegration.test_mirror_with_destination_self_locked

Tests with failures:
   lp.scripts.utilities.tests.test_sanitizedb.SanitizeDbScriptTestCase.test_script
   lp.scripts.utilities.tests.test_sanitizedb.SanitizeDbScriptTestCase.test_script_dryrun
   lib/lp/bugs/tests/../doc/checkwatches-cli-switches.txt
   lib/lp/bugs/tests/../doc/externalbugtracker-mantis-csv.txt
   lib/lp/soyuz/tests/../doc/buildd-slavescanner.txt
   lp.soyuz.tests.test_packageupload.PackageUploadTestCase.test_realiseUpload_for_delayed_copies
   lp.translations.scripts.tests.test_reupload_translations.TestReuploadScript.test_reupload_translations
   lib/canonical/shipit/tests/../doc/shipit.txt
   lib/canonical/launchpad/ftests/../doc/pagetest-helpers.txt
   lib/canonical/launchpad/ftests/../doc/tales.txt
   lib/canonical/launchpad/ftests/../doc/unicode_csv.txt
   lib/canonical/launchpad/scripts/ftests/librarianformatter.txt
   lib/lp/bugs/tests/externalbugtracker-xmlrpc-transport.txt
   lib/lp/registry/browser/tests/person-views.txt
   lp.soyuz.scripts.tests.test_copypackage.ReUploadFileTestCase.test_re_upload_file_does_not_leak_file_descriptors
   lib/lp/soyuz/tests/../doc/distroseriesqueue-translations.txt
   lib/lp/translations/tests/../doc/poexport-language-pack.txt
   lib/lp/translations/tests/../doc/poexport-request-productseries.txt
   lib/lp/translations/tests/../doc/poexport-request.txt
   lib/lp/translations/tests/../doc/potemplate.txt
   /home/barry/projects/launchpad/eggs/launchpadlib-1.5.1-py2.5.egg/launchpadlib/docs/people.txt
   /home/barry/projects/launchpad/eggs/launchpadlib-1.5.1-py2.5.egg/launchpadlib/docs/toplevel.txt
   lib/lp/registry/tests/../doc/teammembership.txt
   lib/canonical/signon/stories/openid/per-version/referer-cookie.txt
   lib/canonical/signon/stories/openid/per-version/referer-cookie.txt
   lib/canonical/launchpad/pagetests/feeds/xx-links.txt
   lib/canonical/launchpad/pagetests/webservice/xx-wadl.txt
   lib/lp/answers/tests/../stories/question-add.txt
   lib/lp/answers/tests/../stories/question-obfuscation.txt
   lib/lp/bugs/tests/../stories/distribution/xx-distribution-upstream-bug-report.txt
   lib/lp/bugs/tests/../stories/feeds/xx-bug-atom.txt
   lib/lp/bugs/tests/../stories/feeds/xx-bug-html.txt
   lib/lp/registry/tests/../stories/foaf/xx-person-working-on.txt
   test_getAttrs (lp.codehosting.tests.test_sftp.TestSFTPFile)
   test_serverGetAttrs (lp.codehosting.tests.test_sftp.TestSFTPServer)
   lp.code.scripts.tests.test_update_preview_diffs.TestUpdatePreviewDiffs.test_update_preview_diffs
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_hosted_branch_stacked_on_mirrored_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_manual_stacking
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_mirror_hosted_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_mirror_hosted_loom_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_mirror_imported_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_mirror_mirrored_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_mirror_private_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_remirror_hosted_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_stack_mirrored_branch
   lp.codehosting.puller.tests.test_acceptance.TestBranchPuller.test_stack_mirrored_branch_onto_private
   lib/canonical/launchpad/scripts/tests/librarianformatter_noca.txt
   make_test_tarball_2 (canonical.launchpad.tests.test_helpers)
   test_raising_with_unprintable_exception (canonical.launchpad.webapp.tests.test_errorlog.TestErrorReportingUtility)
   lib/canonical/poppy/tests/filesystem.txt
   lp.services.scripts.tests.test_all_scripts.ScriptsTestCase.test_scripts
   test_EscapedQuotesPropertyFileTest (lp.translations.utilities.tests.test_xpi_properties_format.PropertyFileFormatTestCase)
   test_InvalidPropertyFileUnicodeEscape (lp.translations.utilities.tests.test_xpi_properties_format.PropertyFileFormatTestCase)
   test_MultilinePropertyFileTest (lp.translations.utilities.tests.test_xpi_properties_format.PropertyFileFormatTestCase)
   test_TrailingBackslashPropertyFileTest (lp.translations.utilities.tests.test_xpi_properties_format.PropertyFileFormatTestCase)
   test_UnicodeEscapedPropertyFileTest (lp.translations.utilities.tests.test_xpi_properties_format.PropertyFileFormatTestCase)
Total: 24511 tests, 56 failures, 2 errors in 124 minutes 53.859 seconds.

** 2 import policy violations **

There were 2 imports of names not appearing in the __all__.
You should not import domain_match from cookielib:
    canonical.launchpad.webapp.session
You should not import mktime_tz from email.Utils:
    canonical.launchpad.database.message

Test Status for lp:~maxb/launchpad/python2.5@9026 based on lp:launchpad/stable@9539