An OpenStack third-party CI monitoring tool
Go to file
Mikhail S Medvedev 0683170484 Allow global ciwatch conf file
We want to be able to store the configuration in /etc, as opposed to
source directory.

Try to load configuration from source dir first, and fallback to
/etc/ciwatch/ci-watch.conf.

Wrap everything into a function and add exception if no configuration
is found. We want to move away from having globals.

Original Change-Id: I91f2adc6e90b6252c5839a5ef8dde0fe7cd137f8

Change-Id: Ic939caeff538e290418cff2a6438d63a024994b0
2015-10-06 11:58:44 -05:00
ciwatch Allow global ciwatch conf file 2015-10-06 11:58:44 -05:00
.gitreview Added .gitreview 2015-10-05 22:17:09 +00:00
LICENSE Add CI Watch, a third-party CI monitoring dashboard 2015-10-06 11:58:39 -05:00
README.md Add CI Watch, a third-party CI monitoring dashboard 2015-10-06 11:58:39 -05:00
ci-watch.conf.sample Add CI Watch, a third-party CI monitoring dashboard 2015-10-06 11:58:39 -05:00
ciwatch.wsgi Add CI Watch, a third-party CI monitoring dashboard 2015-10-06 11:58:39 -05:00
requirements.txt Add CI Watch, a third-party CI monitoring dashboard 2015-10-06 11:58:39 -05:00
run.py Allow external access by default 2015-10-06 11:58:42 -05:00
setup.py Add CI Watch, a third-party CI monitoring dashboard 2015-10-06 11:58:39 -05:00

README.md

CI Watch

Installation

From this folder, run the following commands.

pip install -r requirements.txt
pip install -e .

These instructions are for development and testing installations.

Usage

At the moment, this package provides three commands.

ci-watch-server. Launch a development server.

ci-watch-stream-events. Stream events from Gerrit and append valid events to third-party-ci.log.

ci-watch-populate-database. Add all entries from third-party-ci.log to the database.

Configuration

Configuration is stored in the ci-watch.conf file. Importantly, you can specify a directory to store the third-party-ci.log file (data_dir) as well as the database to connect to. Look at ci-watch.conf.sample for an example.

Other settings should be self explanatory based on the provided configuration file.

State of the project

This project is a work in progress and the code is pretty rough in some places.

TODO

  • Add tests.
  • Use a different cache other than SimpleCache. It is not threadsafe. We should use something like redis instead.

These items are far from the only work needed for this project.

Acknowledgements

This code was originally forked from John Griffith's sos-ci project. Some of it can still be found in the code and configuration file.