Launchpad unavailable 9th September 2010 08.00 UTC
Published by Matthew Revell September 7, 2010 in Notifications
On Thursday the 9th of September we’re rolling out the latest Launchpad code to our servers. At the same time we’re taking the opportunity to carry out some server maintenance.
This work will take around three hours from 08.00 UTC and will include a 90 minute period of complete downtime, followed by 90 minutes of Launchpad in a read-only* state.
Downtime starts: 08.00 UTC 9th September 2010
Launchpad returns in read-only mode: 09.30 UTC 9th September 2010
Launchpad expected to return to normal: 11.00 UTC 9th September 2010.
We’re sorry for the relatively short notice of this service disruption.
* In read-only mode, Launchpad’s web interface is available for browsing. Other aspects of Launchpad, such as uploading to PPAs and pushing to code branches, are offline.
Code hosting maintenance Friday, September 3
Published by Gary Poster September 2, 2010 in Notifications
Launchpad code hosting will be offline Friday between 8.00 and 9.30 UTC for unexpected hardware maintenance. This means you won’t be able to browse, push to, pull from or otherwise access code hosted on Launchpad.
Going offline: 8.00 UTC 3rd September 2010
Expected back: 9.30 UTC 3rd September 2010
Meet Jon Sackett
Published by Matthew Revell August 24, 2010 in Meet the devs
Jon Sackett joined the Launchpad Registry team a couple of weeks ago. Here’s a quick run-down of who he is.
Matthew: What do you do on the Launchpad team?
Jon: I’m part of the Registry team; we maintain the people, teams and projects bits and pieces used by all the other parts of Launchpad.
Right now I’m mostly helping pay down technical debt, but I’m also helping with features that help those core objects be smarter about the way they use other applications.
Matthew: Can we see something that you’ve worked on?
Jon: Almost everything I’ve done has been internal without a real UI component.
Matthew: Where do you work?
Jon: I work in my home office in an apartment in downtown Durham, NC. Sometimes I change it up and work from my porch.
Matthew: What can you see from your office window?
Jon: The old brickface and industrial windows across the road. On days where I’m working from my porch I get a better view of the downtown
Matthew: What did you do before working at Canonical?
Jon: I worked as a Python/Django developer at a company called MetaMetrics, that does some really neat things in education with natural language processing.
Matthew: How did you get into free software?
Jon: I was introduced to Linux in college as a better environment for coding in my CS classes. Since moving into web programming and Python, I think almost every tool I use has come from free software.
Matthew: What’s more important? Principle or pragmatism?
Jon: In concrete matters (like code), pragmatism. It’s no use to anyone if your principles only prevent you from doing things.
That said, principles are still important; when you opt for the pragmatic approach, your principles can still influence how
that plays out.
Matthew: Do you/have you contribute(d) to any free software projects?
Jon: Sadly, precious little. I have a patch in the Django project, and a couple of my own projects are available under a BSD license. One of the reasons I wanted to work on Launchpad was to do more with and for free software.
Matthew: Tell us something really cool about Launchpad that not enough people know about.
Jon: How completely well it supports the whole development lifecycle — I think a lot of people consider Launchpad just another code hosting service, and it’s so much more than that.
Matthew: Thanks Jon!
Dupes of dupes now become dupes of the master bug
Published by Matthew Revell August 13, 2010 in Bug Tracking, Cool new stuff
Some bugs get reported more than once. That’s why we’ve got the dupe finder.
Some duplicate bugs slip through the dupe finder. Really common issues get quite a few dupes and someone from the relevant project usually goes through and marks them as duplicates of the master bug where the actual discussion and tracking is taking place.
There has been a really annoying bug in the way Launchpad has handled all this, though, and Deryck‘s just fixed it 🙂
Let’s say you’ve got a bug report that has a few duplicates attached to it. You then discover that, actually, there’s an older bug with a more mature discussion and that, really, that’s the master bug. Until now, before you marked your bug as a duplicate of the master, you’d first have to take all the dupes of your bug and manually make them dupes of the master.
Still with me? 🙂
For a busy bug with many dupes, some of which have their own dupes, that’s a real disincentive to clearing up the multiple duplicates and gathering everything together on the one true master bug.
Now, though, simply mark your bug as a duplicate and Launchpad will automatically transfer your bug’s dupes to the new master bug.
Simple 🙂
Showing the right bug comments
Published by Matthew Revell in Bug Tracking, Cool new stuff
Some bugs attract many, many comments.
For a while now, Launchpad has displayed only the first 80 comments on any bug report, with the option of viewing the full comment history. That’s been good for speeding up page loads but not so great at offering an accurate view of the current state of discussion about the bug.
Bryce has fixed that. Now, a bug report page still shows only 80 comments, by default. However, to give a better overview of the state of discussion, it now shows the first 40 and the last 40 comments.
So, half way down the comments you’d see something like:

