Difference between revisions of "Add to Try Server Automated Testing Support"

From CDOT Wiki
Jump to: navigation, search
(Added release notes and updated tasks table)
(Added 0.5 release notes)
Line 10: Line 10:
  
 
== News ==
 
== News ==
 +
* 1-Feb-2008
 +
** Since I could not wait for the Seneca Hera Try Server to be ready, I decided to set up buildbot on my laptop and so far is working
  
 
* 29-Jan-2008
 
* 29-Jan-2008
Line 24: Line 26:
  
 
== 0.5 release ==
 
== 0.5 release ==
 +
=== Steps ===
 +
NOTE: I assume you can build mozilla firefox. This steps are to build on Linux (my flavour is Ubuntu7.1)
 +
# sudo apt-get install buildbot
 +
# buildbot --version
 +
Buildbot version: 0.7.5
 +
Twisted version: 2.5.0
 +
# buildbot create-master ~/BuildbotMaster
 +
# buildbot create-slave ~/Buildslaves localhost:9989 slave1 slavepassword1
 +
# Untar this [http://matrix.senecac.on.ca/~azambran/mozilla/buildbot-config/BuildbotMasterArmen0.5.tar.gz BuildbotMasterArmen0.5.tar.gz file] in your ~/BuildbotMaster directory
 +
# buildbot start ~/BuildbotMaster
 +
# buildbot start ~/Buildslaves/
 +
# open your web browser and open this URL http://localhost:8010, you should see the results
 +
