Find changed tasks prior to execution #10324
Replies: 9 comments
-
`turbo lint test tsc --dry=json | jq '[.tasks[] | select(.command != "")]' I think the |
Beta Was this translation helpful? Give feedback.
-
For visibility: @dBianchii sent this reproduction: https://github.com/dBianchii/turborepo-dry-bugs |
Beta Was this translation helpful? Give feedback.
-
@jakeleventhal @dBianchii Would something like this with
|
Beta Was this translation helpful? Give feedback.
-
@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 ( |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
@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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update @anthonyshew |
Beta Was this translation helpful? Give feedback.
-
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). |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions