lava-gitlab-ci.yml 3.55 KB
Newer Older
1
.lava-test:
2
  extends:
3
    - .ci-run-policy
4
5
  # Cancel job if a newer commit is pushed to the same branch
  interruptible: true
6
7
  variables:
    GIT_STRATEGY: none # testing doesn't build anything from source
8
    ENV_VARS: "DEQP_PARALLEL=6"
9
    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_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} VK_DRIVER=${VK_DRIVER} FLAKES_CHANNEL=${FLAKES_CHANNEL} PIPELINE_ARTIFACTS_BASE=${PIPELINE_ARTIFACTS_BASE}"
10
    DEQP_VERSION: gles2
11
12
13
14
15
16
    # proxy used to cache data locally
    FDO_HTTP_CACHE_URI: "http://caching-proxy/cache/?uri="
    # base system generated by the container build job, shared between many pipelines
    BASE_SYSTEM_HOST_PREFIX: "${MINIO_HOST}/mesa-lava"
    BASE_SYSTEM_MAINLINE_HOST_PATH: "${BASE_SYSTEM_HOST_PREFIX}/${FDO_UPSTREAM_REPO}/${DISTRIBUTION_TAG}/${ARCH}"
    BASE_SYSTEM_FORK_HOST_PATH: "${BASE_SYSTEM_HOST_PREFIX}/${CI_PROJECT_PATH}/${DISTRIBUTION_TAG}/${ARCH}"
17
    # per-job build artifacts
18
19
    MESA_BUILD_PATH: "${PIPELINE_ARTIFACTS_BASE}/mesa-${ARCH}.tar.gz"
    JOB_RESULTS_PATH: "${PIPELINE_ARTIFACTS_BASE}/${CI_JOB_ID}/results.tar.gz"
Tomeu Vizoso's avatar
Tomeu Vizoso committed
20
  script:
21
    - ./artifacts/lava/lava-submit.sh
Tomeu Vizoso's avatar
Tomeu Vizoso committed
22
  artifacts:
23
    name: "mesa_${CI_JOB_NAME}"
Tomeu Vizoso's avatar
Tomeu Vizoso committed
24
25
    when: always
    paths:
26
27
28
29
      - results/
    exclude:
      - results/*.shader_cache
  after_script:
30
    - wget -q "https://${JOB_RESULTS_PATH}" -O- | tar -xz
31

32
.lava-test:armhf:
33
  variables:
34
35
36
37
    ARCH: armhf
    KERNEL_IMAGE_NAME: zImage
    KERNEL_IMAGE_TYPE: "type:\ zimage"
    BOOT_METHOD: u-boot
38
    LAVA_TEST_SCRIPT: "/install/deqp-runner.sh"
39
  extends:
40
41
    - .use-arm_build # for same $MESA_ARTIFACTS_TAG as in kernel+rootfs_armhf
    - .use-x86_build
42
    - .lava-test
43
    - .use-kernel+rootfs-arm
44
  needs:
45
    - kernel+rootfs_armhf
46
    - x86_build
47
    - meson-armhf
48

49
.lava-test:arm64:
50
  variables:
51
52
53
54
    ARCH: arm64
    KERNEL_IMAGE_NAME: Image
    KERNEL_IMAGE_TYPE: "type:\ image"
    BOOT_METHOD: u-boot
55
    LAVA_TEST_SCRIPT: "/install/deqp-runner.sh"
56
  extends:
57
58
    - .use-arm_build # for same $MESA_ARTIFACTS_TAG as in kernel+rootfs_arm64
    - .use-x86_build
59
    - .lava-test
60
    - .use-kernel+rootfs-arm
61
62
  dependencies:
    - meson-arm64
63
  needs:
64
    - kernel+rootfs_arm64
65
    - x86_build
66
    - meson-arm64
67

68
69
70
71
72
73
.lava-test:amd64:
  variables:
    ARCH: amd64
    KERNEL_IMAGE_NAME: bzImage
    KERNEL_IMAGE_TYPE: "type:\ zimage"
    BOOT_METHOD: u-boot
74
    LAVA_TEST_SCRIPT: "/install/deqp-runner.sh"
75
  extends:
76
    - .use-x86_build-base # for same $MESA_ARTIFACTS_BASE_TAG as in kernel+rootfs_amd64
77
    - .use-x86_build
78
    - .lava-test
79
    - .use-kernel+rootfs-amd64
80
81
82
83
  needs:
    - kernel+rootfs_amd64
    - meson-testing

84
.lava-traces-base:
85
86
  variables:
    LAVA_TEST_SCRIPT: "/install/piglit/run.sh"
87
88
  artifacts:
    reports:
89
      junit: results/junit.xml
90

91
.lava-piglit:
92
  variables:
93
    LAVA_TEST_SCRIPT: "/install/piglit/piglit-runner.sh"
94
95

.lava-piglit-traces:amd64:
96
97
  extends:
    - .lava-test:amd64
98
    - .lava-piglit
99
    - .lava-traces-base
100

101
.lava-piglit-traces:armhf:
102
103
  extends:
    - .lava-test:armhf
104
    - .lava-piglit
105
    - .lava-traces-base
106

107
.lava-piglit-traces:arm64:
108
109
  extends:
    - .lava-test:arm64
110
    - .lava-piglit
111
    - .lava-traces-base
112
113
114
115
116

.lava-piglit:amd64:
  extends:
    - .lava-test:amd64
    - .lava-piglit