NOTE 2: There is more explanation in these two posts ([http://armenzg.blogspot.com/2008/02/armenzg-sess10-buildbot-initial-set-up.html Sess10] and [http://armenzg.blogspot.com/2008/02/armenzg-sess11-how-to-set-up-buildbot.html Sess11]
 +
NOTE 3: The only way for me to assure that these steps works for everyone, I would have to try it from a clean install of Ubuntu
 +
 +
=== Info ===
 
* You can see which tasks get done at the bottom of this page
 
* You can see which tasks get done at the bottom of this page
* I will add the instructions on how to set up a Buildbot try server when I do it at my house
+
* <strike>I will add the instructions on how to set up a Buildbot try server when I do it at my house</strike>
 
* The image on the side shows the classes that are defined in the [http://svn2.assembla.com/svn/Seneca_Hera_Try_Server_Setup/automated-testing/mozbuild.py mozbuild.py] which are later on used as Buildsteps on the [http://svn2.assembla.com/svn/Seneca_Hera_Try_Server_Setup/automated-testing/master.cfg master.cfg] file
 
* The image on the side shows the classes that are defined in the [http://svn2.assembla.com/svn/Seneca_Hera_Try_Server_Setup/automated-testing/mozbuild.py mozbuild.py] which are later on used as Buildsteps on the [http://svn2.assembla.com/svn/Seneca_Hera_Try_Server_Setup/automated-testing/master.cfg master.cfg] file
  
Line 71: Line 89:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
         <td>Try server set up at home</td><!-- TASK -->
+
         <td>Set up Buildbot</td><!-- TASK -->
         <td>&nbsp;</td><!-- DETAILS -->
+
         <td>Be able to build firefox and run unit tests</td><!-- DETAILS -->
         <td style="background-color: Orange; text-align: center; font-weight: bold; font-size: bigger">&nbsp;</td><!-- Priority-->
+
         <td style="background-color: Red; text-align: center; font-weight: bold; font-size: bigger">High</td><!-- Priority-->
         <td style="background-color: White; text-align: center; font-weight: bold;">TBA</td><!-- Status-->
+
         <td style="background-color: Green; text-align: center; font-weight: bold;">Done</td><!-- Status-->
         <td style="background-color: YellowGreen; text-align: center; font-weight: bold;">0.5 rel. + 1 day</td><!-- For which release-->
+
         <td style="background-color: YellowGreen; text-align: center; font-weight: bold;">0.5 rel.</td><!-- For which release-->
         <td>&nbsp;</td><!-- Link to blog post-->
+
         <td>[http://armenzg.blogspot.com/2008/02/armenzg-sess10-buildbot-initial-set-up.html Sess10] & [http://armenzg.blogspot.com/2008/02/armenzg-sess11-how-to-set-up-buildbot.html Sess11]</td><!-- Link to blog post-->
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
         <td>Modify Master.cfg</td><!-- Link -->
+
         <td>Set up "try server"</td><!-- TASK -->
         <td>Set up the master.cfg file to fit our needs</td><!-- Link -->
+
         <td>Learn how to set up my buildbot as a "try server"</td><!-- DETAILS -->
 
         <td style="background-color: Orange; text-align: center; font-weight: bold; font-size: bigger">&nbsp;</td><!-- Priority-->
 
         <td style="background-color: Orange; text-align: center; font-weight: bold; font-size: bigger">&nbsp;</td><!-- Priority-->
 
         <td style="background-color: White; text-align: center; font-weight: bold;">TBA</td><!-- Status-->
 
         <td style="background-color: White; text-align: center; font-weight: bold;">TBA</td><!-- Status-->
         <td style="background-color: YellowGreen; text-align: center; font-weight: bold;">0.5 rel.</td><!-- For which release-->
+
         <td style="background-color: YellowGreen; text-align: center; font-weight: bold;">0.6 rel.</td><!-- For which release-->
 
         <td>&nbsp;</td><!-- Link to blog post-->
 
         <td>&nbsp;</td><!-- Link to blog post-->
 
     </tr>
 
     </tr>

Revision as of 00:32, 2 February 2008

Introduction

We are trying to add to a Try Server, that will be set up at Seneca, automated testing support (TUnit (make check), mochitest, reftests, crashtest)

People

  • Armen Zambrano G. (armenzg) #seneca channel
  • People from Mozilla helping me: Rob Campbell, Robert Helmer, Ben Hearsum, Robert Sayre, Mike Shaver, Adam Delyea and Dave Humphrey

News

  • 1-Feb-2008
    • Since I could not wait for the Seneca Hera Try Server to be ready, I decided to set up buildbot on my laptop and so far is working
  • 29-Jan-2008
    • SERVER NEWS: The main OS (CentOS 5.1 and Windows 2003 Server) are installed. Once they are configured we will duplicate them to the rest of the nodes.
    • Soon the server will be completely running and we will have access to it
    • I have added a repository svn:Seneca Hera Try Server - automated-testing integration an I am modifying the master.cfg file to meet the purposes; It is based on buildbot-configs/testing/unittest/
    • I might set up this Saturday my own try server at home
mozbuild.py and the test suites classes defined
  • 18-Jan-2008
    • We are waiting for the Buildbot Farm to be set up at Seneca
    • At this point I have been able to run "make check" tests and mochitests. Explained in blog how to do this
    • Read Buildbot manual, discovered that I have to write some Build Steps but there's some configuration done by the community (check links section)


0.5 release

Steps

NOTE: I assume you can build mozilla firefox. This steps are to build on Linux (my flavour is Ubuntu7.1)

# sudo apt-get install buildbot
# buildbot --version
Buildbot version: 0.7.5
Twisted version: 2.5.0
# buildbot create-master ~/BuildbotMaster
# buildbot create-slave ~/Buildslaves localhost:9989 slave1 slavepassword1
# Untar this BuildbotMasterArmen0.5.tar.gz file in your ~/BuildbotMaster directory
# buildbot start ~/BuildbotMaster
# buildbot start ~/Buildslaves/
# open your web browser and open this URL http://localhost:8010, you should see the results

NOTE 2: There is more explanation in these two posts (Sess10 and Sess11 NOTE 3: The only way for me to assure that these steps works for everyone, I would have to try it from a clean install of Ubuntu

Info

  • You can see which tasks get done at the bottom of this page
  • I will add the instructions on how to set up a Buildbot try server when I do it at my house
  • The image on the side shows the classes that are defined in the mozbuild.py which are later on used as Buildsteps on the master.cfg file


Tasks

Task Details Priority Status Target Link(s)
make check tests Learn how to run Tunits (make check or xpcshell-base tests) and explained them Med DONE 0.4 rel. (armenzg's post) Xpcshell based uni tests
mochitest tests Learn how to run mochitests and explain them Med DONE 0.4 rel. No post yet but have run them
Buildbot Manual Learn basics of Buildbot that apply to this project Med DONE 0.4 rel. No post - Buildbot Manual
Analize Master.cfg file Try to see what is already written about Buildsteps relating Unit Testing Med Ongoing N/A No post - buildbot-configs/testing/unittest/
Set up Buildbot Be able to build firefox and run unit tests High Done 0.5 rel. Sess10 & Sess11
Set up "try server" Learn how to set up my buildbot as a "try server"   TBA 0.6 rel.  
      TBA 0.x rel.  

Links

heading 1 heading 2
Buildbot configuration (1) for Unit Testing (check master.cfg file) http://lxr.mozilla.org/mozilla/source/tools/buildbot-configs/testing/unittest/
Buildbot configuration (2) for a Tryserver (check master.cfg file) http://lxr.mozilla.org/mozilla/source/tools/buildbot-configs/tryserver/
Building Mozilla with Buildbot http://zenit.senecac.on.ca/wiki/index.php/Building_Mozilla_with_Buildbot