elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

Allow parallelism to be a configuration option #140

Closed m25n closed 7 years ago

m25n commented 7 years ago

For our CI pipeline, we run containers on very large VMs (i.e. 32 CPUs). elm-make seems to be detecting at least 20 of the cores. Unfortunately, our CI environment does not expose the ability to restrict the amount of CPUs visible to the make process inside of the container. This is causing elm-make to be a noisy neighbor. We would like the ability to restrict the parallelism of elm-make. We could probably have this default to what ever it is now so that you won't see a difference unless you want it to be different.

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

oppegard commented 7 years ago

Something equivalent to GNU make's -j / --jobs option would be great.

evancz commented 7 years ago

This appears to be a duplicate of https://github.com/elm-lang/elm-compiler/issues/1473, or at least closely related. They have a suggestion that seems to help a lot with the underlying problem. In any case, this suggestion is already being tracked there.

Making automated builds is something I am working on, but sorry for the trouble in the meantime!