2019-01-20 11:21:45 +00:00
|
|
|
variables:
|
2020-03-06 21:23:20 +00:00
|
|
|
FDO_UPSTREAM_REPO: mesa/mesa
|
2021-04-01 09:56:17 +00:00
|
|
|
MESA_TEMPLATES_COMMIT: &ci-templates-commit 290b79e0e78eab67a83766f4e9691be554fc4afd
|
CI: reduce bandwidth for git pull
Over the last 7 days, git pulls represented a total of 1.7 TB.
On those 1.7 TB, we can see:
- ~300 GB for the CI farm on hetzner
- ~730 GB for the CI farm on packet.net
- ~680 GB for the rest of the world
We can not really change the rest of the world*, but we can
certainly reduce the egress costs towards our CI farms.
Right now, the gitlab runners are not doing a good job at
caching the git trees for the various jobs we make, and
we end up with a lot of cache-misses. A typical pipeline
ends up with a good 2.8GB of git pull data. (a compressed
archive of the mesa folder accounts for 280MB)
In this patch, we implemented what was suggested in
https://gitlab.com/gitlab-org/gitlab/-/issues/215591#note_334642576
- we host a brand new MinIO server on packet
- jobs can upload files on 2 locations:
* git-cache/<namespace>/<project>/<branch-name>.tar.gz
* artifacts/<namespace>/<project>/<pipeline-id>/
- the authorization is handled by gitlab with short tokens
valid only for the time of the job is running
- whenever a job runs, the runner are configured to execute
(eval) $CI_PRE_CLONE_SCRIPT
- this variable is set globally to download the current cache
from the MinIO packet server, unpack it and replace the
possibly out of date cache found on the runner
- then git fetch is run by the runner, and only the delta
between the upstream tree and the local tree gets pulled.
We can rebuild the git cache in a schedule job (once a day
seems sufficient), and then we can stop the cache miss
entirely.
First results showed that instead of pulling 280MB of data
in my fork, I got a pull of only 250KB. That should help us.
* arguably, there are other farms in the rest of the world, so
hopefully we can change those too.
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5428>
2020-06-11 15:16:28 +00:00
|
|
|
CI_PRE_CLONE_SCRIPT: |-
|
|
|
|
set -o xtrace
|
|
|
|
/usr/bin/wget -q -O- ${CI_PROJECT_URL}/-/raw/${CI_COMMIT_SHA}/.gitlab-ci/download-git-cache.sh | sh -
|
|
|
|
set +o xtrace
|
2020-08-23 20:32:40 +00:00
|
|
|
MINIO_HOST: minio-packet.freedesktop.org
|
2019-04-02 07:24:00 +00:00
|
|
|
|
|
|
|
include:
|
2020-03-06 21:23:20 +00:00
|
|
|
- project: 'freedesktop/ci-templates'
|
2021-01-25 11:01:28 +00:00
|
|
|
ref: 79c325922670137e8f0a4dc5f6f097e0eb57c1af
|
2020-11-24 16:02:13 +00:00
|
|
|
file:
|
2020-11-18 17:23:29 +00:00
|
|
|
- '/templates/ci-fairy.yml'
|
2020-12-02 16:37:16 +00:00
|
|
|
- project: 'freedesktop/ci-templates'
|
2020-12-15 17:02:04 +00:00
|
|
|
ref: *ci-templates-commit
|
2020-12-02 16:37:16 +00:00
|
|
|
file:
|
2020-11-24 16:02:13 +00:00
|
|
|
- '/templates/debian.yml'
|
2019-10-23 21:36:19 +00:00
|
|
|
- local: '.gitlab-ci/lava-gitlab-ci.yml'
|
2019-10-30 19:39:08 +00:00
|
|
|
- local: '.gitlab-ci/test-source-dep.yml'
|
2021-02-18 19:12:56 +00:00
|
|
|
- local: 'src/amd/ci/gitlab-ci.yml'
|
|
|
|
- local: 'src/broadcom/ci/gitlab-ci.yml'
|
|
|
|
- local: 'src/freedreno/ci/gitlab-ci.yml'
|
2021-03-01 20:50:51 +00:00
|
|
|
- local: 'src/gallium/drivers/iris/ci/gitlab-ci.yml'
|
|
|
|
- local: 'src/gallium/drivers/lima/ci/gitlab-ci.yml'
|
2021-02-18 19:12:56 +00:00
|
|
|
- local: 'src/gallium/drivers/llvmpipe/ci/gitlab-ci.yml'
|
2021-03-01 20:50:51 +00:00
|
|
|
- local: 'src/gallium/drivers/panfrost/ci/gitlab-ci.yml'
|
|
|
|
- local: 'src/gallium/drivers/radeonsi/ci/gitlab-ci.yml'
|
2021-02-18 19:12:56 +00:00
|
|
|
- local: 'src/gallium/drivers/softpipe/ci/gitlab-ci.yml'
|
|
|
|
- local: 'src/gallium/drivers/virgl/ci/gitlab-ci.yml'
|
|
|
|
- local: 'src/gallium/drivers/zink/ci/gitlab-ci.yml'
|
2021-03-18 19:58:04 +00:00
|
|
|
- local: 'src/gallium/frontends/lavapipe/ci/gitlab-ci.yml'
|
2019-09-18 14:03:36 +00:00
|
|
|
|
2019-01-20 11:21:45 +00:00
|
|
|
stages:
|
2020-11-18 17:32:05 +00:00
|
|
|
- sanity
|
2020-08-06 15:10:08 +00:00
|
|
|
- container
|
2020-05-16 15:17:23 +00:00
|
|
|
- container-2
|
CI: reduce bandwidth for git pull
Over the last 7 days, git pulls represented a total of 1.7 TB.
On those 1.7 TB, we can see:
- ~300 GB for the CI farm on hetzner
- ~730 GB for the CI farm on packet.net
- ~680 GB for the rest of the world
We can not really change the rest of the world*, but we can
certainly reduce the egress costs towards our CI farms.
Right now, the gitlab runners are not doing a good job at
caching the git trees for the various jobs we make, and
we end up with a lot of cache-misses. A typical pipeline
ends up with a good 2.8GB of git pull data. (a compressed
archive of the mesa folder accounts for 280MB)
In this patch, we implemented what was suggested in
https://gitlab.com/gitlab-org/gitlab/-/issues/215591#note_334642576
- we host a brand new MinIO server on packet
- jobs can upload files on 2 locations:
* git-cache/<namespace>/<project>/<branch-name>.tar.gz
* artifacts/<namespace>/<project>/<pipeline-id>/
- the authorization is handled by gitlab with short tokens
valid only for the time of the job is running
- whenever a job runs, the runner are configured to execute
(eval) $CI_PRE_CLONE_SCRIPT
- this variable is set globally to download the current cache
from the MinIO packet server, unpack it and replace the
possibly out of date cache found on the runner
- then git fetch is run by the runner, and only the delta
between the upstream tree and the local tree gets pulled.
We can rebuild the git cache in a schedule job (once a day
seems sufficient), and then we can stop the cache miss
entirely.
First results showed that instead of pulling 280MB of data
in my fork, I got a pull of only 250KB. That should help us.
* arguably, there are other farms in the rest of the world, so
hopefully we can change those too.
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5428>
2020-06-11 15:16:28 +00:00
|
|
|
- git-archive
|
2020-02-27 17:27:56 +00:00
|
|
|
- meson-x86_64
|
2020-12-02 13:50:38 +00:00
|
|
|
- build-misc
|
2020-12-02 13:50:38 +00:00
|
|
|
- amd
|
2020-12-18 03:40:02 +00:00
|
|
|
- intel
|
2020-12-02 13:50:38 +00:00
|
|
|
- arm
|
2021-01-25 11:33:52 +00:00
|
|
|
- broadcom
|
2020-12-02 13:50:38 +00:00
|
|
|
- freedreno
|
2020-12-02 13:57:47 +00:00
|
|
|
- software-renderer
|
2020-12-02 13:50:38 +00:00
|
|
|
- layered-backends
|
2020-12-05 09:15:38 +00:00
|
|
|
- deploy
|
2020-01-13 08:45:57 +00:00
|
|
|
- success
|
2019-01-20 11:21:45 +00:00
|
|
|
|
2020-07-07 13:02:35 +00:00
|
|
|
# Generic rule to not run the job during scheduled pipelines
|
|
|
|
# ----------------------------------------------------------
|
|
|
|
.scheduled_pipelines-rules:
|
|
|
|
rules: &ignore_scheduled_pipelines
|
2020-09-08 15:44:40 +00:00
|
|
|
if: &is-scheduled-pipeline '$CI_PIPELINE_SOURCE == "schedule"'
|
2020-07-07 13:02:35 +00:00
|
|
|
when: never
|
|
|
|
|
2020-09-08 10:20:39 +00:00
|
|
|
# YAML anchors for rule conditions
|
|
|
|
# --------------------------------
|
|
|
|
.rules-anchors:
|
|
|
|
rules:
|
2020-09-08 16:00:21 +00:00
|
|
|
# For Marge Bot
|
|
|
|
- if: &is-for-marge '$GITLAB_USER_LOGIN == "marge-bot"'
|
|
|
|
when: never
|
2020-09-08 15:52:24 +00:00
|
|
|
# Forked project branch
|
2020-09-08 16:02:58 +00:00
|
|
|
- if: &is-forked-branch '$CI_PROJECT_NAMESPACE != "mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
|
2020-09-08 15:52:24 +00:00
|
|
|
when: manual
|
2021-04-22 11:17:40 +00:00
|
|
|
# Forked project branch / pre-merge pipeline not for Marge bot
|
|
|
|
- if: &is-forked-branch-or-pre-merge-not-for-marge '$CI_PROJECT_NAMESPACE != "mesa" || ($GITLAB_USER_LOGIN != "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME)'
|
2020-09-08 15:30:49 +00:00
|
|
|
when: manual
|
2021-04-26 20:16:55 +00:00
|
|
|
# Pipeline runs for the main branch of the upstream Mesa project
|
|
|
|
- if: &is-mesa-main '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_DEFAULT_BRANCH'
|
2020-09-08 10:20:39 +00:00
|
|
|
when: always
|
2020-09-08 15:47:18 +00:00
|
|
|
# Post-merge pipeline
|
|
|
|
- if: &is-post-merge '$CI_PROJECT_NAMESPACE == "mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
|
|
|
|
when: on_success
|
2020-09-08 10:36:11 +00:00
|
|
|
# Post-merge pipeline, not for Marge Bot
|
2020-09-08 16:02:58 +00:00
|
|
|
- if: &is-post-merge-not-for-marge '$CI_PROJECT_NAMESPACE == "mesa" && $GITLAB_USER_LOGIN != "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
|
2020-09-08 10:36:11 +00:00
|
|
|
when: on_success
|
2020-09-08 15:58:32 +00:00
|
|
|
# Pre-merge pipeline
|
|
|
|
- if: &is-pre-merge '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
|
|
|
|
when: on_success
|
2020-09-08 10:31:08 +00:00
|
|
|
# Pre-merge pipeline for Marge Bot
|
|
|
|
- if: &is-pre-merge-for-marge '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
|
|
|
|
when: on_success
|
2020-09-08 10:20:39 +00:00
|
|
|
|
|
|
|
|
2020-06-22 09:10:29 +00:00
|
|
|
.docs-base:
|
2020-11-18 17:23:29 +00:00
|
|
|
extends:
|
|
|
|
- .fdo.ci-fairy
|
|
|
|
- .ci-run-policy
|
2019-05-27 15:12:10 +00:00
|
|
|
script:
|
2020-11-18 17:23:29 +00:00
|
|
|
- apk --no-cache add graphviz
|
2019-05-27 15:12:10 +00:00
|
|
|
- pip3 install sphinx sphinx_rtd_theme
|
2021-03-30 10:46:49 +00:00
|
|
|
- sphinx-build -W -b html docs public
|
2020-06-22 09:10:29 +00:00
|
|
|
|
|
|
|
pages:
|
|
|
|
extends: .docs-base
|
2020-06-22 09:10:40 +00:00
|
|
|
stage: deploy
|
2019-05-27 15:12:10 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2020-08-06 15:12:11 +00:00
|
|
|
needs: []
|
2020-06-22 09:21:06 +00:00
|
|
|
rules:
|
2020-07-07 13:02:35 +00:00
|
|
|
- *ignore_scheduled_pipelines
|
2021-04-26 20:16:55 +00:00
|
|
|
- if: *is-mesa-main
|
2020-06-22 09:21:06 +00:00
|
|
|
changes: &docs-or-ci
|
|
|
|
- docs/**/*
|
|
|
|
- .gitlab-ci.yml
|
2020-07-01 15:41:06 +00:00
|
|
|
when: always
|
2020-06-22 09:21:06 +00:00
|
|
|
# Other cases default to never
|
2019-01-20 11:21:45 +00:00
|
|
|
|
2020-06-22 09:10:29 +00:00
|
|
|
test-docs:
|
|
|
|
extends: .docs-base
|
2020-07-21 14:13:37 +00:00
|
|
|
# Cancel job if a newer commit is pushed to the same branch
|
|
|
|
interruptible: true
|
2020-08-06 15:10:08 +00:00
|
|
|
stage: deploy
|
2020-12-03 17:25:54 +00:00
|
|
|
needs: []
|
|
|
|
rules:
|
|
|
|
- *ignore_scheduled_pipelines
|
|
|
|
- if: *is-forked-branch
|
|
|
|
changes: *docs-or-ci
|
|
|
|
when: manual
|
|
|
|
# Other cases default to never
|
|
|
|
|
|
|
|
test-docs-mr:
|
|
|
|
extends:
|
|
|
|
- test-docs
|
2020-11-20 10:05:56 +00:00
|
|
|
needs:
|
|
|
|
- sanity
|
2021-01-08 21:08:56 +00:00
|
|
|
artifacts:
|
|
|
|
expose_as: 'Documentation preview'
|
|
|
|
paths:
|
2021-02-10 11:20:25 +00:00
|
|
|
- public/
|
2020-06-22 09:13:05 +00:00
|
|
|
rules:
|
2020-12-03 17:25:54 +00:00
|
|
|
- if: *is-pre-merge
|
2020-09-01 09:44:54 +00:00
|
|
|
changes: *docs-or-ci
|
2021-01-08 21:08:56 +00:00
|
|
|
when: on_success
|
2020-06-22 09:13:05 +00:00
|
|
|
# Other cases default to never
|
2020-06-22 09:10:29 +00:00
|
|
|
|
2019-02-22 15:52:08 +00:00
|
|
|
# When to automatically run the CI
|
2019-09-06 15:35:52 +00:00
|
|
|
.ci-run-policy:
|
2019-09-26 07:27:27 +00:00
|
|
|
rules:
|
2020-07-07 13:02:35 +00:00
|
|
|
- *ignore_scheduled_pipelines
|
2020-04-03 10:50:11 +00:00
|
|
|
# If any files affecting the pipeline are changed, build/test jobs run
|
|
|
|
# automatically once all dependency jobs have passed
|
|
|
|
- changes: &all_paths
|
2020-01-13 08:45:57 +00:00
|
|
|
- VERSION
|
2020-05-14 20:51:38 +00:00
|
|
|
- bin/git_sha1_gen.py
|
|
|
|
- bin/install_megadrivers.py
|
|
|
|
- bin/meson_get_version.py
|
|
|
|
- bin/symbols-check.py
|
2020-01-13 08:45:57 +00:00
|
|
|
# GitLab CI
|
|
|
|
- .gitlab-ci.yml
|
|
|
|
- .gitlab-ci/**/*
|
|
|
|
# Meson
|
|
|
|
- meson*
|
|
|
|
- build-support/**/*
|
|
|
|
- subprojects/**/*
|
|
|
|
# Source code
|
|
|
|
- include/**/*
|
|
|
|
- src/**/*
|
|
|
|
when: on_success
|
2020-04-03 10:50:11 +00:00
|
|
|
# Otherwise, build/test jobs won't run
|
2020-01-13 08:45:57 +00:00
|
|
|
- when: never
|
2019-03-26 17:39:41 +00:00
|
|
|
retry:
|
|
|
|
max: 2
|
|
|
|
when:
|
|
|
|
- runner_system_failure
|
2019-02-22 15:52:08 +00:00
|
|
|
|
2020-01-13 08:45:57 +00:00
|
|
|
success:
|
|
|
|
stage: success
|
|
|
|
image: debian:stable-slim
|
2020-06-22 09:16:17 +00:00
|
|
|
rules:
|
2020-07-07 13:02:35 +00:00
|
|
|
- *ignore_scheduled_pipelines
|
2020-09-08 15:47:18 +00:00
|
|
|
- if: *is-post-merge
|
2020-06-22 09:16:17 +00:00
|
|
|
when: never
|
2020-09-08 16:00:21 +00:00
|
|
|
- if: *is-for-marge
|
2020-06-22 09:16:17 +00:00
|
|
|
changes: *docs-or-ci
|
|
|
|
when: never
|
|
|
|
- changes: *all_paths
|
|
|
|
when: never
|
2020-09-08 15:58:32 +00:00
|
|
|
- if: *is-pre-merge
|
2020-08-28 15:08:57 +00:00
|
|
|
when: on_success
|
2020-01-20 17:34:34 +00:00
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
2020-01-13 08:45:57 +00:00
|
|
|
script:
|
|
|
|
- echo "Dummy job to make sure every merge request pipeline runs at least one job"
|
|
|
|
|
|
|
|
|
2019-09-06 15:35:52 +00:00
|
|
|
.ci-deqp-artifacts:
|
2019-06-28 23:35:32 +00:00
|
|
|
artifacts:
|
2020-03-06 11:35:17 +00:00
|
|
|
name: "mesa_${CI_JOB_NAME}"
|
2019-06-28 23:35:32 +00:00
|
|
|
when: always
|
|
|
|
untracked: false
|
|
|
|
paths:
|
|
|
|
# Watch out! Artifacts are relative to the build dir.
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
|
|
|
|
- artifacts
|
2021-02-09 16:43:35 +00:00
|
|
|
- _build/meson-logs/*.txt
|
2021-03-04 11:58:56 +00:00
|
|
|
- _build/meson-logs/strace
|
2019-02-22 15:52:08 +00:00
|
|
|
|
2020-12-09 17:35:45 +00:00
|
|
|
|
2020-12-09 17:58:48 +00:00
|
|
|
# Docker image tag helper templates
|
2020-12-09 17:35:45 +00:00
|
|
|
|
|
|
|
.incorporate-templates-commit:
|
|
|
|
variables:
|
|
|
|
FDO_DISTRIBUTION_TAG: "${MESA_IMAGE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
|
|
|
|
2020-12-11 18:00:40 +00:00
|
|
|
.incorporate-base-tag+templates-commit:
|
|
|
|
variables:
|
|
|
|
FDO_BASE_IMAGE: "${CI_REGISTRY_IMAGE}/${MESA_BASE_IMAGE}:${MESA_BASE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
|
|
|
FDO_DISTRIBUTION_TAG: "${MESA_IMAGE_TAG}--${MESA_BASE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
|
|
|
|
2020-12-09 17:58:48 +00:00
|
|
|
.set-image:
|
|
|
|
variables:
|
|
|
|
MESA_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${MESA_IMAGE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
|
|
|
image: "$MESA_IMAGE"
|
|
|
|
|
2020-12-11 18:00:40 +00:00
|
|
|
.set-image-base-tag:
|
|
|
|
extends:
|
|
|
|
- .set-image
|
|
|
|
- .incorporate-base-tag+templates-commit
|
|
|
|
variables:
|
|
|
|
MESA_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${MESA_IMAGE_TAG}--${MESA_BASE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
|
|
|
|
2020-12-09 17:35:45 +00:00
|
|
|
|
2019-12-17 10:50:14 +00:00
|
|
|
# Build the CI docker images.
|
2019-11-11 17:13:28 +00:00
|
|
|
#
|
2020-12-03 16:54:05 +00:00
|
|
|
# MESA_IMAGE_TAG is the tag of the docker image used by later stage jobs. If the
|
2019-11-11 17:13:28 +00:00
|
|
|
# image doesn't exist yet, the container stage job generates it.
|
|
|
|
#
|
|
|
|
# In order to generate a new image, one should generally change the tag.
|
|
|
|
# While removing the image from the registry would also work, that's not
|
|
|
|
# recommended except for ephemeral images during development: Replacing
|
|
|
|
# an image after a significant amount of time might pull in newer
|
|
|
|
# versions of gcc/clang or other packages, which might break the build
|
|
|
|
# with older commits using the same tag.
|
|
|
|
#
|
|
|
|
# After merging a change resulting in generating a new image to the
|
|
|
|
# main repository, it's recommended to remove the image from the source
|
|
|
|
# repository's container registry, so that the image from the main
|
|
|
|
# repository's registry will be used there as well.
|
2019-09-06 15:04:47 +00:00
|
|
|
|
2019-10-14 22:04:14 +00:00
|
|
|
.container:
|
2020-08-06 15:10:08 +00:00
|
|
|
stage: container
|
2019-10-14 22:04:14 +00:00
|
|
|
extends:
|
|
|
|
- .ci-run-policy
|
2020-12-09 17:35:45 +00:00
|
|
|
- .incorporate-templates-commit
|
2020-04-03 10:50:11 +00:00
|
|
|
rules:
|
2020-07-07 13:02:35 +00:00
|
|
|
- *ignore_scheduled_pipelines
|
2020-06-29 09:33:13 +00:00
|
|
|
# Run pipeline by default in the main project if any CI pipeline
|
|
|
|
# configuration files were changed, to ensure docker images are up to date
|
2020-09-08 15:47:18 +00:00
|
|
|
- if: *is-post-merge
|
2020-06-29 09:33:13 +00:00
|
|
|
changes:
|
|
|
|
- .gitlab-ci.yml
|
|
|
|
- .gitlab-ci/**/*
|
|
|
|
when: on_success
|
2020-04-03 09:46:12 +00:00
|
|
|
# Run pipeline by default if it was triggered by Marge Bot, is for a
|
2020-06-29 09:33:13 +00:00
|
|
|
# merge request, and any files affecting the pipeline were changed
|
2020-09-08 10:31:08 +00:00
|
|
|
- if: *is-pre-merge-for-marge
|
2020-04-03 10:50:11 +00:00
|
|
|
changes:
|
|
|
|
*all_paths
|
|
|
|
when: on_success
|
2020-06-29 09:33:13 +00:00
|
|
|
# Run pipeline by default in the main project if it was not triggered by
|
|
|
|
# Marge Bot, and any files affecting the pipeline were changed
|
2020-09-08 10:36:11 +00:00
|
|
|
- if: *is-post-merge-not-for-marge
|
2020-04-03 10:50:11 +00:00
|
|
|
changes:
|
|
|
|
*all_paths
|
|
|
|
when: on_success
|
2020-06-29 09:33:13 +00:00
|
|
|
# Allow triggering jobs manually in other cases if any files affecting the
|
|
|
|
# pipeline were changed
|
2020-04-03 09:46:12 +00:00
|
|
|
- changes:
|
2020-04-03 10:50:11 +00:00
|
|
|
*all_paths
|
|
|
|
when: manual
|
|
|
|
# Otherwise, container jobs won't run
|
|
|
|
- when: never
|
2019-10-14 22:04:14 +00:00
|
|
|
variables:
|
2021-03-19 11:52:35 +00:00
|
|
|
FDO_DISTRIBUTION_VERSION: bullseye-slim
|
2020-03-23 17:16:07 +00:00
|
|
|
FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
|
2020-06-26 17:59:41 +00:00
|
|
|
FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
|
2019-10-14 22:04:14 +00:00
|
|
|
# no need to pull the whole repo to build the container image
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
|
2020-12-07 08:51:16 +00:00
|
|
|
.use-base-image:
|
|
|
|
extends:
|
|
|
|
- .container
|
2020-12-11 18:00:40 +00:00
|
|
|
- .incorporate-base-tag+templates-commit
|
2020-12-07 08:51:16 +00:00
|
|
|
# Don't want the .container rules
|
|
|
|
- .ci-run-policy
|
|
|
|
stage: container-2
|
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
# Debian 11 based x86 build image base
|
2020-05-30 13:53:41 +00:00
|
|
|
x86_build-base:
|
2019-09-06 15:35:52 +00:00
|
|
|
extends:
|
2020-03-23 17:16:07 +00:00
|
|
|
- .fdo.container-build@debian
|
2019-10-14 22:04:14 +00:00
|
|
|
- .container
|
2019-11-11 17:13:28 +00:00
|
|
|
variables:
|
2021-03-19 11:52:35 +00:00
|
|
|
MESA_IMAGE_TAG: &x86_build-base "2021-03-31-bullseye"
|
2020-05-30 13:53:41 +00:00
|
|
|
|
|
|
|
.use-x86_build-base:
|
|
|
|
extends:
|
2020-12-07 08:51:16 +00:00
|
|
|
- .fdo.container-build@debian
|
|
|
|
- .use-base-image
|
2020-05-30 13:53:41 +00:00
|
|
|
variables:
|
2020-12-07 08:35:53 +00:00
|
|
|
MESA_BASE_IMAGE: "debian/x86_build-base"
|
|
|
|
MESA_BASE_TAG: *x86_build-base
|
2020-05-30 13:53:41 +00:00
|
|
|
needs:
|
|
|
|
- x86_build-base
|
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
# Debian 11 based x86 main build image
|
2020-05-30 13:53:41 +00:00
|
|
|
x86_build:
|
|
|
|
extends:
|
|
|
|
- .use-x86_build-base
|
|
|
|
variables:
|
2021-03-22 15:45:54 +00:00
|
|
|
MESA_IMAGE_TAG: &x86_build "2021-04-13-glvnd"
|
2019-01-20 11:26:53 +00:00
|
|
|
|
2019-11-13 16:43:41 +00:00
|
|
|
.use-x86_build:
|
2020-12-09 17:58:48 +00:00
|
|
|
extends:
|
2020-12-11 18:00:40 +00:00
|
|
|
- .set-image-base-tag
|
2019-11-11 17:13:28 +00:00
|
|
|
variables:
|
2020-12-11 18:00:40 +00:00
|
|
|
MESA_BASE_TAG: *x86_build-base
|
2020-12-09 17:58:48 +00:00
|
|
|
MESA_IMAGE_PATH: "debian/x86_build"
|
2020-12-09 17:48:26 +00:00
|
|
|
MESA_IMAGE_TAG: *x86_build
|
2019-10-10 13:27:17 +00:00
|
|
|
needs:
|
2019-11-13 16:43:41 +00:00
|
|
|
- x86_build
|
2019-10-10 13:27:17 +00:00
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
# Debian 11 based i386 cross-build image
|
2020-06-01 17:08:30 +00:00
|
|
|
i386_build:
|
|
|
|
extends:
|
|
|
|
- .use-x86_build-base
|
|
|
|
variables:
|
2021-03-19 11:52:35 +00:00
|
|
|
MESA_IMAGE_TAG: &i386_build "2021-04-13-bullseye"
|
2020-06-01 17:08:30 +00:00
|
|
|
|
|
|
|
.use-i386_build:
|
2020-12-09 17:58:48 +00:00
|
|
|
extends:
|
2020-12-11 18:00:40 +00:00
|
|
|
- .set-image-base-tag
|
2020-06-01 17:08:30 +00:00
|
|
|
variables:
|
2020-12-11 18:00:40 +00:00
|
|
|
MESA_BASE_TAG: *x86_build-base
|
2020-12-09 17:58:48 +00:00
|
|
|
MESA_IMAGE_PATH: "debian/i386_build"
|
2020-12-09 17:48:26 +00:00
|
|
|
MESA_IMAGE_TAG: *i386_build
|
2020-06-01 17:08:30 +00:00
|
|
|
needs:
|
|
|
|
- i386_build
|
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
# Debian 11 based ppc64el cross-build image
|
2020-06-01 17:08:30 +00:00
|
|
|
ppc64el_build:
|
|
|
|
extends:
|
|
|
|
- .use-x86_build-base
|
|
|
|
variables:
|
2021-03-19 11:52:35 +00:00
|
|
|
MESA_IMAGE_TAG: &ppc64el_build "2021-04-13-bullseye"
|
2020-06-01 17:08:30 +00:00
|
|
|
|
|
|
|
.use-ppc64el_build:
|
2020-12-09 17:58:48 +00:00
|
|
|
extends:
|
2020-12-11 18:00:40 +00:00
|
|
|
- .set-image-base-tag
|
2020-06-01 17:08:30 +00:00
|
|
|
variables:
|
2020-12-11 18:00:40 +00:00
|
|
|
MESA_BASE_TAG: *x86_build-base
|
2020-12-09 17:58:48 +00:00
|
|
|
MESA_IMAGE_PATH: "debian/ppc64el_build"
|
2020-12-09 17:48:26 +00:00
|
|
|
MESA_IMAGE_TAG: *ppc64el_build
|
2020-06-01 17:08:30 +00:00
|
|
|
needs:
|
|
|
|
- ppc64el_build
|
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
# Debian 11 based s390x cross-build image
|
2020-06-01 17:08:30 +00:00
|
|
|
s390x_build:
|
|
|
|
extends:
|
|
|
|
- .use-x86_build-base
|
|
|
|
variables:
|
2021-03-19 11:52:35 +00:00
|
|
|
MESA_IMAGE_TAG: &s390x_build "2021-04-13-bullseye"
|
2020-06-01 17:08:30 +00:00
|
|
|
|
|
|
|
.use-s390x_build:
|
2020-12-09 17:58:48 +00:00
|
|
|
extends:
|
2020-12-11 18:00:40 +00:00
|
|
|
- .set-image-base-tag
|
2020-06-01 17:08:30 +00:00
|
|
|
variables:
|
2020-12-11 18:00:40 +00:00
|
|
|
MESA_BASE_TAG: *x86_build-base
|
2020-12-09 17:58:48 +00:00
|
|
|
MESA_IMAGE_PATH: "debian/s390x_build"
|
2020-12-09 17:48:26 +00:00
|
|
|
MESA_IMAGE_TAG: *s390x_build
|
2020-06-01 17:08:30 +00:00
|
|
|
needs:
|
|
|
|
- s390x_build
|
|
|
|
|
2020-09-09 23:37:54 +00:00
|
|
|
# Android NDK cross-build image
|
|
|
|
android_build:
|
|
|
|
extends:
|
|
|
|
- .use-x86_build-base
|
|
|
|
variables:
|
2021-01-19 22:29:33 +00:00
|
|
|
MESA_IMAGE_TAG: &android_build "2021-04-08-libdrm"
|
2020-09-09 23:37:54 +00:00
|
|
|
|
|
|
|
.use-android_build:
|
2020-12-09 17:58:48 +00:00
|
|
|
extends:
|
2020-12-11 18:00:40 +00:00
|
|
|
- .set-image-base-tag
|
2020-09-09 23:37:54 +00:00
|
|
|
variables:
|
2020-12-11 18:00:40 +00:00
|
|
|
MESA_BASE_TAG: *x86_build-base
|
2020-12-09 17:58:48 +00:00
|
|
|
MESA_IMAGE_PATH: "debian/android_build"
|
2020-12-09 17:48:26 +00:00
|
|
|
MESA_IMAGE_TAG: *android_build
|
2020-09-09 23:37:54 +00:00
|
|
|
needs:
|
|
|
|
- android_build
|
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
# Debian 11 based x86 test image base
|
2020-05-16 15:17:23 +00:00
|
|
|
x86_test-base:
|
2020-05-30 13:53:41 +00:00
|
|
|
extends: x86_build-base
|
2020-05-16 15:17:23 +00:00
|
|
|
variables:
|
2021-03-22 16:02:50 +00:00
|
|
|
MESA_IMAGE_TAG: &x86_test-base "2021-03-31-cargo"
|
2020-05-16 15:17:23 +00:00
|
|
|
|
|
|
|
.use-x86_test-base:
|
|
|
|
extends:
|
2020-12-07 08:51:16 +00:00
|
|
|
- .fdo.container-build@debian
|
|
|
|
- .use-base-image
|
2020-05-16 15:17:23 +00:00
|
|
|
variables:
|
2020-12-07 08:35:53 +00:00
|
|
|
MESA_BASE_IMAGE: "debian/x86_test-base"
|
|
|
|
MESA_BASE_TAG: *x86_test-base
|
2020-05-16 15:17:23 +00:00
|
|
|
needs:
|
|
|
|
- x86_test-base
|
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
# Debian 11 based x86 test image for GL
|
2019-11-18 08:15:12 +00:00
|
|
|
x86_test-gl:
|
2020-05-16 15:17:23 +00:00
|
|
|
extends: .use-x86_test-base
|
2019-11-05 17:52:24 +00:00
|
|
|
variables:
|
2021-05-14 10:08:43 +00:00
|
|
|
MESA_IMAGE_TAG: &x86_test-gl "2021-05-14-vkglcts-1.2.6.1"
|
2019-11-05 17:52:24 +00:00
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
# Debian 11 based x86 test image for VK
|
2019-11-18 08:23:18 +00:00
|
|
|
x86_test-vk:
|
2020-05-16 15:17:23 +00:00
|
|
|
extends: .use-x86_test-base
|
2019-11-18 08:23:18 +00:00
|
|
|
variables:
|
2021-05-14 10:08:43 +00:00
|
|
|
MESA_IMAGE_TAG: &x86_test-vk "2021-05-14-vkglcts-1.2.6.1"
|
2019-11-18 08:23:18 +00:00
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
# Debian 11 based ARM build image
|
2019-11-13 16:43:41 +00:00
|
|
|
arm_build:
|
2019-09-06 15:35:52 +00:00
|
|
|
extends:
|
2021-04-01 09:56:17 +00:00
|
|
|
- .fdo.container-build@debian
|
2019-10-14 22:04:14 +00:00
|
|
|
- .container
|
2021-04-01 09:56:17 +00:00
|
|
|
tags:
|
|
|
|
- aarch64
|
2019-06-28 23:35:32 +00:00
|
|
|
variables:
|
2021-03-19 11:52:35 +00:00
|
|
|
MESA_IMAGE_TAG: &arm_build "2021-04-13-bullseye"
|
2019-11-11 17:13:28 +00:00
|
|
|
|
|
|
|
.use-arm_build:
|
2020-12-09 17:58:48 +00:00
|
|
|
extends:
|
|
|
|
- .set-image
|
2019-11-11 17:13:28 +00:00
|
|
|
variables:
|
2020-12-09 17:58:48 +00:00
|
|
|
MESA_IMAGE_PATH: "debian/arm_build"
|
2020-12-09 17:48:26 +00:00
|
|
|
MESA_IMAGE_TAG: *arm_build
|
2019-11-11 17:13:28 +00:00
|
|
|
needs:
|
|
|
|
- arm_build
|
2019-01-20 11:26:53 +00:00
|
|
|
|
2021-04-13 05:40:36 +00:00
|
|
|
.kernel+rootfs:
|
|
|
|
extends:
|
|
|
|
- .ci-run-policy
|
|
|
|
stage: container-2
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: fetch
|
2021-04-27 16:51:02 +00:00
|
|
|
KERNEL_URL: "https://gitlab.freedesktop.org/drm/msm/-/archive/v5.11-for-mesa-ci-40abe2528d16/linux-v5.11-for-mesa-ci-40abe2528d16.tar.bz2"
|
2021-05-14 10:08:43 +00:00
|
|
|
MESA_ROOTFS_TAG: &kernel-rootfs "2021-05-14-vkglcts-1.2.6.1"
|
2021-04-13 05:40:36 +00:00
|
|
|
DISTRIBUTION_TAG: &distribution-tag-arm "${MESA_ROOTFS_TAG}--${MESA_IMAGE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
|
|
|
script:
|
|
|
|
- .gitlab-ci/container/lava_build.sh
|
|
|
|
|
|
|
|
kernel+rootfs_amd64:
|
|
|
|
extends:
|
|
|
|
- .use-x86_build-base
|
|
|
|
- .kernel+rootfs
|
|
|
|
image: "$FDO_BASE_IMAGE"
|
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "amd64"
|
|
|
|
DISTRIBUTION_TAG: &distribution-tag-amd64 "${MESA_ROOTFS_TAG}--${MESA_BASE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
|
|
|
|
|
|
|
kernel+rootfs_arm64:
|
2021-03-29 13:09:06 +00:00
|
|
|
extends:
|
|
|
|
- .use-arm_build
|
|
|
|
- .kernel+rootfs
|
|
|
|
tags:
|
|
|
|
- aarch64
|
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "arm64"
|
|
|
|
|
2021-04-13 05:40:36 +00:00
|
|
|
kernel+rootfs_armhf:
|
2021-03-29 13:09:06 +00:00
|
|
|
extends:
|
2021-04-13 05:40:36 +00:00
|
|
|
- kernel+rootfs_arm64
|
2021-03-29 13:09:06 +00:00
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "armhf"
|
2021-04-13 05:40:36 +00:00
|
|
|
|
|
|
|
# Cannot use anchors defined here from included files, so use extends: instead
|
|
|
|
.use-kernel+rootfs-arm:
|
|
|
|
variables:
|
|
|
|
DISTRIBUTION_TAG: *distribution-tag-arm
|
|
|
|
MESA_ROOTFS_TAG: *kernel-rootfs
|
|
|
|
|
|
|
|
.use-kernel+rootfs-amd64:
|
|
|
|
variables:
|
|
|
|
DISTRIBUTION_TAG: *distribution-tag-amd64
|
|
|
|
MESA_ROOTFS_TAG: *kernel-rootfs
|
2021-03-29 13:09:06 +00:00
|
|
|
|
2021-03-30 10:54:15 +00:00
|
|
|
# x86 image with ARM64 & armhf kernel & rootfs for baremetal testing
|
|
|
|
arm_test:
|
2020-06-07 20:03:34 +00:00
|
|
|
extends:
|
2021-03-30 10:54:15 +00:00
|
|
|
- .fdo.container-build@debian
|
|
|
|
- .container
|
|
|
|
# Don't want the .container rules
|
|
|
|
- .ci-run-policy
|
2021-03-29 13:09:06 +00:00
|
|
|
stage: build-misc
|
|
|
|
needs:
|
2021-04-13 05:40:36 +00:00
|
|
|
- kernel+rootfs_arm64
|
|
|
|
- kernel+rootfs_armhf
|
2020-05-13 18:08:08 +00:00
|
|
|
variables:
|
2021-04-13 05:40:36 +00:00
|
|
|
FDO_DISTRIBUTION_EXEC: 'env ARTIFACTS_PREFIX=https://${MINIO_HOST}/mesa-lava ARTIFACTS_SUFFIX=${MESA_ROOTFS_TAG}--${MESA_ARM_BUILD_TAG}--${MESA_TEMPLATES_COMMIT} CI_PROJECT_PATH=${CI_PROJECT_PATH} FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} FDO_UPSTREAM_REPO=${FDO_UPSTREAM_REPO} bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
|
2021-03-30 10:54:15 +00:00
|
|
|
FDO_DISTRIBUTION_TAG: "${MESA_IMAGE_TAG}--${MESA_ROOTFS_TAG}--${MESA_ARM_BUILD_TAG}--${MESA_TEMPLATES_COMMIT}"
|
2021-03-29 13:09:06 +00:00
|
|
|
MESA_ARM_BUILD_TAG: *arm_build
|
2021-04-14 06:02:19 +00:00
|
|
|
MESA_IMAGE_TAG: &arm_test "2021-04-20-kernel-modules"
|
2021-04-13 05:40:36 +00:00
|
|
|
MESA_ROOTFS_TAG: *kernel-rootfs
|
2020-05-13 18:08:08 +00:00
|
|
|
|
2021-03-30 10:54:15 +00:00
|
|
|
.use-arm_test:
|
|
|
|
image: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${MESA_IMAGE_TAG}--${MESA_ROOTFS_TAG}--${MESA_ARM_BUILD_TAG}--${MESA_TEMPLATES_COMMIT}"
|
ci: add testing for VC4 drivers (Raspberry Pi 3)
This tests OpenGL ES 2.0 CTS suite with VC4 drivers, through baremetal
Raspberry Pi 3 devices.
The devices are connected to a switch that supports Power over Ethernet
(PoE), so the devices can be started/stopped through the switch, and
also to a host that runs the GitLab runner through serial-to-USB cables,
to monitor the devices to know when the testing finishes.
The Raspberries uses a network boot, using NFS and TFTP. For the root
filesystem, they use the one created in the armhf container. For the
kernel/modules case, this is handled externally. Currently it is using
the same kernel/modules that come with the Raspberry Pi OS. In future we
could build them in the same armhf container.
At this moment we only test armhf architecture, as this is the default
one suggested by the Raspberry Pi Foundation. In future we could also
add testing for arm64 architecture.
Finally, for the very rare ocassions where the Raspberry Pi 3 device is
booted but no data is received, it retries the testing for a second
time, powering off and on the device in the process.
v2:
- Remove commit that exists capture devcoredump (Eric)
- Squash remaining commits in one (Andres)
v3:
- Add missing boot timeout check (Juan)
v4:
- Use locks when running the PoE on/off script (Eric)
- Use a timeout for serial read (Eric)
v5:
- Rename stage to "raspberrypi" (Eric)
- Bump up arm64_test tag (Eric)
v6:
- Make serial buffer timeout optional (Juan)
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7628>
2020-11-15 19:57:55 +00:00
|
|
|
variables:
|
2021-03-30 10:54:15 +00:00
|
|
|
MESA_ARM_BUILD_TAG: *arm_build
|
|
|
|
MESA_IMAGE_PATH: "debian/arm_test"
|
|
|
|
MESA_IMAGE_TAG: *arm_test
|
2021-04-13 05:40:36 +00:00
|
|
|
MESA_ROOTFS_TAG: *kernel-rootfs
|
ci: add testing for VC4 drivers (Raspberry Pi 3)
This tests OpenGL ES 2.0 CTS suite with VC4 drivers, through baremetal
Raspberry Pi 3 devices.
The devices are connected to a switch that supports Power over Ethernet
(PoE), so the devices can be started/stopped through the switch, and
also to a host that runs the GitLab runner through serial-to-USB cables,
to monitor the devices to know when the testing finishes.
The Raspberries uses a network boot, using NFS and TFTP. For the root
filesystem, they use the one created in the armhf container. For the
kernel/modules case, this is handled externally. Currently it is using
the same kernel/modules that come with the Raspberry Pi OS. In future we
could build them in the same armhf container.
At this moment we only test armhf architecture, as this is the default
one suggested by the Raspberry Pi Foundation. In future we could also
add testing for arm64 architecture.
Finally, for the very rare ocassions where the Raspberry Pi 3 device is
booted but no data is received, it retries the testing for a second
time, powering off and on the device in the process.
v2:
- Remove commit that exists capture devcoredump (Eric)
- Squash remaining commits in one (Andres)
v3:
- Add missing boot timeout check (Juan)
v4:
- Use locks when running the PoE on/off script (Eric)
- Use a timeout for serial read (Eric)
v5:
- Rename stage to "raspberrypi" (Eric)
- Bump up arm64_test tag (Eric)
v6:
- Make serial buffer timeout optional (Juan)
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7628>
2020-11-15 19:57:55 +00:00
|
|
|
needs:
|
2021-03-30 10:54:15 +00:00
|
|
|
- arm_test
|
ci: add testing for VC4 drivers (Raspberry Pi 3)
This tests OpenGL ES 2.0 CTS suite with VC4 drivers, through baremetal
Raspberry Pi 3 devices.
The devices are connected to a switch that supports Power over Ethernet
(PoE), so the devices can be started/stopped through the switch, and
also to a host that runs the GitLab runner through serial-to-USB cables,
to monitor the devices to know when the testing finishes.
The Raspberries uses a network boot, using NFS and TFTP. For the root
filesystem, they use the one created in the armhf container. For the
kernel/modules case, this is handled externally. Currently it is using
the same kernel/modules that come with the Raspberry Pi OS. In future we
could build them in the same armhf container.
At this moment we only test armhf architecture, as this is the default
one suggested by the Raspberry Pi Foundation. In future we could also
add testing for arm64 architecture.
Finally, for the very rare ocassions where the Raspberry Pi 3 device is
booted but no data is received, it retries the testing for a second
time, powering off and on the device in the process.
v2:
- Remove commit that exists capture devcoredump (Eric)
- Squash remaining commits in one (Andres)
v3:
- Add missing boot timeout check (Juan)
v4:
- Use locks when running the PoE on/off script (Eric)
- Use a timeout for serial read (Eric)
v5:
- Rename stage to "raspberrypi" (Eric)
- Bump up arm64_test tag (Eric)
v6:
- Make serial buffer timeout optional (Juan)
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7628>
2020-11-15 19:57:55 +00:00
|
|
|
|
2020-03-24 11:11:36 +00:00
|
|
|
# Native Windows docker builds
|
2020-05-19 21:01:47 +00:00
|
|
|
#
|
2021-03-21 17:27:57 +00:00
|
|
|
# Unlike the above Linux-based builds - including MinGW builds which
|
2020-03-24 11:11:36 +00:00
|
|
|
# cross-compile for Windows - which use the freedesktop ci-templates, we
|
|
|
|
# cannot use the same scheme here. As Windows lacks support for
|
|
|
|
# Docker-in-Docker, and Podman does not run natively on Windows, we have
|
|
|
|
# to open-code much of the same ourselves.
|
|
|
|
#
|
|
|
|
# This is achieved by first running in a native Windows shell instance
|
|
|
|
# (host PowerShell) in the container stage to build and push the image,
|
|
|
|
# then in the build stage by executing inside Docker.
|
|
|
|
|
|
|
|
.windows-docker-vs2019:
|
2020-12-09 17:58:48 +00:00
|
|
|
extends:
|
|
|
|
- .set-image
|
2020-03-24 11:11:36 +00:00
|
|
|
variables:
|
2021-04-14 12:34:16 +00:00
|
|
|
MESA_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${MESA_IMAGE_TAG}"
|
2020-12-09 17:58:48 +00:00
|
|
|
MESA_IMAGE_PATH: "windows/x64_build"
|
2021-01-29 21:06:04 +00:00
|
|
|
MESA_IMAGE_TAG: "2021-04-14-radv"
|
2021-04-14 12:34:16 +00:00
|
|
|
MESA_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/$MESA_IMAGE_PATH:${MESA_IMAGE_TAG}"
|
2020-03-24 11:11:36 +00:00
|
|
|
|
2020-11-26 17:30:52 +00:00
|
|
|
windows_build_vs2019:
|
2020-03-24 11:11:36 +00:00
|
|
|
extends:
|
|
|
|
- .container
|
|
|
|
- .windows-docker-vs2019
|
2020-08-06 15:10:08 +00:00
|
|
|
stage: container
|
2020-03-24 11:11:36 +00:00
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: fetch # we do actually need the full repository though
|
2021-01-27 14:21:37 +00:00
|
|
|
timeout: 2h 30m # LLVM + piglit takes ages
|
2020-03-24 11:11:36 +00:00
|
|
|
tags:
|
|
|
|
- windows
|
|
|
|
- shell
|
|
|
|
- "1809"
|
2020-03-30 09:16:18 +00:00
|
|
|
- mesa
|
2020-03-24 11:11:36 +00:00
|
|
|
script:
|
2020-12-09 17:42:15 +00:00
|
|
|
- .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $MESA_IMAGE $MESA_UPSTREAM_IMAGE
|
2020-05-19 21:01:47 +00:00
|
|
|
|
2020-03-24 11:11:36 +00:00
|
|
|
.use-windows_build_vs2019:
|
|
|
|
extends: .windows-docker-vs2019
|
2020-12-09 17:42:15 +00:00
|
|
|
image: "$MESA_IMAGE"
|
2020-03-24 11:11:36 +00:00
|
|
|
needs:
|
2020-04-16 13:56:18 +00:00
|
|
|
- windows_build_vs2019
|
2019-10-14 22:04:14 +00:00
|
|
|
|
CI: reduce bandwidth for git pull
Over the last 7 days, git pulls represented a total of 1.7 TB.
On those 1.7 TB, we can see:
- ~300 GB for the CI farm on hetzner
- ~730 GB for the CI farm on packet.net
- ~680 GB for the rest of the world
We can not really change the rest of the world*, but we can
certainly reduce the egress costs towards our CI farms.
Right now, the gitlab runners are not doing a good job at
caching the git trees for the various jobs we make, and
we end up with a lot of cache-misses. A typical pipeline
ends up with a good 2.8GB of git pull data. (a compressed
archive of the mesa folder accounts for 280MB)
In this patch, we implemented what was suggested in
https://gitlab.com/gitlab-org/gitlab/-/issues/215591#note_334642576
- we host a brand new MinIO server on packet
- jobs can upload files on 2 locations:
* git-cache/<namespace>/<project>/<branch-name>.tar.gz
* artifacts/<namespace>/<project>/<pipeline-id>/
- the authorization is handled by gitlab with short tokens
valid only for the time of the job is running
- whenever a job runs, the runner are configured to execute
(eval) $CI_PRE_CLONE_SCRIPT
- this variable is set globally to download the current cache
from the MinIO packet server, unpack it and replace the
possibly out of date cache found on the runner
- then git fetch is run by the runner, and only the delta
between the upstream tree and the local tree gets pulled.
We can rebuild the git cache in a schedule job (once a day
seems sufficient), and then we can stop the cache miss
entirely.
First results showed that instead of pulling 280MB of data
in my fork, I got a pull of only 250KB. That should help us.
* arguably, there are other farms in the rest of the world, so
hopefully we can change those too.
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5428>
2020-06-11 15:16:28 +00:00
|
|
|
|
|
|
|
# Git archive
|
|
|
|
|
|
|
|
make git archive:
|
2020-11-18 17:23:29 +00:00
|
|
|
extends:
|
|
|
|
- .fdo.ci-fairy
|
CI: reduce bandwidth for git pull
Over the last 7 days, git pulls represented a total of 1.7 TB.
On those 1.7 TB, we can see:
- ~300 GB for the CI farm on hetzner
- ~730 GB for the CI farm on packet.net
- ~680 GB for the rest of the world
We can not really change the rest of the world*, but we can
certainly reduce the egress costs towards our CI farms.
Right now, the gitlab runners are not doing a good job at
caching the git trees for the various jobs we make, and
we end up with a lot of cache-misses. A typical pipeline
ends up with a good 2.8GB of git pull data. (a compressed
archive of the mesa folder accounts for 280MB)
In this patch, we implemented what was suggested in
https://gitlab.com/gitlab-org/gitlab/-/issues/215591#note_334642576
- we host a brand new MinIO server on packet
- jobs can upload files on 2 locations:
* git-cache/<namespace>/<project>/<branch-name>.tar.gz
* artifacts/<namespace>/<project>/<pipeline-id>/
- the authorization is handled by gitlab with short tokens
valid only for the time of the job is running
- whenever a job runs, the runner are configured to execute
(eval) $CI_PRE_CLONE_SCRIPT
- this variable is set globally to download the current cache
from the MinIO packet server, unpack it and replace the
possibly out of date cache found on the runner
- then git fetch is run by the runner, and only the delta
between the upstream tree and the local tree gets pulled.
We can rebuild the git cache in a schedule job (once a day
seems sufficient), and then we can stop the cache miss
entirely.
First results showed that instead of pulling 280MB of data
in my fork, I got a pull of only 250KB. That should help us.
* arguably, there are other farms in the rest of the world, so
hopefully we can change those too.
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5428>
2020-06-11 15:16:28 +00:00
|
|
|
stage: git-archive
|
2020-07-07 13:02:35 +00:00
|
|
|
rules:
|
2020-09-08 15:44:40 +00:00
|
|
|
- if: *is-scheduled-pipeline
|
2020-07-07 13:02:35 +00:00
|
|
|
when: on_success
|
CI: reduce bandwidth for git pull
Over the last 7 days, git pulls represented a total of 1.7 TB.
On those 1.7 TB, we can see:
- ~300 GB for the CI farm on hetzner
- ~730 GB for the CI farm on packet.net
- ~680 GB for the rest of the world
We can not really change the rest of the world*, but we can
certainly reduce the egress costs towards our CI farms.
Right now, the gitlab runners are not doing a good job at
caching the git trees for the various jobs we make, and
we end up with a lot of cache-misses. A typical pipeline
ends up with a good 2.8GB of git pull data. (a compressed
archive of the mesa folder accounts for 280MB)
In this patch, we implemented what was suggested in
https://gitlab.com/gitlab-org/gitlab/-/issues/215591#note_334642576
- we host a brand new MinIO server on packet
- jobs can upload files on 2 locations:
* git-cache/<namespace>/<project>/<branch-name>.tar.gz
* artifacts/<namespace>/<project>/<pipeline-id>/
- the authorization is handled by gitlab with short tokens
valid only for the time of the job is running
- whenever a job runs, the runner are configured to execute
(eval) $CI_PRE_CLONE_SCRIPT
- this variable is set globally to download the current cache
from the MinIO packet server, unpack it and replace the
possibly out of date cache found on the runner
- then git fetch is run by the runner, and only the delta
between the upstream tree and the local tree gets pulled.
We can rebuild the git cache in a schedule job (once a day
seems sufficient), and then we can stop the cache miss
entirely.
First results showed that instead of pulling 280MB of data
in my fork, I got a pull of only 250KB. That should help us.
* arguably, there are other farms in the rest of the world, so
hopefully we can change those too.
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5428>
2020-06-11 15:16:28 +00:00
|
|
|
# ensure we are running on packet
|
|
|
|
tags:
|
|
|
|
- packet.net
|
|
|
|
script:
|
2020-12-04 13:55:54 +00:00
|
|
|
# Compactify the .git directory
|
|
|
|
- git gc --aggressive
|
CI: reduce bandwidth for git pull
Over the last 7 days, git pulls represented a total of 1.7 TB.
On those 1.7 TB, we can see:
- ~300 GB for the CI farm on hetzner
- ~730 GB for the CI farm on packet.net
- ~680 GB for the rest of the world
We can not really change the rest of the world*, but we can
certainly reduce the egress costs towards our CI farms.
Right now, the gitlab runners are not doing a good job at
caching the git trees for the various jobs we make, and
we end up with a lot of cache-misses. A typical pipeline
ends up with a good 2.8GB of git pull data. (a compressed
archive of the mesa folder accounts for 280MB)
In this patch, we implemented what was suggested in
https://gitlab.com/gitlab-org/gitlab/-/issues/215591#note_334642576
- we host a brand new MinIO server on packet
- jobs can upload files on 2 locations:
* git-cache/<namespace>/<project>/<branch-name>.tar.gz
* artifacts/<namespace>/<project>/<pipeline-id>/
- the authorization is handled by gitlab with short tokens
valid only for the time of the job is running
- whenever a job runs, the runner are configured to execute
(eval) $CI_PRE_CLONE_SCRIPT
- this variable is set globally to download the current cache
from the MinIO packet server, unpack it and replace the
possibly out of date cache found on the runner
- then git fetch is run by the runner, and only the delta
between the upstream tree and the local tree gets pulled.
We can rebuild the git cache in a schedule job (once a day
seems sufficient), and then we can stop the cache miss
entirely.
First results showed that instead of pulling 280MB of data
in my fork, I got a pull of only 250KB. That should help us.
* arguably, there are other farms in the rest of the world, so
hopefully we can change those too.
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5428>
2020-06-11 15:16:28 +00:00
|
|
|
# compress the current folder
|
|
|
|
- tar -cvzf ../$CI_PROJECT_NAME.tar.gz .
|
|
|
|
|
|
|
|
# login with the JWT token
|
|
|
|
- ci-fairy minio login $CI_JOB_JWT
|
2020-08-23 20:32:40 +00:00
|
|
|
- ci-fairy minio cp ../$CI_PROJECT_NAME.tar.gz minio://$MINIO_HOST/git-cache/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_PROJECT_NAME.tar.gz
|
CI: reduce bandwidth for git pull
Over the last 7 days, git pulls represented a total of 1.7 TB.
On those 1.7 TB, we can see:
- ~300 GB for the CI farm on hetzner
- ~730 GB for the CI farm on packet.net
- ~680 GB for the rest of the world
We can not really change the rest of the world*, but we can
certainly reduce the egress costs towards our CI farms.
Right now, the gitlab runners are not doing a good job at
caching the git trees for the various jobs we make, and
we end up with a lot of cache-misses. A typical pipeline
ends up with a good 2.8GB of git pull data. (a compressed
archive of the mesa folder accounts for 280MB)
In this patch, we implemented what was suggested in
https://gitlab.com/gitlab-org/gitlab/-/issues/215591#note_334642576
- we host a brand new MinIO server on packet
- jobs can upload files on 2 locations:
* git-cache/<namespace>/<project>/<branch-name>.tar.gz
* artifacts/<namespace>/<project>/<pipeline-id>/
- the authorization is handled by gitlab with short tokens
valid only for the time of the job is running
- whenever a job runs, the runner are configured to execute
(eval) $CI_PRE_CLONE_SCRIPT
- this variable is set globally to download the current cache
from the MinIO packet server, unpack it and replace the
possibly out of date cache found on the runner
- then git fetch is run by the runner, and only the delta
between the upstream tree and the local tree gets pulled.
We can rebuild the git cache in a schedule job (once a day
seems sufficient), and then we can stop the cache miss
entirely.
First results showed that instead of pulling 280MB of data
in my fork, I got a pull of only 250KB. That should help us.
* arguably, there are other farms in the rest of the world, so
hopefully we can change those too.
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5428>
2020-06-11 15:16:28 +00:00
|
|
|
|
|
|
|
|
2020-08-06 15:37:33 +00:00
|
|
|
# Sanity checks of MR settings and commit logs
|
2020-11-18 17:48:47 +00:00
|
|
|
sanity:
|
2020-11-18 17:23:29 +00:00
|
|
|
extends:
|
|
|
|
- .fdo.ci-fairy
|
2020-08-06 15:37:33 +00:00
|
|
|
stage: sanity
|
|
|
|
rules:
|
2020-12-10 11:48:32 +00:00
|
|
|
- if: *is-pre-merge
|
2020-08-06 15:37:33 +00:00
|
|
|
when: on_success
|
|
|
|
# Other cases default to never
|
2020-12-03 17:58:09 +00:00
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
2020-08-06 15:37:33 +00:00
|
|
|
script:
|
2020-12-01 13:27:42 +00:00
|
|
|
# ci-fairy check-commits --junit-xml=check-commits.xml
|
2020-11-18 17:48:47 +00:00
|
|
|
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=check-merge-request.xml
|
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
reports:
|
|
|
|
junit: check-*.xml
|
2020-08-06 15:37:33 +00:00
|
|
|
|
|
|
|
|
2019-01-20 11:26:53 +00:00
|
|
|
# BUILD
|
|
|
|
|
2019-10-23 21:21:31 +00:00
|
|
|
# Shared between windows and Linux
|
|
|
|
.build-common:
|
2019-10-14 22:52:58 +00:00
|
|
|
extends: .ci-run-policy
|
2020-07-21 14:13:37 +00:00
|
|
|
# Cancel job if a newer commit is pushed to the same branch
|
|
|
|
interruptible: true
|
2019-01-20 11:26:53 +00:00
|
|
|
artifacts:
|
2020-03-06 11:35:17 +00:00
|
|
|
name: "mesa_${CI_JOB_NAME}"
|
2019-07-24 16:27:48 +00:00
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- _build/meson-logs/*.txt
|
2021-03-04 11:58:56 +00:00
|
|
|
- _build/meson-logs/strace
|
2019-04-10 22:59:12 +00:00
|
|
|
- shader-db
|
2019-10-23 21:21:31 +00:00
|
|
|
|
|
|
|
# Just Linux
|
|
|
|
.build-linux:
|
|
|
|
extends: .build-common
|
2019-04-04 16:01:27 +00:00
|
|
|
variables:
|
|
|
|
CCACHE_COMPILERCHECK: "content"
|
2019-11-20 08:11:35 +00:00
|
|
|
CCACHE_COMPRESS: "true"
|
|
|
|
CCACHE_DIR: /cache/mesa/ccache
|
2019-02-12 16:59:27 +00:00
|
|
|
# Use ccache transparently, and print stats before/after
|
|
|
|
before_script:
|
|
|
|
- export PATH="/usr/lib/ccache:$PATH"
|
|
|
|
- export CCACHE_BASEDIR="$PWD"
|
2019-11-20 08:11:35 +00:00
|
|
|
- ccache --show-stats
|
2019-02-12 16:59:27 +00:00
|
|
|
after_script:
|
|
|
|
- ccache --show-stats
|
2019-01-20 11:26:53 +00:00
|
|
|
|
2019-10-23 21:36:19 +00:00
|
|
|
.build-windows:
|
|
|
|
extends: .build-common
|
|
|
|
tags:
|
2020-03-24 11:11:36 +00:00
|
|
|
- windows
|
|
|
|
- docker
|
|
|
|
- "1809"
|
2020-03-30 14:58:51 +00:00
|
|
|
- mesa
|
2019-10-23 21:36:19 +00:00
|
|
|
cache:
|
|
|
|
key: ${CI_JOB_NAME}
|
|
|
|
paths:
|
|
|
|
- subprojects/packagecache
|
|
|
|
|
2019-01-20 11:26:53 +00:00
|
|
|
.meson-build:
|
2019-10-14 22:52:58 +00:00
|
|
|
extends:
|
2019-10-23 21:21:31 +00:00
|
|
|
- .build-linux
|
2019-11-13 16:43:41 +00:00
|
|
|
- .use-x86_build
|
2020-02-27 17:27:56 +00:00
|
|
|
stage: meson-x86_64
|
2019-12-13 10:02:16 +00:00
|
|
|
variables:
|
2021-03-19 11:25:54 +00:00
|
|
|
LLVM_VERSION: 11
|
2019-02-12 16:59:27 +00:00
|
|
|
script:
|
2021-03-08 17:11:27 +00:00
|
|
|
- .gitlab-ci/meson/build.sh
|
2019-01-20 11:26:53 +00:00
|
|
|
|
2019-11-19 11:23:41 +00:00
|
|
|
meson-testing:
|
2019-09-06 15:35:52 +00:00
|
|
|
extends:
|
|
|
|
- .meson-build
|
|
|
|
- .ci-deqp-artifacts
|
2019-11-19 11:23:41 +00:00
|
|
|
variables:
|
2020-05-19 21:01:47 +00:00
|
|
|
UNWIND: "enabled"
|
2019-11-19 11:23:41 +00:00
|
|
|
DRI_LOADERS: >
|
|
|
|
-D glx=dri
|
2020-05-19 21:01:47 +00:00
|
|
|
-D gbm=enabled
|
|
|
|
-D egl=enabled
|
2019-06-25 14:44:16 +00:00
|
|
|
-D platforms=x11
|
2019-11-19 11:23:41 +00:00
|
|
|
GALLIUM_ST: >
|
2020-05-19 21:01:47 +00:00
|
|
|
-D dri3=enabled
|
2020-12-16 17:05:15 +00:00
|
|
|
GALLIUM_DRIVERS: "swrast,virgl,radeonsi,zink,iris"
|
2020-08-19 03:32:24 +00:00
|
|
|
VULKAN_DRIVERS: "swrast,amd"
|
2019-11-19 11:23:41 +00:00
|
|
|
BUILDTYPE: "debugoptimized"
|
2019-12-17 05:23:02 +00:00
|
|
|
EXTRA_OPTION: >
|
2021-03-11 17:17:52 +00:00
|
|
|
-D valgrind=false
|
2021-02-15 20:35:41 +00:00
|
|
|
MINIO_ARTIFACT_NAME: mesa-amd64
|
2019-11-19 11:23:41 +00:00
|
|
|
script:
|
2021-03-08 17:11:27 +00:00
|
|
|
- .gitlab-ci/meson/build.sh
|
2019-11-19 11:23:41 +00:00
|
|
|
- .gitlab-ci/prepare-artifacts.sh
|
|
|
|
|
2020-11-30 20:01:23 +00:00
|
|
|
meson-testing-asan:
|
|
|
|
extends:
|
|
|
|
- meson-testing
|
|
|
|
variables:
|
2021-04-11 10:50:36 +00:00
|
|
|
C_ARGS: >
|
|
|
|
-Wno-error=stringop-truncation
|
2020-11-30 20:01:23 +00:00
|
|
|
EXTRA_OPTION: >
|
|
|
|
-D b_sanitize=address
|
2021-03-11 17:17:52 +00:00
|
|
|
-D valgrind=false
|
2021-02-15 20:35:41 +00:00
|
|
|
MINIO_ARTIFACT_NAME: ""
|
2021-01-14 17:56:52 +00:00
|
|
|
ARTIFACTS_DEBUG_SYMBOLS: 1
|
2020-11-30 20:01:23 +00:00
|
|
|
|
2020-09-28 22:40:13 +00:00
|
|
|
meson-clover-testing:
|
|
|
|
extends:
|
|
|
|
- .meson-build
|
|
|
|
- .ci-deqp-artifacts
|
|
|
|
variables:
|
|
|
|
UNWIND: "enabled"
|
|
|
|
DRI_LOADERS: >
|
|
|
|
-D glx=disabled
|
|
|
|
-D egl=disabled
|
|
|
|
-D gbm=disabled
|
|
|
|
GALLIUM_ST: >
|
|
|
|
-D gallium-opencl=icd
|
|
|
|
-D opencl-spirv=true
|
|
|
|
GALLIUM_DRIVERS: "swrast"
|
|
|
|
BUILDTYPE: "debugoptimized"
|
2020-11-17 20:06:53 +00:00
|
|
|
EXTRA_OPTION: >
|
2021-03-11 17:17:52 +00:00
|
|
|
-D valgrind=false
|
2020-09-28 22:40:13 +00:00
|
|
|
script:
|
2021-03-08 17:11:27 +00:00
|
|
|
- .gitlab-ci/meson/build.sh
|
2020-09-28 22:40:13 +00:00
|
|
|
- .gitlab-ci/prepare-artifacts.sh
|
|
|
|
|
2020-03-12 11:29:40 +00:00
|
|
|
meson-gallium:
|
2019-11-19 11:23:41 +00:00
|
|
|
extends: .meson-build
|
2019-08-28 10:01:02 +00:00
|
|
|
variables:
|
2020-05-19 21:01:47 +00:00
|
|
|
UNWIND: "enabled"
|
2019-08-28 10:01:02 +00:00
|
|
|
DRI_LOADERS: >
|
|
|
|
-D glx=dri
|
2020-05-19 21:01:47 +00:00
|
|
|
-D gbm=enabled
|
|
|
|
-D egl=enabled
|
2019-06-25 14:44:16 +00:00
|
|
|
-D platforms=x11,wayland
|
2019-08-28 10:01:02 +00:00
|
|
|
GALLIUM_ST: >
|
2020-05-19 21:01:47 +00:00
|
|
|
-D dri3=enabled
|
2019-08-28 10:01:02 +00:00
|
|
|
-D gallium-extra-hud=true
|
2020-05-19 21:01:47 +00:00
|
|
|
-D gallium-vdpau=enabled
|
|
|
|
-D gallium-xvmc=enabled
|
2019-08-28 10:01:02 +00:00
|
|
|
-D gallium-omx=bellagio
|
2020-05-19 21:01:47 +00:00
|
|
|
-D gallium-va=enabled
|
|
|
|
-D gallium-xa=enabled
|
2019-08-28 10:01:02 +00:00
|
|
|
-D gallium-nine=true
|
|
|
|
-D gallium-opencl=disabled
|
2020-12-28 19:04:31 +00:00
|
|
|
GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,d3d12"
|
2020-06-19 06:40:27 +00:00
|
|
|
VULKAN_DRIVERS: swrast
|
2019-08-28 10:01:02 +00:00
|
|
|
EXTRA_OPTION: >
|
2019-07-03 18:10:32 +00:00
|
|
|
-D osmesa=true
|
2019-08-28 10:01:02 +00:00
|
|
|
-D tools=all
|
2019-10-23 16:42:53 +00:00
|
|
|
script:
|
2021-03-08 17:11:27 +00:00
|
|
|
- .gitlab-ci/meson/build.sh
|
2019-10-23 16:42:53 +00:00
|
|
|
- .gitlab-ci/run-shader-db.sh
|
2020-07-24 17:34:47 +00:00
|
|
|
- src/freedreno/.gitlab-ci/run-fdtools.sh
|
2019-08-28 10:01:02 +00:00
|
|
|
|
2020-08-24 17:15:35 +00:00
|
|
|
# Test a release build with -Werror so new warnings don't sneak in.
|
|
|
|
meson-release:
|
|
|
|
extends: .meson-build
|
|
|
|
variables:
|
|
|
|
UNWIND: "enabled"
|
|
|
|
DRI_LOADERS: >
|
|
|
|
-D glx=dri
|
|
|
|
-D gbm=enabled
|
|
|
|
-D egl=enabled
|
|
|
|
-D platforms=x11,wayland
|
|
|
|
GALLIUM_ST: >
|
|
|
|
-D dri3=enabled
|
|
|
|
-D gallium-extra-hud=true
|
|
|
|
-D gallium-vdpau=enabled
|
|
|
|
-D gallium-xvmc=disabled
|
|
|
|
-D gallium-omx=disabled
|
|
|
|
-D gallium-va=enabled
|
|
|
|
-D gallium-xa=enabled
|
|
|
|
-D gallium-nine=false
|
|
|
|
-D gallium-opencl=disabled
|
|
|
|
-D llvm=false
|
2021-03-26 15:08:07 +00:00
|
|
|
GALLIUM_DRIVERS: "iris,nouveau,kmsro,freedreno,r300,svga,swrast,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,d3d12"
|
2020-08-24 17:15:35 +00:00
|
|
|
BUILDTYPE: "release"
|
|
|
|
EXTRA_OPTION: >
|
2020-12-03 01:10:27 +00:00
|
|
|
-D osmesa=true
|
2020-08-24 17:15:35 +00:00
|
|
|
-D tools=all
|
|
|
|
script:
|
2021-03-08 17:11:27 +00:00
|
|
|
- .gitlab-ci/meson/build.sh
|
2020-08-24 17:15:35 +00:00
|
|
|
|
2020-07-28 22:35:36 +00:00
|
|
|
meson-android:
|
2020-09-09 23:37:54 +00:00
|
|
|
extends:
|
|
|
|
- .meson-cross
|
|
|
|
- .use-android_build
|
2020-07-28 22:35:36 +00:00
|
|
|
variables:
|
|
|
|
UNWIND: "disabled"
|
2021-04-11 10:45:46 +00:00
|
|
|
C_ARGS: >
|
|
|
|
-Wno-error=absolute-value
|
|
|
|
-Wno-error=asm-operand-widths
|
|
|
|
-Wno-error=constant-conversion
|
|
|
|
-Wno-error=enum-conversion
|
|
|
|
-Wno-error=extern-initializer
|
|
|
|
-Wno-error=initializer-overrides
|
|
|
|
-Wno-error=missing-braces
|
|
|
|
-Wno-error=sometimes-uninitialized
|
|
|
|
-Wno-error=tautological-constant-out-of-range-compare
|
|
|
|
-Wno-error=unused-function
|
|
|
|
-Wno-error=unused-label
|
|
|
|
CPP_ARGS: >
|
|
|
|
-Wno-error=deprecated-declarations
|
|
|
|
-Wno-error=non-virtual-dtor
|
2020-07-28 22:35:36 +00:00
|
|
|
DRI_LOADERS: >
|
|
|
|
-D glx=disabled
|
|
|
|
-D gbm=disabled
|
|
|
|
-D egl=enabled
|
|
|
|
-D platforms=android
|
|
|
|
EXTRA_OPTION: >
|
|
|
|
-D android-stub=true
|
2020-09-09 23:37:54 +00:00
|
|
|
-D llvm=disabled
|
2020-09-24 23:44:50 +00:00
|
|
|
-D platform-sdk-version=26
|
2021-03-11 17:17:52 +00:00
|
|
|
-D valgrind=false
|
2020-07-28 22:35:36 +00:00
|
|
|
GALLIUM_ST: >
|
|
|
|
-D dri3=disabled
|
|
|
|
-D gallium-vdpau=disabled
|
|
|
|
-D gallium-xvmc=disabled
|
|
|
|
-D gallium-omx=disabled
|
|
|
|
-D gallium-va=disabled
|
|
|
|
-D gallium-xa=disabled
|
|
|
|
-D gallium-nine=false
|
|
|
|
-D gallium-opencl=disabled
|
2020-09-09 23:37:54 +00:00
|
|
|
LLVM_VERSION: ""
|
2021-03-22 20:19:01 +00:00
|
|
|
PKG_CONFIG_LIBDIR: "/disable/non/android/system/pc/files"
|
2020-09-09 23:37:54 +00:00
|
|
|
script:
|
2021-04-09 04:01:58 +00:00
|
|
|
- PKG_CONFIG_PATH=/usr/local/lib/aarch64-linux-android/pkgconfig/:/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/pkgconfig/ CROSS=aarch64-linux-android GALLIUM_DRIVERS=etnaviv,freedreno,lima,panfrost,vc4,v3d VULKAN_DRIVERS=freedreno,broadcom,virtio-experimental .gitlab-ci/meson/build.sh
|
2020-09-09 23:37:54 +00:00
|
|
|
# x86_64 build:
|
|
|
|
# Can't do Intel because gen_decoder.c currently requires libexpat, which
|
|
|
|
# is not a dependency that AOSP wants to accept. Can't do Radeon because
|
|
|
|
# it requires LLVM, which we don't have an Android build of.
|
2021-03-08 17:11:27 +00:00
|
|
|
# - PKG_CONFIG_PATH=/usr/local/lib/x86_64-linux-android/pkgconfig/ CROSS=x86_64-linux-android GALLIUM_DRIVERS=iris VULKAN_DRIVERS=intel .gitlab-ci/meson/build.sh
|
2020-07-28 22:35:36 +00:00
|
|
|
|
2019-09-13 09:59:43 +00:00
|
|
|
.meson-cross:
|
|
|
|
extends:
|
|
|
|
- .meson-build
|
2020-12-02 13:50:38 +00:00
|
|
|
stage: build-misc
|
2019-09-13 09:59:43 +00:00
|
|
|
variables:
|
2020-05-19 21:01:47 +00:00
|
|
|
UNWIND: "disabled"
|
2019-09-13 09:59:43 +00:00
|
|
|
DRI_LOADERS: >
|
2020-10-17 12:00:45 +00:00
|
|
|
-D glx=dri
|
2020-10-26 21:01:07 +00:00
|
|
|
-D gbm=enabled
|
2020-05-19 21:01:47 +00:00
|
|
|
-D egl=enabled
|
2020-10-17 12:00:45 +00:00
|
|
|
-D platforms=x11
|
2019-07-03 18:10:32 +00:00
|
|
|
-D osmesa=false
|
2019-09-13 09:59:43 +00:00
|
|
|
GALLIUM_ST: >
|
2020-10-17 12:00:45 +00:00
|
|
|
-D dri3=enabled
|
2020-05-19 21:01:47 +00:00
|
|
|
-D gallium-vdpau=disabled
|
|
|
|
-D gallium-xvmc=disabled
|
2019-09-13 09:59:43 +00:00
|
|
|
-D gallium-omx=disabled
|
2020-05-19 21:01:47 +00:00
|
|
|
-D gallium-va=disabled
|
|
|
|
-D gallium-xa=disabled
|
2019-09-13 09:59:43 +00:00
|
|
|
-D gallium-nine=false
|
|
|
|
|
2019-10-08 17:46:11 +00:00
|
|
|
.meson-arm:
|
2019-11-11 17:13:28 +00:00
|
|
|
extends:
|
|
|
|
- .meson-cross
|
|
|
|
- .use-arm_build
|
2020-10-22 15:58:35 +00:00
|
|
|
needs:
|
|
|
|
- arm_build
|
2019-09-13 09:59:43 +00:00
|
|
|
variables:
|
2020-10-01 10:08:17 +00:00
|
|
|
VULKAN_DRIVERS: freedreno,broadcom
|
2019-10-08 17:48:41 +00:00
|
|
|
GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
|
2019-12-17 10:50:14 +00:00
|
|
|
BUILDTYPE: "debugoptimized"
|
2019-10-08 17:46:11 +00:00
|
|
|
tags:
|
|
|
|
- aarch64
|
|
|
|
|
|
|
|
meson-armhf:
|
2019-12-17 10:50:14 +00:00
|
|
|
extends:
|
|
|
|
- .meson-arm
|
|
|
|
- .ci-deqp-artifacts
|
2019-10-08 17:46:11 +00:00
|
|
|
variables:
|
|
|
|
CROSS: armhf
|
2020-02-24 18:31:33 +00:00
|
|
|
EXTRA_OPTION: >
|
2020-05-19 21:01:47 +00:00
|
|
|
-D llvm=disabled
|
2021-03-11 17:17:52 +00:00
|
|
|
-D valgrind=false
|
2021-02-15 20:35:41 +00:00
|
|
|
MINIO_ARTIFACT_NAME: mesa-armhf
|
2019-12-17 10:50:14 +00:00
|
|
|
script:
|
2021-03-08 17:11:27 +00:00
|
|
|
- .gitlab-ci/meson/build.sh
|
2019-12-17 10:50:14 +00:00
|
|
|
- .gitlab-ci/prepare-artifacts.sh
|
2019-09-13 09:59:43 +00:00
|
|
|
|
|
|
|
meson-arm64:
|
2019-10-08 17:46:11 +00:00
|
|
|
extends:
|
|
|
|
- .meson-arm
|
|
|
|
- .ci-deqp-artifacts
|
2019-09-13 09:59:43 +00:00
|
|
|
variables:
|
2020-10-01 10:08:17 +00:00
|
|
|
VULKAN_DRIVERS: "freedreno,broadcom"
|
2020-02-24 18:31:33 +00:00
|
|
|
EXTRA_OPTION: >
|
2020-05-19 21:01:47 +00:00
|
|
|
-D llvm=disabled
|
2021-03-11 17:17:52 +00:00
|
|
|
-D valgrind=false
|
2021-02-15 20:35:41 +00:00
|
|
|
MINIO_ARTIFACT_NAME: mesa-arm64
|
2019-10-23 16:42:53 +00:00
|
|
|
script:
|
2021-03-08 17:11:27 +00:00
|
|
|
- .gitlab-ci/meson/build.sh
|
2019-10-23 16:42:53 +00:00
|
|
|
- .gitlab-ci/prepare-artifacts.sh
|
2019-09-13 09:59:43 +00:00
|
|
|
|
2020-12-15 23:47:51 +00:00
|
|
|
meson-arm64-asan:
|
|
|
|
extends:
|
|
|
|
- meson-arm64
|
|
|
|
variables:
|
2021-04-11 10:50:36 +00:00
|
|
|
C_ARGS: >
|
|
|
|
-Wno-error=stringop-truncation
|
2020-12-15 23:47:51 +00:00
|
|
|
EXTRA_OPTION: >
|
|
|
|
-D llvm=disabled
|
|
|
|
-D b_sanitize=address
|
2021-03-11 17:17:52 +00:00
|
|
|
-D valgrind=false
|
2020-12-15 23:47:51 +00:00
|
|
|
ARTIFACTS_DEBUG_SYMBOLS: 1
|
|
|
|
MINIO_ARTIFACT_NAME: mesa-arm64-asan
|
|
|
|
MESON_TEST_ARGS: "--no-suite mesa:compiler"
|
|
|
|
|
2020-02-20 15:37:48 +00:00
|
|
|
meson-arm64-build-test:
|
|
|
|
extends:
|
|
|
|
- .meson-arm
|
|
|
|
- .ci-deqp-artifacts
|
|
|
|
variables:
|
|
|
|
VULKAN_DRIVERS: "amd"
|
2020-08-03 14:19:38 +00:00
|
|
|
EXTRA_OPTION: >
|
|
|
|
-Dtools=panfrost
|
2020-02-20 15:37:48 +00:00
|
|
|
script:
|
2021-03-08 17:11:27 +00:00
|
|
|
- .gitlab-ci/meson/build.sh
|
2020-02-20 15:37:48 +00:00
|
|
|
|
2019-03-20 14:58:31 +00:00
|
|
|
meson-clang:
|
|
|
|
extends: .meson-build
|
|
|
|
variables:
|
2020-05-19 21:01:47 +00:00
|
|
|
UNWIND: "enabled"
|
2021-04-11 10:45:46 +00:00
|
|
|
C_ARGS: >
|
|
|
|
-Wno-error=absolute-value
|
|
|
|
-Wno-error=constant-conversion
|
|
|
|
-Wno-error=constant-logical-operand
|
|
|
|
-Wno-error=enum-conversion
|
|
|
|
-Wno-error=gnu-variable-sized-type-not-at-end
|
|
|
|
-Wno-error=implicit-const-int-float-conversion
|
|
|
|
-Wno-error=initializer-overrides
|
|
|
|
-Wno-error=misleading-indentation
|
|
|
|
-Wno-error=mismatched-tags
|
|
|
|
-Wno-error=missing-braces
|
|
|
|
-Wno-error=overloaded-virtual
|
|
|
|
-Wno-error=self-assign
|
|
|
|
-Wno-error=sometimes-uninitialized
|
|
|
|
-Wno-error=tautological-constant-compare
|
|
|
|
-Wno-error=tautological-constant-out-of-range-compare
|
|
|
|
-Wno-error=tautological-overlap-compare
|
|
|
|
-Wno-error=typedef-redefinition
|
|
|
|
-Wno-error=unused-function
|
|
|
|
-Wno-error=unused-private-field
|
|
|
|
-Wno-error=xor-used-as-pow
|
|
|
|
CPP_ARGS: >
|
|
|
|
-Wno-error=c99-designator
|
|
|
|
-Wno-error=constant-logical-operand
|
|
|
|
-Wno-error=deprecated-declarations
|
|
|
|
-Wno-error=implicit-const-int-float-conversion
|
|
|
|
-Wno-error=mismatched-tags
|
|
|
|
-Wno-error=missing-braces
|
|
|
|
-Wno-error=overloaded-virtual
|
|
|
|
-Wno-error=self-assign
|
|
|
|
-Wno-error=sometimes-uninitialized
|
|
|
|
-Wno-error=tautological-constant-out-of-range-compare
|
|
|
|
-Wno-error=unused-const-variable
|
|
|
|
-Wno-error=unused-private-field
|
|
|
|
-Wno-error=unused-value
|
|
|
|
-Wno-error=unused-variable
|
2019-11-19 13:37:32 +00:00
|
|
|
DRI_LOADERS: >
|
|
|
|
-D glvnd=true
|
2019-03-20 14:58:31 +00:00
|
|
|
DRI_DRIVERS: "auto"
|
2020-12-28 19:04:31 +00:00
|
|
|
GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,radeonsi,tegra,d3d12"
|
2021-04-09 04:01:58 +00:00
|
|
|
VULKAN_DRIVERS: intel,amd,freedreno,broadcom,virtio-experimental
|
2021-03-19 11:52:35 +00:00
|
|
|
CC: clang
|
|
|
|
CXX: clang++
|
2019-03-20 14:58:31 +00:00
|
|
|
|
2020-11-26 17:30:52 +00:00
|
|
|
meson-windows-vs2019:
|
2019-10-23 21:36:19 +00:00
|
|
|
extends:
|
|
|
|
- .build-windows
|
2020-03-24 11:11:36 +00:00
|
|
|
- .use-windows_build_vs2019
|
2020-12-11 10:41:32 +00:00
|
|
|
- .windows-build-rules
|
2020-12-02 13:50:38 +00:00
|
|
|
stage: build-misc
|
2019-10-23 21:36:19 +00:00
|
|
|
script:
|
2020-03-24 11:11:36 +00:00
|
|
|
- . .\.gitlab-ci\windows\mesa_build.ps1
|
2020-06-04 20:55:52 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _install/
|
2019-10-23 21:36:19 +00:00
|
|
|
|
2020-06-03 16:06:56 +00:00
|
|
|
test-d3d12-windows:
|
|
|
|
extends:
|
|
|
|
- .build-windows
|
|
|
|
- .use-windows_build_vs2019
|
2020-12-11 10:41:32 +00:00
|
|
|
- .windows-test-rules
|
2020-12-02 13:50:38 +00:00
|
|
|
stage: layered-backends
|
2020-06-03 16:06:56 +00:00
|
|
|
dependencies:
|
|
|
|
- meson-windows-vs2019
|
|
|
|
needs:
|
|
|
|
- meson-windows-vs2019
|
|
|
|
variables:
|
2020-12-02 10:28:31 +00:00
|
|
|
GIT_STRATEGY: none # testing doesn't build anything from source
|
2020-06-03 16:06:56 +00:00
|
|
|
GALLIUM_DRIVER: d3d12
|
|
|
|
PIGLIT_PROFILE: quick_gl
|
2021-02-12 17:20:00 +00:00
|
|
|
PIGLIT_TESTS: -x nv_copy_depth_to_color -x repeat-wait -x arb_timer_query@timestamp-get
|
2020-06-03 16:06:56 +00:00
|
|
|
script:
|
2020-12-02 10:28:31 +00:00
|
|
|
- . _install/piglit_run.ps1
|
2020-06-03 16:06:56 +00:00
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
name: "mesa_${CI_JOB_NAME}"
|
|
|
|
paths:
|
|
|
|
- summary/
|
|
|
|
|
2019-05-03 08:58:48 +00:00
|
|
|
meson-clover:
|
2019-01-28 18:05:22 +00:00
|
|
|
extends: .meson-build
|
|
|
|
variables:
|
2020-05-19 21:01:47 +00:00
|
|
|
UNWIND: "enabled"
|
2019-01-28 18:05:22 +00:00
|
|
|
DRI_LOADERS: >
|
|
|
|
-D glx=disabled
|
2020-05-19 21:01:47 +00:00
|
|
|
-D egl=disabled
|
|
|
|
-D gbm=disabled
|
2020-05-30 21:55:28 +00:00
|
|
|
GALLIUM_DRIVERS: "r600,radeonsi"
|
2019-01-28 18:05:22 +00:00
|
|
|
GALLIUM_ST: >
|
2020-05-19 21:01:47 +00:00
|
|
|
-D dri3=disabled
|
|
|
|
-D gallium-vdpau=disabled
|
|
|
|
-D gallium-xvmc=disabled
|
2019-01-28 18:05:22 +00:00
|
|
|
-D gallium-omx=disabled
|
2020-05-19 21:01:47 +00:00
|
|
|
-D gallium-va=disabled
|
|
|
|
-D gallium-xa=disabled
|
2019-01-28 18:05:22 +00:00
|
|
|
-D gallium-nine=false
|
|
|
|
-D gallium-opencl=icd
|
2020-11-17 20:06:53 +00:00
|
|
|
EXTRA_OPTION: >
|
2021-03-11 17:17:52 +00:00
|
|
|
-D valgrind=false
|
2019-05-03 08:58:48 +00:00
|
|
|
script:
|
2021-04-14 19:46:15 +00:00
|
|
|
- LLVM_VERSION=9 GALLIUM_DRIVERS=r600,swrast .gitlab-ci/meson/build.sh
|
2021-03-08 17:11:27 +00:00
|
|
|
- .gitlab-ci/meson/build.sh
|
2019-09-06 15:04:47 +00:00
|
|
|
|
2019-05-03 16:19:25 +00:00
|
|
|
meson-vulkan:
|
|
|
|
extends: .meson-build
|
|
|
|
variables:
|
2020-05-19 21:01:47 +00:00
|
|
|
UNWIND: "disabled"
|
2019-05-03 16:19:25 +00:00
|
|
|
DRI_LOADERS: >
|
|
|
|
-D glx=disabled
|
2020-05-19 21:01:47 +00:00
|
|
|
-D gbm=disabled
|
|
|
|
-D egl=disabled
|
2019-06-25 14:44:16 +00:00
|
|
|
-D platforms=x11,wayland
|
2019-07-03 18:10:32 +00:00
|
|
|
-D osmesa=false
|
2019-05-03 16:19:25 +00:00
|
|
|
GALLIUM_ST: >
|
2020-05-19 21:01:47 +00:00
|
|
|
-D dri3=enabled
|
|
|
|
-D gallium-vdpau=disabled
|
|
|
|
-D gallium-xvmc=disabled
|
2019-05-03 16:19:25 +00:00
|
|
|
-D gallium-omx=disabled
|
2020-05-19 21:01:47 +00:00
|
|
|
-D gallium-va=disabled
|
|
|
|
-D gallium-xa=disabled
|
2019-05-03 16:19:25 +00:00
|
|
|
-D gallium-nine=false
|
|
|
|
-D gallium-opencl=disabled
|
2019-09-25 10:56:58 +00:00
|
|
|
-D b_sanitize=undefined
|
|
|
|
-D c_args=-fno-sanitize-recover=all
|
|
|
|
-D cpp_args=-fno-sanitize-recover=all
|
|
|
|
UBSAN_OPTIONS: "print_stacktrace=1"
|
2021-04-09 04:01:58 +00:00
|
|
|
VULKAN_DRIVERS: intel,amd,freedreno,broadcom,virtio-experimental
|
2019-05-08 16:17:23 +00:00
|
|
|
EXTRA_OPTION: >
|
2021-03-26 14:50:08 +00:00
|
|
|
-D vulkan-layers=device-select,overlay
|
2020-06-03 13:25:12 +00:00
|
|
|
-D build-aco-tests=true
|
2019-05-03 16:19:25 +00:00
|
|
|
|
2019-07-11 19:58:28 +00:00
|
|
|
meson-i386:
|
2020-06-01 17:08:30 +00:00
|
|
|
extends:
|
|
|
|
- .meson-cross
|
|
|
|
- .use-i386_build
|
2019-07-11 19:58:28 +00:00
|
|
|
variables:
|
2019-08-09 22:46:50 +00:00
|
|
|
CROSS: i386
|
2021-04-09 04:01:58 +00:00
|
|
|
VULKAN_DRIVERS: intel,amd,swrast,virtio-experimental
|
2021-01-08 15:10:53 +00:00
|
|
|
GALLIUM_DRIVERS: "iris,nouveau,r300,r600,radeonsi,swrast,virgl,zink"
|
|
|
|
DRI_DRIVERS: "i915,i965,r100,r200,nouveau"
|
2019-07-11 19:58:28 +00:00
|
|
|
EXTRA_OPTION: >
|
2021-03-26 14:50:08 +00:00
|
|
|
-D vulkan-layers=device-select,overlay
|
2019-07-11 19:58:28 +00:00
|
|
|
|
2020-01-30 17:21:15 +00:00
|
|
|
meson-s390x:
|
|
|
|
extends:
|
2021-03-19 11:52:35 +00:00
|
|
|
- meson-ppc64el
|
2020-06-01 17:08:30 +00:00
|
|
|
- .use-s390x_build
|
2020-03-18 17:41:43 +00:00
|
|
|
tags:
|
|
|
|
- kvm
|
2020-01-30 17:21:15 +00:00
|
|
|
variables:
|
|
|
|
CROSS: s390x
|
2021-01-08 15:10:53 +00:00
|
|
|
GALLIUM_DRIVERS: "swrast,zink"
|
2021-03-19 11:52:35 +00:00
|
|
|
# The lp_test_blend test times out with LLVM 11
|
|
|
|
LLVM_VERSION: 9
|
2021-01-08 15:10:53 +00:00
|
|
|
VULKAN_DRIVERS: "swrast"
|
2020-01-30 17:21:15 +00:00
|
|
|
|
|
|
|
meson-ppc64el:
|
|
|
|
extends:
|
2021-03-19 11:52:35 +00:00
|
|
|
- .meson-cross
|
2020-06-01 17:08:30 +00:00
|
|
|
- .use-ppc64el_build
|
2020-01-30 17:21:15 +00:00
|
|
|
variables:
|
|
|
|
CROSS: ppc64el
|
2021-01-08 15:10:53 +00:00
|
|
|
GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl,zink"
|
|
|
|
VULKAN_DRIVERS: "amd,swrast"
|
2020-01-30 17:21:15 +00:00
|
|
|
|
2019-10-11 16:04:14 +00:00
|
|
|
meson-mingw32-x86_64:
|
2019-09-19 17:21:51 +00:00
|
|
|
extends: .meson-build
|
2020-12-02 13:50:38 +00:00
|
|
|
stage: build-misc
|
2019-09-19 17:21:51 +00:00
|
|
|
variables:
|
2020-05-19 21:01:47 +00:00
|
|
|
UNWIND: "disabled"
|
2021-04-11 10:50:36 +00:00
|
|
|
C_ARGS: >
|
|
|
|
-Wno-error=format
|
|
|
|
-Wno-error=format-extra-args
|
|
|
|
CPP_ARGS: $C_ARGS
|
2019-09-19 17:21:51 +00:00
|
|
|
DRI_DRIVERS: ""
|
|
|
|
GALLIUM_DRIVERS: "swrast"
|
|
|
|
EXTRA_OPTION: >
|
2020-05-19 21:01:47 +00:00
|
|
|
-Dllvm=disabled
|
2021-03-20 10:41:25 +00:00
|
|
|
-Dzlib=disabled
|
2019-07-03 18:10:32 +00:00
|
|
|
-Dosmesa=true
|
2019-09-19 17:21:51 +00:00
|
|
|
--cross-file=.gitlab-ci/x86_64-w64-mingw32
|
|
|
|
|
2019-11-18 08:30:27 +00:00
|
|
|
.test:
|
2019-10-14 22:53:15 +00:00
|
|
|
extends:
|
2019-10-22 15:16:52 +00:00
|
|
|
- .ci-run-policy
|
2020-07-21 14:13:37 +00:00
|
|
|
# Cancel job if a newer commit is pushed to the same branch
|
|
|
|
interruptible: true
|
2019-10-14 22:53:15 +00:00
|
|
|
variables:
|
2019-10-22 15:16:52 +00:00
|
|
|
GIT_STRATEGY: none # testing doesn't build anything from source
|
|
|
|
before_script:
|
2019-06-28 23:35:32 +00:00
|
|
|
# Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
|
|
|
|
- rm -rf install
|
|
|
|
- tar -xf artifacts/install.tar
|
2019-11-14 13:00:46 +00:00
|
|
|
- LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
|
2019-06-28 23:35:32 +00:00
|
|
|
artifacts:
|
2019-11-17 19:33:01 +00:00
|
|
|
when: always
|
2020-03-06 11:35:17 +00:00
|
|
|
name: "mesa_${CI_JOB_NAME}"
|
2019-06-28 23:35:32 +00:00
|
|
|
paths:
|
|
|
|
- results/
|
2019-11-18 08:30:27 +00:00
|
|
|
|
2020-09-28 22:40:13 +00:00
|
|
|
.use-x86_test-gl:
|
2019-11-18 08:30:27 +00:00
|
|
|
extends:
|
|
|
|
- .test
|
2020-12-11 18:00:40 +00:00
|
|
|
- .set-image-base-tag
|
2019-11-18 08:30:27 +00:00
|
|
|
variables:
|
2020-12-11 18:00:40 +00:00
|
|
|
MESA_BASE_TAG: *x86_test-base
|
2020-12-09 17:58:48 +00:00
|
|
|
MESA_IMAGE_PATH: "debian/x86_test-gl"
|
2020-12-09 17:48:26 +00:00
|
|
|
MESA_IMAGE_TAG: *x86_test-gl
|
2019-10-22 09:19:17 +00:00
|
|
|
needs:
|
2019-11-18 08:15:12 +00:00
|
|
|
- x86_test-gl
|
2019-06-28 23:35:32 +00:00
|
|
|
|
2020-09-28 22:40:13 +00:00
|
|
|
.test-gl:
|
|
|
|
extends:
|
|
|
|
- .use-x86_test-gl
|
|
|
|
needs:
|
|
|
|
- x86_test-gl
|
|
|
|
- meson-testing
|
|
|
|
|
2019-11-18 08:30:27 +00:00
|
|
|
.test-vk:
|
|
|
|
extends:
|
|
|
|
- .test
|
2020-12-11 18:00:40 +00:00
|
|
|
- .set-image-base-tag
|
2019-11-18 08:30:27 +00:00
|
|
|
variables:
|
2020-12-11 18:00:40 +00:00
|
|
|
MESA_BASE_TAG: *x86_test-base
|
2020-12-09 17:58:48 +00:00
|
|
|
MESA_IMAGE_PATH: "debian/x86_test-vk"
|
2020-12-09 17:48:26 +00:00
|
|
|
MESA_IMAGE_TAG: *x86_test-vk
|
2019-11-18 08:30:27 +00:00
|
|
|
needs:
|
|
|
|
- meson-testing
|
|
|
|
- x86_test-vk
|
|
|
|
|
2020-09-28 22:40:13 +00:00
|
|
|
.test-cl:
|
|
|
|
extends:
|
|
|
|
- .use-x86_test-gl
|
|
|
|
needs:
|
|
|
|
- x86_test-gl
|
|
|
|
- meson-clover-testing
|
|
|
|
|
2019-10-22 15:16:52 +00:00
|
|
|
.piglit-test:
|
2019-11-25 17:42:10 +00:00
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
2020-03-06 11:35:17 +00:00
|
|
|
name: "mesa_${CI_JOB_NAME}"
|
2019-11-25 17:42:10 +00:00
|
|
|
paths:
|
2021-02-16 22:28:02 +00:00
|
|
|
- results/summary/
|
2020-12-11 18:40:57 +00:00
|
|
|
- results/*.txt
|
2019-10-22 15:16:52 +00:00
|
|
|
variables:
|
|
|
|
PIGLIT_NO_WINDOW: 1
|
|
|
|
script:
|
2020-03-24 11:58:30 +00:00
|
|
|
- install/piglit/run.sh
|
2019-10-22 15:16:52 +00:00
|
|
|
|
2020-08-19 13:42:56 +00:00
|
|
|
.piglit-traces-test:
|
2020-09-28 22:40:13 +00:00
|
|
|
extends:
|
|
|
|
- .piglit-test
|
2020-08-19 13:42:56 +00:00
|
|
|
cache:
|
|
|
|
key: ${CI_JOB_NAME}
|
|
|
|
paths:
|
|
|
|
- replayer-db/
|
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
name: "mesa_${CI_JOB_NAME}"
|
|
|
|
reports:
|
|
|
|
junit: results/junit.xml
|
|
|
|
variables:
|
|
|
|
PIGLIT_PROFILES: replay
|
|
|
|
PIGLIT_REPLAY_UPLOAD_TO_MINIO: 1
|
|
|
|
PIGLIT_REPLAY_EXTRA_ARGS: --keep-image --db-path ${CI_PROJECT_DIR}/replayer-db/
|
2021-01-16 00:46:54 +00:00
|
|
|
PIGLIT_REPLAY_REFERENCE_IMAGES_BASE_URL: "/mesa-tracie-results/$FDO_UPSTREAM_REPO"
|
2020-08-19 13:42:56 +00:00
|
|
|
PIGLIT_REPLAY_ARTIFACTS_BASE_URL: "/artifacts/$CI_PROJECT_PATH/$CI_PIPELINE_ID/$CI_JOB_ID"
|
|
|
|
PIGLIT_JUNIT_RESULTS: 1
|
|
|
|
|
2019-11-19 07:39:00 +00:00
|
|
|
.deqp-test:
|
2019-10-22 15:16:52 +00:00
|
|
|
script:
|
2020-03-24 11:58:30 +00:00
|
|
|
- ./install/deqp-runner.sh
|
2020-12-19 00:47:51 +00:00
|
|
|
artifacts:
|
2021-02-05 22:46:48 +00:00
|
|
|
exclude:
|
|
|
|
- results/*.shader_cache
|
2020-12-19 00:47:51 +00:00
|
|
|
reports:
|
|
|
|
junit: results/junit.xml
|
2019-10-22 15:16:52 +00:00
|
|
|
|
2019-11-19 07:39:00 +00:00
|
|
|
.deqp-test-vk:
|
|
|
|
extends:
|
|
|
|
- .deqp-test
|
|
|
|
variables:
|
|
|
|
DEQP_VER: vk
|
|
|
|
|
2020-02-26 08:33:14 +00:00
|
|
|
.fossilize-test:
|
|
|
|
script:
|
2020-03-24 11:58:30 +00:00
|
|
|
- ./install/fossilize-runner.sh
|
2020-06-25 09:21:12 +00:00
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
name: "mesa_${CI_JOB_NAME}"
|
|
|
|
paths:
|
|
|
|
- results/
|
2020-02-26 08:33:14 +00:00
|
|
|
|
2020-03-19 18:45:01 +00:00
|
|
|
# Rules for tests that should not be present in MRs or the main
|
|
|
|
# project's pipeline (don't block marge or report red on
|
2021-04-26 20:16:55 +00:00
|
|
|
# mesa/mesa main) but should be present on pipelines in personal
|
2020-03-19 18:45:01 +00:00
|
|
|
# branches (so you can opt in to running the flaky test when you want
|
|
|
|
# to).
|
|
|
|
.test-manual:
|
|
|
|
rules:
|
2020-07-07 13:02:35 +00:00
|
|
|
- *ignore_scheduled_pipelines
|
2020-09-08 15:52:24 +00:00
|
|
|
- if: *is-forked-branch
|
2020-04-11 13:32:02 +00:00
|
|
|
changes:
|
|
|
|
*all_paths
|
|
|
|
when: manual
|
|
|
|
- when: never
|
2020-12-03 17:59:25 +00:00
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
2020-03-19 18:45:01 +00:00
|
|
|
|
2021-04-22 11:17:40 +00:00
|
|
|
# The above .test-manual rules doesn't allow the jobs to be available for MRs
|
|
|
|
# but we should have an option to have manual jobs in MRs as well.
|
|
|
|
.test-manual-mr:
|
|
|
|
rules:
|
|
|
|
- *ignore_scheduled_pipelines
|
|
|
|
- if: *is-forked-branch-or-pre-merge-not-for-marge
|
|
|
|
changes:
|
|
|
|
*all_paths
|
|
|
|
when: manual
|
|
|
|
- when: never
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
|
2020-03-03 22:38:09 +00:00
|
|
|
.baremetal-test:
|
|
|
|
extends:
|
|
|
|
- .ci-run-policy
|
2020-06-08 22:09:51 +00:00
|
|
|
- .test
|
2020-07-21 14:13:37 +00:00
|
|
|
# Cancel job if a newer commit is pushed to the same branch
|
|
|
|
interruptible: true
|
2020-03-03 22:38:09 +00:00
|
|
|
stage: test
|
2021-01-21 23:41:18 +00:00
|
|
|
before_script:
|
|
|
|
# Use this instead of gitlab's artifacts download because it hits packet.net
|
|
|
|
# instead of fd.o. Set FDO_HTTP_CACHE_URI to an http cache for your test lab to
|
|
|
|
# improve it even more (see https://docs.mesa3d.org/ci/bare-metal.html for
|
|
|
|
# setup).
|
2021-02-15 20:35:41 +00:00
|
|
|
- wget ${FDO_HTTP_CACHE_URI:-}https://minio-packet.freedesktop.org/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}/${MINIO_ARTIFACT_NAME}.tar.gz -S --progress=dot:giga -O- | tar -xz
|
2020-05-15 18:22:37 +00:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
name: "mesa_${CI_JOB_NAME}"
|
|
|
|
paths:
|
|
|
|
- results/
|
|
|
|
- serial*.txt
|
2020-12-21 18:55:40 +00:00
|
|
|
exclude:
|
|
|
|
- results/*.shader_cache
|
2020-12-19 00:47:51 +00:00
|
|
|
reports:
|
|
|
|
junit: results/junit.xml
|
2020-03-03 22:38:09 +00:00
|
|
|
|
2021-02-12 12:29:19 +00:00
|
|
|
.baremetal-test-armhf:
|
|
|
|
extends:
|
|
|
|
- .baremetal-test
|
|
|
|
variables:
|
2021-02-15 20:35:41 +00:00
|
|
|
MINIO_ARTIFACT_NAME: mesa-armhf
|
2021-02-12 12:29:19 +00:00
|
|
|
|
2020-12-15 23:47:51 +00:00
|
|
|
.baremetal-arm64-asan-test:
|
|
|
|
variables:
|
2021-03-19 11:52:35 +00:00
|
|
|
TEST_LD_PRELOAD: libasan.so.6
|
2020-12-15 23:47:51 +00:00
|
|
|
MINIO_ARTIFACT_NAME: mesa-arm64-asan
|
|
|
|
needs:
|
2021-03-30 10:54:15 +00:00
|
|
|
- arm_test
|
2020-12-15 23:47:51 +00:00
|
|
|
- job: meson-arm64-asan
|
|
|
|
artifacts: false
|
|
|
|
|
2020-11-14 19:50:18 +00:00
|
|
|
.baremetal-deqp-test:
|
|
|
|
variables:
|
|
|
|
BARE_METAL_TEST_SCRIPT: "/install/deqp-runner.sh"
|
|
|
|
DEQP_PARALLEL: 0 # Default to number of CPUs
|