From Fedora Project Wiki

(yourls configuration link)
Line 27: Line 27:
Almost all configuration files are stored in the {{filename|/etc/autoqa}} directory. They are well documented, edit them and adjust the settings to your needs. Available config file:
Almost all configuration files are stored in the {{filename|/etc/autoqa}} directory. They are well documented, edit them and adjust the settings to your needs. Available config file:
* {{filename|autoqa.conf}} - main config file
* {{filename|autoqa.conf}} - main config file
* {{filename|repoinfo.conf}} - package repository configuration (refer to [[How_to_update_AutoQA_repoinfo.conf]])
* {{filename|repoinfo.conf}} - package repository configuration (refer to [[How to update AutoQA repoinfo.conf]])
* {{filename|fas.conf}} - config file with [[Account System|FAS]] credentials, used for services that require FAS authentication (like [[Bodhi]])
* {{filename|fas.conf}} - config file with [[Account System|FAS]] credentials, used for services that require FAS authentication (like [[Bodhi]])
* {{filename|/etc/httpd/conf.d/wsgi.conf}} - The {{filename|git-post-receive}} relies on WSGI.  Support for wsgi is provided by {{package|mod_wsgi}} and it must be manually enabled in the provided Apache configuration file.
* {{filename|/etc/httpd/conf.d/wsgi.conf}} - The {{filename|git-post-receive}} relies on WSGI.  Support for wsgi is provided by {{package|mod_wsgi}} and it must be manually enabled in the provided Apache configuration file.
* {{filename|/etc/httpd/conf.d/autoqa.conf}} - AutoQA's apache configuration file, now used for custom 404 page
* {{filename|/etc/httpd/conf.d/autoqa.conf}} - AutoQA's apache configuration file, now used for custom 404 page
* {{filename|/etc/httpd/conf.d/yourls.conf}} - config with [http://www.yourls.org yourls] shortening service credentials and other settings
* {{filename|/etc/httpd/conf.d/yourls.conf}} - config with [http://www.yourls.org yourls] shortening service credentials and other settings (refer to [[Install and configure YOURLS for AutoQA]] if you want to enable URL shortening)


= Configure Cron =
= Configure Cron =

Revision as of 09:15, 21 November 2011

QA.png


This page details installing and configuring an AutoQA server. AutoQA is currently packaged for Fedora and EPEL, but due to library dependencies, the package is not yet available in official Fedora repositories. The following section describes how to install AutoQA.

Use the Right Repo

Configure the system to receive updates from the the AutoQA package repository. To use the AutoQA package repository, download the appropriate repository file listed below.

Note.png
updates-testing?
Just like with Fedora, there is an autoqa updates-testing package repository. If you would like to test early releases of autoqa, and related packages, subscribe to the following package repositories:

Install AutoQA

Use the following yum command to install AutoQA and its dependencies:

yum install autoqa
Questionmark.png
Need autotest-server?
If you are planning to use AutoQA to develop and run tests on a single system, the Package-x-generic-16.pngautoqa package is all you'll need. However, if you want multiple systems scheduling and running tests (see AutoQA architecture), you will want to install the Package-x-generic-16.pngautotest-server package. For more information, see Install and configure autotest.

Configure AutoQA

Almost all configuration files are stored in the /etc/autoqa directory. They are well documented, edit them and adjust the settings to your needs. Available config file:

  • autoqa.conf - main config file
  • repoinfo.conf - package repository configuration (refer to How to update AutoQA repoinfo.conf)
  • fas.conf - config file with FAS credentials, used for services that require FAS authentication (like Bodhi)
  • /etc/httpd/conf.d/wsgi.conf - The git-post-receive relies on WSGI. Support for wsgi is provided by Package-x-generic-16.pngmod_wsgi and it must be manually enabled in the provided Apache configuration file.
  • /etc/httpd/conf.d/autoqa.conf - AutoQA's apache configuration file, now used for custom 404 page
  • /etc/httpd/conf.d/yourls.conf - config with yourls shortening service credentials and other settings (refer to Install and configure YOURLS for AutoQA if you want to enable URL shortening)

Configure Cron

On the server you will want to periodically run AutoQA watchers, which will schedule corresponding tests. We have prepared a cron file for these purposes, you can install it by:

cp /usr/share/autoqa/autoqa.cron /etc/cron.d/

If you think that some watcher should be run more or less frequently (or you want to disable some of them completely), just edit the installed cron file.