Samagra-Development / WarpSQL

WarpSQL
https://samagra-development.github.io/WarpSQL/
Apache License 2.0
16 stars 28 forks source link

Speed up CI #36

Closed ChakshuGautam closed 1 year ago

ChakshuGautam commented 1 year ago

Currently, the CI takes up ~20ish minutes which is too slow for my liking.

PiyushRaj927 commented 1 year ago

We should try using https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows to speed up zombodb's build time.

ChakshuGautam commented 1 year ago

I believe it would be an iterative process with a lot of hacks. Let's start with what we know right now.

Let me know if you want to start working on this.

PiyushRaj927 commented 1 year ago

Sure, I'd be happy to start working on this.

PiyushRaj927 commented 1 year ago

@ChakshuGautam, I have reduced the build time of WarpSQL to under 2 minutes when rebuilding the same image by implementing Docker layer caching. The improvement can be seen here: https://github.com/PiyushRaj927/WarpSQL/actions/runs/5165400680/jobs/9304900040#logs. I will create a pull request soon.

Regarding the ZomboDB cache, I realized that my initial idea would be challenging to implement. Utilizing Docker's built-in layer caching to cache the ZomboDB build is a more effective solution.

ChakshuGautam commented 1 year ago

Great find!!!

This is something that we are already doing on some of our other projects as well. Completely forgot this one.