Skip to content

Commit 4e6e301

Browse files
committed
Merge branch 'master' into theopenlab/openlab#211
2 parents 4ae199c + 70db21f commit 4e6e301

File tree

10 files changed

+313
-255
lines changed

10 files changed

+313
-255
lines changed

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,6 @@ jobs definitions into this repo firstly.
88
If this is first time you come to OpenLab, please start with OpenLab
99
[Getting Started](https://docs.openlabtesting.org/publications/).
1010

11-
Jobs naming notations
12-
---------------------
13-
To unify the jobs name format, we have the following naming notations:
14-
15-
{project}-{test type}-{backend}-{service}
16-
17-
- The *project* usually is the name of the git repo which contains tests to run.
18-
- The *test type* is the type of tests to run, e.g. acceptance tests, unit test.
19-
- The *backend* is the test environment provider, default is `Devstack`, optionally.
20-
- The *service* is the specific OpenStack service which this job will run against,
21-
optionally.
22-
23-
For an example, the job definition about running the specific Trove related
24-
acceptance tests of terraform-provider-openstack repo can be named as:
25-
26-
terraform-provider-openstack-acceptance-test-trove
27-
2811
More information
2912
----------------
3013
Web page about OpenLab:

playbooks/cloud-provider-openstack-acceptance-test-e2e-conformance/run.yaml

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -127,37 +127,29 @@
127127
- name: Run image build and publish for cloud-provider-openstack
128128
shell:
129129
cmd: |
130-
# NOTE(flaper87): Export these variables
131-
# before setting -x and -e to avoid leaking
132-
# sensitive data.
133-
# NOTE(mrhillsman): Credentials still were leaking
134-
# so removing the export unless absolutely needed
135-
# and setting the login earlier instead of using Makefile
136-
# https://github.com/kubernetes/cloud-provider-openstack/blob/master/Makefile#L255
137-
#export DOCKER_USERNAME={{dockerhub.username}}
138-
#export DOCKER_PASSWORD={{dockerhub.password}}
139-
docker login -u {{dockerhub.username}} -p {{dockerhub.password}}
140-
export REGISTRY=docker.io/k8scloudprovider
141-
export VERSION=latest
142-
143-
set -x
144-
set -e
145-
set -o pipefail
146-
147-
if [ '{{ zuul.pipeline }}' != 'periodic' ]; then
148-
exit 0;
130+
if [ '{{ zuul.pipeline }}' == 'periodic' ] && [ '{{ zuul.branch }}' == 'master' ]; then
131+
export LOG_DIR='{{ k8s_log_dir }}'
132+
docker login -u {{dockerhub.username}} -p {{dockerhub.password}}
133+
export REGISTRY=docker.io/k8scloudprovider
134+
export VERSION=latest
135+
136+
set -x
137+
set -e
138+
set -o pipefail
139+
140+
make images 2>&1 | tee $LOG_DIR/image-build-upload.log
141+
142+
docker push ${REGISTRY}/openstack-cloud-controller-manager:${VERSION} | tee $LOG_DIR/image-build-upload.log
143+
docker push ${REGISTRY}/cinder-flex-volume-driver:${VERSION} | tee $LOG_DIR/image-build-upload.log
144+
docker push ${REGISTRY}/cinder-provisioner:${VERSION} | tee $LOG_DIR/image-build-upload.log
145+
docker push ${REGISTRY}/cinder-csi-plugin:${VERSION} | tee $LOG_DIR/image-build-upload.log
146+
docker push ${REGISTRY}/k8s-keystone-auth:${VERSION} | tee $LOG_DIR/image-build-upload.log
147+
docker push ${REGISTRY}/octavia-ingress-controller:${VERSION} | tee $LOG_DIR/image-build-upload.log
148+
docker push ${REGISTRY}/manila-provisioner:${VERSION} | tee $LOG_DIR/image-build-upload.log
149+
else
150+
exit 0;
149151
fi
150152
151-
make images 2>&1 | tee $LOG_DIR/image-build-upload.log
152-
153-
docker push ${REGISTRY}/openstack-cloud-controller-manager:${VERSION} | tee $LOG_DIR/image-build-upload.log
154-
docker push ${REGISTRY}/cinder-flex-volume-driver:${VERSION} | tee $LOG_DIR/image-build-upload.log
155-
docker push ${REGISTRY}/cinder-provisioner:${VERSION} | tee $LOG_DIR/image-build-upload.log
156-
docker push ${REGISTRY}/cinder-csi-plugin:${VERSION} | tee $LOG_DIR/image-build-upload.log
157-
docker push ${REGISTRY}/k8s-keystone-auth:${VERSION} | tee $LOG_DIR/image-build-upload.log
158-
docker push ${REGISTRY}/octavia-ingress-controller:${VERSION} | tee $LOG_DIR/image-build-upload.log
159-
docker push ${REGISTRY}/manila-provisioner:${VERSION} | tee $LOG_DIR/image-build-upload.log
160-
161153
executable: /bin/bash
162154
chdir: '{{ k8s_os_provider_src_dir }}'
163155
environment: '{{ global_env }}'

playbooks/kind-integration-test-arm64/post.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
- hosts: all
2-
roles:
3-
#- export-kind-gcp-account
2+
# TODO create a role export-kind-gcp-account and add here
43
become: yes
54
tasks:
6-
- name: #TODO Upload E2E conformance test result to kubernetes testgrid
5+
- name: Upload conformance test result to testgrid
76
shell:
87
cmd: |
98
set -e

roles/config-golang/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
go_version: '1.11.1'
2+
go_version: '1.12.1'
33
go_tarball: 'go{{ go_version }}.linux-amd64.tar.gz'
44
go_download_location: 'https://storage.googleapis.com/golang/{{ go_tarball }}'

roles/create-devstack-local-conf/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[[local|localrc]]
99
NETWORK_GATEWAY=10.0.0.1
1010
enable_plugin neutron git://git.openstack.org/openstack/neutron
11+
SWIFT_LOOPBACK_DISK_SIZE=10G
1112
EOF
1213
executable: /bin/bash
1314

@@ -159,7 +160,6 @@
159160
set -e
160161
set -x
161162
cat << EOF >> /tmp/dg-local.conf
162-
enable_service designate,designate-central,designate-api,designate-pool-manager,designate-zone-manager,designate-mdns
163163
enable_plugin designate git://git.openstack.org/openstack/designate
164164
EOF
165165
executable: /bin/bash

zuul.d/jobs.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
doesn't validate the node and does not generate an ARA report.
1111
These tasks, if required, can be included by the dependant jobs
1212
themselves on a need basis.
13-
attempts: 1
13+
attempts: 2
1414
pre-run: playbooks/base/pre.yaml
1515
post-run:
1616
- playbooks/base/post-ssh.yaml
@@ -309,6 +309,8 @@
309309
parent: cloud-provider-openstack-test
310310
description: |
311311
Run Kubernetes E2E Conformance tests against Kubernetes master
312+
vars:
313+
go_version: '1.12.1'
312314
run: playbooks/cloud-provider-openstack-acceptance-test-e2e-conformance/run.yaml
313315
post-run: playbooks/cloud-provider-openstack-acceptance-test-e2e-conformance/post.yaml
314316
secrets:
@@ -322,6 +324,7 @@
322324
description: |
323325
Run Kubernetes E2E Conformance tests against Kubernetes v1.10
324326
vars:
327+
go_version: '1.9.3'
325328
k8s_version: 'release-1.10'
326329

327330
- job:
@@ -330,6 +333,7 @@
330333
description: |
331334
Run Kubernetes E2E Conformance tests against Kubernetes v1.11
332335
vars:
336+
go_version: '1.10.3'
333337
k8s_version: 'release-1.11'
334338

335339
- job:
@@ -338,6 +342,7 @@
338342
description: |
339343
Run Kubernetes E2E Conformance tests against Kubernetes v1.12
340344
vars:
345+
go_version: '1.10.8'
341346
k8s_version: 'release-1.12'
342347

343348
- job:
@@ -346,6 +351,7 @@
346351
description: |
347352
Run Kubernetes E2E Conformance tests against Kubernetes v1.13
348353
vars:
354+
go_version: '1.11.5'
349355
k8s_version: 'release-1.13'
350356

351357
- job:
@@ -354,6 +360,7 @@
354360
description: |
355361
Run Kubernetes E2E Conformance tests against Kubernetes v1.14
356362
vars:
363+
go_version: '1.12.1'
357364
k8s_version: 'release-1.14'
358365

359366
- job:

zuul.d/nodesets.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@
4141
nodes:
4242
- name: ubuntu-xenial-huaweicloud
4343
label: ubuntu-xenial-huaweicloud
44+
45+
- nodeset:
46+
name: ubuntu-xenial-gpu
47+
nodes:
48+
- name: ubuntu-xenial-gpu
49+
label: ubuntu-xenial-gpu

zuul.d/pipelines.yaml

Lines changed: 77 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,13 @@
174174
status: 'failure'
175175
mysql:
176176

177+
# NOTES: Deprecated, don't accept any new jobs, but please don't remove it,
178+
# some outside projects refer name "periodic" in repository.
177179
- pipeline:
178180
name: periodic
179-
description: Jobs in this queue are triggered on a timer. UTC-0 04:00, 09:00 and 16:00
181+
description: |
182+
Deprecated.
183+
Jobs in this queue are triggered on a timer. UTC-0 04:00, 09:00 and 16:00
180184
manager: independent
181185
precedence: low
182186
trigger:
@@ -188,28 +192,88 @@
188192
mysql:
189193

190194
- pipeline:
191-
name: periodic-2
192-
description: Jobs in this queue are triggered on a timer. UTC-0 22:00
195+
name: periodic-0/12
196+
description: |
197+
Jobs in this queue are triggered on a timer. UTC-0 00:00 and 12:00
193198
manager: independent
194-
precedence: low
199+
precedence: high
195200
trigger:
196201
timer:
197-
- time: '0 22 * * *'
202+
- time: '0 0,12 * * *'
198203
success:
199204
mysql:
200205
failure:
201206
mysql:
202207

203208
- pipeline:
204-
name: merge-check
205-
description: >
206-
Each time a change merges, this pipeline verifies that all open changes
207-
on the same project are still mergeable.
208-
failure-message: Build failed (merge-check pipeline).
209+
name: periodic-2/14
210+
description: |
211+
Jobs in this queue are triggered on a timer. UTC-0 02:00 and 14:00
209212
manager: independent
210-
ignore-dependencies: true
211-
precedence: low
212-
trigger: {}
213+
precedence: high
214+
trigger:
215+
timer:
216+
- time: '0 2,14 * * *'
217+
success:
218+
mysql:
219+
failure:
220+
mysql:
221+
222+
- pipeline:
223+
name: periodic-4/16
224+
description: |
225+
Jobs in this queue are triggered on a timer. UTC-0 04:00 and 16:00
226+
manager: independent
227+
precedence: high
228+
trigger:
229+
timer:
230+
- time: '0 4,16 * * *'
231+
success:
232+
mysql:
233+
failure:
234+
mysql:
235+
236+
- pipeline:
237+
name: periodic-6/18
238+
description: |
239+
Jobs in this queue are triggered on a timer. UTC-0 06:00 and 18:00
240+
manager: independent
241+
precedence: high
242+
trigger:
243+
timer:
244+
- time: '0 6,18 * * *'
245+
success:
246+
mysql:
247+
failure:
248+
mysql:
249+
250+
- pipeline:
251+
name: periodic-8/20
252+
description: |
253+
Jobs in this queue are triggered on a timer. UTC-0 08:00 and 20:00
254+
manager: independent
255+
precedence: high
256+
trigger:
257+
timer:
258+
- time: '0 8,20 * * *'
259+
success:
260+
mysql:
261+
failure:
262+
mysql:
263+
264+
- pipeline:
265+
name: periodic-10/22
266+
description: |
267+
Jobs in this queue are triggered on a timer. UTC-0 10:00 and 22:00
268+
manager: independent
269+
precedence: high
270+
trigger:
271+
timer:
272+
- time: '0 10,22 * * *'
273+
success:
274+
mysql:
275+
failure:
276+
mysql:
213277

214278
- pipeline:
215279
name: recheck-designate

0 commit comments

Comments
 (0)