Job definition file - 780 download


1
device_type: docker
2
job_name: "[lavafed 2019.06.0097.gd4707dda2] docker - health-check"
3
priority: medium
4
5
timeouts:
6
job:
7
seconds: 600
8
9
visibility: public
10
11
12
tags:
13
- master.lavasoftware.org
14
15
metadata:
16
device.name: "docker-02"
17
device.type: "docker"
18
job.url: "https://federation.lavasoftware.org/lava/scheduler/job/{id}"
19
job.name: "docker - health-check"
20
job.type: "test"
21
lab.name: "master.lavasoftware.org"
22
slave.arch: "aarch64"
23
slave.version: "2019.06.0097.gd4707dda2"
24
features.0.name: "deploy.docker"
25
features.0.type: "device"
26
features.0.description: "Deploy to docker"
27
features.0.action: "deploy"
28
features.1.name: "boot.docker"
29
features.1.type: "device"
30
features.1.description: "Boot docker"
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
to: docker
52
image: debian:stretch-backports
53
timeout:
54
minutes: 4
55
- boot:
56
command: bash
57
method: docker
58
prompts:
59
- "root@lava:/#"
60
timeout:
61
minutes: 2
62
- test:
63
timeout:
64
minutes: 5
65
definitions:
66
- repository: http://git.linaro.org/lava-team/lava-functional-tests.git
67
from: git
68
path: lava-test-shell/smoke-tests-basic.yaml
69
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: deploy docker

name
deploy-docker
description
deploy docker images
output
780#action_1
timeout
240 seconds
[ Sections ] [ List of actions ]

1.1: deploy device environment

name
deploy-device-env
description
deploy device environment
output
780#action_1.1
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2: overlay the lava support scripts

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

1.2.1: add public key to authorized_keys

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

1.2.2: Add files detailing vlan configuration.

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

1.2.3: overlay the lava multinode scripts

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

1.2.4: loading test definitions

name
test-definition
description
load test definitions into image
output
780#action_1.2.4
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.4.1: clone git test repo

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

1.2.4.2: applying LAVA test overlay

name
test-overlay
description
overlay test support files onto image
output
780#action_1.2.4.2
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.4.3: applying LAVA test install scripts

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

1.2.4.4: applying LAVA test run script

name
test-runscript-overlay
description
overlay run script onto image
output
780#action_1.2.4.4
timeout
240 seconds
[ Sections ] [ List of actions ]

1.2.5: Compress the lava overlay files

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

1.2.6: add test overlay to NFS

name
persistent-nfs-overlay
description
unpack overlay into persistent NFS
output
780#action_1.2.6
timeout
240 seconds
[ Sections ] [ List of actions ]

2: boot docker image

name
boot-docker
description
boot docker image
output
780#action_2
timeout
120 seconds
[ Sections ] [ List of actions ]

2.1: boot docker image

name
boot-docker-retry
description
boot docker image with retry
output
780#action_2.1
timeout
120 seconds
[ Sections ] [ List of actions ]

2.1.1: call docker run

name
docker-run
description
call docker run on the image
output
780#action_2.1.1
timeout
120 seconds
[ Sections ] [ List of actions ]

2.2: Expect a shell prompt

name
expect-shell-connection
description
Wait for a shell
output
780#action_2.2
timeout
120 seconds
[ Sections ] [ List of actions ]

2.3: Exports environment variables action

name
export-device-env
description
Exports environment variables to the device
output
780#action_2.3
timeout
120 seconds
[ Sections ] [ List of actions ]

3: Retry support for Lava Test Shell

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

3.1: Lava Test Shell

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

4: finalize the job

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

4.1: send power_off command

name
power-off
description
discontinue power to device
output
780#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
780#action_4.2
timeout
30 seconds

Pipeline actions

Pipeline sections