Job definition file - 4147 download


1
device_type: x86
2
job_name: "[lavafed 2021.11.0112.g9b3a9a21d] x86 - health-check"
3
priority: medium
4
5
timeouts:
6
job:
7
seconds: 900
8
9
visibility: public
10
11
12
tags:
13
- staging.validation.linaro.org
14
15
metadata:
16
device.name: "staging-x86-01"
17
device.type: "x86"
18
job.url: "https://federation.lavasoftware.org/lava/scheduler/job/{id}"
19
job.name: "x86 - health-check"
20
job.type: "test"
21
lab.name: "staging.validation.linaro.org"
22
slave.arch: "amd64"
23
slave.version: "2021.11.0112.g9b3a9a21d"
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.ipxe.ramdisk"
29
features.1.type: "device"
30
features.1.description: "Boot from ipxe with a ramdisk"
31
features.1.action: "boot"
32
features.2.name: "test.definition.git"
33
features.2.type: "device"
34
features.2.description: "Test definition from git"
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: 2
53
to: tftp
54
kernel:
55
url: http://images.validation.linaro.org/x86/ubuntu/vmlinuz-3.10-rc7-amd64
56
ramdisk:
57
url: http://images.validation.linaro.org/x86/ubuntu/ubuntu-precise-3.10-networking.gz
58
compression: gz
59
os: ubuntu
60
- boot:
61
timeout:
62
minutes: 8
63
method: ipxe
64
commands: ramdisk
65
parameters:
66
shutdown-message: "reboot: Restarting system"
67
prompts:
68
- 'root@master:'
69
- test:
70
timeout:
71
minutes: 2
72
definitions:
73
- repository: http://git.linaro.org/lava-team/lava-functional-tests.git
74
from: git
75
path: lava-test-shell/smoke-tests-basic.yaml
76
name: smoke-tests

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
4147#action_1
timeout
120 seconds
[ Sections ] [ List of actions ]

1.1: download-retry

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

1.1.1: http download

name
http-download
description
use http to download the file
output
4147#action_1.1.1
timeout
120 seconds
URL
http://images.validation.linaro.org/x86/ubuntu/ubuntu-precise-3.10-networking.gz
[ Sections ] [ List of actions ]

1.2: download-retry

name
download-retry
description
download with retry
output
4147#action_1.2
timeout
120 seconds
[ Sections ] [ List of actions ]

1.2.1: http download

name
http-download
description
use http to download the file
output
4147#action_1.2.1
timeout
120 seconds
URL
http://images.validation.linaro.org/x86/ubuntu/vmlinuz-3.10-rc7-amd64
[ Sections ] [ List of actions ]

1.3: extract ramdisk or nfsrootfs

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

1.3.1: unpack nfsrootfs, ready to apply lava overlay

name
extract-nfsrootfs
description
unpack nfsrootfs
output
4147#action_1.3.1
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.2: overlay the lava support scripts

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

1.3.2.1: add public key to authorized_keys

name
ssh-authorize
description
include public key in overlay and authorize root user
output
4147#action_1.3.2.1
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.2.2: Add files detailing vlan configuration.

name
lava-vland-overlay
description
Populate specific vland scripts for tests to lookup vlan data.
output
4147#action_1.3.2.2
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.2.3: overlay the lava multinode scripts

name
lava-multinode-overlay
description
add lava scripts during deployment for multinode test shell use
output
4147#action_1.3.2.3
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.2.4: loading test definitions

name
test-definition
description
load test definitions into image
output
4147#action_1.3.2.4
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.2.4.1: clone git test repo

name
git-repo-action
description
apply git repository of tests to the test image
output
4147#action_1.3.2.4.1
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.2.4.2: applying LAVA test overlay

name
test-overlay
description
overlay test support files onto image
output
4147#action_1.3.2.4.2
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.2.4.3: applying LAVA test install scripts

name
test-install-overlay
description
overlay dependency installation support files onto image
output
4147#action_1.3.2.4.3
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.2.4.4: applying LAVA test run script

