| 1 | device_type: x86 |
| 2 | job_name: {{ job_name }} |
| 3 | timeouts: |
| 4 | job: |
| 5 | hours: 5 |
| 6 | action: |
| 7 | hours: 5 |
| 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 | |
| 19 | environment: |
| 20 | SHELL: "/bin/bash" |
| 21 | |
| 22 | {% if device_type == DeviceType.kvm %} |
| 23 | tags: |
| 24 | - qemu |
| 25 | {% endif %} |
| 26 | {% if device_type == DeviceType.x86 %} |
| 27 | tags: |
| 28 | - dev-sda1 |
| 29 | {% endif %} |
| 30 | |
| 31 | metadata: |
| 32 | jenkins_jobname: {{ job_name }} |
| 33 | |
| 34 | |
| 35 | actions: |
| 36 | - deploy: |
| 37 | timeout: |
| 38 | minutes: 10 |
| 39 | to: tftp |
| 40 | kernel: |
| 41 | url: {{ kernel_url }} |
| 42 | type: zimage |
| 43 | modules: |
| 44 | url: {{ lttng_modules_url }} |
| 45 | compression: gz |
| 46 | nfsrootfs: |
| 47 | url: {{ nfsrootfs_url }} |
| 48 | compression: gz |
| 49 | |
| 50 | - boot: |
| 51 | timeout: |
| 52 | minutes: 10 |
| 53 | method: ipxe |
| 54 | commands: nfs |
| 55 | auto_login: |
| 56 | login_prompt: 'login:' |
| 57 | username: root |
| 58 | password_prompt: 'Password:' |
| 59 | password: root |
| 60 | prompts: |
| 61 | - 'root@linaro-server:~#' |
| 62 | |
| 63 | - test: |
| 64 | definitions: |
| 65 | # Base setup # |
| 66 | - repository: {{ ci_repo }} |
| 67 | from: git |
| 68 | branch: {{ ci_branch }} |
| 69 | path: lava/system-tests/setup.yml |
| 70 | name: x86-env-setup |
| 71 | params: |
| 72 | CI_REPO: {{ ci_repo }} |
| 73 | CI_BRANCH: {{ ci_branch }} |
| 74 | # Base vlttng setup # |
| 75 | - repository: |
| 76 | metadata: |
| 77 | format: Lava-Test Test Definition 1.0 |
| 78 | name: vlttng-env-setup |
| 79 | description: "Configure virtualenv for vlttng" |
| 80 | os: |
| 81 | - debian |
| 82 | - ubuntu |
| 83 | devices: |
| 84 | - x86 |
| 85 | - kvm |
| 86 | run: |
| 87 | steps: |
| 88 | {% if device_type == DeviceType.x86 %} |
| 89 | - mount /dev/sda1 /tmp |
| 90 | {% elif device_type == DeviceType.kvm %} |
| 91 | - mount /dev/sda /tmp |
| 92 | {% endif %} |
| 93 | - rm -rf /tmp/* |
| 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 |
| 100 | - {{ vlttng_cmd }} |
| 101 | - ln -s {{ vlttng_path }} /root/lttngvenv |
| 102 | - sync |
| 103 | from: inline |
| 104 | name: vlttng-env-setup-inline |
| 105 | path: inline/vlttng-env-setup |
| 106 | {% if test_type == TestType.baremetal_tests %} |
| 107 | - repository: {{ ci_repo }} |
| 108 | from: git |
| 109 | branch: {{ ci_branch }} |
| 110 | path: lava/system-tests/perf-tests.yml |
| 111 | name: perf-tests |
| 112 | params: |
| 113 | LTTNG_VERSION_STRING: {{ lttng_version_string }} |
| 114 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 115 | CI_REPO: {{ ci_repo }} |
| 116 | CI_BRANCH: {{ ci_branch }} |
| 117 | {% elif test_type == TestType.kvm_tests %} |
| 118 | - repository: {{ ci_repo }} |
| 119 | from: git |
| 120 | branch: {{ ci_branch }} |
| 121 | path: lava/system-tests/kernel-tests.yml |
| 122 | name: kernel-tests |
| 123 | params: |
| 124 | LTTNG_VERSION_STRING: {{ lttng_version_string }} |
| 125 | JENKINS_BUILD_ID: {{ jenkins_build_id }} |
| 126 | CI_REPO: {{ ci_repo }} |
| 127 | CI_BRANCH: {{ ci_branch }} |
| 128 | {% endif %} |
| 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 }} |