Taskcluster Taskgraph Generator

20.0.0 · active · verified Mon Apr 13

Taskgraph is a Python library designed to generate complex dependency graphs for the Taskcluster CI service. It serves as the recommended approach for configuring CI tasks when projects outgrow simple .taskcluster.yml configurations, powering large-scale CI systems like Firefox's with tens of thousands of tasks. The library is currently at version 20.0.0 and maintains an active release cadence with frequent minor and patch updates.

Warnings

Install

Imports

Quickstart

The primary interaction with taskcluster-taskgraph is via its command-line interface. The `taskgraph init` command bootstraps a new project with the necessary configuration files and directory structure. You can then use `taskgraph full` to locally generate and view the task graph, and `taskgraph morphed -J` to inspect the final JSON definitions of tasks.

# 1. Initialize a new Taskgraph setup in your repository
# This creates a .taskcluster.yml and a taskcluster/ directory structure.
mkdir my-repo && cd my-repo
taskgraph init

# 2. Generate the task graph locally to see defined tasks
# This processes your task definitions and transforms.
taskgraph full

# To see the full JSON definition of tasks, use the -J/--json flag:
taskgraph morphed -J

view raw JSON →