device_type: beaglebone-black
job_name: "[lavafed 2021.09.0042.ge3e53c6e4] beaglebone-black - interactive"
priority: medium
timeouts:
job:
seconds: 600
visibility: public
tags:
- staging.validation.linaro.org
metadata:
device.name: "staging-black01"
device.type: "beaglebone-black"
job.url: "https://federation.lavasoftware.org/lava/scheduler/job/{id}"
job.name: "beaglebone-black - interactive"
job.type: "test"
lab.name: "staging.validation.linaro.org"
slave.arch: "amd64"
slave.version: "2021.09.0042.ge3e53c6e4"
features.0.name: "deploy.tftp"
features.0.type: "device"
features.0.description: "Deploy to tftp"
features.0.action: "deploy"
features.1.name: "boot.bootloader.u-boot"
features.1.type: "device"
features.1.description: "Boot to u-boot"
features.1.action: "boot"
features.2.name: "test.interactive"
features.2.type: "device"
features.2.description: "Interactive test"
features.2.action: "test"
notify:
criteria:
status: finished
callback:
url: "https://federation.lavasoftware.org/api/v0.1/jobs/"
token: "federation.lavasoftware.org"
method: POST
dataset: all
content-type: json
actions:
- deploy:
timeout:
minutes: 4
to: tftp
kernel:
url: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/jessie/armhf/4/vmlinuz
type: zimage
- boot:
method: bootloader
bootloader: u-boot
prompts: ["U-Boot# "]
timeout:
minutes: 3
commands: []
- test:
timeout:
minutes: 4
interactive:
- name: basic-cmds
prompts: ["=> ", "U-Boot# "]
script:
- command: echo "u-boot echo test"
name: echo
successes:
- message: "u-boot echo test"
- command: version
name: version
successes:
- message: "U-Boot"
- command: help test
name: help
successes:
- message: "test - minimal test like /bin/sh"
# saveenv and printenv
- command: setenv test_var test123printenv
- command: printenv
name: setenv-and-printenv
successes:
- message: "test_var=test123"
- name: dhcp-cmds
prompts: ["=> ", "U-Boot# "]
script:
# dhcp
- command: setenv autoload no ; dhcp
name: dhcp
successes:
- message: "DHCP client bound to address"
- name: tftp-cmds
prompts: ["=> ", "U-Boot# "]
script:
# TFTP
- command: setenv serverip {SERVER_IP} ; tftp {KERNEL_ADDR} {KERNEL}
name: tftp
successes:
- message: "Bytes transferred ="
device_type: beaglebone-black
job_name: "[lavafed 2021.09.0042.ge3e53c6e4] beaglebone-black - interactive"
- staging.validation.linaro.org
device.name: "staging-black01"
device.type: "beaglebone-black"
job.url: "https://federation.lavasoftware.org/lava/scheduler/job/{id}"
job.name: "beaglebone-black - interactive"
lab.name: "staging.validation.linaro.org"
slave.version: "2021.09.0042.ge3e53c6e4"
features.0.name: "deploy.tftp"
features.0.type: "device"
features.0.description: "Deploy to tftp"
features.0.action: "deploy"
features.1.name: "boot.bootloader.u-boot"
features.1.type: "device"
features.1.description: "Boot to u-boot"
features.1.action: "boot"
features.2.name: "test.interactive"
features.2.type: "device"
features.2.description: "Interactive test"
features.2.action: "test"
url: "https://federation.lavasoftware.org/api/v0.1/jobs/"
token: "federation.lavasoftware.org"
url: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/jessie/armhf/4/vmlinuz
prompts: ["=> ", "U-Boot# "]
- command: echo "u-boot echo test"
- message: "u-boot echo test"
- message: "test - minimal test like /bin/sh"
- command: setenv test_var test123printenv
name: setenv-and-printenv
- message: "test_var=test123"
prompts: ["=> ", "U-Boot# "]
- command: setenv autoload no ; dhcp
- message: "DHCP client bound to address"
prompts: ["=> ", "U-Boot# "]
- command: setenv serverip {SERVER_IP} ; tftp {KERNEL_ADDR} {KERNEL}
- 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