-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathansible-cloud-jobs.yaml
520 lines (456 loc) · 16.1 KB
/
ansible-cloud-jobs.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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
---
####################### vmware #####################
- job:
name: ansible-cloud-vcenter-appliance
parent: ansible-network-appliance-base
pre-run: playbooks/ansible-cloud/vcenter-appliance/pre.yaml
run: playbooks/ansible-cloud/vcenter-appliance/run.yaml
required-projects:
- name: github.com/ansible/ansible-zuul-jobs
# NOTE: we set ansible_network_os with some generic
# value to pass the ansible-network playbooks
host-vars:
vcenter:
ansible_network_os: vmware_rest
esxi1:
ansible_network_os: vmware_rest
nodeset: vmware-vcsa-7.0.3
# master
- job:
name: ansible-test-cloud-integration-vcenter
abstract: true
parent: ansible-cloud-vcenter-appliance
dependencies:
- name: build-ansible-collection
pre-run:
- playbooks/ansible-test-base/pre.yaml
- playbooks/ansible-cloud/vcenter-integration-controller/pre.yaml
run: playbooks/ansible-test-base/run.yaml
post-run: playbooks/ansible-test-base/post.yaml
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.18
- name: github.com/ansible-collections/community.vmware
timeout: 3600
vars:
ansible_test_python: 3
ansible_collections_repo: github.com/ansible-collections/community.vmware
ansible_test_command: integration
ansible_test_environment:
VMWARE_TEST_PLATFORM: static
ansible_test_continue_on_error: false
ansible_test_retry_on_error: true
# vcenter 7.0.3
- job:
name: ansible-test-cloud-integration-vcenter7_only
parent: ansible-test-cloud-integration-vcenter
nodeset: vmware-vcsa-7.0.3
vars:
ansible_test_integration_targets: zuul/vmware/vcenter_only/
- job:
name: ansible-test-cloud-integration-vcenter7_1esxi
parent: ansible-test-cloud-integration-vcenter
nodeset: vmware-vcsa_1esxi-7.0.3
vars:
ansible_test_integration_targets: zuul/vmware/vcenter_1esxi/
# 5h
timeout: 10800
- job:
name: ansible-test-cloud-integration-vcenter7_2esxi
parent: ansible-test-cloud-integration-vcenter
nodeset: vmware-vcsa_2esxi-7.0.3
vars:
ansible_test_integration_targets: zuul/vmware/vcenter_2esxi/
# NOTE: we set ansible_network_os with some generic
# value to pass the ansible-network playbooks
host-vars:
vcenter:
ansible_network_os: vmware_rest
esxi1:
ansible_network_os: vmware_rest
esxi2:
ansible_network_os: vmware_rest
- job:
name: ansible-test-cloud-integration-vcenter7_only-stable218
parent: ansible-test-cloud-integration-vcenter7_only
- job:
name: ansible-test-cloud-integration-vcenter7_1esxi-stable218
parent: ansible-test-cloud-integration-vcenter7_1esxi
- job:
name: ansible-test-cloud-integration-vcenter7_1esxi-stable218_1_of_2
parent: ansible-test-cloud-integration-vcenter7_1esxi-stable218
vars:
ansible_test_split_in: 2
ansible_test_do_number: 1
- job:
name: ansible-test-cloud-integration-vcenter7_1esxi-stable218_2_of_2
parent: ansible-test-cloud-integration-vcenter7_1esxi-stable218
vars:
ansible_test_split_in: 2
ansible_test_do_number: 2
- job:
name: ansible-test-cloud-integration-vcenter7_2esxi-stable218
parent: ansible-test-cloud-integration-vcenter7_2esxi
####################### vmware.vmware-rest #####################
- job:
# NOTE: should be renamed to ansible-cloud-vmware-lab in
# the future because it's more than just one appliance
name: ansible-cloud-vmware-rest-appliance
parent: ansible-network-appliance-base
pre-run:
- playbooks/ansible-cloud/vcenter-appliance/pre.yaml
run: playbooks/ansible-cloud/vcenter-appliance/run.yaml
required-projects:
- name: github.com/ansible/ansible-zuul-jobs
# NOTE: we set ansible_network_os with some generic
# value to pass the ansible-network playbooks
host-vars:
vcenter:
ansible_network_os: vmware_rest
esxi1:
ansible_network_os: vmware_rest
nodeset: vmware-vcsa_1esxi-7.0.3
# NOTE(pabelanger): Due to low memory capacity in vexxhost, it is
# possible to wedge the provider. For now, only run 1 job at a time.
- semaphore:
name: ansible-test-cloud-integration-vmware-rest
max: 2
- job:
name: ansible-test-cloud-integration-vmware-rest
parent: ansible-cloud-vmware-rest-appliance
dependencies:
- name: build-ansible-collection
pre-run:
- playbooks/ansible-test-base/pre.yaml
- playbooks/ansible-test-network-integration-base/pre.yaml
run: playbooks/ansible-test-base/run.yaml
post-run:
- playbooks/ansible-test-network-integration-base/post.yaml
- playbooks/ansible-test-base/post.yaml
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.14
- name: github.com/ansible-collections/vmware.vmware_rest
vars:
ansible_collections_repo: github.com/ansible-collections/vmware.vmware_rest
ansible_test_command: network-integration
ansible_test_python: 3
ansible_test_integration_targets: "zuul/"
timeout: 3600
semaphore: ansible-test-cloud-integration-vmware-rest
##### units
- job:
name: ansible-test-units-community-vmware-python27
parent: ansible-test-units-base-python27
required-projects:
- name: github.com/ansible-collections/community.vmware
vars:
ansible_collections_repo: github.com/ansible-collections/community.vmware
- job:
name: ansible-test-units-community-vmware-python36
parent: ansible-test-units-base-python36
required-projects:
- name: github.com/ansible-collections/community.vmware
vars:
ansible_collections_repo: github.com/ansible-collections/community.vmware
- job:
name: ansible-test-units-community-vmware-python37
parent: ansible-test-units-base-python37
required-projects:
- name: github.com/ansible-collections/community.vmware
vars:
ansible_collections_repo: github.com/ansible-collections/community.vmware
- job:
name: ansible-test-units-community-vmware-python38
parent: ansible-test-units-base-python38
required-projects:
- name: github.com/ansible-collections/community.vmware
vars:
ansible_collections_repo: github.com/ansible-collections/community.vmware
### AWS
- job:
name: ansible-test-splitter
pre-run: playbooks/ansible-test-splitter/pre.yaml
run: playbooks/ansible-test-splitter/run.yaml
files:
- ^plugins/.*$
- ^tests/integration/.*$
nodeset: container-ansible
timeout: 1000
vars:
ansible_collections_repo: "{{ zuul.project.canonical_name }}"
- semaphore:
name: ansible-test-cloud-integration-aws
max: 10
# integration jobs generated by tools/zuul-ansible-manager.py
# and in zuul.d/aws-integration-worker-jobs.yaml
### Cloud Common
- job:
name: ansible-test-units-cloud-common-python38
parent: ansible-test-units-base-python38
vars:
ansible_collections_repo: "{{ zuul.project.canonical_name }}"
- job:
name: ansible-test-units-cloud-common-python39
parent: ansible-test-units-base-python39
vars:
ansible_collections_repo: "{{ zuul.project.canonical_name }}"
### Community OKD
- job:
name: ansible-test-sanity-okd-downstream
parent: ansible-test-sanity-docker
required-projects:
- name: github.com/openshift/community.okd
run: playbooks/ansible-cloud/okd/sanity.yaml
- job:
name: ansible-test-sanity-okd-downstream-devel
parent: ansible-test-sanity-okd-downstream
required-projects:
- name: github.com/ansible/ansible
override-checkout: devel
voting: false
- job:
name: ansible-test-sanity-okd-downstream-milestone
parent: ansible-test-sanity-okd-downstream
required-projects:
- name: github.com/ansible/ansible
override-checkout: milestone
- job:
name: ansible-test-sanity-okd-downstream-milestone
parent: ansible-test-sanity-okd-downstream
required-projects:
- name: github.com/ansible/ansible
override-checkout: milestone
branches: stable-2.\d+
voting: false
- job:
name: ansible-test-sanity-okd-downstream-stable-2.9
parent: ansible-test-sanity-okd-downstream
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.9
vars:
container_command: docker
- job:
name: ansible-test-sanity-okd-downstream-stable-2.15
parent: ansible-test-sanity-okd-downstream
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.15
- job:
name: ansible-test-sanity-okd-downstream-stable-2.16
parent: ansible-test-sanity-okd-downstream
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.16
- job:
name: ansible-test-sanity-okd-downstream-stable-2.17
parent: ansible-test-sanity-okd-downstream
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.17
- job:
name: ansible-test-units-community-okd-python39
parent: ansible-test-units-base-python39
required-projects:
- name: github.com/openshift/community.okd
vars:
ansible_collections_repo: github.com/openshift/community.okd
### Kubernetes Core
- job:
name: ansible-test-units-kubernetes-core-python38
parent: ansible-test-units-base-python38
required-projects:
- name: github.com/ansible-collections/kubernetes.core
- name: github.com/ansible/ansible
override-checkout: stable-2.12
vars:
ansible_collections_repo: github.com/ansible-collections/kubernetes.core
- job:
name: ansible-test-units-kubernetes-core-python39
parent: ansible-test-units-base-python39
required-projects:
- name: github.com/ansible-collections/kubernetes.core
vars:
ansible_collections_repo: github.com/ansible-collections/kubernetes.core
- job:
name: ansible-test-cloud-integration-kubernetes-core
dependencies:
- name: build-ansible-collection
- name: ansible-test-splitter
pre-run:
- playbooks/ansible-cloud/py38/pre.yaml
- playbooks/ansible-cloud/py39/pre.yaml
- playbooks/ansible-cloud/k8s/pre.yaml
run: playbooks/ansible-test-base/run.yaml
files:
- ^plugins/.*$
- ^tests/integration/.*$
required-projects:
- name: github.com/ansible/ansible
- name: github.com/ansible-collections/kubernetes.core
timeout: 3600
nodeset: fedora-36-large
vars:
ansible_test_command: integration
ansible_test_python: 3.9
ansible_test_retry_on_error: true
ansible_test_integration_targets: "{{ child.targets_to_test[zuul.job] }}"
ansible_collections_repo: "github.com/ansible-collections/{{ zuul.job.split('-')[1] }}"
ansible_test_venv_path: "~/venv"
ansible_k8s_setup_kind_with_docker: true
- job:
name: integration-kubernetes.core-devel-1
parent: ansible-test-cloud-integration-kubernetes-core
voting: false
- job:
name: integration-kubernetes.core-devel-2
parent: integration-kubernetes.core-devel-1
- job:
name: integration-kubernetes.core-devel-3
parent: integration-kubernetes.core-devel-1
- job:
name: integration-kubernetes.core-milestone-1
parent: ansible-test-cloud-integration-kubernetes-core
required-projects:
- name: github.com/ansible/ansible
override-checkout: milestone
- job:
name: integration-kubernetes.core-milestone-2
parent: integration-kubernetes.core-milestone-1
- job:
name: integration-kubernetes.core-milestone-3
parent: integration-kubernetes.core-milestone-1
- job:
name: integration-kubernetes.core-2.9-1
parent: ansible-test-cloud-integration-kubernetes-core
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.9
vars:
ansible_test_python: 3.8
- job:
name: integration-kubernetes.core-2.9-2
parent: integration-kubernetes.core-2.9-1
- job:
name: integration-kubernetes.core-2.9-3
parent: integration-kubernetes.core-2.9-1
- job:
name: integration-kubernetes.core-2.10-1
parent: ansible-test-cloud-integration-kubernetes-core
required-projects:
- name: github.com/ansible/ansible
override-checkout: stable-2.10
- job:
name: integration-kubernetes.core-2.10-2
parent: integration-kubernetes.core-2.10-1
- job:
name: integration-kubernetes.core-2.10-3
parent: integration-kubernetes.core-2.10-1
- job:
name: integration-kubernetes.core-with-turbo-1
parent: ansible-test-cloud-integration-kubernetes-core
required-projects:
- name: github.com/ansible-collections/cloud.common
- name: github.com/ansible/ansible
override-checkout: milestone
vars:
ansible_test_environment:
ENABLE_TURBO_MODE: true
- job:
name: integration-kubernetes.core-with-turbo-2
parent: integration-kubernetes.core-with-turbo-1
- job:
name: integration-kubernetes.core-with-turbo-3
parent: integration-kubernetes.core-with-turbo-1
# Ansible test changelog
- job:
name: ansible-test-changelog
pre-run: playbooks/ansible-test-changelog/pre.yaml
run: playbooks/ansible-test-changelog/run.yaml
files:
- ^plugins/.*$
- ^tests/integration/.*$
nodeset: container-ansible
timeout: 1000
- job:
name: cloud-tox-py3
run: playbooks/ansible-cloud/cloud-tox-py3/run.yaml
nodeset:
nodes:
- name: container
label: zuul-worker-f37
- job:
name: cloud-tox-mypy
run: playbooks/ansible-cloud/cloud-tox-pypy/run.yaml
nodeset:
nodes:
- name: container
label: zuul-worker-f37
### Gouttelette
- job:
name: ansible-test-units-gouttelette-python39
parent: ansible-test-units-base-python39
required-projects:
- name: github.com/ansible-collections/gouttelette
vars:
ansible_collections_repo: github.com/ansible-collections/gouttelette
ansible_test_requirement_files:
- requirements.txt
- test-requirements.txt
# Ansible-test picks up requirements and constraints from
# tests/unit when running in docker, mirror this
- tests/unit/requirements.txt
ansible_test_constraint_files:
- tests/unit/constraints.txt
- job:
name: tox-cloud-generate-vmware
parent: tox
description: |
Used by vmare_rest_code_genate and amazon_cloud_code_generator to validate the
module generation.
required-projects:
- name: github.com/ansible-collections/vmware_rest_code_generator
- name: github.com/ansible-collections/gouttelette
nodeset: container-ansible
vars:
tox_envlist: generate
tox_package_name: amazon_cloud_code_generator
zuul_work_dir: "~/{{ zuul.projects['github.com/ansible-collections/vmware_rest_code_generator'].src_dir }}"
- job:
name: tox-cloud-generate-amazon
parent: tox
description: |
Used by vmare_rest_code_genate and amazon_cloud_code_generator to validate the
module generation.
required-projects:
- name: github.com/ansible-collections/amazon_cloud_code_generator
- name: github.com/ansible-collections/gouttelette
nodeset: container-ansible
vars:
tox_envlist: generate
tox_package_name: amazon_cloud_code_generator
zuul_work_dir: "~/{{ zuul.projects['github.com/ansible-collections/amazon_cloud_code_generator'].src_dir }}"
### Pravic
- job:
name: ansible-test-units-cloud-pravic-python39
parent: ansible-test-units-base-python39
required-projects:
- name: github.com/ansible-collections/pravic
- name: github.com/ansible/ansible
override-checkout: stable-2.14
vars:
ansible_collections_repo: github.com/ansible-collections/pravic
- job:
name: tox-cloud-refresh-modules-vmware
parent: tox
description: |
Refresh the modules using gouttelette.
required-projects:
- name: github.com/ansible-collections/vmware.vmware_rest
- name: github.com/ansible-collections/gouttelette
nodeset: container-ansible
vars:
tox_envlist: refresh_modules
tox_package_name: vmware_rest
zuul_work_dir: "~/{{ zuul.projects['github.com/ansible-collections/vmware.vmware_rest'].src_dir }}"