Here's what you see in the middle of the bug comment history
Then, at the bottom of the summarised comment history there’s this:

Comment history summary
With any luck, this should result in new bug comments that take into account the most recent discussion.
Better dupe finding
Published by Matthew Revell in Cool new stuff
One of my favourite things about Launchpad’s bug tracker is the dupe finder: when you report a new bug, it’ll search to see if there’s already a similar bug report. It’s the same for questions in Launchpad Answers, too.
Getting to see possible dupes before you file a bug or question is a great time saver for you and the people on the other end. However, the dupe finder has been timing out a lot lately.
Rob Collins, Launchpad’s new Technical Architect, has introduced some changes that should make the dupe finder more reliable.
Other than fewer timeouts, here’s what you might notice:
- the dupe finder now returns fewer matches — three or four rather than ten or more
- the results should be more relevant.
We want to know how this works in practice. Let us know how you get on with the new dupe finder. Either leave a comment here, mail feedback@launchpad.net or join us on the launchpad-users mailing list.
How Rob did it
The previous dupe finder had a number of problems, not least that the search engine it’s built on is less efficient than we need. We’re planning to replace the search engine but not straight away, so Rob looked for a temporary solution that would work for the next five or six months.
I’ll hand over to Rob to explain what he actually did:
The old search did a pre-pass over every possible hit, which is 400,000 items for Ubuntu bugs and very slow to do. It then did a search matching any document that had a rare search term in it.
So, by rare we mean that the term showed up in less than half of the possible hits.
For example, if you searched for “firefox crashes on <website> in flash” on /ubuntu/+filebug it would search for any bug with any of “firefox” (< 50% of bugs are on firefox), "crash" (<50% of bugs say "crash"), "<
can switch this off easily if we have to, so we do want feedback about how people find this.
Launchpad read-only 08.00-09.30 UTC 12th August
Published by Matthew Revell August 3, 2010 in Notifications
Launchpad’s web interface will be read-only (most other aspects will be offline) for 90 minutes on August 12th while we roll-out the latest code.
Going offline: 08.00 UTC 12th August 2010
Expected back: 09.30 UTC 12th August 2010
For up to the minute Launchpad status information, visit our status feed.
Launchpad’s Build Farm Improvements
Published by Julian Edwards August 2, 2010 in Cool new stuff
Improvements, you say?
Very recently we saw the beta release of a new feature on Launchpad: building packages from recipes. Recipes bring Bazaar branches for the upstream source code and a packaging branch together to generate a Debian source package. We informally referred to this internally as “the Wellington project” because we first embarked on this long road of development back in November 2009 with a coding sprint in Wellington, New Zealand.
So, why do we need to use the build farm for this?
Very early on we realised that this would be a challenging project because packaging recipes allow untrusted arbitrary code to run as part of building the package, so we decided that the only place we could do this operation was in the same place that we do one of the other untrusted operations – the PPA build machines.
The PPA build machines work for untrusted code because they run as a virtual machine. After the build job has finished, the machine is simply ripped out and restarted so if any code did something nasty, we throw all the nastiness away!
Why can’t the build farm do this already?
The Launchpad build farm has been around for a while now, but it’s of course only used for building source packages into binary debs. We realised that we’d need a whole new data model on the Launchpad side, changes to the master/slave protocol and changes in the slave code to make it actually run this new job type – a lot of work! It was also about this time I became aware of a further untrusted job type, generation of translation templates for Launchpad Translations, so we began work on making the build farm able to process any kind of job.
What had to change?
By far the biggest change for this was to fix how we store the build/job information in the database. The canonical way to refer to a “job” on the build farm was via “build” record, and this is what all of the history pages in the UI were using. We’ve now re-architected this to use a generic “build farm job” and a bunch of new database tables that re-factor all the information needed for various jobs on the build farm, in fact we found out that the recipe build jobs and the source package build jobs had quite a lot in common which resulted in some merciless code re-factoring indeed.
The other major change was the slave builder code itself. This runs as a Twisted executive that we talk to using XMLRPC from the build manager, which kicks off external processes to run the job and monitors them. The only job it knew about was to run sbuild to build source packages. We’ve changed this to also run bzr builder and a custom script to generate the translations templates.
So, will I see anything different?

