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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Ignored Deployments
|
🟢 Turbopack Benchmark CI successful 🟢Thanks |
|
1adebd5
to
ff203c0
Compare
ff203c0
to
d02a644
Compare
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 |
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. |
939a0a7
to
0b5335a
Compare
0b5335a
to
afa8e69
Compare
58bea99
to
77abbbd
Compare
522d11c
to
38050c0
Compare
15134d1
to
550d723
Compare
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 codeCloses TURBO-2200