Allow a force run on system_ALL_* jobs
[lttng-ci.git] / scripts / system-tests / template_lava_job.jinja2
1 device_type: x86
2 job_name: {{ job_name }}
3 timeouts:
4 job:
5 hours: 3
6 action:
7 hours: 3
8 connection:
9 minutes: 4
10 connections:
11 lava-test-shell:
12 minutes: 4
13 priority: medium
14 visibility: public
15 context:
16 extra_kernel_args: cpuidle.off=1
17 extra_nfsroot_args: ",nfsvers=3 nfsrootdebug"
18 lava_test_sh_cmd: "/bin/bash"
19
20 {% if device_type == DeviceType.kvm %}
21 tags:
22 - qemu
23 {% endif %}
24 {% if device_type == DeviceType.x86 %}
25 tags:
26 - dev-sda1
27 {% endif %}
28
29 metadata:
30 jenkins_jobname: {{ job_name }}
31 {% if test_type == TestType.kvm_fuzzing_tests %}
32 nb_iterations: {{ kprobe_round_nb }}
33 {% endif %}
34
35
36 actions:
37 - deploy:
38 timeout:
39 minutes: 10
40 to: tftp
41 kernel:
42 url: {{ kernel_url }}
43 type: zimage
44 modules:
45 url: {{ lttng_modules_url }}
46 compression: gz
47 nfsrootfs:
48 url: {{ nfsrootfs_url }}
49 compression: gz
50
51 - boot:
52 timeout:
53 minutes: 10
54 method: ipxe
55 commands: nfs
56 auto_login:
57 login_prompt: 'login:'
58 username: root
59 password_prompt: 'Password:'
60 password: root
61 prompts:
62 - 'root@linaro-server:~#'
63
64 - test:
65 definitions:
66 # Base setup of environment #
67 - repository:
68 metadata:
69 format: Lava-Test Test Definition 1.0
70 name: x86-env-setup
71 description: "Basic environment setup for x86 board"
72 os:
73 - ubuntu
74 devices:
75 - x86
76 run:
77 steps:
78 - chmod 755 /
79 - systemctl start systemd-timesyncd
80 - echo nameserver 172.18.0.12 > /etc/resolv.conf
81 - ip a
82 - groupadd tracing
83 {% if device_type == DeviceType.x86 %}
84 - mount /dev/sda1 /tmp
85 {% elif device_type == DeviceType.kvm %}
86 - mount /dev/sda /tmp
87 {% endif %}
88 - rm -rf /tmp/*
89 - depmod -a
90 - locale-gen en_US.UTF-8
91 - apt-get update
92 - apt-get upgrade
93 {% if test_type != TestType.kvm_fuzzing_tests %}
94 - pip3 install --upgrade pip
95 - hash -r
96 - pip3 install vlttng
97 - {{ vlttng_cmd }}
98 - ln -s {{ vlttng_path }} /root/lttngvenv
99 - sync
100 {% endif %}
101 from: inline
102 name: x86-env-setup-inline
103 path: inline/x86-env-setup.yaml
104 {% if test_type == TestType.baremetal_benchmarks %}
105 - repository: https://github.com/lttng/lttng-ci.git
106 from: git
107 path: lava/system-tests/failing-close.yml
108 name: failing-close
109 params:
110 JENKINS_BUILD_ID: {{ jenkins_build_id }}
111 - repository: https://github.com/lttng/lttng-ci.git
112 from: git
113 path: lava/system-tests/failing-ioctl.yml
114 name: failing-ioctl
115 params:
116 JENKINS_BUILD_ID: {{ jenkins_build_id }}
117 - repository: https://github.com/lttng/lttng-ci.git
118 from: git
119 path: lava/system-tests/failing-open-efault.yml
120 name: failing-open-efault
121 params:
122 JENKINS_BUILD_ID: {{ jenkins_build_id }}
123 - repository: https://github.com/lttng/lttng-ci.git
124 from: git
125 path: lava/system-tests/success-dup-close.yml
126 name: success-dup-close
127 params:
128 JENKINS_BUILD_ID: {{ jenkins_build_id }}
129 - repository: https://github.com/lttng/lttng-ci.git
130 from: git
131 path: lava/system-tests/raw-syscall-getpid.yml
132 name: raw-syscall-getpid
133 params:
134 JENKINS_BUILD_ID: {{ jenkins_build_id }}
135 - repository: https://github.com/lttng/lttng-ci.git
136 from: git
137 path: lava/system-tests/failing-open-enoent.yml
138 name: failing-open-enoent
139 params:
140 JENKINS_BUILD_ID: {{ jenkins_build_id }}
141 - repository: https://github.com/lttng/lttng-ci.git
142 from: git
143 path: lava/system-tests/lttng-test-filter.yml
144 name: lttng-test-filter
145 params:
146 JENKINS_BUILD_ID: {{ jenkins_build_id }}
147 {% elif test_type == TestType.baremetal_tests %}
148 - repository: https://github.com/lttng/lttng-ci.git
149 from: git
150 path: lava/system-tests/perf-tests.yml
151 name: perf-tests
152 params:
153 JENKINS_BUILD_ID: {{ jenkins_build_id }}
154 {% elif test_type == TestType.kvm_tests %}
155 - repository: https://github.com/lttng/lttng-ci.git
156 from: git
157 path: lava/system-tests/kernel-tests.yml
158 name: kernel-tests
159 params:
160 JENKINS_BUILD_ID: {{ jenkins_build_id }}
161 - repository: https://github.com/lttng/lttng-ci.git
162 from: git
163 path: lava/system-tests/destructive-tests.yml
164 name: destructive-tests
165 params:
166 JENKINS_BUILD_ID: {{ jenkins_build_id }}
167 {% elif test_type == TestType.kvm_fuzzing_tests %}
168 - repository: https://github.com/lttng/lttng-ci.git
169 from: git
170 path: lava/system-tests/kprobe-fuzzing-generate-data.yml
171 name: kprobe-fuzzing-generate-data
172 params:
173 RANDOM_SEED: {{ random_seed }}
174 {% for i in range(kprobe_round_nb) %}
175 - repository: https://github.com/lttng/lttng-ci.git
176 from: git
177 path: lava/system-tests/kprobe-fuzzing-tests.yml
178 name: kprobe-fuzzing-tests{{ i }}
179 params:
180 ROUND_NB: {{ i }}
181 {% endfor %}
182 {% endif %}
This page took 0.047398 seconds and 4 git commands to generate.