name
test-runscript-overlay
description
overlay run script onto image
output
4147#action_1.3.2.4.4
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.2.5: Compress the lava overlay files

name
compress-overlay
description
Create a lava overlay tarball and store alongside the job
output
4147#action_1.3.2.5
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.2.6: add test overlay to NFS

name
persistent-nfs-overlay
description
unpack overlay into persistent NFS
output
4147#action_1.3.2.6
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.3: extract the ramdisk

name
extract-overlay-ramdisk
description
extract ramdisk to a temporary directory
output
4147#action_1.3.3
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.4: extract kernel modules

name
extract-modules
description
extract supplied kernel modules
output
4147#action_1.3.4
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.5: apply lava overlay test files

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

1.3.6: 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
4147#action_1.3.6
timeout
120 seconds
[ Sections ] [ List of actions ]

1.3.7: compress ramdisk with overlay

name
compress-ramdisk
description
recreate a ramdisk with the overlay applied.
output
4147#action_1.3.7
timeout
120 seconds
[ Sections ] [ List of actions ]

1.4: create lxc udev rule

name
lxc-create-udev-rule-action
description
create lxc udev rule action
output
4147#action_1.4
timeout
120 seconds
[ Sections ] [ List of actions ]

1.5: deploy device environment

name
deploy-device-env
description
deploy device environment
output
4147#action_1.5
timeout
120 seconds
[ Sections ] [ List of actions ]

2: pass boot commands

name
bootloader-action
description
interactive bootloader action
output
4147#action_2
timeout
480 seconds
[ Sections ] [ List of actions ]

2.1: replace placeholders with job data

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

2.2: run connection command

name
connect-device
description
use the configured command to connect serial to the device
output
4147#action_2.2
timeout
480 seconds
[ Sections ] [ List of actions ]

2.3: uboot commands with retry

name
bootloader-retry
description
interactive uboot retry action
output
4147#action_2.3
timeout
480 seconds
[ Sections ] [ List of actions ]

2.3.1: reboot the device

name
reset-device
description
reboot or power-cycle the device
output
4147#action_2.3.1
timeout
480 seconds
[ Sections ] [ List of actions ]

2.3.1.1: hard reboot using PDU

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

2.3.2: interrupt bootloader to get an interactive shell

name
bootloader-interrupt
description
interrupt bootloader
output
4147#action_2.3.2
timeout
480 seconds
[ Sections ] [ List of actions ]

2.3.3: interactive bootloader

name
bootloader-commands
description
send commands to bootloader
output
4147#action_2.3.3
timeout
480 seconds
[ Sections ] [ List of actions ]

2.3.4: Auto-login after boot with support for kernel messages.

name
auto-login-action
description
automatically login after boot using job parameters and checking for messages.
output
4147#action_2.3.4
timeout
480 seconds
[ Sections ] [ List of actions ]

2.3.4.1: Login after boot.

name
login-action
description
Real login action.
output
4147#action_2.3.4.1
timeout
480 seconds
[ Sections ] [ List of actions ]

2.3.5: Expect a shell prompt

name
expect-shell-connection
description
Wait for a shell
output
4147#action_2.3.5
timeout
480 seconds
[ Sections ] [ List of actions ]

2.3.6: Exports environment variables action

name
export-device-env
description
Exports environment variables to the device
output
4147#action_2.3.6
timeout
480 seconds
[ Sections ] [ List of actions ]

3: Retry support for Lava Test Shell

name
lava-test-retry
description
Retry wrapper for lava-test-shell
output
4147#action_3
timeout
120 seconds
[ Sections ] [ List of actions ]

3.1: Lava Test Shell

name
lava-test-shell
description
Executing lava-test-runner
output
4147#action_3.1
timeout
120 seconds
[ Sections ] [ List of actions ]

4: finalize the job

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

4.1: send power_off command

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

4.2: Read from other namespaces

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

Pipeline actions

Pipeline sections