A collection of active-data-recipes related to CI
Перейти к файлу
Andrew Halberstadt ffeafdcf2c
Move workaround to a troubleshooting section
2020-04-27 11:31:28 -04:00
docs Create a new 'scheduler_analysis' recipe 2019-06-04 16:22:00 -04:00
extra Initial Commit 2019-05-15 14:45:39 -04:00
recipes Add an argument to the push_data recipe to choose the type of runnable (label or group) to get data for 2020-02-11 12:11:19 +01:00
test Add test for push_health 2019-06-04 16:22:00 -04:00
.editorconfig Initial Commit 2019-05-15 14:45:39 -04:00
.gitignore Windows docs 2020-02-14 12:04:06 -05:00
.travis.yml Initial Commit 2019-05-15 14:45:39 -04:00
CODE_OF_CONDUCT.md Initial Commit 2019-05-15 14:45:39 -04:00
README.md Move workaround to a troubleshooting section 2020-04-27 11:31:28 -04:00
doclint Initial Commit 2019-05-15 14:45:39 -04:00
poetry.lock Update to mozci 1.2.0 2020-02-13 17:39:24 +01:00
pyproject.toml Update to mozci 1.0.0 and retrieve group regressions too in the push_data recipe (#16) 2020-02-10 15:38:07 +01:00
tox.ini Use 'mozci' package in place of the local 'ci_info' one 2019-12-02 11:30:02 -05:00

README.md

Build Status PyPI version

ci-recipes

ci-recipes is a repository of ActiveData recipes. A recipe is a small snippet that runs one or more active data queries and returns the output. Queries can sometimes be modified by command line arguments and output can sometimes be post-processed.

Each recipe should try to answer a single question.

Installation

First install poetry, then run:

$ git clone https://github.com/ahal/ci-recipes
$ cd ci-recipes
$ poetry install

You will need Python 3.7 or higher.

Usage

The poetry install command will create a virtualenv with all of the required dependencies installed. You can use poetry run <cmd> to run a single command within the virtualenv context. Or you can use poetry shell to spawn a new shell with the virtualenv activated. The commands below assume you have run the latter.

Run:

$ adr <recipe> <options>

For a list of recipes:

$ adr list

For recipe specific options see:

$ adr recipe <recipe> -- --help

To serve the web app locally:

$ adr-app

Recipes

See the recipe documentation for more information on which recipes are available and how to run them.

Development

To contribute to ci-recipes first follow the installation steps above. You can run tests with:

$ poetry run tox

Or:

$ poetry shell
$ tox

Troubleshooting

The poetry install command may lock up on Windows10 (Python3.7.6) you can get around this with:

poetry export -f requirements.txt > requirements.txt
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt