Assisted starring of oranges

As a good citizen in the Mozilla developer community, you need to watch the tree, and star any random oranges with bug numbers, and put a comment inside the relevant bugs with a link to the log of the orange in order to help debugging the problem.  That’s too much work, and worse, it’s repetitive and boring.  Last weekend, I got sick of it, and decided to hack Tinderboxpushlog to make this a bit easier.  That work is now deployed on Markus‘ instance of Tinderboxpushlog for you all to enjoy.

How to use it?

It’s easy.  Click on a machine name in a build.  A summary of the log appears.  If there are any suggestions available, they will be listed inside the summary, like below.

Bug suggestions inside the log summary

Here, Tinderboxpushlog has found three suggestions for the test failure.  It’s your job to go and read the bugs to figure out which one of the three this failure is related to.  Also, note that the third suggestion has been marked as strike-through, that’s because it’s a resolved bug (I chose to show the suggestions for bugs which have already been resolved because sometimes they need to be reopened, and sometimes there are not resolved on the branch that you’re watching.)  The status of each bug appears as a tooltip of its link.

After you choose which bug is relevant, and you want to star it, you press the Add a comment link as usual.  The dialog which appears should contain suggestions in addition to the usual fields, like below:

Suggestions in the Add Comemnt dialog

You can click on any of the suggestions, and Tinderboxpushlog will add that bug to the comment box.  From that point, you can modify the comment text if needed, and click Add Comment when you’re done.  The orange will be starred as usual, but something else happens as well:

TinderboxPushlog Robot making a comment on the bug

We have hired a robot whose only job is to watch the tinderbox, and go ahead and add a comment to the bug with the log link and a bunch of helpful info.  Please meet TinderboxPushlog Robot, or as his friends call him, tbplbot.  He’s not that smart, but he knows not to comment on the same bug about the same log twice.  I’m posting a picture of him due to popular demand:

TinderboxPushlog Robot

Are there any insider tips?

Just one.  If for some reason you don’t want to add a comment to the bug, you should avoid clicking on the bug link in the Add a Comment dialog (and type in the bug number if you want).  tbplbot is smart enough to honor your request and not comment in the bug.

Wait, I don’t get suggestions in my summary logs!

In order to maximize the performance, and minimize the chance of double-starring, we don’t show suggestions for already-starred logs.  Also, the suggestions are made by looking at the log summary for file names, and looking them up in Bugzilla, so they won’t work for things which typically don’t have those in the log summary, such as leaks and crashes.  If there is a file name, the log is not starred, and still no suggestions appear, there might be a good chance that there’s no bug on file for that orange.  But remember, you should go ahead and search Bugzilla yourself to make sure that the algorithm has not missed something.

I want to help!

Great!  Clone Markus’ repository, file a bug for what you want to do, and hack away!

That’s it!  Go and star some oranges.  Or better yet, try to fix a few of them!

Posted in Blog Tagged with: , ,
10 comments on “Assisted starring of oranges
  1. Mike says:

    This is awesome. You are awesome.

  2. […] Assisted starring of oranges | Ehsan Akhgari ehsanakhgari.org/blog/2010-04-09/assisted-starring-oranges – view page – cached As a good citizen in the Mozilla developer community, you need to watch the tree, and star any random oranges with bug numbers, and put a comment inside the relevant bugs with a link to the log of the orange in order to help debugging the problem. That’s too much work, and worse, it’s repetitive and boring. Last weekend, I got sick of it, and decided to hack Tinderboxpushlog to make… Read moreAs a good citizen in the Mozilla developer community, you need to watch the tree, and star any random oranges with bug numbers, and put a comment inside the relevant bugs with a link to the log of the orange in order to help debugging the problem. That’s too much work, and worse, it’s repetitive and boring. Last weekend, I got sick of it, and decided to hack Tinderboxpushlog to make this a bit easier. That work is now deployed on Markus’ instance of Tinderboxpushlog for you all to enjoy. View page Tweets about this link Topsy.Data.Twitter.User[‘sheppy’] = {“location”:”Tehran, Iran”,”photo”:”http://a1.twimg.com/profile_images/422358856/sheppyface_normal.jpg”,”name”:”Eric Shepherd”,”url”:”http://twitter.com/sheppy”,”nick”:”sheppy”,”description”:”Documentation Overlord at Mozilla”,”influence”:”Highly Influential”}; sheppyHighly Influential: “RT @beltzner: This is why Ehsan is awesome: "Assisted starring of oranges": http://bit.ly/9As9Bp (via @ehsanakhgari) ” 20 minutes ago view tweet retweet Topsy.Data.Twitter.User[‘topsy_top20k’] = {“location”:””,”photo”:”http://a1.twimg.com/profile_images/555652154/48x48_topsy20k_normal.png”,”name”:”topsy_top20k”,”url”:”http://twitter.com/topsy_top20k”,”nick”:”topsy_top20k”,”description”:””,”influence”:””}; topsy_top20k: “Assisted starring of oranges: http://bit.ly/9As9Bp ” 20 minutes ago view tweet retweet Topsy.Data.Twitter.User[‘beltzner’] = {“location”:”Toronto, ON”,”photo”:”http://a1.twimg.com/profile_images/408371272/twitterProfilePhoto_normal.jpg”,”name”:”Mike Beltzner”,”url”:”http://twitter.com/beltzner”,”nick”:”beltzner”,”description”:”Mozilla’s Director of Firefox, software designer, erstwhile teacher, occasional dreamer, full time pragmatist, and stalwart Canadian.”,”influence”:”Highly Influential”}; beltznerHighly Influential: “This is why Ehsan is awesome: "Assisted starring of oranges": http://bit.ly/9As9Bp (via @ehsanakhgari) ” 27 minutes ago view tweet retweet Topsy.Data.Twitter.User[‘ehsanakhgari’] = {“location”:”Toronto”,”photo”:”http://a3.twimg.com/profile_images/617153045/Photo_on_2009-12-03_at_16.27_normal.jpg”,”name”:”Ehsan Akhgari”,”url”:”http://twitter.com/ehsanakhgari”,”nick”:”ehsanakhgari”,”description”:”Mozilla hacker and localizer”,”influence”:””}; ehsanakhgari: “Assisted starring of oranges: http://bit.ly/9As9Bp ” 30 minutes ago view tweet retweet Filter tweets […]

  3. If I type/paste a bug number that the bot hasn’t suggested for me, will the bot still comment in the bug? I think I want it to. (Maybe there should be a checkbox for “comment in the bug for me”.)

  4. Ehsan Akhgari says:

    No, right now it doesn’t.  I can add this feature, but I think I would prefer an alternate solution.  How about when you enter a bug number which is not part of the suggestions, a new suggestion for that bug is appended to the suggestion list, and be selected by default, so that you can interact with it the same way that you interact with other suggestions?

  5. David says:

    Nice work! Been dreaming about this. You actually did something about it!

  6. This is so very helpful, especially for people like me who don’t push to m-{c|1.9.x} very often and therefore don’t have all the [orange] bugs memorized like philor does ;-) It makes tree duty a lot less painful, and saves me lots of poking of philor. Thanks so much!

  7. Jeff Walden says:

    Your ideas intrigue me and I wish to subscribe to your newsletter!

  8. Ehsan Akhgari says:

    Well, I syndicate most (all?) of my posts to Planet Mozilla, but anyway you can use my RSS feed.  :-)

  9. Ehsan Akhgari says:

    Heh, thanks for pointing it out!