forked from kernelci/kernelci-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.yaml
234 lines (178 loc) · 4.41 KB
/
pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2021, 2022, 2023 Collabora Limited
# Author: Guillaume Tucker <[email protected]>
#
# HACK - local pipeline.yaml for gtucker branch
#
api_configs:
docker-host: &docker-host
url: http://172.17.0.1:8001
timeout: 1
gtucker-atlas: *docker-host
gtucker-atlas-admin: *docker-host
staging:
url: https://staging.kernelci.org:9000
early-access:
url: https://kernelci-api.eastus.cloudapp.azure.com
storage:
docker-host:
storage_type: ssh
host: 172.17.0.1
port: 8022
base_url: http://172.17.0.1:8002/
staging:
storage_type: ssh
host: staging.kernelci.org
port: 9022
base_url: http://staging.kernelci.org:9080/
staging-azure: &azure-files
storage_type: azure
base_url: https://kciapistagingstorage1.file.core.windows.net/
share: staging
sas_public_token: "?sv=2022-11-02&ss=f&srt=sco&sp=r&se=2024-10-17T19:19:12Z&st=2023-10-17T11:19:12Z&spr=https&sig=sLmFlvZHXRrZsSGubsDUIvTiv%2BtzgDq6vALfkrtWnv8%3D"
early-access-azure:
<<: *azure-files
share: gtucker
runtimes:
docker:
lab_type: docker
env_file: .docker-env
volumes:
- '/home/gtucker/src/kernelci-core/data:/home/kernelci/data'
k8s-gke-eu-west4:
lab_type: kubernetes
context: gke_android-kernelci-external_europe-west4-c_kci-eu-west4
k8s-aks-kbuild-big-1:
lab_type: kubernetes
context: aks-kbuild-big-1
lava-collabora:
lab_type: lava
url: https://lava.collabora.dev/
priority_min: 40
priority_max: 60
notify:
callback:
token: kernelci-api-token-staging
url: https://staging.kernelci.org:9100
shell:
lab_type: shell
# ToDo
# env_file: .env
# Not directly loaded into the config, only used for YAML aliases in this file
_anchors:
checkout: &checkout
channel: node # ToDo: use existing filters implementation?
name: checkout
state: available
jobs:
baseline-x86:
template: baseline.jinja2
image: tbd
checkout:
template: checkout.jinja2
image: gtucker/kernelci
kbuild-gcc-10-x86:
template: kbuild.jinja2
image: gtucker/gcc-10:x86-kselftest-kernelci # 'gcc-10:{arch}{fragments}'
kind: kbuild
params:
arch: x86_64
compiler: gcc-10
defconfig: x86_64_defconfig
kunit: &kunit-job
template: kunit.jinja2
image: gtucker/gcc-10:x86-kunit-kernelci
kunit-x86_64:
<<: *kunit-job
image: gtucker/gcc-10:x86-kunit-kernelci
params:
arch: x86_64
kver:
template: kver.jinja2
image: gtucker/kernelci
trees:
kernelci:
url: "https://github.com/kernelci/linux.git"
local:
url: 'file:///home/kernelci/linux'
mainline:
url: 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git'
device_types:
docker:
base_name: docker
class: docker
qemu-x86:
base_name: qemu
arch: x86_64
boot_method: qemu
mach: qemu
kubernetes:
base_name: kubernetes
class: kubernetes
shell:
base_name: shell
class: shell
scheduler:
- job: checkout
event:
channel: trigger
runtime:
name: shell
- job: baseline-x86
event:
channel: node
name: kbuild-gcc-10-x86
result: pass
runtime:
type: lava
platforms:
- qemu-x86
- job: kunit
event: *checkout
runtime:
name: k8s-gke-eu-west4
- job: kbuild-gcc-10-x86
event: *checkout
runtime:
type: kubernetes
# -----------------------------------------------------------------------------
# Legacy configuration data (still used by trigger service)
#
build_environments:
gcc-10:
cc: gcc
cc_version: 10
arch_params:
x86_64:
name: 'x86'
build_variants:
variants: &build-variants
gcc-10:
build_environment: gcc-10
architectures:
x86_64:
base_defconfig: 'x86_64_defconfig'
filters:
- regex: { defconfig: 'x86_64_defconfig' }
build_configs:
kernelci_staging-mainline:
tree: kernelci
branch: 'staging-mainline'
variants: *build-variants
kernelci_staging-next:
tree: kernelci
branch: 'staging-next'
variants: *build-variants
kernelci_staging-stable:
tree: kernelci
branch: 'staging-stable'
variants: *build-variants
local:
tree: local
branch: 'master'
variants: *build-variants
mainline:
tree: mainline
branch: 'master'
variants: *build-variants