A recipe build in action
You won’t see much visually that’s changed in the Build Farm. If you’re observant, you’ll see the occasional job appear in the list that announces it’s a recipe build, but they’re generally pretty quick to complete!
We’ll post a more detailed explanation of how to use recipe builds in the future, but for now it’s remaining in beta until all the problems are ironed out. If you have any feedback, please file a bug or send us an email.
Assigning bugs to someone else, or not
Published by Deryck Hodge July 29, 2010 in Bug Tracking, General
Recently, we changed the way assigning bugs works on Launchpad. It used to be that anyone could assign anyone else to a bug. This was open to abuse as you can imagine. Bug 511269 was filed about the potential problems with this, and we recently changed Launchpad so that only bug supervisors can assign a bug to someone else.
You can still assign a bug to yourself, but this does keep you from assigning someone to a bug to draw their attention to said bug. In the end, this is a good thing, though, as people should only be assigned bugs who are going to be responsible for working on them.
Now there is one issue with this change. Projects that had not established a bug supervisor for the project will find their developers can no longer assign bugs to each other. The easy fix for this is to create a bug supervisor team for your project and have the people working on your bugs assigned to this team. We do realize this might be a bit heavy weight for some projects, so we’ve opened bug 603281 about this issue. A fix for this — only requiring bug supervisor permissions if bug supervisor is defined — should be appearing on Launchpad soon.
Meet Benji York
Published by Matthew Revell in Meet the devs
Recently, Benji York joined Canonical’s Launchpad team. I asked him a little about himself and his work.
Matthew: What do you do on the Launchpad team?
Benji: I work on the Foundations team. Right now I’m concentrating on the web service APIs and improving the OpenID integration.
Matthew: Can we see something that you’ve worked on?
Benji: There’s not much to see yet. Most of my changes thus far have been bug fixes or purely internal.
Matthew: Where do you work?
Benji: I work from my home in Virginia, USA.
Matthew: What can you see from your office window?
Benji: Just the shrubs that border my lawn. Once the weather cools off a bit I want to try working from the wifi-covered park/beach near my house.
Matthew: What did you do before working at Canonical?
Benji: I worked at Zope Corporation for about 6 years, most of that time as the team lead for their main product. Before that I worked in the automotive industry, mostly writing supply chain and manufacturing software.
Matthew: How did you get into free software?
Benji: I think the first piece of open source software I used to any degree was Python 1.5. Since then open source software has slowly taken over almost every niche of my computing world.
Matthew: What’s more important? Principle or pragmatism?
Benji: Pragmatism. If a thing doesn’t do what it needs to do, it’s not worth much.
However, I believe that principles are there to help us be pragmatic in a scope larger than the immediate moment. It’s not pragmatic in the long term to skimp on good design or testing just to get something out the door. Any good principal is grounded in pragmatism.
Matthew: Do you/have you contribute(d) to any free software projects?
Benji: When I was in college the console (NES, SNES, Genesis, etc.) emulation scene exploded and I had a side project that let people connect console controllers to their PC. I was approached by one of the Linux input device guys about contributing some of that code. That was my first open source contribution.
Since then I’ve made large and small contributions to dozens of open source projects. Most of those have been in the Zope ecosystem.
Lately I’ve put most of my open source hacking time into Manuel, a system for writing better tested documentation and better documented tests — it’s sort of a spiritual successor to Python’s doctest.
Matthew: Tell us something really cool about Launchpad that not enough people know about.
Benji: I’m sure most readers of this blog will know, but I didn’t know that the Launchpad and Bazaar integration is as nice as it is. Being able to branch from LP, make changes, mark the branch as fixing a particular bug, push the branch to LP, view the diffs online and then generate a merge proposal that will be automatically emailed to reviewers is very convenient.
Matthew: Is there anything in particular that you want to change in Launchpad?
Benji: I’m not familiar enough with LP yet to have strong feelings about changing it. Give it a few months and I’ll be plenty opinionated.


