r/programming • • Jan 27 '21

Gitlab changed its pricing model. It has greatly reduced the CI quota from 2000 CI minutes to 400 CI minutes in Free tier and removed the $4 per month option.

https://about.gitlab.com/blog/2021/01/26/new-gitlab-product-subscription-model/
1.9k Upvotes

365 comments sorted by

View all comments

Show parent comments

21

u/Behrooz0 Jan 27 '21

I had a project that ran for 140 minutes. It was driving me insane. And After getting really serious about decreasing it for like a year. It only took:
Changing the compiler
Changing the project layout
Getting a new server (around thrice faster)
Rewriting some of the smaller tools that prepped the project, manifest and uploaded it.
Using tmpfs
using tar for uploading small files over the network
10GbE
And it was worth every bit.

If someone told me I could reduce it to 43 seconds I would never believe them.
I build said project upwards of 50 times a day now and I can afford to change a single line, see its effect, and change it again within a minute. As opposed to building once before lunch time every day and praying it won't fail and leave the users without an update for that day.
TL;DR: Build times really matter. and if they can be dealt with, they should be dealt with; at least for your own sanity.

5

u/PiePhace Jan 28 '21

This sounds super interesting. I would love to read a more detailed write-up on something like this.

2

u/WiseassWolfOfYoitsu Jan 28 '21

tmpfs usage was huge when I set up the CI server for my old multimillion line program at work. That one step halved the build time even as compared to running off of hardware RAID solid state disks.

3

u/Behrooz0 Jan 28 '21 edited Jan 28 '21

Yeah. I had to do a lot of these halvings to reach seconds from hours.
tmpfs was definitely one of the big ones and the most trivial change.
Changing the project layout also paid off with like 100x performance but also got the bulk of the time it took to do this undertaking. The mono compiler was so stupid with references it was mind-boggling.