Buildbot and Cairo

From CDOT Wiki
Revision as of 21:50, 7 March 2008 by Armenzg (talk | contribs) (added news)
Jump to: navigation, search


Cairo on Buildbot is a project to build the Cairo graphics library in an automated manner with Buildbot and be able to run tests and performance tests


Adam Delyea
Armen Zambrano


Project News

  • Mar 06 2008 - Started writing grouping steps and CairoTests class which generates summary
  • Feb 29 2008 - Why does the TESTS take so long on MacOS X? It is ridiculous!!
  • Feb 29 2008 - Added steps to build on MacOS X
  • Feb 16 2008 - Updated Cairo project page and first proper release
  • Feb 11 2008 - Steps are written but some issues have to fixed
  • Jan 19 2008 - Project Proposal from Vladimir Vukicevic.


Feb. 29th

and the blog post explaining a lot of details about how much has been done is here: (Sess14-Buildbot on Cairo)

  1. svn co
  2. buildbot create-slave ./cairoslave localhost:9876 macslave slavepassword (change macslave for linuxslave when trying to run in Linux)
  3. buildbot start cairomaster
  4. buildbot start cairoslave
  5. firefox http://localhost:8020 //OR open it with any browser


Build Cairo manually Manually build Cairo Med armenzg Done   Blog: Building Cairo
Buildbot and Cairo on Linux Build on my laptop Cairo and run tests; Missing perf tests High armenzg Done 15 Feb Blog: Buildbot with Cairo
Fix GIT and SUDO issue * Fixed by delete checked out source code and ./configure --prefix High armenzg Fixed 15 Feb
Write the steps for Mac Med cworth #cairo Done 29 Feb Sess14-Buildbot on Cairo
Write the steps for Windows Med   7 Mar  
Write file This will centralize and group steps together as in Med   7 Mar  
Run the "performance" steps Med      
Find out how to use PKG_CONFIG_PATH * PKG_CONFIG_PATH=(the --prefix value)+"/lib/pkgconfig"(where the .pc file is) Med Fixed Feb 29  
Build upon source changes in the GIT repository Med      
Try to use the GIT source class that buildbot has Med      
Package results and make them available Pass the results of "make test" and "make html" to the master and allow to download them Med      
Write a CSS file for the waterfall view   Med      
Email notifications? IRC notifications?   Med      


  • A lot of problems when trying to build on MacOS are mentioned here: Sess14-Buildbot on Cairo
  • The first time the command GIT CLONE works because there is nothing before that execution but the second run should be an update instead of a checkout. What could be the proper GIT command to have as the step?
I have decided to remove the checked out code and checkout the trunk before each build
  • I need to do SUDO MAKE INSTALL, but this requires user's input which breaks the automated concept. What could be the right step?
Used ./configure --prefix=/path/to/somewhere to avoid building somewhere where I require to have sudo privileges


These notes are for learning purposes and documentation

Feb. 15th release

Where will I put code and screenshots?

What has been released this week:

Steps to meet requirements

  • sudo apt-get install buildbot
  • sudo apt-get install git-core //This is to get the version control that cairo uses, it is called GIT

Steps to make it happen

  • buildbot create-master ~/cairomaster
  • Put the master.cfg to the the created master
  • buildbot create-slave ~/cairoslave localhost:9876 cairoslave
  • buildbot start ~/cairomaster
  • buildbot start ~/cairoslave
  • firefox http://localhost:8020 //This is to be able to see the results of the build

Build Cairo manually

make[2]: Entering directory `/home/armen/sandbox/cairo2/pixman/pixman' test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib" /bin/bash ../libtool --mode=install /usr/bin/install -c '' '/usr/local/lib/' /usr/bin/install -c .libs/ /usr/local/lib/ /usr/bin/install: cannot remove `/usr/local/lib/': Permission denied make[2]: *** [install-libLTLIBRARIES] Error 1

  • sudo make install //I had to use SUDO
  • whereis libpixman-1
  • cd ../cairo && ./
  • ./configure
  • make
  • make install //the same problem with SUDO

make[2]: Entering directory `/home/armen/sandbox/cairo2/cairo/src' test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib" /bin/bash ../libtool --mode=install /usr/bin/install -c '' '/usr/local/lib/' /usr/bin/install -c .libs/ /usr/local/lib/ /usr/bin/install: cannot create regular file `/usr/local/lib/': Permission denied

  • sudo make install

Running the tests and getting an index.html file with them

  • make test //takes long time
  • cd test && make html
  • firefox index.html