| 1 |
Metadata-Version: 2.4 |
| 2 |
Name: taskcluster-taskgraph |
| 3 |
Version: 14.4.1 |
| 4 |
Summary: Build taskcluster taskgraphs |
| 5 |
Project-URL: Repository, https://github.com/taskcluster/taskgraph |
| 6 |
Project-URL: Issues, https://github.com/taskcluster/taskgraph/issues |
| 7 |
Author-email: Mozilla Release Engineering <[email protected]> |
| 8 |
License-File: LICENSE |
| 9 |
Classifier: Development Status :: 5 - Production/Stable |
| 10 |
Classifier: Environment :: Console |
| 11 |
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0) |
| 12 |
Classifier: Programming Language :: Python :: 3.8 |
| 13 |
Classifier: Programming Language :: Python :: 3.9 |
| 14 |
Classifier: Programming Language :: Python :: 3.10 |
| 15 |
Classifier: Programming Language :: Python :: 3.11 |
| 16 |
Classifier: Programming Language :: Python :: 3.12 |
| 17 |
Classifier: Programming Language :: Python :: 3.13 |
| 18 |
Classifier: Topic :: Software Development |
| 19 |
Requires-Python: >=3.8 |
| 20 |
Requires-Dist: appdirs>=1.4 |
| 21 |
Requires-Dist: cookiecutter~=2.1 |
| 22 |
Requires-Dist: json-e>=2.7 |
| 23 |
Requires-Dist: mozilla-repo-urls |
| 24 |
Requires-Dist: pyyaml>=5.3.1 |
| 25 |
Requires-Dist: redo>=2.0 |
| 26 |
Requires-Dist: requests>=2.25 |
| 27 |
Requires-Dist: slugid>=2.0 |
| 28 |
Requires-Dist: taskcluster-urls>=11.0 |
| 29 |
Requires-Dist: voluptuous>=0.12.1 |
| 30 |
Provides-Extra: load-image |
| 31 |
Requires-Dist: zstandard; extra == 'load-image' |
| 32 |
Provides-Extra: orjson |
| 33 |
Requires-Dist: orjson; extra == 'orjson' |
| 34 |
Description-Content-Type: text/x-rst |
| 35 |
|
| 36 |
|
| 37 |
.. image:: https://firefox-ci-tc.services.mozilla.com/api/github/v1/repository/taskcluster/taskgraph/main/badge.svg |
| 38 |
:target: https://firefox-ci-tc.services.mozilla.com/api/github/v1/repository/taskcluster/taskgraph/main/latest |
| 39 |
:alt: Task Status |
| 40 |
|
| 41 |
.. image:: https://results.pre-commit.ci/badge/github/taskcluster/taskgraph/main.svg |
| 42 |
:target: https://results.pre-commit.ci/latest/github/taskcluster/taskgraph/main |
| 43 |
:alt: pre-commit.ci status |
| 44 |
|
| 45 |
.. image:: https://codecov.io/gh/taskcluster/taskgraph/branch/main/graph/badge.svg?token=GJIV52ZQNP |
| 46 |
:target: https://codecov.io/gh/taskcluster/taskgraph |
| 47 |
:alt: Code Coverage |
| 48 |
|
| 49 |
.. image:: https://badge.fury.io/py/taskcluster-taskgraph.svg |
| 50 |
:target: https://badge.fury.io/py/taskcluster-taskgraph |
| 51 |
:alt: Pypi Version |
| 52 |
|
| 53 |
.. image:: https://readthedocs.org/projects/taskcluster-taskgraph/badge/?version=latest |
| 54 |
:target: https://taskcluster-taskgraph.readthedocs.io/en/latest/?badge=latest |
| 55 |
:alt: Documentation Status |
| 56 |
|
| 57 |
.. image:: https://img.shields.io/badge/license-MPL%202.0-orange.svg |
| 58 |
:target: http://mozilla.org/MPL/2.0 |
| 59 |
:alt: License |
| 60 |
|
| 61 |
Taskgraph |
| 62 |
========= |
| 63 |
|
| 64 |
Taskgraph is a Python library to generate graphs of tasks for the `Taskcluster |
| 65 |
CI`_ service. It is the recommended approach for configuring tasks once your |
| 66 |
project outgrows a single `.taskcluster.yml`_ file and is what powers the over |
| 67 |
30,000 tasks and counting that make up Firefox's CI. |
| 68 |
|
| 69 |
For more information and usage instructions, `see the docs`_. |
| 70 |
|
| 71 |
How It Works |
| 72 |
------------ |
| 73 |
|
| 74 |
Taskgraph leverages the fact that Taskcluster is a generic task execution |
| 75 |
platform. This means that tasks can be scheduled via its `comprehensive API`_, |
| 76 |
and aren't limited to being triggered in response to supported events. |
| 77 |
|
| 78 |
Taskgraph leverages this execution platform to allow CI systems to scale to any |
| 79 |
size or complexity. |
| 80 |
|
| 81 |
1. A *decision task* is created via Taskcluster's normal `.taskcluster.yml`_ |
| 82 |
file. This task invokes ``taskgraph``. |
| 83 |
2. Taskgraph evaluates a series of yaml based task definitions (similar to |
| 84 |
those other CI offerings provide). |
| 85 |
3. Taskgraph applies transforms on top of these task definitions. Transforms |
| 86 |
are Python functions that can programmatically alter or even clone a task |
| 87 |
definition. |
| 88 |
4. Taskgraph applies some optional optimization logic to remove unnecessary |
| 89 |
tasks. |
| 90 |
5. Taskgraph submits the resulting *task graph* to Taskcluster via its API. |
| 91 |
|
| 92 |
Taskgraph's combination of declarative task configuration combined with |
| 93 |
programmatic alteration are what allow it to support CI systems of any scale. |
| 94 |
Taskgraph is the library that powers the 30,000+ tasks making up `Firefox's |
| 95 |
CI`_. |
| 96 |
|
| 97 |
.. _Taskcluster CI: https://taskcluster.net/ |
| 98 |
.. _comprehensive API: https://docs.taskcluster.net/docs/reference/platform/queue/api |
| 99 |
.. _.taskcluster.yml: https://docs.taskcluster.net/docs/reference/integrations/github/taskcluster-yml-v1 |
| 100 |
.. _Firefox's CI: https://treeherder.mozilla.org/jobs?repo=mozilla-central |
| 101 |
.. _see the docs: https://taskcluster-taskgraph.readthedocs.io |
| 102 |
|
| 103 |
Installation |
| 104 |
------------ |
| 105 |
|
| 106 |
Taskgraph supports Python 3.8 and up, and can be installed from Pypi: |
| 107 |
|
| 108 |
.. code-block:: |
| 109 |
|
| 110 |
pip install taskcluster-taskgraph |
| 111 |
|
| 112 |
|
| 113 |
Alternatively, the repo can be cloned and installed directly: |
| 114 |
|
| 115 |
.. code-block:: |
| 116 |
|
| 117 |
git clone https://github.com/taskcluster/taskgraph |
| 118 |
cd taskgraph |
| 119 |
pip install . |
| 120 |
|
| 121 |
In both cases, it's recommended to use a Python `virtual environment`_. |
| 122 |
|
| 123 |
.. _virtual environment: https://docs.python.org/3/tutorial/venv.html |
| 124 |
|
| 125 |
Get Involved |
| 126 |
------------ |
| 127 |
|
| 128 |
If you'd like to get involved, please see our `contributing docs`_! |
| 129 |
|
| 130 |
.. _contributing docs: https://github.com/taskcluster/taskgraph/blob/main/CONTRIBUTING.rst |