X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=.gitlab-ci%2Flava-deqp.yml.jinja2;h=e7d980ec0ccbcaaf447a70179c46747ec689e440;hb=24378086710bae7eb7b6d0cb4ec0e718d36ba32c;hp=0872ba29acce25d2f3b44eec2f6f09631a43db80;hpb=54dbb55ea8203df354c406e67784ef6ca41ca89e;p=mesa.git diff --git a/.gitlab-ci/lava-deqp.yml.jinja2 b/.gitlab-ci/lava-deqp.yml.jinja2 index 0872ba29acc..e7d980ec0cc 100644 --- a/.gitlab-ci/lava-deqp.yml.jinja2 +++ b/.gitlab-ci/lava-deqp.yml.jinja2 @@ -1,4 +1,4 @@ -job_name: mesa-deqp-{{ gpu_version }} {{ pipeline_info }} +job_name: mesa-deqp-{{ deqp_version }}-{{ gpu_version }} {{ pipeline_info }} device_type: {{ device_type }} timeouts: job: @@ -11,8 +11,9 @@ timeouts: priority: 75 visibility: public {% if tags %} +{% set lavatags = tags.split(',') %} tags: -{% for tag in tags %} +{% for tag in lavatags %} - {{ tag }} {% endfor %} {% endif %} @@ -20,6 +21,13 @@ actions: - deploy: timeout: minutes: 10 +{% if boot_method == "fastboot" %} +{# fastboot has just one boot image with the dtb and rootfs packed in #} + to: fastboot + images: + boot: + url: {{ base_artifacts_url }}/{{ kernel_image_name }} +{% else %} to: tftp kernel: url: {{ base_artifacts_url }}/{{ kernel_image_name }} @@ -31,12 +39,23 @@ actions: compression: gz dtb: url: {{ base_artifacts_url }}/{{ device_type }}.dtb +{% endif %} os: oe - boot: timeout: minutes: 5 method: {{ boot_method }} +{% if boot_method == "fastboot" %} +{# + For fastboot, LAVA doesn't know how to unpack the rootfs/apply overlay/repack, + so we transfer the overlay over the network after boot. +#} + transfer_overlay: + download_command: wget -S --progress=dot:giga + unpack_command: tar -C / -xzf +{% else %} commands: ramdisk +{% endif %} prompts: - 'lava-shell:' - test: @@ -56,7 +75,7 @@ actions: steps: - mount -t proc none /proc - mount -t sysfs none /sys - - mount -t devtmpfs none /dev + - mount -t devtmpfs none /dev || echo possibly already mounted - mkdir -p /dev/pts - mount -t devpts devpts /dev/pts @@ -64,24 +83,17 @@ actions: - export {{ env_vars }} {% endif %} + # deqp-runner.sh assumes some stuff is in pwd + - cd / + - export DEQP_NO_SAVE_RESULTS=1 - 'export DEQP_RUNNER_OPTIONS="--compact-display false --shuffle false"' - export DEQP_EXPECTED_FAILS=deqp-{{ gpu_version }}-fails.txt - export DEQP_SKIPS=deqp-{{ gpu_version }}-skips.txt - export DEQP_VER={{ deqp_version }} - export LIBGL_DRIVERS_PATH=`pwd`/install/lib/dri - - export CI_NODE_INDEX={{ ci_node_index }} - - export CI_NODE_TOTAL={{ ci_node_total }} - - # Put stuff where the runner script expects it - - mkdir artifacts - - mkdir results - - mkdir -p install/lib - - cp /deqp/$DEQP_EXPECTED_FAILS artifacts/. - - cp /deqp/$DEQP_SKIPS artifacts/. - - mv /mesa/lib/* install/lib/. - - "if sh /deqp/deqp-runner.sh; then + - "if sh /install/deqp-runner.sh; then echo 'deqp: pass'; else echo 'deqp: fail';