Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(turborepo): Watch mode #7613

Merged
merged 25 commits into from Apr 19, 2024
Merged

feat(turborepo): Watch mode #7613

merged 25 commits into from Apr 19, 2024

Conversation

NicholasLYang
Copy link
Contributor

@NicholasLYang NicholasLYang commented Mar 4, 2024

Description

Implements an MVP version of watch mode that takes the package changes stream and re-runs package tasks as needed.

Testing Instructions

Closes TURBO-2519

Copy link
Contributor Author

NicholasLYang commented Mar 4, 2024

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

Join @NicholasLYang and the rest of your teammates on Graphite Graphite

Copy link

vercel bot commented Mar 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-kitchensink-blog 🔄 Building (Inspect) Visit Preview 💬 Add feedback Apr 19, 2024 6:24pm
examples-native-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Apr 19, 2024 6:24pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 19, 2024 6:24pm
examples-vite-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Apr 19, 2024 6:24pm
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 19, 2024 6:24pm
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 19, 2024 6:24pm
turbo-turbo-tracing-next-plugin ❌ Failed (Inspect) Apr 19, 2024 6:24pm
5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Apr 19, 2024 6:24pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Apr 19, 2024 6:24pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Apr 19, 2024 6:24pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Apr 19, 2024 6:24pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Apr 19, 2024 6:24pm

@NicholasLYang NicholasLYang changed the title Starting on watch mode feat(turborepo): Watch mode Mar 4, 2024
Copy link
Contributor

github-actions bot commented Mar 4, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Mar 4, 2024

🟢 CI successful 🟢

Thanks

Instead of using `--filter` in our re-running of tasks for watch mode,
we instead prune the task graph to run the changed task and its
dependent tasks. This has the benefit of following the task graph and
not the package graph.

You can verify this works by creating a task dependency relation that is
not in the package graph. So, make a `ui#test` task that depends on a
`docs#test` task, but don't have `ui` depend on `docs`. Then verify that
when the `docs` are changed, we re-run the `ui#test` task too.

Closes TURBO-2752
Copy link
Contributor

@gsoltis gsoltis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good enough for the watch MVP

@weyert
Copy link
Contributor

weyert commented Apr 19, 2024

How do we use it? :)

chris-olszewski added a commit that referenced this pull request Apr 24, 2024
### Description

I messed up a resolving a merge conflict and didn't migrate some args
that moved from `ExecutionArgs` to `RunArgs` in #7613

### Testing Instructions

Tests on CI pass

Closes TURBO-2872
chris-olszewski added a commit that referenced this pull request Apr 30, 2024
### Description

I messed up a resolving a merge conflict and didn't migrate some args
that moved from `ExecutionArgs` to `RunArgs` in #7613

### Testing Instructions

Tests on CI pass

Closes TURBO-2872
chris-olszewski added a commit that referenced this pull request May 10, 2024
### Description

I messed up a resolving a merge conflict and didn't migrate some args
that moved from `ExecutionArgs` to `RunArgs` in #7613

### Testing Instructions

Tests on CI pass

Closes TURBO-2872
chris-olszewski added a commit that referenced this pull request May 14, 2024
### Description

I messed up a resolving a merge conflict and didn't migrate some args
that moved from `ExecutionArgs` to `RunArgs` in #7613

### Testing Instructions

Tests on CI pass

Closes TURBO-2872
chris-olszewski added a commit that referenced this pull request May 20, 2024
### Description

I messed up a resolving a merge conflict and didn't migrate some args
that moved from `ExecutionArgs` to `RunArgs` in #7613

### Testing Instructions

Tests on CI pass

Closes TURBO-2872
chris-olszewski added a commit that referenced this pull request May 22, 2024
### Description

I messed up a resolving a merge conflict and didn't migrate some args
that moved from `ExecutionArgs` to `RunArgs` in #7613

### Testing Instructions

Tests on CI pass

Closes TURBO-2872
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants