Autotest 0.13.1 released!

We are proud to announce a new release of autotest, 0.13.1. This is a
fairly boring bugfix release, so nothing really new here, just more of
the same.

What is autotest?

Autotest is a framework for fully automated testing. It is designed
primarily to test the Linux kernel, though it is useful for many other
purposes such as qualifying new hardware, virtualization testing and
general user space program testing under linux platforms. It’s an
open-source project under the GPL and is used and developed by a number
of organizations, including Google, IBM, Red Hat, and many others. You
can see results of kernel test runs on

http://test.kernel.org/tko/

Release repository:

http://test.kernel.org/releases/0.13.1/

Release notes:

http://autotest.kernel.org/wiki/Release0.13.1

Autotest project main page:

http://autotest.kernel.org/

Want to hack on autotest? Please refer to:

http://autotest.kernel.org/wiki/DownloadSource

http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Please report any issues on our bug tracking system:

http://autotest.kernel.org/newticket

In order to be able to open tickets on our bug tracking system, refer
to:

http://autotest.kernel.org/wiki/SiteAminContact

Happy birthday Linux!

Linus Torvalds, 25 August 1991 on comp.os.minix (original message)

I’m doing a (free) operating system (just a hobby, won’t be big and professional like gnu) for 386(486) AT clones. This has been brewing since april, and is starting to get ready.

I'll be celebrating 20 years of Linux with The Linux Foundation!

Cheers! Happy to be part of the greater Linux ecosystem ;)

Getting ready for KVM Forum and LinuxCon, 2011 edition!

Hi guys,

I’ve been pretty busy preparing myself to speak at 2 events in Vancouver, Canada, LinuxCon 2011 and KVM Forum 2011. If you want to check out what I’m up to there, here are the slides for both presentations:

It will surely be an awesome and hectic week there :) See you guys in Vancouver!

Autotest 0.13.0 released!

After months of development, we are proud to announce a new release of autotest, 0.13.0.

What is autotest?

Autotest is a framework for fully automated testing. It is designed primarily to test the Linux kernel, though it is useful for many other purposes such as qualifying new hardware, virtualization testing and general user space program testing under linux platforms. It’s an open-source project under the GPL and is used and developed by a number of organizations, including Google, IBM, Red Hat, and many others. You can see results of kernel test runs on

http://test.kernel.org/tko/

Release repository:

http://test.kernel.org/releases/0.13.0/

Release notes:

http://autotest.kernel.org/wiki/Release0.13.0

Autotest project main page:

http://autotest.kernel.org/

Want to hack on autotest? Please refer to:

http://autotest.kernel.org/wiki/DownloadSource

http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Please report any issues on our bug tracking system:

http://autotest.kernel.org/newticket

In order to be able to open tickets on our bug tracking system, refer to:

http://autotest.kernel.org/wiki/SiteAminContact

Lucas 31.0 released!

Once again the time has come and Lucas 31.0 was just released. This mature yet ever evolving project reaches its 31st milestone. Among the new features and news we have:

• The offspring project called Victoria had its 8th release last December and it is looking amazingly cute, code base growing at an astounding rate and new features, such as reading, popping out every day!
• The cooking and parenting subsystems, as ever, received a lot of bug fixes and improvements
• Thanks to the extended maintenance initiative started on v 29.0, 31.0 is the leanest and more robust release ever! The extended maintenance initiative is being applied to other aspects of life and is expected to continue indefinitely

Once again the release team takes the opportunity to say thanks to all the relatives and friends for the success of the project so far. Guys, you rock my world. Seriously.

Last day of 2010

An excellent year comes to an end today. Lots of experiences and feelings that will be kept in my heart.

* Work related: My autotest team made me proud and we really kicked a lot of improvements in KVM testing and open source testing in general
* Life related: I accomplished a lot of personal goals, and fixed a lot of problem areas. I also met wonderful people, and could see old friends in US.

To everyone that makes my life rock: I wish you an excellent year of 2011!

Print tabular data nicely using python

Ever wondered how to print a matrix (ie, a collection of rows and columns with data in it) and have it always nicely aligned? I searched for it and couldn’t find a handy function to do that, so I decided to implement my own, feel free to report any problems with it:

#!/usr/bin/python
# -*- coding: utf-8 -*-

