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): Daemon package watch #7183

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

Conversation

arlyon
Copy link
Contributor

@arlyon arlyon commented Jan 31, 2024

Description

This PR allows the daemon to watch for package changes and eagerly update hashes. Each package / task maintains a list of hashes that are updated by a file watcher. When turbo launches, it queries that daemon instead of manually walking.

Testing Instructions

Added a subcommand turbo daemon hash <task> that lets us test the daemon hashing code

Closes TURBO-2200

Copy link

vercel bot commented Jan 31, 2024

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

Name Status Preview Comments Updated (UTC)
examples-gatsby-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Mar 1, 2024 11:46pm
examples-kitchensink-blog 🔄 Building (Inspect) Visit Preview 💬 Add feedback Mar 1, 2024 11:46pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 1, 2024 11:46pm
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 1, 2024 11:46pm
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 1, 2024 11:46pm
6 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Mar 1, 2024 11:46pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Mar 1, 2024 11:46pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Mar 1, 2024 11:46pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Mar 1, 2024 11:46pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Mar 1, 2024 11:46pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Mar 1, 2024 11:46pm

Copy link
Contributor

github-actions bot commented Jan 31, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Jan 31, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turborepo integration tests
  • TurboRepo Rust tests

See workflow summary for details

@weyert
Copy link
Contributor

weyert commented Feb 1, 2024

Would this be able to be used as a way to trigger tasks when files changes in dependencies/dependents of workspaces? A bit like what turbowatch allows to do but then natively.

@arlyon
Copy link
Contributor Author

arlyon commented Feb 1, 2024

The same infrastructure can definitely be used for alerting the client about package changes but this PR is scoped to relieving the client of having to calculate hashes and speeding up 'time to first task'. The streaming grpc api is just a stub for now.

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