-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
[feature] Ability to query for tasks that are affected by changed files. #1032
Comments
@indietyp I haven't tried this yet but I think you can do this:
|
I tried exactly that, but that will only give me all tasks of projects that have affected files. |
I can patch it to also apply affected at the task level. |
@indietyp Can you try 1.13? |
@milesj (I think this might be tangentially related) I came to the repo tonight to report that fwiw the latest commit is always squash merged. here's how we're checking out the branch in the workflow: - name: Checkout Branch
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 10 e.g. should we be running |
@shellscape You need to use the |
Sorry for the delay! It seems like it is now partially doing what I'd expected. What I mean is the following: I have the projects See: moon/crates/cli/src/commands/query.rs Line 233 in fc82166
moon/crates/cli/src/queries/projects.rs Line 117 in fc82166
|
@indietyp So transitive deps of tasks won't show up in the affected list, as However, the task runner will appropriately run upstream and downstream dependencies of affected tasks. This is automatic with This logic happens in the task runner, because it requires the dependency graph, which the affected flow does not have access to. |
A thanks! Then this solves my problem. Maybe a note in the docs would help? |
Yeah I'll update the docs. |
Updated the docs. |
Is your feature request related to a problem? Please describe.
I am currently looking for a replacement for
turborepo run --dry-run
which will tell one which tasks are to be executed with the changed files. I know thatmoon ci
andmoon query tasks
exists. I thought that if I would domoon query tasks --affected
I would get a list of tasks that will trigger with the affected files, but that doesn't seem to be the case, as filtering for affected files will only change so that tasks of projects that have been affected are display.Describe the solution you'd like
A command to essentially get the same output of
moon ci
(maybe a--dry-run
option ormoon query
command) that enables on to query which tasks are to be executed based on the affected files.Describe alternatives you've considered
Try to implement this myself using a chain of commands, but because of globs that may not be as straight-forward.
The text was updated successfully, but these errors were encountered: