Skip to content

feat: fast-fail execution when a task fails#233

Merged
branchseer merged 1 commit intomainfrom
feat/fast-fail-on-task-error
Mar 12, 2026
Merged

feat: fast-fail execution when a task fails#233
branchseer merged 1 commit intomainfrom
feat/fast-fail-on-task-error

Conversation

@branchseer
Copy link
Member

@branchseer branchseer commented Mar 12, 2026

Summary

Stop running tasks after a failure, instead of continuing with the rest.

Two cases:

  1. Tasks connected by dependencies — if build in package A fails, don't bother running build in package B that depends on it.
  2. Commands joined with && — if a script is eslint . && vitest run, and eslint fails, don't run vitest.

Previously both cases would keep going regardless of failures. Now the runner stops at the first failure and exits with that task's exit code.

Test plan

  • E2E snapshot: single task failure returns exit code
  • E2E snapshot: task failure fast-fails remaining tasks (-r)
  • E2E snapshot: dependency failure fast-fails dependents (-t)
  • E2E snapshot: &&-chained command stops at first failure
  • Full e2e suite passes (35 fixtures, no regressions)
  • Full cargo test passes

🤖 Generated with Claude Code

Stop executing subsequent tasks and &&-chained commands when any task
exits with non-zero status. Previously, all tasks would run regardless
of failures. Now the runner stops immediately, matching shell && semantics
for chained commands and providing faster feedback on errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@branchseer branchseer marked this pull request as ready for review March 12, 2026 10:24
@branchseer branchseer requested a review from fengmk2 March 12, 2026 10:24
Copy link
Member Author

branchseer commented Mar 12, 2026

Merge activity

  • Mar 12, 10:30 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Mar 12, 10:30 AM UTC: @branchseer merged this pull request with Graphite.

@branchseer branchseer merged commit 28f371a into main Mar 12, 2026
7 checks passed
@branchseer branchseer deleted the feat/fast-fail-on-task-error branch March 12, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants