Bugzilla Data Mining (3)

People were asking about the relative magnitudes of movements between products. This is somewhat relevant to the component reorganisation, although we’re not planning to do that until after 1.0. Still, here’s everything above 100, cleaned up to merge the Phoenix, Firefox and Firebird products.

From To Count Note
Browser NSPR 102
Camino Browser 107
MozillaClassic Browser 109
Webtools mozilla.org 120
PSM Browser 142
mozilla.org Browser 146
Browser mozilla.org 180
MailNews PSM 194
Bugzilla mozilla.org 202
Tech Evangelism Browser 207
Bugzilla Browser 229
Firefox Tech Evangelism 243
Browser Documentation 259
Browser Firefox 565
MailNews Browser 908
Browser MailNews 958
Firefox Browser 1321
Browser PSM 1328 (I think PSM split from Browser)
Webtools Bugzilla 1961 (Bugzilla was created from Webtools)
Browser Tech Evangelism 4568 (Partly creation of TE)

So some conclusions, then:

  • Even accounting for the original creation of Tech Evangelism, loads of TE bugs get misfiled. Hopefully, the new “report a broken site” webtool will help a lot here.
  • Three times as many Browser bugs get misfiled in Firefox as Firefox bugs in Browser. This is to be expected – people file it in the product they know.
  • Thunderbird hasn’t been around long enough to get that much data (it’s actually 50 MN->T, 99 T->MN, roughly in line with Firefox).
  • The MailNews/Browser split is about even.
  • Quite a few bugs are, or have been misfiled in the Bugzilla component. Recently, there’s been a big warning on the product selection page; it would be interesting to see if that’s made a difference.

More bugzilla.mozilla.org Improvements

As well as the mechanism for automatically resolving some UNCONFIRMED bugs, mentioned in an earlier blogpost, we have some other ideas for trying to improve Bugzilla before the Firefox/Thunderbird 1.0 hurricane hits us.

  1. Build a “feedback webtool”, like Netscape’s, which feeds directly into a newsgroup or forum. This is to try and divert rants, support requests and other non-bugs away from Bugzilla. Asa and Kerz are working on this.
  2. Build a “Report a broken site” webtool which aggregates problem URLs and produces lists and reports, rather than having one bug per report. Robert Accettura is doing the hard work for us here.
  3. Redesign the b.m.o. front page to include links to these two tools and a better community link. I’ve done this; it’ll go live when the two webtools are online.
  4. Redo Bugzilla Helper to be clearer and have less text. Stop accepting bugs in anything other than the latest release.
  5. Change the search people do before filing bugs to search all bugs (including resolved ones) filed in the last two months, and use Myk’s “find a specific bug” feature to get better relevance.
  6. We currently have much more active people in the forums than Bugzilla. Try and convert more forum participants into QA triagers. Suggestions for how to do this are welcome. I think we need a good document which we can publicise. This one is OK but needs work.
  7. Give more people the “canconfirm” privilege by publicising how to get it more widely. Get triagers to suggest candidates based on good bug reports they’ve seen. (Some have suggested giving it to everyone by default.)
  8. Get some of the webtool-writing crew Blake recruited to to write tools to mine the database and suggest likely duplicates.
  9. Add a READY state which goes between NEW and ASSIGNED. Bugs move to READY when they could be picked up and fixed without further work. So they are clear, have steps to reproduce, and a testcase if applicable.
  10. Reorder the product list page to put Firefox and Thunderbird at the top.
  11. Check the b.m.o. Referer logs to see who links to us, and get the top ones to relink directly to the support pages.

What do you think? I’ve numbered them this time for ease of reference :-)

Other suggestions are welcome – please give them a number too, starting after mine. Remember, we are looking for low effort, low disruption, high impact. So blue-sky Bugzilla feature suggestions probably won’t fly.

Automated UNCONFIRMED resolution

