Job definition file - 768 download


1
device_type: stm32mp157c-dk2
2
job_name: "[lavafed 2019.06.0097.gd4707dda2] stm32mp157c-dk2 - health-check"
3
priority: medium
4
5
timeouts:
6
job:
7
seconds: 1200
8
9
visibility: public
10
11
12
tags:
13
- dispatcher-01.st.com
14
15
metadata:
16
device.name: "lmecxd0318-mp157revc_disco_048"
17
device.type: "stm32mp157c-dk2"
18
job.url: "https://federation.lavasoftware.org/lava/scheduler/job/{id}"
19
job.name: "stm32mp157c-dk2 - health-check"
20
job.type: "test"
21
lab.name: "dispatcher-01.st.com"
22
slave.arch: "amd64"
23
slave.version: "2019.06.0097.gd4707dda2"
24
features.0.name: "deploy.flasher"
25
features.0.type: "device"
26
features.0.description: "Deploy using a flashing tool"
27
features.0.action: "deploy"
28
features.1.name: "deploy.transfer_overlay"
29
features.1.type: "device"
30
features.1.description: "Use transfer_overlay command"
31
features.1.action: "deploy"
32
features.2.name: "boot.minimal"
33
features.2.type: "device"
34
features.2.description: "Non-interactive boot"
35
features.2.action: "boot"
36
features.3.name: "test.definition.git"
37
features.3.type: "device"
38
features.3.description: "Test definition from git"
39
features.3.action: "test"
40
41
notify:
42
criteria:
43
status: finished
44
callback:
45
url: "https://federation.lavasoftware.org/api/v0.1/jobs/"
46
token: "federation.lavasoftware.org"
47
method: POST
48
dataset: all
49
content-type: json
50
51
52
53
actions:
54
- deploy:
55
to: flasher
56
timeout:
57
minutes: 20
58
os: oe
59
images:
60
layout:
61
url: http://citools.st.com/artifacts/artifactory/oeivi-codex-st-com/oemanifest-int-mmdv/refs/tags/openstlinux-4.19-thud-mp1-19-04-05/openstlinux-weston/images/stm32mp1/flashlayout_st-image-weston/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv
62
tarball:
63
url: http://citools.st.com/artifacts/artifactory/oeivi-codex-st-com/oemanifest-int-mmdv/refs/tags/openstlinux-4.19-thud-mp1-19-04-05/openstlinux-weston/IMAGES-st-image-weston-openstlinux-weston-stm32mp1-openstlinux-4.19-thud-mp1-19-04-05.tar.xz
64
- boot:
65
method: minimal
66
timeout:
67
minutes: 10
68
transfer_overlay:
69
download_command: ifplugd ; sync ; sleep 10 ; cd /tmp ; wget
70
unpack_command: tar -C / -xzf
71
prompts:
72
- "root@stm32mp1:|root@stm32mp1-\\S+:"
73
auto_login:
74
login_prompt: "stm32mp1 login:|stm32mp1-(.*) login:"
75
username: root
76
- test:
77
timeout:
78
minutes: 5
79
definitions:
80
- repository: ssh://gerrit.st.com:29418/oeivi/test/lava/lava-tests
81
from: git
82
revision: master
83
path: tests-def/system/TC_SYS_1_1.yaml
84
name: TC_SYS_1_1
85
history: False

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 custom flasher

name
deploy-flasher-retry
description
deploy flasher with retry
output
768#action_1
timeout
1200 seconds
[ Sections ] [ List of actions ]

1.1: deploy custom flasher

name
deploy-flasher
description
deploy flasher
output
768#action_1.1
timeout
1200 seconds
[ Sections ] [ List of actions ]

1.1.1: download-retry

name
download-retry
description
download with retry
output
768#action_1.1.1
timeout
1200 seconds
[ Sections ] [ List of actions ]

1.1.1.1: http download

name
http-download
description
use http to download the file
output
768#action_1.1.1.1
timeout
1200 seconds
URL
http://citools.st.com/artifacts/artifactory/oeivi-codex-st-com/oemanifest-int-mmdv/refs/tags/openstlinux-4.19-thud-mp1-19-04-05/openstlinux-weston/images/stm32mp1/flashlayout_st-image-weston/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv
[ Sections ] [ List of actions ]

1.1.2: download-retry

name
download-retry
description
download with retry
output
768#action_1.1.2
timeout
1200 seconds
[ Sections ] [ List of actions ]

1.1.2.1: http download

name
http-download
description
use http to download the file
output
768#action_1.1.2.1
timeout
1200 seconds
URL
http://citools.st.com/artifacts/artifactory/oeivi-codex-st-com/oemanifest-int-mmdv/refs/tags/openstlinux-4.19-thud-mp1-19-04-05/openstlinux-weston/IMAGES-st-image-weston-openstlinux-weston-stm32mp1-openstlinux-4.19-thud-mp1-19-04-05.tar.xz
[ Sections ] [ List of actions ]

1.1.3: deploy device environment

name
deploy-device-env
description
deploy device environment
output
768#action_1.1.3
timeout
1200 seconds
[ Sections ] [ List of actions ]

1.1.4: overlay the lava support scripts

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

1.1.4.1: add public key to authorized_keys

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

1.1.4.2: Add files detailing vlan configuration.

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

1.1.4.3: overlay the lava multinode scripts

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

1.1.4.4: loading test definitions

name
test-definition
description
load test definitions into image
output
768#action_1.1.4.4
timeout
1200 seconds
[ Sections ] [ List of actions ]

1.1.4.4.1: clone git test repo

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

1.1.4.4.2: applying LAVA test overlay

name
test-overlay
description
overlay test support files onto image
output
768#action_1.1.4.4.2
timeout
1200 seconds
[ Sections ] [ List of actions ]

1.1.4.4.3: applying LAVA test install scripts

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

1.1.4.4.4: applying LAVA test run script

name
test-runscript-overlay
description
overlay run script onto image
output
768#action_1.1.4.4.4
timeout
1200 seconds
[ Sections ] [ List of actions ]

1.1.4.5: Compress the lava overlay files

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

1.1.4.6: add test overlay to NFS

name
persistent-nfs-overlay
description
unpack overlay into persistent NFS
output
768#action_1.1.4.6
timeout
1200 seconds
[ Sections ] [ List of actions ]

2: connect and reset device

name
minimal-boot
description
connect and reset device
output
768#action_2
timeout
600 seconds
[ Sections ] [ List of actions ]

2.1: run connection command

name
connect-device
description
use the configured command to connect serial to the device
output
768#action_2.1
timeout
600 seconds
[ Sections ] [ List of actions ]

2.2: reboot the device

name
reset-device
description
reboot or power-cycle the device
output
768#action_2.2
timeout
600 seconds
[ Sections ] [ List of actions ]

2.2.1: hard reboot using PDU

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

2.3: 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
768#action_2.3
timeout
600 seconds
[ Sections ] [ List of actions ]

2.4: Expect a shell prompt

name
expect-shell-connection
description
Wait for a shell
output
768#action_2.4
timeout
600 seconds
[ Sections ] [ List of actions ]

2.5: transfer and unpack overlay

name
overlay-unpack
description
transfer and unpack overlay to persistent rootfs after login
output
768#action_2.5
timeout
600 seconds
[ Sections ] [ List of actions ]

2.6: Exports environment variables action

name
export-device-env
description
Exports environment variables to the device
output
768#action_2.6
timeout
600 seconds
[ Sections ] [ List of actions ]

3: Retry support for Lava Test Shell

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

3.1: Lava Test Shell

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

4: finalize the job

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

4.1: send power_off command

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

4.2: Read from other namespaces

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

Pipeline actions

Pipeline sections