Commit Graph

22 Commits

Author SHA1 Message Date
Simon Ser
07463a4045
ci: bump DEBIAN_TAG
The previous commit requires wayland-protocols 1.18. Bump DEBIAN_TAG to
re-generate the Debian image and get the wayland-protocols update.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
2019-09-05 11:38:42 +03:00
Michel Dänzer
fee147d75e gitlab-ci: Retry jobs after runner system failures
Up to twice, for a total of 3 attempts maximum.

This will hopefully avoid spurious CI pipeline failures due to
intermittent GitLab/docker infrastructure issues.

Inspired by
6140ed3d2c

Reviewed-by: Eric Anholt <eric@anholt.net>
2019-04-01 16:38:04 +02:00
Michel Dänzer
b5ef99f26a gitlab-ci: Simplify autotools job script
Drop the verbose test log output, matching the meson job script.

Reviewed-by: Eric Anholt <eric@anholt.net>
2019-04-01 16:37:27 +02:00
Michel Dänzer
35561d4d1e gitlab-ci: Simplify meson job script
This way, the second ninja command line will be visible again as well in
the job output.

Reviewed-by: Eric Anholt <eric@anholt.net>
2019-04-01 16:36:51 +02:00
Eric Anholt
a63d796ce0 gitlab-ci: Build and test glamor using Xephyr.
I keep wanting this when reviewing people's glamor patches.

Signed-off-by: Eric Anholt <eric@anholt.net>
2019-03-28 13:55:22 -07:00
Eric Anholt
8c1dac5f83 gitlab-ci: Install Mesa so we can test glamor.
We need the DRI swrast driver (for GLX in vfb), and also libgl (for
libepoxy in glamor)

Signed-off-by: Eric Anholt <eric@anholt.net>
2019-03-28 13:55:22 -07:00
Eric Anholt
82aab62295 docker: Stop dumping long-summary and meson test logs in the CI logs.
I've found that it's hard to find the original error in a dump full of
xserver debug spam for the passing cases, and when I needed to look at
this I end up using a proper editor on the file from the artifacts
view anyway.

Signed-off-by: Eric Anholt <eric@anholt.net>
2019-03-27 09:57:53 -07:00
Eric Anholt
30369c6345 gitlab-ci: Add a note about where to manage your containers.
Michel noted that I could do this instead of bumping the tag as I
developed, so leave that note for the next person.

Signed-off-by: Eric Anholt <eric@anholt.net>
2019-03-27 09:50:19 -07:00
Benjamin Tissoires
f706972309 CI: use wayland-ci-templates to manage the images
There shouldn't be a difference for users, but this way we do manage
all of our containers from freedesktop.org

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2019-03-27 17:06:53 +01:00
Michel Dänzer
0ec9a13c2a Revert "gitlab-ci: Only run docker-image stage if relevant source files change"
This reverts commit 8694395fcf.

Some scenarios have come to light where this failed to ensure the docker
image exists:

* If the master branch of a forked repository is used for an MR which
  doesn't modify .gitlab-ci.yml, the docker-image job may not run.
* If the docker-image job of the first pipeline in a forked repository
  is cancelled or fails for any reason, and .gitlab-ci.yml isn't
  modified for the next pipeline run.
2019-02-27 15:59:01 +00:00
Michel Dänzer
432fad04e7 gitlab-ci: Run make distcheck in autotools build & test job
We don't set the PIGLIT_DIR and XTS_DIR environment variables for make
distcheck for now, otherwise it complains about files left behind by
piglit.
2019-02-22 10:22:49 +01:00
Michel Dänzer
2f12c80175 gitlab-ci: Add autotools build & test job 2019-02-20 11:06:18 +01:00
Michel Dänzer
b577df7745 gitlab-ci: Use ccache
Meson picks it up automatically.

Based on:

* https://gitlab.freedesktop.org/mesa/mesa/merge_requests/240
* https://gould.cx/ted/blog/2017/06/10/ccache-for-Gitlab-CI/
* https://stackoverflow.com/questions/53659419/ccache-no-hits-in-gitlab-ci

v2 based on the corresponding Mesa change:
* Quote CCACHE_(BASE)DIR environment variables.
* Clear ccache stats in before_script.
* Move cache stanza to the build-and-test job, the cache isn't used in
  the docker-image job.

Reviewed-by: Adam Jackson <ajax@redhat.com> # v1
2019-02-20 11:02:21 +01:00
Michel Dänzer
537f06e21e gitlab-ci: Add ccache to docker image, and leave in autotools
We're going to make use of these in build & test jobs.
2019-02-19 18:16:16 +01:00
Michel Dänzer
fede384962 gitlab-ci: Don't rely on $CI_PROJECT_NAME
The name of a forked repository can be changed later, in which case this
would fail to refer to the main repository.

Pointed out by Eric Engestrom in
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/224 .
2019-02-13 11:30:17 +01:00
Michel Dänzer
8694395fcf gitlab-ci: Only run docker-image stage if relevant source files change
Otherwise there's normally no need to run it. It will also run when a
new branch is created, which ensures that the docker image always exists
(e.g. in a newly forked repository).

Inspired by https://gitlab.freedesktop.org/mesa/mesa/merge_requests/143
2019-02-13 11:26:25 +01:00
Michel Dänzer
bc6998b728 gitlab-ci: Set LC_ALL=C.UTF-8
Although piglit could now handle non-ASCII characters in the
environment, meson was still failing without this (even though it's
using Python 3).

Reviewed-by: Eric Anholt <eric@anholt.net>
2018-12-17 17:52:39 +01:00
Michel Dänzer
f56d8e2282 gitlab-ci: Docker image can be generated as part of pipeline
This removes the dependency on an externally generated docker image, and
should make it easier to update the docker image or make other changes
related to it.

This is based on Debian testing, because I'm most familiar with Debian.
But it should be easy to base it on another distro.

v2:
* Use kaniko instead of docker-in-docker for image generation, so it can
  also work in unprivileged runners.
* Drop piglit.conf & tetexec.cfg overrides, just make sure the files in
  the image work.
2018-12-17 17:40:08 +01:00
Michel Dänzer
ed44f9cd6a Drop Travis Linux build in favour of GitLab CI
Fold build-travis-deps.sh into .gitlab-ci.yml.

Preparation for the next change, which would break the Travis Linux
build.

Reviewed-by: Eric Anholt <eric@anholt.net>
2018-12-17 15:40:52 +01:00
Michel Daenzer
a7472da941 Make artifacts of piglit results if job fails
Can be useful for figuring out what caused the failure.
2018-12-12 18:41:54 +01:00
Adam Jackson
a41ccaa085 gitlab: Skip the docker-in-docker step
No idea which cult's cargo I was looking at there. Cuts about a minute
off the build time.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-09-12 20:43:42 +00:00
Adam Jackson
531e1648fc gitlab-ci: Add for gitlab.freedesktop.org
Looks quite a bit like the travis path, doesn't it? Still, nice to not
rely on an external service if we don't have to.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-05-02 15:00:53 -04:00