dwyl / learn-elm

:rainbow: discover the beautiful programming language that makes front-end web apps a joy to build and maintain!

Home Page:https://github.com/dwyl/learn-elm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

nelsonic opened this issue · comments

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

Todo

  • Figure out how to cache elm dependencies on CircleCI (we will do Travis-CI second)
  • Apply to CI Client Project.
  • Write-up steps with sample code in learn-elm and link to from learn-circleci

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...)

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. 😞

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