drm/connector: Change DRM card alias from underscore to hyphen
[platform/kernel/linux-rpi.git] / drivers / gpu / drm / ci / lava-submit.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: MIT
3
4 set -e
5 set -x
6
7 # Try to use the kernel and rootfs built in mainline first, so we're more
8 # likely to hit cache
9 if curl -L --retry 4 -f --retry-all-errors --retry-delay 60 -s "https://${BASE_SYSTEM_MAINLINE_HOST_PATH}/done"; then
10         BASE_SYSTEM_HOST_PATH="${BASE_SYSTEM_MAINLINE_HOST_PATH}"
11 else
12         BASE_SYSTEM_HOST_PATH="${BASE_SYSTEM_FORK_HOST_PATH}"
13 fi
14
15 rm -rf results
16 mkdir -p results/job-rootfs-overlay/
17
18 cp artifacts/ci-common/capture-devcoredump.sh results/job-rootfs-overlay/
19 cp artifacts/ci-common/init-*.sh results/job-rootfs-overlay/
20 cp artifacts/ci-common/intel-gpu-freq.sh results/job-rootfs-overlay/
21 cp "$SCRIPTS_DIR"/setup-test-env.sh results/job-rootfs-overlay/
22
23 # Prepare env vars for upload.
24 section_start variables "Variables passed through:"
25 KERNEL_IMAGE_BASE_URL="https://${BASE_SYSTEM_HOST_PATH}" \
26         artifacts/ci-common/generate-env.sh | tee results/job-rootfs-overlay/set-job-env-vars.sh
27 section_end variables
28
29 tar zcf job-rootfs-overlay.tar.gz -C results/job-rootfs-overlay/ .
30 ci-fairy s3cp --token-file "${CI_JOB_JWT_FILE}" job-rootfs-overlay.tar.gz "https://${JOB_ROOTFS_OVERLAY_PATH}"
31
32 touch results/lava.log
33 tail -f results/lava.log &
34
35 PYTHONPATH=artifacts/ artifacts/lava/lava_job_submitter.py \
36         submit \
37         --dump-yaml \
38         --pipeline-info "$CI_JOB_NAME: $CI_PIPELINE_URL on $CI_COMMIT_REF_NAME ${CI_NODE_INDEX}/${CI_NODE_TOTAL}" \
39         --rootfs-url-prefix "https://${BASE_SYSTEM_HOST_PATH}" \
40         --kernel-url-prefix "https://${PIPELINE_ARTIFACTS_BASE}/${ARCH}" \
41         --build-url "${FDO_HTTP_CACHE_URI:-}https://${PIPELINE_ARTIFACTS_BASE}/${ARCH}/kernel-files.tar.zst" \
42         --job-rootfs-overlay-url "${FDO_HTTP_CACHE_URI:-}https://${JOB_ROOTFS_OVERLAY_PATH}" \
43         --job-timeout-min ${JOB_TIMEOUT:-80} \
44         --first-stage-init artifacts/ci-common/init-stage1.sh \
45         --ci-project-dir "${CI_PROJECT_DIR}" \
46         --device-type "${DEVICE_TYPE}" \
47         --dtb-filename "${DTB}" \
48         --jwt-file "${CI_JOB_JWT_FILE}" \
49         --kernel-image-name "${KERNEL_IMAGE_NAME}" \
50         --kernel-image-type "${KERNEL_IMAGE_TYPE}" \
51         --boot-method "${BOOT_METHOD}" \
52         --visibility-group "${VISIBILITY_GROUP}" \
53         --lava-tags "${LAVA_TAGS}" \
54         --mesa-job-name "$CI_JOB_NAME" \
55         --structured-log-file "results/lava_job_detail.json" \
56         --ssh-client-image "${LAVA_SSH_CLIENT_IMAGE}" \
57         >> results/lava.log