Job definition file - 3875 download


1
device_type: beaglebone-black
2
job_name: "[lavafed 2021.09.0042.ge3e53c6e4] beaglebone-black - interactive"
3
priority: medium
4
5
timeouts:
6
job:
7
seconds: 600
8
9
visibility: public
10
11
12
tags:
13
- staging.validation.linaro.org
14
15
metadata:
16
device.name: "staging-black01"
17
device.type: "beaglebone-black"
18
job.url: "https://federation.lavasoftware.org/lava/scheduler/job/{id}"
19
job.name: "beaglebone-black - interactive"
20
job.type: "test"
21
lab.name: "staging.validation.linaro.org"
22
slave.arch: "amd64"
23
slave.version: "2021.09.0042.ge3e53c6e4"
24
features.0.name: "deploy.tftp"
25
features.0.type: "device"
26
features.0.description: "Deploy to tftp"
27
features.0.action: "deploy"
28
features.1.name: "boot.bootloader.u-boot"
29
features.1.type: "device"
30
features.1.description: "Boot to u-boot"
31
features.1.action: "boot"
32
features.2.name: "test.interactive"
33
features.2.type: "device"
34
features.2.description: "Interactive test"
35
features.2.action: "test"
36
37
notify:
38
criteria:
39
status: finished
40
callback:
41
url: "https://federation.lavasoftware.org/api/v0.1/jobs/"
42
token: "federation.lavasoftware.org"
43
method: POST
44
dataset: all
45
content-type: json
46
47
48
49
actions:
50
- deploy:
51
timeout:
52
minutes: 4
53
to: tftp
54
kernel:
55
url: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/jessie/armhf/4/vmlinuz
56
type: zimage
57
- boot:
58
method: bootloader
59
bootloader: u-boot
60
prompts: ["U-Boot# "]
61
timeout:
62
minutes: 3
63
commands: []
64
- test:
65
timeout:
66
minutes: 4
67
interactive:
68
- name: basic-cmds
69
prompts: ["=> ", "U-Boot# "]
70
script:
71
- command: echo "u-boot echo test"
72
name: echo
73
successes:
74
- message: "u-boot echo test"
75
- command: version
76
name: version
77
successes:
78
- message: "U-Boot"
79
- command: help test
80
name: help
81
successes:
82
- message: "test - minimal test like /bin/sh"
83
# saveenv and printenv
84
- command: setenv test_var test123printenv
85
- command: printenv
86
name: setenv-and-printenv
87
successes:
88
- message: "test_var=test123"
89
- name: dhcp-cmds
90
prompts: ["=> ", "U-Boot# "]
91
script:
92
# dhcp
93
- command: setenv autoload no ; dhcp
94
name: dhcp
95
successes:
96
- message: "DHCP client bound to address"
97
- name: tftp-cmds
98
prompts: ["=> ", "U-Boot# "]
99
script:
100
# TFTP
101
- command: setenv serverip {SERVER_IP} ; tftp {KERNEL_ADDR} {KERNEL}
102
name: tftp
103
successes:
104
- message: "Bytes transferred ="

Pipeline Description YAML

Pipeline jobs use the job definition to generate a descriptive YAML file when the pipeline is validated. The file represents the data sent to the dispatcher at the start of the job, including details of the device as well as the job parameters and the details of the parameters sent to each of the deploy, boot and test actions in the job pipeline.

Click on the Action headings below to see some of the structural information from the description file for this job or download the complete file as YAML using the link above. The name of the action can be used to change the timeout of that specific action. e.g.

timeouts:
  apply-overlay-image:
    minutes: 5

The information in this pane is based on the validation step prior to the job starting to run. This includes checks on remote URLs but does not operations which are only done at runtime. Therefore, the filesize of remote downloads can be displayed, based on the headers when checking that the URL was correct - checksums of the actual download will not appear as the actual download only happens after the job has started.

Pipeline

[ Sections ] [ List of actions ]

1: tftp deployment

name
tftp-deploy
description
download files and deploy using tftp
output
3875#action_1
timeout
240 seconds
[ Sections ] [ List of actions ]

1.1: download-retry

name
download-retry
description
download with retry
output
3875#action_1.1
timeout
240 seconds
[ Sections ] [ List of actions ]

1.1.1: http download

