Replies: 2 comments
-
I assume this has been discussed before, but I couldn't find it in my search. So I thought I would make a discussion to track this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Do we have further discussion about this topic? or any enhancements on Distributed task execution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
turbo run test
and splitturbo run test --split=4
turbo run test --split=4 --partition=1
(or multipleturbo run test --split=4 --partition=1
)Non-goals
Background
I would like to be able to take a command like
turbo run test
and distribute it across multiple agents. In order to increase parallelization in my builds and overall build time to complete.I see @sppatel has made an article on doing this https://medium.com/@sppatel/maximizing-job-parallelization-in-ci-workflows-with-jest-and-turborepo-da86b9be0ee6 but I wonder if there could be an official implementation in here.
The alternative here would be for developers to maintain they're own script or build a third party package to help consolidate effort.
Proposal
I think using @sppatel article we could build it and just need to describe the interface such as
split
(for how many shards) andpartition
to specify which ones you wish to execute. We have the graph so I think it's feasible to do this.I think people may want is the balancing, which could definitely be done as an enhancement. Perhaps providing an option to be explicit about which packages are in your shards would work.
Beta Was this translation helpful? Give feedback.
All reactions