On Open Source
Oh, open source, how thee makes work for me.
Two weeks ago, while working on a project yet to be revealed (unless you happen to stalk me on Bugzilla – I’ll write about it soon, I promise), I happened to make Minefield seg fault. I was talking to Shawn Wilsher about what I was working on, so he had some familiarity with the code, and told me it shouldn’t be crashing. But it was. Shawn told me to file a bug, create a test case, and get a stack trace with GDB. I was a bit annoyed because it took time away from what I was working on. But I did all that, filed the bug, and went along my way.
The other day, I got to work and found a few Bugzilla emails waiting. Apparently somebody had written a patch for the bug, and it had been r+ed and checked in. I figured somebody was looking at it, but a lot happened at once. So I took a look at the commit log and it turns out that the test case I had written had been included! That makes perfect sense – we want to keep the test around to make sure we don’t regress in the future – but it still surprised me. I never came to Mozilla expecting to touch such a random place in the code base. And while I wasn’t fixing the C++ code, I was still contributing. It felt good.
I think that is part of the power of open source.
Comments
Thanks for the post. It’s nice to catch such bugs on Bugzilla. I believe that I had lost it otherwise. ;)
The tests are just as important as the bug fix, since otherwise it’s possible that we’d regress in the future. Filing a bug with a testcase attached is awesome, and makes fixing bugs, and making sure they stay fixed, much easier.