name
http-download
description
use http to download the file
output
3875#action_1.1.1
timeout
240 seconds
URL
http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/jessie/armhf/4/vmlinuz
[ Sections ] [ List of actions ]

1.2: extract ramdisk or nfsrootfs

name
prepare-tftp-overlay
description
extract ramdisk or nfsrootfs in preparation for lava overlay
output
3875#action_1.2
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.1: unpack nfsrootfs, ready to apply lava overlay

name
extract-nfsrootfs
description
unpack nfsrootfs
output
3875#action_1.2.1
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.2: overlay the lava support scripts

name
lava-overlay
description
add lava scripts during deployment for test shell use
output
3875#action_1.2.2
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.3: extract the ramdisk

name
extract-overlay-ramdisk
description
extract ramdisk to a temporary directory
output
3875#action_1.2.3
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.4: extract kernel modules

name
extract-modules
description
extract supplied kernel modules
output
3875#action_1.2.4
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.5: apply lava overlay test files

name
apply-overlay-tftp
description
unpack the overlay into the nfsrootfs or ramdisk
output
3875#action_1.2.5
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.6: add a kernel conversion

name
prepare-kernel
description
populates the pipeline with a kernel conversion action
output
3875#action_1.2.6
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.6.1: prepare/convert kernel

name
uboot-prepare-kernel
description
convert kernel to uimage
output
3875#action_1.2.6.1
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.7: add commands to installer config

name
configure-preseed-file
description
add commands to automated installers, to copy the lava test overlay to the installed system
output
3875#action_1.2.7
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.8: compress ramdisk with overlay

name
compress-ramdisk
description
recreate a ramdisk with the overlay applied.
output
3875#action_1.2.8
timeout
240 seconds
[ Sections ] [ List of actions ]

1.3: create lxc udev rule

name
lxc-create-udev-rule-action
description
create lxc udev rule action
output
3875#action_1.3
timeout
240 seconds
[ Sections ] [ List of actions ]

2: boot bootloader retry

name
boot-bootloader-retry
description
boot to bootloader with retry
output
3875#action_2
timeout
180 seconds
[ Sections ] [ List of actions ]

2.1: replace placeholders with job data

name
bootloader-overlay
description
substitute job data into bootloader command list
output
3875#action_2.1
timeout
180 seconds
[ Sections ] [ List of actions ]

2.2: boot bootloader

name
boot-bootloader
description
boot to bootloader
output
3875#action_2.2
timeout
180 seconds
[ Sections ] [ List of actions ]

2.2.1: run connection command

name
connect-device
description
use the configured command to connect serial to the device
output
3875#action_2.2.1
timeout
180 seconds
[ Sections ] [ List of actions ]

2.2.2: reboot the device

name
reset-device
description
reboot or power-cycle the device
output
3875#action_2.2.2
timeout
180 seconds
[ Sections ] [ List of actions ]

2.2.2.1: hard reboot using PDU

name
pdu-reboot
description
issue commands to a PDU to power cycle a device
output
3875#action_2.2.2.1
timeout
180 seconds
[ Sections ] [ List of actions ]

2.2.3: interrupt bootloader to get an interactive shell

name
bootloader-interrupt
description
interrupt bootloader
output
3875#action_2.2.3
timeout
180 seconds
[ Sections ] [ List of actions ]

2.2.4: interactive bootloader

name
bootloader-commands
description
send commands to bootloader
output
3875#action_2.2.4
timeout
180 seconds
[ Sections ] [ List of actions ]

3: Retry support for Lava Test Interactive

name
lava-test-interactive-retry
description
Retry wrapper for lava-test-interactive
output
3875#action_3
timeout
240 seconds
[ Sections ] [ List of actions ]

3.1: Lava Test Interactive

name
lava-test-interactive
description
Executing lava-test-interactive
output
3875#action_3.1
timeout
240 seconds
[ Sections ] [ List of actions ]

4: finalize the job

name
finalize
description
finish the process and cleanup
output
3875#action_4
timeout
30 seconds
[ Sections ] [ List of actions ]

4.1: send power_off command

name
power-off
description
discontinue power to device
output
3875#action_4.1
timeout
10 seconds
[ Sections ] [ List of actions ]

4.2: Read from other namespaces

name
read-feedback
description
Check for messages on all other namespaces
output
3875#action_4.2
timeout
30 seconds

Pipeline actions

Pipeline sections