dwyl / learn-elm

:rainbow: discover the beautiful programming language that makes front-end web apps a joy to build and maintain!
https://github.com/dwyl/learn-elm
483 stars 43 forks source link

Cache Elm Dependencies to Speed-up Build on Circle-CI #116

Open nelsonic opened 6 years ago

nelsonic commented 6 years ago

At present one of our projects takes 8 minutes to download and compile the Elm App: image

Todo

Priority-1 because this wastes time every CI build which slows down our dev workflow... ⏳ 💸 🔥 @SimonLab if you have time to help investigate this please go for it! (otherwise I will look at it soon...)

nelsonic commented 6 years ago

This is a log of recent builds the average is 9 minutes: image

Notice how the Top (most recent) build is "NOT RUNNING" because this project only has one "container" on CircleCI so it has to wait in a Queue until the current running build completes.

We could "just throw money at the problem" (by increasing the number of "containers" on CircleCI) But that does not solve the problem of slow builds; all it would do is reduce the bottleneck, but we would still have a 9-10 minute wait for each each build. 😞

nelsonic commented 6 years ago

One of our projects just took 44 minutes to run elm compile ... 😮 ⏳ image