def matrix_to_string(matrix, header=None):
    """
    Return a pretty, aligned string representation of a nxm matrix.

    This representation can be used to print any tabular data, such as
    database results. It works by scanning the lengths of each element
    in each column, and determining the format string dynamically.

    @param matrix: Matrix representation (list with n rows of m elements).
    @param header: Optional tuple or list with header elements to be displayed.
    """
    if type(header) is list:
        header = tuple(header)
    lengths = []
    if header:
        for column in header:
            lengths.append(len(column))
    for row in matrix:
        for column in row:
            i = row.index(column)
            column = str(column)
            cl = len(column)
            try:
                ml = lengths[i]
                if cl > ml:
                    lengths[i] = cl
            except IndexError:
                lengths.append(cl)

    lengths = tuple(lengths)
    format_string = ""
    for length in lengths:
        format_string += "%-" + str(length) + "s "
    format_string += "\n"

    matrix_str = ""
    if header:
        matrix_str += format_string % header
    for row in matrix:
        matrix_str += format_string % tuple(row)

    return matrix_str

if __name__ == "__main__":
 header = ("Word1", "Word2", "Word3")
 rows = [["Heeeeeeeeeeeeeey", "Hey", "Eh"],
         ["Orange", "Nonononono", "Pineapple"],
         ["Egg", "Spam", "Bacon"]]
 result = matrix_to_string(rows, header)
 print result

Executing this program will give you the following result:

Word1            Word2      Word3     
Heeeeeeeeeeeeeey Hey        Eh        
Orange           Nonononono Pineapple
Egg              Spam       Bacon

Update: Fixed the code to work with any input data.

Spending some time in the USA

During the KVM forum, I had the opportunity to know some of Boston. I’ve been in the MIT campus, seaport area, and Boston Downtown. What a beautiful city!

View from my hotel room - Boston seaport

After the KVM forum, I’ve spent some days of vacation with my friends Don and Stan. What a great time we had in NYC and Washington! I’ve visited:

  • Times Square, NYC
  • Rockfeller Center, NYC
  • Empire State Building, NYC
  • Capitol, DC
  • White House, DC

Among other places. A very dense visit, where I had the opportunity to see a lot of American history and culture. Of course, I won’t try to upload all the photos to this simple blog post, web albums exist for this very reason :) Here goes one particularly nice photo that shows how hectic Times Square can be at night:

Times Square during the evening

Some impressions about the country:

  • As one would expect, beautiful and well organized cities. Of course, big cities tend to have very similar problems, however I liked the overall experience
  • I’ve got some myths I had about United States busted: I know now that is perfectly possible to stick to a healthy diet for a very reasonable price. I visited some grocery stores and found out that good food is affordable, the same applies to restaurants and diners. The only caveat here is that you can get junk food (read potato chips, snacks, humongous pieces of bacon, soda and such) for *very* low prices, so it is very easy to overindulge.
  • People tend to be very polite and amicable. Again, nice overall experience
  • Apparently, smaller cities with big universities (read Boston) tend to have lots of young and beautiful people. It was very pleasant to see lots of beautiful young ladies in there :)

Thanks to Don and Stan, for being the excellent friends they are :) Also, thanks to the other Americans that received me so well in their country!

Me and my friends at the Rockfeller Center, NYC. Thank you guys!

KVM forum 2010 aka “my first international travel”

So, August 2010 has been an incredible month, due to the number of new experiences it brought to me.

For the first time ever, I’ve been outside Brazil, in order to attend to the KVM forum 2010 and LinuxCon USA 2010 in Boston. Some remarks about the event:

  • Very well organized by the Linux Foundation/Red Hat. Great hotel, with very decent infrastructure to host events like this one.
  • Excellent overall technical level – All the presenters deserve kudos, we had a very comprehensive coverage of the latest news and challenges of KVM development. Soon the videos of all presentations will be released, more likely on the wiki page linked on this blog post.
  • Great after conference activities – Again, the folks from Linux Foundation and Red Hat made some very good choices with regards to the post conference activities. Lots of talk, beer and fun in the beautiful Boston.

It was simply awesome to have the opportunity to meet my team mates face to face! Looking forward the 2011 edition!

A significant portion of the engineers that deliver KVM to your home :)