Debugging slow builds in CircleCI

A build may be slow in CircleCI due to a myriad of reasons. Let's look at a workflow example for go-template-example-with-circleci (https://circleci.com/workflow-run/533ee47a-a990-4679-826b-7b24221df2ca):

In particular, notice that the integration job took over a minute to finish and the deploy job took over a minute to finish as well, which is making the build take 3 minutes and 20 seconds to complete. If we click on the integration job, we see the following steps in the job:

Notice here that the npm install ...

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.