Difference between revisions of "Hera Try Server Administration"

From CDOT Wiki
Jump to: navigation, search
m (Known Errors)
(Added information on how to manage the slaves)
Line 1: Line 1:
== Try Server ==
+
== Try Server (Front node) ==
* TBA
+
* To connect to the tryserver do it through ssh to hera.senecac.on.ca
 +
* The folders "cgi-bin", "html" and "patches" are aliased to show to the public
 +
* The folders "patches_test" and "builds" are not yet available
  
== Master ==
+
== Master (Front node) ==
* TBA
+
* The basedir of the buildbot is the home directory, therefore "buildobt restart ."
 +
* Run "perl process_changes_test.pl" to read the patches from the "tryserver" and notify of changes to the master. Every 2 minutes a cronjob takes care of running this command. Patches get copied to "patches" or "patches_test" (this may be unified later on)
  
 
== Slaves ==
 
== Slaves ==
Line 9: Line 12:
  
 
=== Connecting ===
 
=== Connecting ===
* LINUX
+
* LINUX  
 
+
** You have to connect first to the front node and the "ssh buildslave@vmlinux1"
 +
** You can also connect with VMware to '''hera.senecac.on.ca:1904'''
 
* MAC
 
* MAC
 
+
** You connect directly with ssh to a specific IP (to be added) and with your individual account
* WINDOWS - Use "Remote Desktop Connection" (comes with Windows) to connect to hera.senecac.on.ca:31389 with '''buildslave''' account
+
* WINDOWS
 +
** Use "Remote Desktop Connection" (comes with Windows) to connect to '''hera.senecac.on.ca:31389''' with '''buildslave''' account
  
 
=== Creation ===
 
=== Creation ===
 
* LINUX
 
* LINUX
 
+
** buildbot create-slave slave hera:12345 lin1 lin1
 
* MAC
 
* MAC
 
+
** /usr/local/bin/buildbot create-slave /tmp/slave hera:12345 mac1 mac1 (right not the slave is on '''/Users/adam.delyea/buildbot/slave''' -- <span style="color:red;">Is /tmp/slave a good place??</span>)
* WINDOWS
+
* WINDOWS  
 
** Run c:\mozilla-build\start-msvc8.bat to start
 
** Run c:\mozilla-build\start-msvc8.bat to start
 +
** /c/Python24/scripts/buildbot create-slave /c/slave/ hera:12345 win1 win1
  
 +
=== Start ===
 +
* LINUX
 +
** buildbot start ~/slave
 +
* MAC
 +
** /usr/local/bin/buildbot start /Users/adam.delyea/buildbot/slave (the location should be changed)
 +
* WINDOWS ("twistd.pid" does not get created)
 +
** /c/Python24/scripts/buildbot start /c/slave/ //make note of the ampersand symbol, it puts the task in the background
 
=== Restart ===
 
=== Restart ===
 
* LINUX
 
* LINUX
 
+
** buildbot restart ~/slave
 
* MAC
 
* MAC
 
+
** /usr/local/bin/buildbot restart /Users/adam.delyea/buildbot/slave
* WINDOWS
+
* WINDOWS - '''Kill it and then start it again since twistd.pid has not been generated'''
 
+
** ps aux
 +
** Look for the ID for /c/Python24/scr <--- The column does not reach to show the complete path
 +
** kill 34567 //Put the correct ID
 +
** Check the section before to start the slave
  
 
== Left to be implemented ==
 
== Left to be implemented ==
 
* Use incron instead cronjob to run "perl proccesschanges_test.pl" in the buildmaster machine
 
* Use incron instead cronjob to run "perl proccesschanges_test.pl" in the buildmaster machine
 
