jjb: Allow cloud-init status to complete with an error for images
[lttng-ci.git] / scripts / system-tests / template_lava_job.jinja2
CommitLineData
4c3d6586 1device_type: x86
6b9bcf12
JR
2job_name: {{ job_name }}
3timeouts:
4 job:
afd608b2 5 hours: 5
33f6fe56 6 action:
afd608b2 7 hours: 5
33f6fe56
JR
8 connection:
9 minutes: 4
10 connections:
11 lava-test-shell:
12 minutes: 4
6b9bcf12
JR
13priority: medium
14visibility: public
6b9bcf12 15context:
620516c2 16 extra_kernel_args: cpuidle.off=1
5a6608da 17 extra_nfsroot_args: ",nfsvers=3 nfsrootdebug"
620516c2 18
9bc7deb8
KS
19environment:
20 SHELL: "/bin/bash"
21
e8ca2f76 22{% if device_type == DeviceType.kvm %}
4c3d6586
JR
23tags:
24 - qemu
4cb5cc4f
JR
25{% endif %}
26{% if device_type == DeviceType.x86 %}
6b9bcf12
JR
27tags:
28 - dev-sda1
4cb5cc4f 29{% endif %}
6b9bcf12
JR
30
31metadata:
4cb5cc4f 32 jenkins_jobname: {{ job_name }}
6b9bcf12
JR
33
34
35actions:
9665810d
JR
36 - deploy:
37 timeout:
38 minutes: 10
39 to: tftp
40 kernel:
41 url: {{ kernel_url }}
42 type: zimage
9665810d
JR
43 modules:
44 url: {{ lttng_modules_url }}
9665810d
JR
45 compression: gz
46 nfsrootfs:
47 url: {{ nfsrootfs_url }}
48 compression: gz
6b9bcf12 49
9665810d
JR
50 - boot:
51 timeout:
52 minutes: 10
9665810d 53 method: ipxe
d2fdefc4 54 commands: nfs
ca08dcdf
JR
55 auto_login:
56 login_prompt: 'login:'
57 username: root
58 password_prompt: 'Password:'
59 password: root
9665810d
JR
60 prompts:
61 - 'root@linaro-server:~#'
9665810d
JR
62
63 - test:
64 definitions:
9151e32e 65 # Base setup #
ef50ca2a 66 - repository: {{ ci_repo }}
9151e32e 67 from: git
ef50ca2a 68 branch: {{ ci_branch }}
9151e32e
JR
69 path: lava/system-tests/setup.yml
70 name: x86-env-setup
ef50ca2a
KS
71 params:
72 CI_REPO: {{ ci_repo }}
73 CI_BRANCH: {{ ci_branch }}
9151e32e 74 # Base vlttng setup #
9665810d
JR
75 - repository:
76 metadata:
77 format: Lava-Test Test Definition 1.0
67aaab3c
KS
78 name: vlttng-env-setup
79 description: "Configure virtualenv for vlttng"
9665810d 80 os:
d0ffdf18 81 - debian
9665810d
JR
82 - ubuntu
83 devices:
84 - x86
67aaab3c 85 - kvm
9665810d
JR
86 run:
87 steps:
9665810d
JR
88 {% if device_type == DeviceType.x86 %}
89 - mount /dev/sda1 /tmp
e640b6d8
JR
90 {% elif device_type == DeviceType.kvm %}
91 - mount /dev/sda /tmp
c11ec858 92 {% endif %}
e640b6d8 93 - rm -rf /tmp/*
db5b1495
KS
94 # With the Debian bookwrom rootfs, without
95 # this being set, the babeltrace2 'bt2' python
96 # bindings are not correctly installed in the
97 # vlttng directory.
98 - export SETUPTOOLS_USE_DISTUTILS=stdlib
99 - source /root/python-venv/bin/activate
9665810d
JR
100 - {{ vlttng_cmd }}
101 - ln -s {{ vlttng_path }} /root/lttngvenv
102 - sync
9665810d 103 from: inline
448803d6 104 name: vlttng-env-setup-inline
67aaab3c 105 path: inline/vlttng-env-setup
523e784d 106 {% if test_type == TestType.baremetal_tests %}
ef50ca2a 107 - repository: {{ ci_repo }}
9665810d 108 from: git
ef50ca2a 109 branch: {{ ci_branch }}
9665810d
JR
110 path: lava/system-tests/perf-tests.yml
111 name: perf-tests
6b35e57c 112 params:
cf1271bb 113 LTTNG_VERSION_STRING: {{ lttng_version_string }}
6b35e57c 114 JENKINS_BUILD_ID: {{ jenkins_build_id }}
ef50ca2a
KS
115 CI_REPO: {{ ci_repo }}
116 CI_BRANCH: {{ ci_branch }}
9665810d 117 {% elif test_type == TestType.kvm_tests %}
ef50ca2a 118 - repository: {{ ci_repo }}
9665810d 119 from: git
ef50ca2a 120 branch: {{ ci_branch }}
9665810d
JR
121 path: lava/system-tests/kernel-tests.yml
122 name: kernel-tests
6b35e57c 123 params:
cf1271bb 124 LTTNG_VERSION_STRING: {{ lttng_version_string }}
6b35e57c 125 JENKINS_BUILD_ID: {{ jenkins_build_id }}
ef50ca2a
KS
126 CI_REPO: {{ ci_repo }}
127 CI_BRANCH: {{ ci_branch }}
9665810d 128 {% endif %}
a593b7fa
KS
129 - repository: {{ ci_repo }}
130 from: git
131 branch: {{ ci_branch }}
132 path: lava/system-tests/upload-artifacts.yml
133 name: upload-artifacts
134 params:
135 LTTNG_VERSION_STRING: {{ lttng_version_string }}
136 JENKINS_BUILD_ID: {{ jenkins_build_id }}
137 CI_REPO: {{ ci_repo }}
138 CI_BRANCH: {{ ci_branch }}
This page took 0.035915 seconds and 4 git commands to generate.