Diff for "LaunchpadOnKarmic"

Not logged in - Log In / Register

Differences between revisions 36 and 37
Revision 36 as of 2009-08-31 08:50:04
Size: 6737
Editor: wgrant
Comment:
Revision 37 as of 2009-09-02 22:38:17
Size: 6199
Editor: maxb
Comment:
Deletions are marked like this. Additions are marked like this.
Line 34: Line 34:
== Test Status == == Test Status for lp:~maxb/launchpad/python2.5@9012 based on lp:launchpad/stable@9287 ==
Line 41: Line 41:
 * canonical.testing.layers.!LaunchpadZopelessLayer tests: Ran 3147 tests with '''3 failures''' and 0 errors  * canonical.testing.layers.!LaunchpadZopelessLayer tests: Ran 3158 tests with '''2 failures''' and 0 errors
Line 44: Line 44:
  1. lib/lp/soyuz/doc/soyuz-set-of-uploads.txt: Upload fails rather than being rejected. I (wgrant) figured it out -- there's no non-test bug here. Two levels deep in the upload processor exception handlers, lp.archiveuploader.nascentupload:904 attempts to log an exception traceback. MockLogger is buggy and dies if the traceback contains any format string sequences. In tracebacks, Python 2.4 renders the first line of the statement, while 2.5 renders the last. The last line of one of the statements in the traceback contains '%s'. I am going to go and die now. ec2test of fix for MockLogger in progress.
Line 47: Line 46:
 * canonical.testing.layers.!LaunchpadFunctionalLayer tests: Ran 8170 tests with '''10 failures''' and 0 errors  * canonical.testing.layers.!LaunchpadFunctionalLayer tests: Ran 8174 tests with '''10 failures''' and 0 errors
Line 58: Line 57:
 * ''canonical.testing.layers.!AppServerLayer tests: Ran 128 tests with 0 failures and 0 errors''
 * canonical.testing.layers.!DatabaseFunctionalLayer tests: Ran 3225 tests with '''1 failures''' and 0 errors
 * ''canonical.testing.layers.!AppServerLayer tests: Ran 72 tests with 0 failures and 0 errors''
 * canonical.testing.layers.!DatabaseFunctionalLayer tests: Ran 3265 tests with '''1 failures''' and 0 errors
Line 61: Line 60:
 * canonical.testing.layers.!PageTestLayer tests: Ran 5962 tests with '''6 failures''' and 0 errors  * canonical.testing.layers.!PageTestLayer tests: Ran 5964 tests with '''6 failures''' and 0 errors
Line 70: Line 69:
 * ''canonical.testing.layers.!ZopelessDatabaseLayer tests: Ran 147 tests with 0 failures and 0 errors''  * ''canonical.testing.layers.!ZopelessDatabaseLayer tests: Ran 178 tests with 0 failures and 0 errors''
Line 72: Line 71:
 * zope.testing.testrunner.layer.!UnitTests tests: Ran 1347 tests with '''8 failures''' and 0 errors  * zope.testing.testrunner.layer.!UnitTests tests: Ran 1348 tests with '''8 failures''' and 0 errors

As mentioned on Getting, Launchpad is not currently supported on Ubuntu Karmic Koala.

This page is a place to collect notes written for and by people living on the bleeding edge and attempting to get Launchpad working on Karmic.

Phase 1 - Python 2.4 - DONE

Phase 1 is to get it working on Karmic using Python 2.4 - this requires rebuilding quite a few Python module packages, as Python 2.4 is not a supported Python version in Karmic. These packages are in my PPA for Launchpad-related packages https://launchpad.net/~maxb/+archive/launchpad and are mostly synced into the official Launchpad PPA.

And that's it. DONE!

On to phase 2...

Phase 2 - Python 2.5

The ultimate goal is to migrate Launchpad to Python 2.6. Rather than go straight to Python 2.6, I (maxb) am focusing on Python 2.5 first as a stepping stone.

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

Launchpad code itself

https://code.launchpad.net/~maxb/launchpad/python2.5 contains a few fixes:

  • Adjusting the Python version in the Makefiles
  • Adjusting import statements to handle the built-in location of cElementTree in Python 2.5
  • Making buildmailman.py compatible with Python 2.5 sys.path_importer_cache behaviour
  • Fixing Launchpad's TestCase subclass for method renames in unittest in Python 2.5

  • etc...

Launchpad source dependencies - Zope

Thanks to the completion and landing of Gary's zbuildout branch, the zope branch previously listed here is now obsolete.

However, you'll now need to fetch https://code.launchpad.net/~maxb/lp-source-dependencies/python2.5, for a patched version of zope.sendmail, working around a change in the ordering of atexit vs. waiting for non-main non-daemon threads to shut down which otherwise caused various Python processes to hang on shutdown.

