The usefulness of fake servers

A while ago, Joshua created a “fake” news server for xpcshell tests in mailnews, then a few days ago I was reminded about Bug 327510 – XML Parsing Error: no element found/netError.xhtml on newsgroup msg download timout.

This was turning out to be a hard bug to reproduce to order, because it needed intermittent newsgroup connections. Having then remembered about the fake news server, and the fact it ran on xpcshell got me thinking.

In a couple of hours, I had written a wrapper around the fake news server (based on some of the existing unit tests) and got it up and running in xpcshell as a standalone process. Then I pointed Thunderbird at it, downloaded the message list, and before selecting the message, killed the server process, selecting the message then reproduced the bug.

This was good news, and having fixed a similar bug before, I’ve now fixed that bug (I’m currently investigating getting it in the SeaMonkey 1.1/Thunderbird 2.0 security/stability releases).

The great advantage with the fake server here was that I was able to (with some copy and paste) set it up to do exactly what I wanted and quickly; to have done this with a full server, or tried to manage my internet connection to a main server, it would have taken me longer, and I doubt it would have been so easy to consistently reproduce.

At some stage I want to have some scripts alongside the source code so that we can do this type of testing easily. However Joshua is working on something at the moment, and I’m waiting on seeing what that will give us as it is likely to be more useful than my scripts. If in the meantime you think you need something like this for a bug you’re working on, please drop me a line.

Summit

I think that was an excellent summit that we just had. Well done to all the organisers.

For me, it was a time to meet many of the people I have worked with over the internet and discuss the progress of Thunderbird, and ideas relating to its future.

With the power cut on Thursday morning, we were left without power for the “Messaging Futures” discussion, we therefore used the whiteboard to put loads of sticky notes on (below), and I scribbled down notes.

Messaging Futures Whiteboard

I’ve now posted the notes I took on the session page on the wiki, we’ll probably move these somewhere more appropriate at a later date. They are mainly bullet points, but hopefully understandable and should be a good memory jogger later on.

Comm-central Status

After a good (and quick) bit of work by KaiRo yesterday the code for SeaMonkey and Thunderbird is now in comm-central. As far as I know the code is now working for building SeaMonkey and Thunderbird with comm-central.

I think the main thing to note is that:

  • The object directory for a build must be different to the source directory.

Source directory builds (as they are frequently known) have been on the not-recommended list for the Mozilla code base for a while. The move to comm-central, and the structures have to use mean that we can no longer support them.

If you’re getting problems, drop by #maildev on irc.mozilla.org and we’ll try and help you out.

Whilst I remember, there’s a good FAQ for Mercurial on devmo, including how to push changes.

Tinderboxes

As you’ll see from the wiki page, we are still working on these, and hence the comm-central tree is still CLOSED.

SeaMonkey has build (inc nightlies) and unit test boxes up and running, Thunderbird has its unit test boxes running, but the build/nightlies are still being set up.

One of the obvious problems you may notice when looking at the tinderbox trees is that whenever mozilla-central makes a change, our buildbots detect it, start a build and break, I expect this just needs a tweak of a configuration file somewhere – just waiting on our build guys to wake up.

With unit tests, we are seeing some problems that are a mixture of picking up the 1.9.1 gecko code base, and problems with the new build system. I have already checked in a couple of changes for some of these, we are currently awaiting the results.

Keep an eye on the wiki page if you want to track status, we’ll keep that updated as we progress, but we’ll do an announcement in the normal places once we’ve got everything running cleanly again.