This is what the “Bugzilla Data Mining” entries have been leading up to. We’ve decided to attempt to use a semi-automated procedure to resolve some of the older untriaged UNCONFIRMED bugs. Here’s the plan – please let us know what you think.

  • Once a date is chosen, we raise awareness of the following procedure using blogs, newsgroups and websites. We don’t want anyone to get surprised.
  • At the appointed time, we turn off Bugzilla access to all except the person doing the change. This is to prevent things changing under us.
  • We search for all bugs in the Browser, Firefox, MailNews, and Thunderbird products[0] in state UNCONFIRMED where Last Changed Date is more than two months before the present.

    (The data mining used “bugs not confirmed after two months” – this is a subset of that. We are using “bugs not confirmed, and untouched in the last two months”, because then we won’t accidentally catch ones which are being worked on, but taking a long time to get confirmed.)

  • We then Change Multiple Bugs, and add the following comment[1]:

    This is an automated message.

    This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after two months are highly unlikely to ever actually be fixed.

    If you can still reproduce this problem in the latest version of the product (available from http://www.mozilla.org/products/) or, for feature requests, if you still believe we should implement this feature, please visit the URL of this bug (given in this mail) and add a comment to that effect, giving more reproduction information if you have it.

    If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter.

  • Two weeks later, we make a buglist of all bugs in the original list which have not changed since the date we added the above comment.
  • Do Change Multiple Bugs, add a “robo-resolved” keyword, and resolve them as WORKSFORME[2] with the following comment:

    “This bug has been automatically resolved after a certain period of inactivity (see above comment). Anyone who thinks this is incorrect should feel free to reopen it.”

So that’s our best shot. Any such process will never be perfect – but, in a perfect world, we’d have the manpower to triage all the UNCONFIRMEDs properly. But we don’t. So, we are looking for something which keeps as high a percentage of the good ones, and throws away as high a percentage of the bad ones as possible.

Here’s the logic. Bugs which haven’t been confirmed after two months are very unlikely to end up as FIXED – either they get fixed via another bug, or get fixed ‘accidentally’, or the code gets rewritten, or something else. We could just throw the lot away and not lose too much. But we want to do better, so we try and find the ones which might, by getting the reporters to reconfirm them. Getting reporters to reconfirm bugs is good because it tells us that they still see it and, just as importantly, they are still interested in helping us fix it.

Once this procedure is completed, we would use BugDays and other mechanisms to attack the bugs which had received comments, with the aim of resolving them or confirming them, starting with the oldest. This way, we hope to make a significant dent in the UNCO pile, and turn up the needles in our giant haystack.

[0] If you are the module owner of another product, and want to opt-in, shout.

[1] People who are not interested in reading these mails can create a filter and use Run Filters On Folder in Mozilla or Thunderbird, targetting the phrase “This is an automated message”.

[2] We either resolve as WORKSFORME, or OUTOFDATE if we can get that resolution added to Bugzilla. This depends on whether anyone has time to make the modification.

Bugzilla Data Mining

I’ve been doing some data mining on b.m.o. recently, and have got some interesting results. I’ve been particularly looking at UNCONFIRMED bugs (of which we have a very large number) and what happens to them.

Any bug which ends up FIXED is a great thing. Almost any other bug is a net drain on resources – we’d have been better off if it had never existed. So, in an ideal world, all filed bugs would end up FIXED (and get filed with a crystal-clear description, a reduced testcase, and a pointer into the code…).

So I looked at all bugs filed as UNCO in the week of 2004-04-22 to 2004-04-28 (6 months ago) which eventually ended up FIXED. There were 38 of them. This is a chart of how long it took them to get confirmed. It was made by hand, checking the Bug Activity of each one.

< 1 day    18
< 1 week   13
< 1 month   3
< 2 months
> 2 months

Some bugs went straight from UNCO to FIXED; they were fixed after:

< 1 day
< 1 week    2
< 1 month
< 2 months  2 (but both of these should have been WORKSFORME)
> 2 months

So, based on this sample, any bug which hasn’t been confirmed after two months is very unlikely to become FIXED – no examples were found of this. (Please point out any flaws in this logic in the comments.)

So what are we going to do with this fact? More on that tomorrow.

Huge Loan’s Available for Mozilla Startups

[No, that’s not a misplaced apostrophe. Read on.]

Anyone doing a Mozilla startup? From netscape.public.mozilla.browser:

Hi:

Please pass along my contact information to any members that may be looking to secure initial Tier 1 angel or venture funding around Mozilla initiatives. Particularly interested in XSLT, LDAP, RDF, and security/embed focus.

Hugh J. Sloan III
Managing Director & Founder
Sand Hill EC

http://groups.yahoo.com/group/SandHillEC/
http://www.ryze.com/go/SandHillEC

At first I thought this had to be a joke. I mean, it’s perfectly possible that someone would want to put money into Mozilla startups. No problems there. Eminently sensible.But what real venture capital group has a founder called “Huge Loan”?

However, following the links, it really does seem to be genuine…

Camino Marketing (2)

rebron has written a page comparing the different mozilla.org products, to help users choose between them. In many ways, it confirms the problem I see with marketing Camino. I’ve interspersed the content with the thoughts of a hypothetical user.

Camino is a web browser optimized for Mac OS X with a Cocoa user interface, and powerful Gecko layout engine.

So what on earth’s a Cocoa user interface? Does this mean the theme is brown? And aren’t all mozilla.org products built on Gecko, as the boxout at the top of the page says?

Mac OS X users looking for an alternative to Firefox or Apple’s Safari should consider using Camino.

But why would I want an alternative to Firefox anyway? Does it suck? Or is Camino only for people who have downloaded Firefox and decided they don’t like it?

Key features in Camino include:

  • Native Cocoa user interface for seamless integration with Mac OS X
  • Bookmark manager integration with Rendezvous and Address Book
  • Remembers website passwords with your Keychain

But doesn’t Firefox remember passwords too?

  • Tabbed browsing and Pop-up blocker
  • Google Search Bar

Firefox has all of these.

So, those who argue the MoFo should promote both, what should this page actually say to explain the differences?

[To be clear: this blog post is not intended to knock Camino. Not being a Mac user, I’ve never tried it, but I hear and do not doubt that it’s an excellent bit of software.]

Camino Marketing

Zach Lipton has commented that the new mozilla.org website redesign has knocked Camino off the front page (along with Bugzilla, incidentally).

I think this is symptomatic of a larger problem – as Firefox on Mac OS X matures, and as Firefox as a whole goes to 1.0 and we try and ride the wave of free publicity and gain market share, how does the Mozilla Foundation present the available options to OS X users?

We seem to have what I believe marketers call a “channel conflict” – two products in the same space. This is much worse than the Suite-vs.-Firefox problem; you can differentiate those with “The suite is for users who want a Netscape 4.x replacement; Firefox is for those who want an IE replacement.”

But, in this case, Firefox is a modern, slim, fast, stand-alone browser that does one thing well on all platforms. Camino is a modern, slim, fast, stand-alone browser that does one thing well on the Mac. I’m not at all sure we can start explaining to users what native widgets are and why they might or might not want them – so how can this dilemma be resolved?

MNG revisited

(I’m back, and I’ve reopened comments. Discuss away.)

Mike Connor has taken me to task about perceived inaccuracies in my MNG post.

He misrepresents my first point, which was dealing with perceived bloat in the spec and features, not the implementation. I believe my point still stands – I’ve heard mozilla.org people argue that the SVG spec is terribly overdone, but that’s not being used as an argument against implementing it.

The basis of my post, including all the figures except one, was information from a libpng hacker, who stated that there were no outstanding issues with replacing libpng with libmng and still getting the necessary PNG performance. So I stand by my 48k figure, and my assertion that there are no issues with replacing libpng with libmng.

He also says:

Its also a little shocking that Gerv missed the point of apng, which is to provide a format that can be animated, but still degrades gracefully on other browsers.

I was originally told that the point of apng was to allow Mozilla chrome to move away from animated GIFs. If it’s now a new image format for the web, that’s a rather different question, and perhaps not something we should be designing on the back of an envelope in ten minutes.

I had a better discussion with Brendan via email and IRC, but I don’t currently have his permission to post it.

In any event, it seems that the APNG folks and the PNG folks are chatting away fairly happily. If something like APNG becomes a revision of the PNG spec, I quite agree that it would be the best result all round. In that case, I’d like to agree with calls to revert to the 0.2 spec behaviour of putting the additional image data after the IEND chunk rather than nesting chunks, if that becomes technically and politically possible. As Adam Costello says, it’s less in line with the wording of the current spec, but more in line with its spirit.

Also, it seems to make sense to me for the default image (the first in the stream) to be the last in the animation. This is more likely IMO to produce a better degredation in the common case. Would it be too complicated for an APNG-aware decoder to “put the first image to the back”? Could one do it simply by shuffling the objects representing the chunks in memory?

MNG Misunderstandings

I’ve been reading the various bugs, blog postings and specs about APNG, Vlad and pavlov’s proposed extension to PNG to allow animation.

Obviously, this has raised the question of “what about MNG?” I’ve been surprised to see several people, who normally talk a great deal of sense, stating things about MNG which are just not true, or not relevant to the discussion. Here’s a quick Q & A:

The MNG standard contains loads of cruft! It’s overdesigned!
So? Even if that is true, there’s loads not to like about XHTML, SVG and XForms. We have still implemented, or are planning to implement all of them.

Besides, no-one’s asking us to write an MNG implementation. We have libmng, which is mature, stable and used in several products.

But there are no MNG images on the web! No-one uses it.
So? There are no APNG images either. If MNG provides a capability we want, and it’s there and mature, what’s the problem?
Adding MNG will bloat our product with hundreds of K of code!
MNG_BUILD_WEB_NO_JNG is a build option containing all the imporant bits of MNG for the web. It is a superset of animated GIF, and has 8-bit alpha and disposal methods. It could be added to Firefox or Mozilla for a max. 48k increase in on-disk footprint, less for download. (48k is the FreeBSD figure; better Windows compilers could probably make it smaller.)

(If this were done, the resulting PNG + MNG would still be smaller than the PNG decoder included in Mozilla 1.4, due to excellent work done by the PNG/MNG team in reducing the size of both decoders.)

All we want is an animated GIF replacement!
So MNG provides that. It can provide a lot more, too – but why is that a reason to actively reject it, if the size increase is so small?
drivers@mozilla.org have made it clear that they don’t want MNG.
That decision was made when adding the MNG decoder added 300k+ to the product. Surely a six-fold size reduction merits a reconsideration of the issue?

I hold no particular candle for MNG (although I do think the guys working on it are very nice, and that the Mozilla project hasn’t treated them well). I’ve never created an MNG image, and must have viewed about three. But I must confess it surprises me that we are rejecting a mature standard library for our own implementation for the sake of 48k of on-disk footprint.

I look forward to the same principle being applied to XForms.

Random Walks In Webspace

Firefox has a “feature” whereby if you paste text which isn’t a URL into the URL bar, it does a Google “I’m Feeling Lucky” search on it. This means that, for example, if you accidentally paste your clipboard into the bar and hit Enter, you get taken to a random web page.

This is most fun with totally innocuous sentences. I accidentally pasted in “Wrote up document on the volume problem.” and ended up here, a page with no obvious semantic connection with the original sentence. Serendipitously, I had been shown the film about the basketball players and the gorilla (more cool demos like that) during the “Mind Hacks” talk at EuroFoo only last weekend. Weird.

Anyway, this opens up some exciting possibilities for “random walks through webspace”. Here’s the procedure:

Random Walks In Webspace

  • Start Firefox at a particular page. Any page will do – even this one.
  • Find the most boring sentence (three words or more) on the page and
    paste it into the URL bar.

  • Press Enter.
  • Read the new page with deep interest.
  • Repeat.

Post interesting results in the comments. There’s a prize for the sentence and web page pair which bear the least relation to each other.

Draft Trademark Policy for Localisations

After several months of hard work, the draft trademark policy for localisations is now available for comment. You may want to read Mitchell’s blog post on the issue for background.

Note that the more general policy is still an early draft reflecting my opinion only, and should not be taken as indicative of anything at this time. We’re tackling the more urgent problems first.

You can comment here or in this MozillaZine thread.