Skip to content

feat(tasks): default --mode to before so dependencies run by default#2724

Merged
domenkozar merged 1 commit into
mainfrom
change-default-task-mode-to-before
Apr 10, 2026
Merged

feat(tasks): default --mode to before so dependencies run by default#2724
domenkozar merged 1 commit into
mainfrom
change-default-task-mode-to-before

Conversation

@domenkozar

Copy link
Copy Markdown
Member

Summary

  • Change the default execution mode of devenv tasks run from single to before so that task dependencies declared via before/after are respected out of the box.
  • Running devenv tasks run admin:deploy now runs any tasks that admin:deploy depends on (e.g. via after = [ \"admin:build\" ]), instead of silently skipping them.
  • Use --mode single to restore the previous behavior of running only the specified task.

Fixes #2551

Test plan

  • devenv-run-tests run tests --only tasks still passes (the existing suite explicitly uses --mode all where needed, and the remaining task invocations have no dependencies)
  • cargo nextest run -p devenv-tasks still passes
  • Manually verify a task with after = [ \"...\" ] now pulls in its upstream dependency by default

🤖 Generated with Claude Code

Change the default execution mode of `devenv tasks run` from `single`
to `before` so that task dependencies declared via `before`/`after` are
respected by default. Use `--mode single` to restore the old behavior.

Fixes #2551

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

🔍 Suggested Reviewers

Based on git blame analysis of the changed lines, the following contributors have significant experience with the modified code:

  • @sandydoo - 100.0% of changed lines (2 lines)

Please consider reviewing this PR as you have authored significant portions of the code being modified. Your expertise would be valuable! 🙏

This comment was automatically generated by git-blame-auto-reviewer

Last updated: 2026-04-09T15:55:56.779Z

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying devenv with  Cloudflare Pages  Cloudflare Pages

Latest commit: ae7e287
Status: ✅  Deploy successful!
Preview URL: https://60b355cb.devenv.pages.dev
Branch Preview URL: https://change-default-task-mode-to.devenv.pages.dev

View logs

@domenkozar domenkozar merged commit d4410df into main Apr 10, 2026
277 of 301 checks passed
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.

Change default task mode to 'before' for better dependency handling

1 participant