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

Fix disabled caching in Turbo #208

Open
rajdip-b opened this issue May 12, 2024 · 13 comments
Open

Fix disabled caching in Turbo #208

rajdip-b opened this issue May 12, 2024 · 13 comments
Labels
help wanted Extra attention is needed priority: low scope: general Anything related to this repository type: bug Something isn't working

Comments

@rajdip-b
Copy link
Member

Description

Currently, whenever we try to run tests, the scripts re-compile the build phase and test:unit phase of API over and over again. We would like to use turbo remote caching to help speed things up.

@rajdip-b rajdip-b added type: bug Something isn't working help wanted Extra attention is needed scope: api Everything related to the API scope: general Anything related to this repository and removed scope: api Everything related to the API labels May 12, 2024
@rajdip-b
Copy link
Member Author

@jamesfrye420 Wanna give this a shot?

@jamesfrye420
Copy link
Contributor

Only api or all workspaces?

@rajdip-b
Copy link
Member Author

Yeah for all over, and the unittest in API.

@jamesfrye420
Copy link
Contributor

Do you want to do remote caching or just local caching?

@jamesfrye420
Copy link
Contributor

Nvm remote caching can be setup later, no need as of now

@rajdip-b
Copy link
Member Author

I'm not entirely sure what would be the best. Last time we used NX cloud cache. So maybe this time too, we can go with cloud caching?

@jamesfrye420
Copy link
Contributor

Yea basically it is the same

Do you wanna host the cache in vercel or self host it?

@jamesfrye420
Copy link
Contributor

jamesfrye420 commented May 12, 2024

@rajdip-b could you list out all the workspaces in the project?

  • "apps/*"
  • "packages/*"

am I missing out anyhing?

@rajdip-b
Copy link
Member Author

Nah thats all!

@rajdip-b
Copy link
Member Author

Yea basically it is the same

Do you wanna host the cache in vercel or self host it?

We need to host it? :) can you send me some refs?

@jamesfrye420
Copy link
Contributor

Nah thats all!

Is docs a part of workspaces?

@jamesfrye420
Copy link
Contributor

Yea basically it is the same

Do you wanna host the cache in vercel or self host it?

We need to host it? :) can you send me some refs?

Umm you have 2 options, one is local cache which is specific to a local machine and stored and consumed by it

Other is cloud cache which is updated each time a new build is done and is shared by all machines

https://turbo.build/repo/docs/core-concepts/remote-caching

@rajdip-b
Copy link
Member Author

Uh, ig we should stick to local rn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed priority: low scope: general Anything related to this repository type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants