01-27-2016, 05:15 PM
(This post was last modified: 01-27-2016, 05:16 PM by LogicParrot.)
Doe the CI's use ccache? This can speed things up a lot.
ccache in CI
|
01-27-2016, 05:15 PM
(This post was last modified: 01-27-2016, 05:16 PM by LogicParrot.)
Doe the CI's use ccache? This can speed things up a lot.
01-27-2016, 09:13 PM
Doesn't ccache only cache individual cpp files? That wouldn't help us much since we don't reuse cpps that much.
01-28-2016, 01:07 AM
(This post was last modified: 02-05-2016, 12:59 AM by LogicParrot.)
Edit: Accidental duplicate comment.
01-28-2016, 01:49 AM
(This post was last modified: 01-28-2016, 01:52 AM by LogicParrot.)
(01-27-2016, 09:13 PM)xoft Wrote: Doesn't ccache only cache individual cpp files? Yes, it only caches individual object files. (01-27-2016, 09:13 PM)xoft Wrote: That wouldn't help us much since we don't reuse cpps that much. Edit: I think you missed the fact that the cache can persist across builds. Every Pull request modifies only a handful of .cpp files, but currently the CIs will recompile everything. We actually reuse ~90%+ of the .cpp files every pull request. So it should speed it up significantly.
01-28-2016, 03:04 AM
Quote:A third scenario is using ccache to speed up clean builds performed by servers or build farms that regularly check that the code is buildable. Taken from their homepage. That would be our scenario.
01-28-2016, 04:35 AM
It wouldn't help Travis, as they use a new container for each build. Also, we have had problems with ccache in the past, see: https://github.com/cuberite/cuberite/pull/2551
01-28-2016, 06:22 AM
Yes, it would only help Jenkins.
That's a weird bug. ccache is not supposed to affect the resulting output. Did you poinpoint the problem?
01-28-2016, 08:14 AM
I didn't pinpoint the problem.
02-04-2016, 07:13 AM
I've been using ccache for a while and nothing went wrong so far.
02-05-2016, 05:29 AM
ccache is great when a clearout is as simple as `make clean`, it's not so great when something changes and you have to remote into the server and clear it out. (If I could I would spin up a new VM every time like travis, but that's not easy to do)
The server isn't running out of capacity, and although fast builds are nice it's a lot more effort. |
« Next Oldest | Next Newest »
|