* Fix this in '''Mac machine''' - ''checking for GLIB - version >= 1.2.0... no'' [http://hera.senecac.on.ca:8010/builders/mac-test/builds/20/steps/compile/logs/stdio]
 
* Fix this in '''Mac machine''' - ''checking for GLIB - version >= 1.2.0... no'' [http://hera.senecac.on.ca:8010/builders/mac-test/builds/20/steps/compile/logs/stdio]
* Fix this in '''Windows machine''' - <font style="color:red">client.mk:427: *** The mozilla directory cannot be located in a path with spaces..  Stop.</font> [http://hera.senecac.on.ca:8010/builders/win32-test/builds/2/steps/checkout/logs/stdio]
+
 
 +
== News ==  
 +
* Created [http://matrix.senecac.on.ca/~azambran/mozilla/patches/unviersal.patch universal patch] for testing purposes  since it "always" gets applied
  
 
== Known Errors/Issues ==
 
== Known Errors/Issues ==
* Created [http://matrix.senecac.on.ca/~azambran/mozilla/patches/unviersal.patch universal patch] for testing purposes  since it "always" gets applied
 
 
* In the WINDOWS machines be sure to do not create s slave in a path that has spaces or will fail [http://mxr.mozilla.org/mozilla/source/client.mk#427 client.mk#427]
 
* In the WINDOWS machines be sure to do not create s slave in a path that has spaces or will fail [http://mxr.mozilla.org/mozilla/source/client.mk#427 client.mk#427]
 
* [http://buildbot.net/trac/ticket/155 Builbot Bug 155] and [http://buildbot.net/trac/ticket/85 Builbot Bug 85] - You have to restart the master if you see in the waterfall view machines that are IDLE but with pending builds
 
* [http://buildbot.net/trac/ticket/155 Builbot Bug 155] and [http://buildbot.net/trac/ticket/85 Builbot Bug 85] - You have to restart the master if you see in the waterfall view machines that are IDLE but with pending builds
 +
 +
== Fixed ==
 +
* Fixed this in '''Windows machine''' - <font style="color:red">client.mk:427: *** The mozilla directory cannot be located in a path with spaces..  Stop.</font> [http://hera.senecac.on.ca:8010/builders/win32-test/builds/2/steps/checkout/logs/stdio]

Revision as of 18:04, 24 April 2008

Try Server (Front node)

  • To connect to the tryserver do it through ssh to hera.senecac.on.ca
  • The folders "cgi-bin", "html" and "patches" are aliased to show to the public
  • The folders "patches_test" and "builds" are not yet available

Master (Front node)

  • The basedir of the buildbot is the home directory, therefore "buildobt restart ."
  • Run "perl process_changes_test.pl" to read the patches from the "tryserver" and notify of changes to the master. Every 2 minutes a cronjob takes care of running this command. Patches get copied to "patches" or "patches_test" (this may be unified later on)

Slaves

NOTE: For any account credentials talk with Dave Humphrey

Connecting

  • LINUX
    • You have to connect first to the front node and the "ssh buildslave@vmlinux1"
    • You can also connect with VMware to hera.senecac.on.ca:1904
  • MAC
    • You connect directly with ssh to a specific IP (to be added) and with your individual account
  • WINDOWS
    • Use "Remote Desktop Connection" (comes with Windows) to connect to hera.senecac.on.ca:31389 with buildslave account

Creation

  • LINUX
    • buildbot create-slave slave hera:12345 lin1 lin1
  • MAC
    • /usr/local/bin/buildbot create-slave /tmp/slave hera:12345 mac1 mac1 (right not the slave is on /Users/adam.delyea/buildbot/slave -- Is /tmp/slave a good place??)
  • WINDOWS
    • Run c:\mozilla-build\start-msvc8.bat to start
    • /c/Python24/scripts/buildbot create-slave /c/slave/ hera:12345 win1 win1

Start

  • LINUX
    • buildbot start ~/slave
  • MAC
    • /usr/local/bin/buildbot start /Users/adam.delyea/buildbot/slave (the location should be changed)
  • WINDOWS ("twistd.pid" does not get created)
    • /c/Python24/scripts/buildbot start /c/slave/ //make note of the ampersand symbol, it puts the task in the background

Restart

  • LINUX
    • buildbot restart ~/slave
  • MAC
    • /usr/local/bin/buildbot restart /Users/adam.delyea/buildbot/slave
  • WINDOWS - Kill it and then start it again since twistd.pid has not been generated
    • ps aux
    • Look for the ID for /c/Python24/scr <--- The column does not reach to show the complete path
    • kill 34567 //Put the correct ID
    • Check the section before to start the slave

Left to be implemented

  • Use incron instead cronjob to run "perl proccesschanges_test.pl" in the buildmaster machine
  • Fix this in Mac machine - checking for GLIB - version >= 1.2.0... no [1]

News

  • Created universal patch for testing purposes since it "always" gets applied

Known Errors/Issues

  • In the WINDOWS machines be sure to do not create s slave in a path that has spaces or will fail client.mk#427
  • Builbot Bug 155 and Builbot Bug 85 - You have to restart the master if you see in the waterfall view machines that are IDLE but with pending builds

Fixed

  • Fixed this in Windows machine - client.mk:427: *** The mozilla directory cannot be located in a path with spaces.. Stop. [2]