I noticed that our build times on travis have been getting exceptionally long since mid-November:
(Our builds generally take around 20 minutes but lately they regularly hit 40 minutes.
I’ve investigated the travis_time
time spans in the log and two operations stand out:
- “adding /home/travis/.cache/yarn to cache”
- packing a new cache archive.
I've captured some excerpts from this build's log...
e[0Ktravis_time:start:1c2711ba
e[0Kadding /home/travis/.cache/yarn to cachee[0m
travis_time:end:1c2711ba:start=1579128522968430154,finish=1579128959926954236,duration=436958524082,event=setup_cache
e[0Ktravis_fold:end:cache.yarn
That’s a duration of 436 seconds (~7.2 minutes).
[0Ktravis_time:start:04a85855
e[0Ke[32;1mchanges detected (content changed, file is created, or file is deleted):\n/home/travis/.cache/yarn/v4/npm-lighthouse-5.6.0-88d67a30-d5bf-4de8-a1a2-fc22ba290046-1579130159063/node_modules/lighthouse/.appveyor.yml
/home/travis/.cache/yarn/v4/npm-lighthouse-5.6.0-88d67a30-d5bf-4de8-a1a2-fc22ba290046-1579130159063/node_modules/lighthouse/assets/architecture.jpg
/home/travis/.cache/yarn/v4/npm-lighthouse-5.6.0-88d67a30-d5bf-4de8-a1a2-fc22ba290046-1579130159063/node_modules/lighthouse/assets/example_audit.png
/home/travis/.cache/yarn/v4/npm-lighthouse-5.6.0-88d67a30-d5bf-4de8-a1a2-fc22ba290046-1579130159063/node_modules/lighthouse/assets/example_dev_tools.png
/home/travis/.cache/yarn/v4/npm-lighthouse-5.6.0-88d67a30-d5bf-4de8-a1a2-fc22ba290046-1579130159063/node_modules/lighthouse/assets/lh_favicon_32px.png
/home/travis/.cache/yarn/v4/npm-lighthouse-5.6.0-88d67a30-d5bf-4de8-a1a2-fc22ba290046-1579130159063/node_modules/lighthouse/assets/lh_favicon_76px.png
/home/travis/.cache/yarn/v4/npm-lighthouse-5.6.0-88d67a30-d5bf-4de8-a1a2-fc22ba290046-1579130159063/node_modul\n...e[0m
e[32;1mchanges detected, packing new archivee[0m
e[32;1muploading master/cache--linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-12.tgze[0m
e[32;1mcache uploadede[0m
travis_time:end:04a85855:start=1579130219140939102,finish=1579130862739083015,duration=643598143913,event=cache
That’s a duration of 643.60 seconds (~10.7 minutes).
Obviously, we don’t expect either of these operations to take 10 minutes to complete. (I’ll note we also ran into this yarn gpg problem, though I’m not sure it’s related.)
And the sawtooth pattern in the graph is curious. Each tooth is roughly a week long.
Here’s our travis.yml if that’s useful.