Showing posts with label soc. Show all posts
Showing posts with label soc. Show all posts

02 September 2007

Summer of code final steps. A new beginning.

The Summer of Code finally ended and I must say ot was a great experience. It ended OK ;) and I hope I'll get my hands soon on the T-shirt and the certification Google is going to send after code samples come in.

However, this SoC was a very rewarding experience all financial benefits aside (which too, have their share in the "very rewarding" qualification. I must admit that without the financial incentive I doubt things would have gone on an open-source path this summer.). Still, seeing the insides of an open-source organization and getting to contribute to a piece of software people are actively using and even break into pieces to make their own pieces of software was by itself an experience worth every bit of work. For that, cheers to Google! :) I had the occasion to see many of the aspects I have read about in "Producing Open Source Software" by Karl Fogel "live", and that was a very interesting thing. At times I felt like reading a book and seeing the movie at the same time, going like: "Hey, it's like in the book" :) Very nice suprise, that book!

[...]

Event if this blog was supposed to tell only my experience with the 2007's Summer of Code I indend to keep posting from my future experiences with Sip-Communicator in particular, and software developement in general.

Right now, I'm planning my last month of holiday. I'd like to finish some of the tasks that were off the Google Summer of Code for the Sip Communicator and set up a little open-source project of my own that I dream about for almost three months.

All the best!

25 August 2007

jUnit, testing, testing

I finally wrote and succesfully run my first jUnit test :) Yay! (in fact that was a couple of days ago, but who counts?) In a way it was easier than I expected, but in some other ways, getting it to run and give the proper results was quite a tedious work.
It was easier than I expected, because all my previous contact with unit testing was a couple of years back, when I attended a short presentation about TDD with Visual Studio 2005 Beta2. And at the time everything was quite fuzzy for me. But the official documentation and the actual jUnit package for the dummy Gibberish protocol in SIP-Communicator proved to be quite a source of excelent samples :) .
Getting it run, and with the proper results was, though a totally different chore, mainly because of all the OSGi stuff inside SIP-Communicator (which, I must admit, I still don't fully understand). It took me a couple of hours and some help from Emil to edit the 3 (or was it 4) configuration files needed for the tests to be properly run. All in all it wasn't big thing, but getting it right from the first try might be tricky. That's way, and because it was mainly a trial-and-error process, I'll make a quick outline below:
  1. make sure your package mainfest file is correct (for the RSS this was rss.provider.slick.manifest.mf ). Care should be taken about which packages are imported using the Import-Package directive. No java.* (that includes packages like java.util or java.net) package should be included or Felix will throw an exception and won't load your bundle. This alone gave me a headache :D
  2. Edit lib/felix.unit.test.properties in order both to include aditional packages you might use and also to include your slick bundle (in this case file:sc-bundles/protocol-rss-slick.jar) in the list of bundles started by the ant build test. Again, include only packages not provided by the runtime. One important thing to note here is that you must also include the bundle that provides your protocol implementation (in this case file:sc-bundles/protocol-rss.jar). Even if it may be outright obvious, I had some rough time figuring out why it couldn't find any protocol provider for the RSS implementation.
  3. Create an Ant build target for your testing bundle and include it in the list of run targets.
  4. If you want to run just your tests, you might edit lib/testing.properties and comment the lines corresponding to the other tests and add only your package.
If you made the above steps right you should have no problems running your tests and with the right outcome.
Happy testing! :)

05 June 2007

Happy hacking!

Finally the second semester is over, and the summer exams sessions is about to begin (that means I have the first exam tomorrow - Digital Computers 2). I've made it through the pending homeworks and projects, at least for now.
Emil has been very supportive and now I can draw an outline of things that need to be done by the interim report on 9th July. So, here goes (in a preliminary order, not necessarily the final one):
  • thoroughly go through the developer documentation. Getting familiar with unit-testing and JUnit in particular is a must
  • have a working copy of the latest CVS sources for SIP and RSS4SC. I've made it once, I can do it again. I'll work with Eclipse under Linux. Last time I checked the Eclipse how-to was a little out-of-date, but I think things got better with the beggining of SoC.
  • go through the current implementation of RSS4SC to get an idea of how things ar done (reinventing the wheel is bad)
  • write unit tests for testing the RSS plugin for SIP Communicator
  • complete the current RSS4SC implementation with some other features that I mentioned in my application (for instance, using a site's favicon as a contact image for a RSS feed)
  • bug-fixing (one annoying bug found at the moment is the inabilty to read the news.google.com feeds).
And in between all this, I should also get my exams going :)

31 May 2007

Un debut attarde

Bien qu'on m'ait dit que toute communication regardant SIP se fera en anglais je prends le risque d'ecrire ce premier post en francais. Des que les choses deviendront plus techniques (j'espere que ce sera la semaine prochaine), je "switcherai" sur anglais.
Pour l'instant, je veux faire deux choses:
  • remercier Emil et toute l'equipe de SIP pour l'opportunite qu'ils m'ont offert
  • finir tous les devoirs, pour que la session commence sans stress additionel :)

A bientot,
miChou