-
Notifications
You must be signed in to change notification settings - Fork 2k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
turbo-ignore
expanding to any number of tasks
#10055
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
Comments
`turbo lint test tsc --dry=json | jq '[.tasks[] | select(.command != "")]' I think the |
For visibility: @dBianchii sent this reproduction: https://github.com/dBianchii/turborepo-dry-bugs |
@jakeleventhal @dBianchii Would something like this with
|
@anthonyshew This could work, but personally this seems pretty overkill to be using GraphQL for something this lightweight. Seems like a CLI command much more closely matching the real query would be better ( |
I'm trying to sort out if this raw query is what would meet your needs. It's still not clear what the expected outcomes are for given scenarios. Once there's a generalizable and useful user story, we can figure out if makes sense to have dedicated API and what it would be. |
@anthonyshew Thanks for the feedback. For our needs, we cannot use SHAs. We want a simple way to check if a lint or deploy run exists in our cache. We can't know the SHA of our last successful deployment. Currently, when we merge a PR, a GH action runs for every app, executing "pnpm turbo deploy:production". This deploys our app to vercel. It would be great if before we even run this, we could ask "does this Is there a way to do this via |
An update: We've talked this through as a team several times now and we're realizing we need a new primitive built on top of
We do have this improvement on our roadmap, and we're looking forward to getting it shipped. |
Thanks for the update @anthonyshew |
Because this is now evolving into a feature request, I'm going to bounce it out to Discussions per our way of work (issues in Issues, feature requests in Discussions). |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
What is the improvement or update you wish to see?
turbo-ignore
should allow me to specify all packages for any command and allow me to see if I need to run CI.Is there any context that might help us understand?
My current CI pipeline looks like this:
turbo lint test tsc
I want to be able to add a step immediately after step 1 where I can simply run
turbo-ignore lint test tsc
. Idea is that I would be able to just see "does this already exist in my remote cache". I want it set up to check the remote cache rather than diff frommain
because if I run CI locally, I don't want to redo it in CI.I tried to kind of hack this together myself using a script like this:
But then I was running into the issues in this issue. I would run
turbo lint test tsc
and get FULL TURBO but then this would show dozens of misses.TL;DR, I want a single CLI command that just tells me yes or no if all my outputs are cached.
Does the docs page already exist? Please link to it.
The docs are limited here.
The text was updated successfully, but these errors were encountered: