vulp icon indicating copy to clipboard operation
vulp copied to clipboard

[CI] Workflows take too long to complete

Open ubgk opened this issue 1 year ago • 2 comments

In our current setup, workflows take too long to finish.

We should check what can be cached across builds to speed up the process.

ubgk avatar Aug 10 '23 09:08 ubgk

Workflows do take time :sweat_smile: I haven't felt the need to speed them up so far, since with Bazel we can run them locally, and there hadn't been many cases where a workflow would fail remotely but not locally (well, currently there's one with clang-format...).

I agree we could use some caching :+1: As long as it doesn't break local workflows (nor adds too much extra complexity) it sounds like a net productivity improvement.

stephane-caron avatar Aug 10 '23 09:08 stephane-caron

I tested on my side for the CI workflow and I can get workflows to have workflow finish 50% faster using caches

  • using cache per job and branch/PR (with keys)
  • currently runs only on PR into main
  • first run in PR still takes 4 minutes

Check https://github.com/pgraverdy/upkie/actions (CI job # 42 vs # 41)

@ubgk What was the issue with the other PR ?

pgraverdy avatar Feb 09 '24 09:02 pgraverdy

Closing this issue as of archiving this project. Feel free to continue the discussion in upkie if new elements come to light!

stephane-caron avatar Aug 09 '24 11:08 stephane-caron