keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
699 stars 40 forks source link

Faster CI? #845

Closed crohr closed 1 month ago

crohr commented 1 month ago

Hi @ezekg, I read a fair bit about Keygen and especially the introduction of the license, because I'm also developing a self-hosted software (RunsOn) and I had to go through the same thoughts.

In the end I chose to keep some parts of the code as closed-source, only available under a sponsorship license, but at some point I may choose the same path as you (thanks for the article).

That being said, I noticed that your CI test suite was taking almost 1h, and was wondering if you could be interested in speeding that up with RunsOn? It can be self-hosted in your AWS account and you have access to much larger runners, with faster CPUs, and at a fraction of the cost of GitHub runners.

Obviously since your project is now open-source you benefit from free runners from GitHub, so please ignore if you're fine with it!

Thanks :)

ezekg commented 1 month ago

Thanks for the offer, but at this time, I'm okay with the slow CI for the sole fact that it's free. Even on an 8 core/16 thread CPU (Ryzen 3700x), the local test suite still takes ~30 mins so I doubt there will be a significant improvement without adding considerable costs, and CI isn't something that I can justify an additional cost for at this time.

crohr commented 1 month ago

Understood, hard to compete with free!

Just as a side-note and data point for future you (maybe), a large Rails open-source project was able to bring their CI time for rspec down to ~13min (from close to 2h original runtime) by using machines with 32 CPUs, for about $7/day (they have ~10 developers).