0683170484
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 |
||
---|---|---|
ciwatch | ||
.gitreview | ||
LICENSE | ||
README.md | ||
ci-watch.conf.sample | ||
ciwatch.wsgi | ||
requirements.txt | ||
run.py | ||
setup.py |
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.