[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 5/5] gitlab-ci.d/crossbuilds.yml: Enable compilation with
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [RFC PATCH 5/5] gitlab-ci.d/crossbuilds.yml: Enable compilation with ccache |
Date: |
Wed, 14 Apr 2021 12:29:53 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 4/14/21 10:19 AM, Thomas Huth wrote:
> Ccache can speed up the compilation in some cases, so enable it for
> our cross-compilation CI builds, too.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> .gitlab-ci.d/crossbuilds.yml | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml
> index 017731a894..dee327a936 100644
> --- a/.gitlab-ci.d/crossbuilds.yml
> +++ b/.gitlab-ci.d/crossbuilds.yml
> @@ -1,4 +1,26 @@
> +
> +.ccache_cross_setup:
> + cache:
> + key: "$CI_JOB_NAME"
> + paths:
> + - ccache
I discovered last month the cache/artifact passing feature is useful
when all runners are in the same premises, but when you used runner
in different locations it become slower (except if all your runners
are in very fast clouds probably).
Not a short term problem, but can hit us long term. I haven't looked
if GitLab already figured how to manage this globally, like registering
runners with affinity, or assigning them to pools.
If we decide to stick with the free-tier runners, then this is a great
improvement.
For custom runners, a simple kludge is to assert they do *not* use
cache/artifacts (from free-tier runners).
We could restrict this to free-tier runners but these runners tag aren't
standardized, and AFAIK we can not (yet?) use the "ANY" word to "select
runners with any of this tag list". So far I noticed gitlab uses these:
- shared docker
- gce docker
- gitlab-org
- gitlab-org-docker
The last 2 are recent, and seem to help with the problem I reported
that some runners don't have Docker installed:
https://lists.gnu.org/archive/html/qemu-devel/2021-04/msg02213.html
Regards,
Phil.
- [RFC PATCH 0/5] Use ccache in the gitlab-CI, Thomas Huth, 2021/04/14
- [RFC PATCH 1/5] tests/docker/dockerfiles: Add ccache to containers where it was missing, Thomas Huth, 2021/04/14
- [RFC PATCH 2/5] tests/docker/dockerfiles/ubuntu2004: Add missing symlink for cc, Thomas Huth, 2021/04/14
- [RFC PATCH 3/5] gitlab-ci.d/crossbuilds: Limit the amount of targets in the cross-win64 build, Thomas Huth, 2021/04/14
- [RFC PATCH 4/5] gitlab-ci.yml: Compile with ccache enabled, Thomas Huth, 2021/04/14
- [RFC PATCH 5/5] gitlab-ci.d/crossbuilds.yml: Enable compilation with ccache, Thomas Huth, 2021/04/14
- Re: [RFC PATCH 5/5] gitlab-ci.d/crossbuilds.yml: Enable compilation with ccache,
Philippe Mathieu-Daudé <=
- Re: [RFC PATCH 0/5] Use ccache in the gitlab-CI, Stefan Hajnoczi, 2021/04/14