1job_name: 'test-project: my_pipeline_info' 2device_type: my_fastboot_device_type 3visibility: 4 group: 5 - my_visibility_group 6priority: 75 7context: 8 extra_nfsroot_args: ' init=/init rootwait usbcore.quirks=0bda:8153:k' 9timeouts: 10 job: 11 minutes: 10 12 actions: 13 depthcharge-retry: 14 minutes: 4 15 depthcharge-start: 16 minutes: 1 17 depthcharge-action: 18 minutes: 15 19actions: 20- deploy: 21 timeout: 22 minutes: 10 23 to: nfs 24 nfsrootfs: 25 url: None 26 compression: zstd 27 format: tar 28 overlays: {} 29 namespace: dut 30- deploy: 31 timeout: 32 minutes: 5 33 to: downloads 34 os: oe 35 images: 36 kernel: 37 url: None/None 38 dtb: 39 url: None/my_dtb_filename.dtb 40 postprocess: 41 docker: 42 image: registry.gitlab.collabora.com/lava/health-check-docker 43 steps: 44 - cat Image.gz my_dtb_filename.dtb > Image.gz+dtb 45 - mkbootimg --kernel Image.gz+dtb --cmdline "root=/dev/nfs rw nfsroot=$NFS_SERVER_IP:$NFS_ROOTFS,tcp,hard,v3 46 ip=dhcp init=/init rootwait usbcore.quirks=0bda:8153:k" --pagesize 4096 --base 0x80000000 -o boot.img 47 namespace: dut 48- deploy: 49 timeout: 50 minutes: 10 51 to: fastboot 52 docker: 53 image: registry.gitlab.collabora.com/lava/health-check-docker 54 images: 55 boot: 56 url: downloads://boot.img 57 namespace: dut 58 failure_retry: 3 59- boot: 60 timeout: 61 minutes: 2 62 docker: 63 image: registry.gitlab.collabora.com/lava/health-check-docker 64 failure_retry: 3 65 method: fastboot 66 prompts: 67 - 'lava-shell:' 68 commands: 69 - set_active a 70 namespace: dut 71 auto_login: 72 login_commands: 73 - dropbear -R -B 74 - touch /dut_ready 75 login_prompt: 'ogin:' 76 username: '' 77- test: 78 namespace: dut 79 definitions: 80 - from: inline 81 name: setup-ssh-server 82 path: inline-setup-ssh-server 83 repository: 84 metadata: 85 format: Lava-Test Test Definition 1.0 86 name: dut-env-export 87 run: 88 steps: 89 - |- 90 echo test FASTBOOT 91 export CURRENT_SECTION=dut_boot 92 - export -p > /dut-env-vars.sh 93- test: 94 namespace: container 95 timeout: 96 minutes: 10 97 failure_retry: 3 98 definitions: 99 - name: docker_ssh_client 100 from: inline 101 path: inline/docker_ssh_client.yaml 102 repository: 103 metadata: 104 name: mesa 105 description: Mesa test plan 106 format: Lava-Test Test Definition 1.0 107 run: 108 steps: 109 - |- 110 set -ex 111 timeout 1m bash << EOF 112 while [ -z "$(lava-target-ip)" ]; do 113 echo Waiting for DUT to join LAN; 114 sleep 1; 115 done 116 EOF 117 118 ping -c 5 -w 60 $(lava-target-ip) 119 120 lava_ssh_test_case() { 121 set -x 122 local test_case="${1}" 123 shift 124 lava-test-case "${test_case}" --shell \ 125 ssh ${SSH_PTY_ARGS:--T} \ 126 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ 127 root@$(lava-target-ip) "${@}" 128 } 129 - lava_ssh_test_case 'wait_for_dut_login' << EOF 130 - while [ ! -e /dut_ready ]; do sleep 1; done; 131 - EOF 132 - |- 133 lava_ssh_test_case 'artifact_download' 'bash --' << EOF 134 source /dut-env-vars.sh 135 set -e 136 echo Could not find jwt file, disabling S3 requests... 137 sed -i '/S3_RESULTS_UPLOAD/d' /set-job-env-vars.sh 138 EOF 139 - export SSH_PTY_ARGS=-tt 140 - lava_ssh_test_case 'test-project_dut' '"cd / && /init-stage2.sh"' 141 docker: 142 image: 143