2000-08-14 22:22:15 +00:00
|
|
|
Currently this is Alpha/Beta code, because no one but me is using it
|
|
|
|
yet (and even I am not using all the features I have tested). If you
|
|
|
|
are not really comfortable coding in perl I suggest you wait until
|
|
|
|
more people are using it and we get the minor kinks worked out of the
|
|
|
|
code and documentation.
|
|
|
|
|
|
|
|
|
|
|
|
To install:
|
2000-06-22 04:17:19 +00:00
|
|
|
|
2000-11-29 21:12:56 +00:00
|
|
|
*) The src/default_config directory contains perl libraries which are
|
|
|
|
specific to an individual users site configuration. No two users of
|
|
|
|
Tinderbox will have the identical sets of files.
|
|
|
|
|
|
|
|
The files found in default_config are sample files which are used at
|
|
|
|
Mozilla.org. Other users are expected to customize these libries and
|
|
|
|
install the modified libraries in local_config. Files found in
|
|
|
|
local_config will be used before any file found in default_config.
|
|
|
|
The distribution of Tinderbox will never place any files in the
|
|
|
|
local_config directory as this is assumed to be under local control.
|
|
|
|
|
|
|
|
A quick overview of the files:
|
|
|
|
|
|
|
|
TinderConfig.pm: general configuration settings
|
|
|
|
(HTML directories, Log files, implementations of libraries
|
|
|
|
to use, etc).
|
2000-11-29 21:47:14 +00:00
|
|
|
TreeData.pm: version control (CVS, Bonsai) configuration.
|
2000-11-29 21:12:56 +00:00
|
|
|
Error_Parse.pm: the regular expressions for identifying
|
|
|
|
errors in build logs.
|
2000-11-29 21:47:14 +00:00
|
|
|
BTData.pm: bug tracking configuration
|
2000-11-29 21:12:56 +00:00
|
|
|
FileStructure.pm: filesystem (storage) and global/per-project
|
|
|
|
settings. Most users will not have to change this.
|
|
|
|
|
|
|
|
*) Run ./configure. When configure is done you will have a Makefile
|
|
|
|
and a config.out. Although Tinderbox consists entirely of perl
|
|
|
|
scripts we must substitute some values into the source code to make it
|
|
|
|
executable.You may wish to change the default directories in configure
|
|
|
|
for some of the makefile variables. Please read config.out and make
|
|
|
|
any changes which need to be made for your system.
|
|
|
|
|
|
|
|
*) run make to create executable versions of the source code in the
|
|
|
|
./build directory.
|
|
|
|
|
|
|
|
*) run the test programs as described in /build/test/ReadMe to ensure
|
2000-08-14 22:22:15 +00:00
|
|
|
that you have configured the program correctly.
|
|
|
|
|
2000-11-29 21:12:56 +00:00
|
|
|
*) run make install, to install Tinderbox on your system. You may
|
|
|
|
wish to run this with a different 'prefix'
|
|
|
|
|
|
|
|
make install prefix=/opt/tinderbox
|
2000-06-22 04:17:19 +00:00
|
|
|
|
2000-11-29 21:12:56 +00:00
|
|
|
*) set up a cron job to run $prefix/bin/tinder.cgi --daemon-mode
|
2000-09-10 17:33:42 +00:00
|
|
|
every five minutes.
|
|
|
|
set up a cron job to run $prefix/bin/tinder.cgi/rmlogs once a day.
|
2000-10-17 23:47:08 +00:00
|
|
|
six am is a good time to run this as the machine load is usually light
|
|
|
|
and will avoids any day light savings problems.
|
2000-06-22 04:17:19 +00:00
|
|
|
|
2000-11-29 21:12:56 +00:00
|
|
|
*) set up the $prefix/bin/processmail* programs to receive the
|
2000-09-22 15:24:16 +00:00
|
|
|
incoming tinderbox mail. The process id which receives and process
|
2000-10-17 23:47:08 +00:00
|
|
|
the mail must be the the same id which runs the tinderbox cron job to
|
|
|
|
prepare the web pages. Usually this set up is accomplished by having
|
|
|
|
the MTA (Sendmail) pass mail for particular accounts into a script.
|
|
|
|
This can be configued via a global configuration file (Sendmail alias
|
|
|
|
file) or via a .forward file (each account gets the same user id but a
|
|
|
|
different home directory, each home directory gets a .forward to cause
|
|
|
|
incomming mail to be delivered through the correct tinderbox mail
|
|
|
|
processing program).
|
|
|
|
|
|
|
|
If it is not possible to have mail delivery on your web machine and to
|
|
|
|
have your web machine deliver specific mail through a program then I
|
|
|
|
suggest you use fetchmail to simulate this delivery format. Download
|
|
|
|
fetchmail (from http://tuxedo.org/~esr/fetchmail) and install it on
|
|
|
|
your webserver. Have the mail sent to any pop/imap mail server which
|
|
|
|
is accessible from the webserver. Configure fetchmail to gather the
|
|
|
|
mail from the mail server and pass it through to the correct mail
|
|
|
|
processing program. You should keep the polling interval short (30
|
|
|
|
seconds) as long polling intervals will cause delays in the tinderbox
|
|
|
|
system and limit how quickly users see the new data. If the polling
|
|
|
|
interval is too short then you will overload your pop server with
|
|
|
|
needless queries. Fetchmail should run under the same id as the
|
|
|
|
tinderbox server. The fetchmail configuration file will look
|
|
|
|
something like:
|
|
|
|
|
|
|
|
poll mail.provider.net with proto pop3:
|
|
|
|
user "tinderbox_builds" there has password "u can't krak this"
|
|
|
|
is tinder here and wants mda "$prefix/bin/processmail_builds"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We use the mail address 'tinderbox_builds' for build information
|
|
|
|
destined for the webserver. Similarly the bug tracking system should
|
|
|
|
send mail to 'tinderbox_bugs'. Currently I have a program called
|
2000-09-22 15:24:16 +00:00
|
|
|
'processmail' it will eventually be renamed to 'processmail_builds' so
|
2000-10-17 23:47:08 +00:00
|
|
|
that it is clear what mail it is processing. (Originally there was
|
|
|
|
only one mail processing program.) The bug tracking mail is parsed by
|
|
|
|
the script processmail_bugs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-06-22 04:17:19 +00:00
|
|
|
|
2000-11-29 21:12:56 +00:00
|
|
|
*) if you are using VC_CVS.pm then you will need to put a ~/.cvspass
|
2000-08-11 00:27:27 +00:00
|
|
|
for tinderbox to use. Log into the CVS repository yourself, once for
|
2000-10-17 23:47:08 +00:00
|
|
|
each tree you have defined. The login command must use the
|
2000-11-29 21:12:56 +00:00
|
|
|
hostname/modules exactly as you wrote it in VCData. Then copy your
|
2000-10-17 23:47:08 +00:00
|
|
|
~/.cvspass into the tinderbox server user id's home directory. This
|
|
|
|
must be the REAL home of the Tinderbox daemon, as listed in
|
2000-08-11 00:27:27 +00:00
|
|
|
/etc/passwd/ and set in the $HOME environmental variable for
|
|
|
|
tinder.cgi.
|
|
|
|
|
2000-08-30 02:14:14 +00:00
|
|
|
|
2000-11-29 21:12:56 +00:00
|
|
|
*) setup the build machines to mail their build logs (with tinderbox
|
2000-10-17 23:47:08 +00:00
|
|
|
variables on the top) to the web server machine. New builds must not
|
|
|
|
start earlier then 6 minutes after the last build started. Each build
|
|
|
|
machine mails the build log of each build and puts some build data at
|
|
|
|
the top of the log. Build information includes whether the build was
|
|
|
|
a success, which error parsers to use on the log file and what build
|
|
|
|
this is. The mail processing program has a help file (--help) which
|
|
|
|
details the format it knows how to accept.
|
|
|
|
|
|
|
|
|
2000-11-29 21:12:56 +00:00
|
|
|
*) Set up the bug tracking system to send mail to 'tinderbox_bugs' on
|
2000-10-17 23:47:08 +00:00
|
|
|
the webserver machine whenever a Bug ticket changes state. It is not
|
|
|
|
interesting to see which tickets are being worked on, so restrict
|
|
|
|
mailing to changes in ticket state not updates (edit) of a ticket.
|
|
|
|
|
|
|
|
|
2000-11-29 21:12:56 +00:00
|
|
|
*) Check that the time on your webserver, your version control
|
2000-10-17 23:47:08 +00:00
|
|
|
machine, your bug tracking machine and your build machines are all in
|
2000-11-29 19:47:38 +00:00
|
|
|
sync. Check that mail if build mail bounces on any of the above
|
2000-10-17 23:47:08 +00:00
|
|
|
machines that it will be recieved by someone who can act on it.
|
2000-06-22 04:17:19 +00:00
|
|
|
|