Launchpad source dependencies - pygettextpo & pygpgme

The Makefiles of these two make direct reference to Python 2.4, you'll need to amend them appropriately.

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

  • canonical.testing.layers.BaseLayer tests: Ran 250 tests with 0 failures and 0 errors

  • canonical.testing.layers.LibrarianLayer tests: Ran 8 tests with 0 failures and 0 errors

  • canonical.testing.layers.DatabaseLayer tests: Ran 43 tests with 0 failures and 0 errors

  • canonical.testing.layers.LaunchpadLayer tests: Ran 23 tests with 0 failures and 0 errors

  • canonical.testing.layers.ZopelessLayer tests: Ran 17 tests with 0 failures and 0 errors

  • canonical.testing.layers.LaunchpadScriptLayer tests: Ran 72 tests with 0 failures and 0 errors

  • canonical.testing.layers.LaunchpadZopelessLayer tests: Ran 3158 tests with 2 failures and 0 errors

    1. lib/lp/bugs/doc/checkwatches-cli-switches.txt: Looks to be formatting differences in help message
    2. lib/lp/bugs/doc/externalbugtracker-mantis-csv.txt: Sort order problem.
  • canonical.launchpad.ftests.test_system_documentation.ProcessMailLayer tests: Ran 269 tests with 0 failures and 0 errors

  • canonical.testing.layers.FunctionalLayer tests: Ran 164 tests with 0 failures and 0 errors

  • canonical.testing.layers.LaunchpadFunctionalLayer tests: Ran 8174 tests with 10 failures and 0 errors

    1. lib/canonical/launchpad/ftests/../doc/pagetest-helpers.txt: CDATA section introduced
    2. lib/canonical/launchpad/ftests/../doc/tales.txt: Exception message changed in Py2.5.
    3. lib/canonical/launchpad/ftests/../doc/unicode_csv.txt: Py2.5 behaviour change in comparison
    4. lib/canonical/launchpad/scripts/ftests/librarianformatter.txt: Spurious characters.
    5. lib/lp/bugs/tests/externalbugtracker-xmlrpc-transport.txt: urllib2 seems to be behaving differently
    6. lp.soyuz.scripts.tests.test_copypackage.ReUploadFileTestCase.test_re_upload_file_does_not_leak_file_descriptors - 1 != 0

    7. lib/lp/translations/tests/../doc/poexport-language-pack.txt: Hints at tarfile.getnames() behaviour change as seen in unit tests too
    8. lib/lp/translations/tests/../doc/poexport-request-productseries.txt: Ditto.
    9. lib/lp/translations/tests/../doc/poexport-request.txt: Ditto.
    10. lib/lp/translations/tests/../doc/potemplate.txt: Ditto.
  • canonical.testing.layers.AppServerLayer tests: Ran 72 tests with 0 failures and 0 errors

  • canonical.testing.layers.DatabaseFunctionalLayer tests: Ran 3265 tests with 1 failures and 0 errors

    • lib/lp/registry/doc/teammembership.txt: Looks like benign formatting issue.
  • canonical.testing.layers.PageTestLayer tests: Ran 5964 tests with 6 failures and 0 errors

    • lib/canonical/launchpad/pagetests/feeds/xx-links.txt: No longer replaces " with ".

    • lib/lp/answers/stories/question-add.txt, question-obfuscation.txt: Escaping issues as above, but with < and > too.

    • lib/lp/bugs/stories/feeds/xx-bug-{atom,html}.txt: Looks like benign formatting issue.
    • lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt: Formatting issue.
  • canonical.testing.layers.TwistedLayer tests: Ran 219 tests with 0 failures and 0 errors

  • canonical.testing.layers.TwistedLaunchpadZopelessLayer tests: Ran 23 tests with 0 failures and 0 errors

  • canonical.testing.layers.TwistedAppServerLayer tests: Ran 5 tests with 0 failures and 0 errors

  • canonical.testing.layers.ZopelessAppServerLayer tests: Ran 69 tests with 0 failures and 0 errors

  • canonical.testing.layers.ZopelessDatabaseLayer tests: Ran 178 tests with 0 failures and 0 errors

  • lp.codehosting.tests.test_acceptance.SSHServerLayer tests: Ran 46 tests with 0 failures and 0 errors

  • zope.testing.testrunner.layer.UnitTests tests: Ran 1348 tests with 8 failures and 0 errors

    • librarianformatter_noca.txt: Py2.5 differences in traceback formatting
    • test_helpers.make_test_tarball_2: odd discrepancy
    • test_raising_with_unprintable_exception (canonical.launchpad.webapp.tests.test_errorlog.TestErrorReportingUtility): looks benign

    • lib/lp/translations/utilities/tests/test_xpi_properties_format.py: several escaping issues