2019-09-18 22:03:36 +08:00
|
|
|
.lava-test:
|
2019-09-18 22:43:30 +08:00
|
|
|
extends:
|
2019-12-06 16:39:40 +08:00
|
|
|
- .ci-run-policy
|
2020-07-21 22:13:37 +08:00
|
|
|
# Cancel job if a newer commit is pushed to the same branch
|
|
|
|
interruptible: true
|
2019-10-22 23:16:52 +08:00
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none # testing doesn't build anything from source
|
2019-12-18 23:11:33 +08:00
|
|
|
ENV_VARS: "DEQP_PARALLEL=6"
|
2021-03-02 05:03:48 +08:00
|
|
|
FIXED_ENV_VARS: "CI_PIPELINE_ID=${CI_PIPELINE_ID} CI_JOB_ID=${CI_JOB_ID} CI_PAGES_DOMAIN=${CI_PAGES_DOMAIN} CI_PROJECT_NAME=${CI_PROJECT_NAME} CI_PROJECT_DIR=${CI_PROJECT_DIR} CI_PROJECT_PATH=${CI_PROJECT_PATH} CI_PROJECT_ROOT_NAMESPACE=${CI_PROJECT_ROOT_NAMESPACE} CI_JOB_JWT=${CI_JOB_JWT} CI_SERVER_URL=${CI_SERVER_URL} DRIVER_NAME=${DRIVER_NAME} FDO_UPSTREAM_REPO=${FDO_UPSTREAM_REPO} PIGLIT_NO_WINDOW=1 PIGLIT_REPLAY_UPLOAD_TO_MINIO=1 MINIO_HOST=${MINIO_HOST} LAVA_TEST_SCRIPT=${LAVA_TEST_SCRIPT} TEST_SUITE=${TEST_SUITE} VK_DRIVER=${VK_DRIVER} FLAKES_CHANNEL=${FLAKES_CHANNEL}"
|
2019-12-18 23:11:33 +08:00
|
|
|
DEQP_VERSION: gles2
|
2021-04-13 13:40:36 +08:00
|
|
|
ARTIFACTS_PREFIX: "https://${MINIO_HOST}/mesa-lava"
|
2021-04-16 21:55:55 +08:00
|
|
|
MESA_URL: "http://caching-proxy/cache/?uri=https://${MINIO_HOST}/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}/mesa-${ARCH}.tar.gz"
|
2019-04-30 00:33:22 +08:00
|
|
|
script:
|
2020-07-09 22:14:14 +08:00
|
|
|
# Try to use the kernel and rootfs built in mainline first, to save cycles
|
|
|
|
- >
|
2021-04-13 13:40:36 +08:00
|
|
|
if wget -q --method=HEAD "${ARTIFACTS_PREFIX}/${FDO_UPSTREAM_REPO}/${DISTRIBUTION_TAG}/${ARCH}/done"; then
|
|
|
|
ARTIFACTS_URL="${ARTIFACTS_PREFIX}/${FDO_UPSTREAM_REPO}/${DISTRIBUTION_TAG}/${ARCH}"
|
2020-07-09 22:14:14 +08:00
|
|
|
else
|
2021-04-13 13:40:36 +08:00
|
|
|
ARTIFACTS_URL="${ARTIFACTS_PREFIX}/${CI_PROJECT_PATH}/${DISTRIBUTION_TAG}/${ARCH}"
|
2020-07-09 22:14:14 +08:00
|
|
|
fi
|
2021-04-17 05:18:07 +08:00
|
|
|
- rm -rf results
|
|
|
|
- mkdir -p results
|
2019-12-17 18:50:14 +08:00
|
|
|
- >
|
2021-05-29 08:38:54 +08:00
|
|
|
artifacts/lava_job_submitter.py \
|
2021-02-01 18:42:43 +08:00
|
|
|
--template artifacts/lava.yml.jinja2 \
|
2019-10-15 21:22:07 +08:00
|
|
|
--pipeline-info "$CI_PIPELINE_URL on $CI_COMMIT_REF_NAME ${CI_NODE_INDEX}/${CI_NODE_TOTAL}" \
|
2020-04-01 19:07:46 +08:00
|
|
|
--base-artifacts-url ${ARTIFACTS_URL} \
|
|
|
|
--mesa-url ${MESA_URL} \
|
2019-12-17 18:50:14 +08:00
|
|
|
--device-type ${DEVICE_TYPE} \
|
2020-07-03 16:04:20 +08:00
|
|
|
--dtb ${DTB} \
|
2020-07-10 04:29:39 +08:00
|
|
|
--env-vars "${ENV_VARS} ${FIXED_ENV_VARS}" \
|
2019-12-18 23:11:33 +08:00
|
|
|
--deqp-version ${DEQP_VERSION} \
|
2019-12-17 18:50:14 +08:00
|
|
|
--kernel-image-name ${KERNEL_IMAGE_NAME} \
|
|
|
|
--kernel-image-type "${KERNEL_IMAGE_TYPE}" \
|
|
|
|
--gpu-version ${GPU_VERSION} \
|
|
|
|
--boot-method ${BOOT_METHOD} \
|
2020-01-17 11:37:32 +08:00
|
|
|
--lava-tags "${LAVA_TAGS}" \
|
|
|
|
--ci-node-index "${CI_NODE_INDEX}" \
|
2021-05-29 08:38:54 +08:00
|
|
|
--ci-node-total "${CI_NODE_TOTAL}" | tee results/lava.log
|
2021-04-17 05:18:07 +08:00
|
|
|
- cp lava.yml results/.
|
2019-04-30 00:33:22 +08:00
|
|
|
artifacts:
|
2020-03-06 19:35:17 +08:00
|
|
|
name: "mesa_${CI_JOB_NAME}"
|
2019-04-30 00:33:22 +08:00
|
|
|
when: always
|
|
|
|
paths:
|
2021-04-17 05:18:07 +08:00
|
|
|
- results/
|
|
|
|
exclude:
|
|
|
|
- results/*.shader_cache
|
|
|
|
after_script:
|
|
|
|
- wget -q "https://minio-packet.freedesktop.org/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}/${CI_JOB_ID}/results.tar.gz" -O- | tar -xz
|
2019-05-03 23:48:48 +08:00
|
|
|
|
2019-10-06 23:49:56 +08:00
|
|
|
.lava-test:armhf:
|
2019-11-12 01:13:28 +08:00
|
|
|
variables:
|
2019-12-17 18:50:14 +08:00
|
|
|
ARCH: armhf
|
|
|
|
KERNEL_IMAGE_NAME: zImage
|
|
|
|
KERNEL_IMAGE_TYPE: "type:\ zimage"
|
|
|
|
BOOT_METHOD: u-boot
|
2020-01-28 22:19:53 +08:00
|
|
|
TEST_SUITE: "deqp"
|
2021-02-01 18:42:43 +08:00
|
|
|
LAVA_TEST_SCRIPT: "/install/deqp-runner.sh"
|
2019-12-17 18:50:14 +08:00
|
|
|
extends:
|
|
|
|
- .lava-test
|
|
|
|
- .use-arm_build
|
2021-04-13 13:40:36 +08:00
|
|
|
- .use-kernel+rootfs-arm
|
2019-12-17 18:50:14 +08:00
|
|
|
needs:
|
2020-04-01 19:07:46 +08:00
|
|
|
- kernel+rootfs_armhf
|
2019-12-17 18:50:14 +08:00
|
|
|
- meson-armhf
|
2019-05-03 23:48:48 +08:00
|
|
|
|
2019-10-06 23:49:56 +08:00
|
|
|
.lava-test:arm64:
|
2019-11-12 01:13:28 +08:00
|
|
|
variables:
|
2019-12-17 18:50:14 +08:00
|
|
|
ARCH: arm64
|
|
|
|
KERNEL_IMAGE_NAME: Image
|
|
|
|
KERNEL_IMAGE_TYPE: "type:\ image"
|
|
|
|
BOOT_METHOD: u-boot
|
2020-01-28 22:19:53 +08:00
|
|
|
TEST_SUITE: "deqp"
|
2021-02-01 18:42:43 +08:00
|
|
|
LAVA_TEST_SCRIPT: "/install/deqp-runner.sh"
|
2019-12-17 18:50:14 +08:00
|
|
|
extends:
|
|
|
|
- .lava-test
|
|
|
|
- .use-arm_build
|
2021-04-13 13:40:36 +08:00
|
|
|
- .use-kernel+rootfs-arm
|
2020-01-28 22:19:53 +08:00
|
|
|
dependencies:
|
|
|
|
- meson-arm64
|
2019-12-17 18:50:14 +08:00
|
|
|
needs:
|
2020-07-13 23:20:28 +08:00
|
|
|
- kernel+rootfs_arm64
|
2019-12-17 18:50:14 +08:00
|
|
|
- meson-arm64
|
2019-10-06 23:49:56 +08:00
|
|
|
|
2020-07-03 16:04:20 +08:00
|
|
|
.lava-test:amd64:
|
|
|
|
variables:
|
|
|
|
ARCH: amd64
|
|
|
|
KERNEL_IMAGE_NAME: bzImage
|
|
|
|
KERNEL_IMAGE_TYPE: "type:\ zimage"
|
|
|
|
BOOT_METHOD: u-boot
|
|
|
|
TEST_SUITE: "deqp"
|
2021-02-01 18:42:43 +08:00
|
|
|
LAVA_TEST_SCRIPT: "/install/deqp-runner.sh"
|
2020-07-03 16:04:20 +08:00
|
|
|
extends:
|
2021-05-18 19:14:35 +08:00
|
|
|
- .use-x86_build-base # for same $MESA_ARTIFACTS_BASE_TAG as in kernel+rootfs_amd64
|
2021-02-11 02:19:35 +08:00
|
|
|
- .use-arm_build # ARM because it must match the architecture of the runner
|
2020-12-16 19:17:46 +08:00
|
|
|
- .lava-test
|
2021-04-13 13:40:36 +08:00
|
|
|
- .use-kernel+rootfs-amd64
|
2020-07-03 16:04:20 +08:00
|
|
|
needs:
|
|
|
|
- kernel+rootfs_amd64
|
2021-02-11 02:19:35 +08:00
|
|
|
- arm_build # ARM because it must match the architecture of the runner
|
2020-07-03 16:04:20 +08:00
|
|
|
- meson-testing
|
|
|
|
|
2020-09-04 18:53:41 +08:00
|
|
|
.lava-traces-base:
|
2021-04-07 15:23:13 +08:00
|
|
|
variables:
|
|
|
|
LAVA_TEST_SCRIPT: "/install/piglit/run.sh"
|
2020-09-04 18:53:41 +08:00
|
|
|
artifacts:
|
|
|
|
reports:
|
2021-04-17 05:18:07 +08:00
|
|
|
junit: results/junit.xml
|
2020-09-04 18:53:41 +08:00
|
|
|
|
2020-08-28 03:18:00 +08:00
|
|
|
.lava-piglit:
|
2020-07-03 16:04:20 +08:00
|
|
|
variables:
|
2020-08-28 03:18:00 +08:00
|
|
|
TEST_SUITE: "piglit"
|
2021-04-07 15:23:13 +08:00
|
|
|
LAVA_TEST_SCRIPT: "/install/piglit/piglit-runner.sh"
|
2020-08-28 03:18:00 +08:00
|
|
|
|
|
|
|
.lava-piglit-traces:amd64:
|
2020-07-03 16:04:20 +08:00
|
|
|
extends:
|
|
|
|
- .lava-test:amd64
|
2020-08-28 03:18:00 +08:00
|
|
|
- .lava-piglit
|
2020-09-04 18:53:41 +08:00
|
|
|
- .lava-traces-base
|
2020-07-03 16:04:20 +08:00
|
|
|
|
2020-08-28 03:18:00 +08:00
|
|
|
.lava-piglit-traces:armhf:
|
2020-01-28 22:19:53 +08:00
|
|
|
extends:
|
|
|
|
- .lava-test:armhf
|
2020-08-28 03:18:00 +08:00
|
|
|
- .lava-piglit
|
2020-09-04 18:53:41 +08:00
|
|
|
- .lava-traces-base
|
2020-01-28 22:19:53 +08:00
|
|
|
|
2020-08-28 03:18:00 +08:00
|
|
|
.lava-piglit-traces:arm64:
|
2020-01-28 22:19:53 +08:00
|
|
|
extends:
|
|
|
|
- .lava-test:arm64
|
2020-08-28 03:18:00 +08:00
|
|
|
- .lava-piglit
|
2020-09-04 18:53:41 +08:00
|
|
|
- .lava-traces-base
|
2021-04-07 15:23:13 +08:00
|
|
|
|
|
|
|
.lava-piglit:amd64:
|
|
|
|
extends:
|
|
|
|
- .lava-test:amd64
|
|
|
|
- .lava-piglit
|