{"record":{"id":"da41addd81227b09","repo":"vercel/turborepo","slug":"no-tasks-were-executed-as-part-of-this-run","errorCode":null,"errorMessage":"No tasks were executed as part of this run.","messagePattern":"No tasks were executed as part of this run\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"crates/turborepo-run-summary/src/execution.rs","lineNumber":173,"sourceCode":"        }\n\n        if !failed_tasks.is_empty() {\n            let mut formatted: Vec<_> = failed_tasks\n                .iter()\n                .map(|task| color!(ui, BOLD_RED, \"{}\", task.task_id()).to_string())\n                .collect();\n            formatted.sort();\n            line_data.push((\"Failed\", formatted.join(\", \")));\n        }\n\n        let max_length = line_data\n            .iter()\n            .map(|(header, _)| header.len())\n            .max()\n            .unwrap_or_default();\n\n        if self.attempted == 0 {\n            turborepo_log::warn(\n                turborepo_log::Source::turbo(turborepo_log::Subsystem::Summary),\n                \"No tasks were executed as part of this run.\",\n            )\n            .emit();\n        }\n\n        // All output goes through the Logger. The TerminalSink renders\n        // ANSI codes for color; the StructuredLogSink strips them.\n        turborepo_log::info(\n            turborepo_log::Source::turbo(turborepo_log::Subsystem::Summary),\n            \"\",\n        )\n        .emit();\n        for (header, trailer) in &line_data {\n            turborepo_log::info(\n                turborepo_log::Source::turbo(turborepo_log::Subsystem::Summary),\n                format!(\n                    \"{}\",","sourceCodeStart":155,"sourceCodeEnd":191,"githubUrl":"https://github.com/vercel/turborepo/blob/f9245100cf0d31d96628804ead485f6bf226e55a/crates/turborepo-run-summary/src/execution.rs#L155-L191","documentation":"Emitted while printing the run summary when `attempted == 0`: turbo finished without executing a single task. It is not a crash — the command ran, but the resulting task graph contained no runnable tasks, typically because package filters matched nothing or the selected tasks do not exist in any matched package.","triggerScenarios":"`turbo run build --filter=<pattern>` where the filter matches no packages (typo, wrong scope syntax, an exclusion filter that removes everything), or a task name no matched package defines; the summary path also serves dry runs, so `--dry=json`/`--dry=text` runs that select nothing report it too.","commonSituations":"Typo'd filters like `--filter=packge` instead of `package`; `--filter=...[origin/main]` with a wrong or stale base ref; tasks missing from turbo.json after a rename; CI pipelines that silently do nothing and 'pass'.","solutions":["Verify the filter matches packages: `turbo ls --filter='<pattern>'` (or a `--dry` run) and fix the pattern","Confirm the task is defined in turbo.json `tasks` or in the matched packages' package.json scripts","Check that the base ref in `--filter=...[origin/main]` exists and is the intended comparison point","Make CI fail on empty runs so a silent no-op is caught instead of skipped"],"exampleFix":"# before\nturbo run build --filter=packge   # typo: matches nothing\n\n# after\nturbo run build --filter=package  # or --filter='./apps/**'","handlingStrategy":"validation","validationCode":"# Verify the filter matches something before the real run\nif [ -z \"$(turbo ls --filter=\"$PACKAGE\" 2>/dev/null)\" ]; then\n  echo \"filter '$PACKAGE' matched no packages\"; exit 1\nfi\nturbo run build --filter=\"$PACKAGE\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Sanity-check filters in CI with `turbo ls --filter=...` or a `--dry` run before the real invocation","Treat an empty run summary (attempted 0) as a pipeline smell — exit non-zero in wrapper scripts","Keep task names in turbo.json in sync with CI invocations after renames","Re-check the base ref in `...[origin/main]` filters whenever the default branch changes"],"tags":["task-graph","filters","run-summary","turborepo"],"backgroundTag":"filter-no-match","analyzedSha":"f9245100cf0d31d96628804ead485f6bf226e55a","analyzedAt":"2026-08-17T10:46:15.696Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}