scala-k8s icon indicating copy to clipboard operation
scala-k8s copied to clipboard

Improve CI/CD build time

Open hnaderi opened this issue 2 years ago • 0 comments

This project has a huge code base thanks to vast amount of object definitions in kubernetes spec. Count that for each platform and language version to get a grasp of build time. Build and test in CI/CD takes almost all of the available resources of the worker machine and makes pipeline runs very unreliable. It's very rare to have a pipeline complete without several retries! CI step simply hang up and are killed by the 6 hours timeout of the github actions. There are some possible solutions and workarounds:

  • Set an explicit lower timeout, for example 30 minutes. This is possible using https://github.com/sbt/sbt-github-actions/releases/tag/v0.15.0 But sbt-typelevel doesn't include this version yet.
  • reduce build time, which needs investigation.

hnaderi avatar Jun 22 '23 07:06 hnaderi