d1d86f21ce
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4) --- updated-dependencies: - dependency-name: jinja2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.github | ||
docs | ||
mozci | ||
tests | ||
.flake8 | ||
.gitignore | ||
.isort.cfg | ||
.pre-commit-config.yaml | ||
.taskcluster.yml | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
poetry.lock | ||
pyproject.toml | ||
requirements.readthedocs.txt | ||
tox.ini |
README.md
mozci
A library for inspecting push and task results in Mozilla's CI.
Installation
To install, run:
$ pip install mozci
Usage
Basic usage is to instantiate a Push
object then start accessing properties and call methods.
For example:
from mozci.push import Push
push = Push("79041cab0cc2", branch="autoland")
print("\n".join([t.label for t in push.tasks if t.failed]))
This will print all the failing tasks from a given push. See the documentation for more usage details and API docs.
Contributing
Mozci uses poetry to manage the project. So first make sure that is installed. Then clone the repo and run:
$ poetry install
This will create a virtualenv and install both project and dev dependencies in it. See the poetry documentation to learn how to work within the project.
To execute tests and linters, run:
$ tox
This should run successfully prior to submitting PRs (unless you need help figuring out the problem).
There are also some integration tests that will hit live data sources. These are run in a cron task and are excluded from the default test run. But if needed, you can run them locally via:
$ tox -e integration
Since tox
installs packages on every invocation, it's much faster to run tests directly with pytest
:
$ poetry run pytest tests
or
$ poetry shell
$ pytest tests
Additionally, you can install the pre-commit
hooks by running:
$ pre-commit install
Linters and formatters will now run every time you commit.