{ "$schema": "https://turborepo.org/schema.json", "tasks": { // A task nothing implements, so depending on it runs nothing. Its hash still covers the // package's inputs, and the chain over `^manifest` carries those of every transitive // dependency, which is what a task needs from a crate it reads sources from rather than // artifacts. A package that reads a crate the package graph does not reach adds the // crate's `manifest` to its own, so the chain continues into the crate. "manifest": { "dependsOn": ["^manifest"] }, // Development commands "dev": { "cache": false, "persistent": true }, // Build commands // // `codegen`, `build`, `test:*` and `start:*` are shared between the JavaScript packages // and the Rust crates, and what each of them consumes differs per package, so the edges // are declared where they hold. A name only one toolchain uses carries its defaults here. "codegen": {}, "doc:dependency-diagram": { "cache": false, "dependsOn": ["hash-repo-chores#build"] }, "//#doc:task-dependencies": { "cache": false }, "build": {}, // Runs as `prepack`, so the payload check reads the files a pack is about to ship // rather than replaying a cached result. "build:pack": { "cache": false, "dependsOn": ["build"] }, // An image copies the repository and generates and builds inside it, so the host // contributes only sources. "build:docker": { "cache": false, "dependsOn": ["^manifest"] }, "build:codspeed": { "cache": false, "dependsOn": ["^manifest"] }, "compile": { "cache": false, "dependsOn": ["^manifest"] }, "compile:release": { "cache": false, "dependsOn": ["^manifest"] }, // Run commands "start:migrate": { "cache": false }, "start": { "cache": false, "persistent": true }, "start:healthcheck": { "cache": false }, "start:test:migrate": { "cache": false }, "start:test": { "cache": false, "persistent": true }, "start:test:healthcheck": { "cache": false }, // Test commands // // A test reads its dependencies' sources through the toolchain, so their inputs belong // in its hash whether or not a build runs first. Packages that import from `dist` add // `^build` themselves. "test:unit": { "dependsOn": ["^manifest"], "env": ["TEST_COVERAGE"] }, // The integration tests and benches run against the services `infra/compose` starts. "test:integration": { "dependsOn": ["^manifest"], "env": ["TEST_COVERAGE"], "inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/infra/compose/**"] }, // Smoke-tests the image `build:docker` produced. Not run in CI yet. // TODO(SRE-1032): run this in the deploy workflow against the image it already builds. "test:docker": { "cache": false, "dependsOn": ["build:docker"] }, "test:codspeed": { "cache": false, "dependsOn": ["^manifest"] }, "test:miri": { "dependsOn": ["^manifest"] }, // Benchmarks "bench:unit": { "dependsOn": ["^manifest"], "cache": false }, "bench:integration": { "dependsOn": ["^manifest"], "cache": false, "inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/infra/compose/**"] }, // Linting and formatting // Patching writes node_modules, which an artifact cache cannot restore. "prepare:oxlint": { "cache": false }, "lint": {}, // The clippy invocation differs between pull requests (`--all-features`) and other runs // such as the merge queue (`cargo hack --feature-powerset`), selected via // `GITHUB_EVENT_NAME` in the `.justfile`. Include it in the hash so the two run modes // cannot share caches. "lint:clippy": { "env": ["GITHUB_EVENT_NAME"], "dependsOn": ["^manifest"] }, // Type-aware linting resolves workspace imports from the dependencies' dist. "lint:eslint": { "env": ["CHECK_TEMPORARILY_DISABLED_RULES"], "dependsOn": ["codegen", "^build", "@local/eslint#build"] }, "lint:oxlint": { "dependsOn": ["codegen", "^build"] }, "lint:tsc": { "dependsOn": ["codegen", "^build"] }, "fix:eslint": { "dependsOn": ["codegen", "^build", "@local/eslint#build"] }, "fix:clippy": {}, "sentry:sourcemaps": { "dependsOn": ["build"] } }, "globalDependencies": [ // Changing workflows should trigger a full rebuild so it's checked in CI ".github/actions/**", ".github/scripts/**", ".github/workflows/**", // Dot-files ".*", ".cargo/**", ".config/**", ".yarn/**", // Manifest files ".config/mise/**", "package.json", "pyproject.toml", "rust-toolchain.toml", "yarn*" ], "globalPassThroughEnv": [ "AWS_LC_SYS_*", "CARGO_TERM_PROGRESS_WHEN", "RUSTC_WRAPPER", "CARGO_INCREMENTAL" ], // The root `AGENTS.md` is maintained by hand, so turbo must not write guidance into it. "agentGuidance": false, "futureFlags": { "affectedUsingTaskInputs": true, "experimentalCargoWorkspaces": true, "experimentalPythonWorkspaces": true, "experimentalTaskCommand": true } }