Skip to content

Commit 23a11d9

Browse files
committed
Convert unit, integration test and integration-CLI jobs to postsubmits
1 parent 7dece64 commit 23a11d9

File tree

2 files changed

+171
-125
lines changed

2 files changed

+171
-125
lines changed

config/jobs/periodic/docker/periodic-ci-docker.yaml

Lines changed: 10 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ periodics:
1010
org: ppc64le-cloud
1111
repo: docker-ce-build
1212
reporter_config:
13-
slack:
14-
channel: 'prow-job-notifications'
15-
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
13+
slack:
14+
channel: 'prow-job-notifications'
15+
job_states_to_report:
16+
- failure
17+
- error
18+
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
1619
spec:
1720
containers:
1821
- image: quay.io/powercloud/docker-ce-build@sha256:b1e2679b9a5aabe15a94ae3130f5b02ce67441cf361fda7dc7a41929bb50ba87
@@ -49,7 +52,7 @@ periodics:
4952
cluster: k8s-ppc64le-cluster
5053
labels:
5154
preset-build-docker: "true"
52-
cron: 0 3 * * *
55+
cron: 10 0 * * *
5356
decorate: true
5457
extra_refs:
5558
- base_ref: main
@@ -58,6 +61,9 @@ periodics:
5861
reporter_config:
5962
slack:
6063
channel: 'prow-job-notifications'
64+
job_states_to_report:
65+
- failure
66+
- error
6167
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
6268
spec:
6369
containers:
@@ -84,124 +90,3 @@ periodics:
8490
exit $rc
8591
securityContext:
8692
privileged: true
87-
- name: periodic-unit-test-docker
88-
cluster: k8s-ppc64le-cluster
89-
labels:
90-
preset-build-docker: "true"
91-
cron: 0 9 * * *
92-
decorate: true
93-
extra_refs:
94-
- base_ref: main
95-
org: ppc64le-cloud
96-
repo: docker-ce-build
97-
reporter_config:
98-
slack:
99-
channel: 'prow-job-notifications'
100-
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
101-
spec:
102-
containers:
103-
- image: quay.io/powercloud/docker-ce-build@sha256:b1e2679b9a5aabe15a94ae3130f5b02ce67441cf361fda7dc7a41929bb50ba87
104-
resources:
105-
requests:
106-
cpu: "4000m"
107-
limits:
108-
cpu: "4000m"
109-
command:
110-
- /bin/bash
111-
args:
112-
- -c
113-
- |
114-
set -o errexit
115-
set -o nounset
116-
set -o pipefail
117-
set -o xtrace
118-
echo "* Start prow-unit-test-docker *"
119-
chmod ug+x $PWD/upstream-master-ci/prow-unit-test-docker.sh
120-
$PWD/upstream-master-ci/prow-unit-test-docker.sh
121-
rc=$?
122-
[ $rc != 0 ] && echo "ERROR: prow-unit-test-docker exited with code:$rc"
123-
exit $rc
124-
securityContext:
125-
privileged: true
126-
- name: periodic-integration-cli-docker
127-
cluster: k8s-ppc64le-cluster
128-
labels:
129-
preset-build-docker: "true"
130-
cron: 0 14 * * *
131-
decorate: true
132-
decoration_config:
133-
timeout: 3h
134-
extra_refs:
135-
- base_ref: main
136-
org: ppc64le-cloud
137-
repo: docker-ce-build
138-
reporter_config:
139-
slack:
140-
channel: 'prow-job-notifications'
141-
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
142-
spec:
143-
containers:
144-
- image: quay.io/powercloud/docker-ce-build@sha256:b1e2679b9a5aabe15a94ae3130f5b02ce67441cf361fda7dc7a41929bb50ba87
145-
resources:
146-
requests:
147-
cpu: "4000m"
148-
limits:
149-
cpu: "4000m"
150-
command:
151-
- /bin/bash
152-
args:
153-
- -c
154-
- |
155-
set -o errexit
156-
set -o nounset
157-
set -o pipefail
158-
set -o xtrace
159-
echo "* Start prow-integration-cli-tests *"
160-
chmod ug+x $PWD/upstream-master-ci/prow-integration-cli.sh
161-
$PWD/upstream-master-ci/prow-integration-cli.sh
162-
rc=$?
163-
[ $rc != 0 ] && echo "ERROR: prow-integration-cli-tests exited with code:$rc"
164-
exit $rc
165-
securityContext:
166-
privileged: true
167-
- name: periodic-integration-test-docker
168-
cluster: k8s-ppc64le-cluster
169-
labels:
170-
preset-build-docker: "true"
171-
cron: 30 14 * * *
172-
decorate: true
173-
decoration_config:
174-
timeout: 3h
175-
extra_refs:
176-
- base_ref: main
177-
org: ppc64le-cloud
178-
repo: docker-ce-build
179-
reporter_config:
180-
slack:
181-
channel: 'prow-job-notifications'
182-
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
183-
spec:
184-
containers:
185-
- image: quay.io/powercloud/docker-ce-build@sha256:b1e2679b9a5aabe15a94ae3130f5b02ce67441cf361fda7dc7a41929bb50ba87
186-
resources:
187-
requests:
188-
cpu: "4000m"
189-
limits:
190-
cpu: "4000m"
191-
command:
192-
- /bin/bash
193-
args:
194-
- -c
195-
- |
196-
set -o errexit
197-
set -o nounset
198-
set -o pipefail
199-
set -o xtrace
200-
echo "* Start prow-integration-tests *"
201-
chmod ug+x $PWD/upstream-master-ci/prow-integration-tests.sh
202-
$PWD/upstream-master-ci/prow-integration-tests.sh
203-
rc=$?
204-
[ $rc != 0 ] && echo "ERROR: prow-integration-tests exited with code:$rc"
205-
exit $rc
206-
securityContext:
207-
privileged: true
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
postsubmits:
2+
ppc64le-cloud/docker-ce-build:
3+
- name: postsubmit-unit-test-docker
4+
cluster: k8s-ppc64le-cluster
5+
labels:
6+
preset-build-docker: "true"
7+
decorate: true
8+
decoration_config:
9+
timeout: 2h
10+
run_if_changed: 'job/postsubmit-ci-docker'
11+
reporter_config:
12+
slack:
13+
channel: 'prow-job-notifications'
14+
job_states_to_report:
15+
- failure
16+
- error
17+
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
18+
branches:
19+
- prow-job-tracking
20+
spec:
21+
containers:
22+
- image: quay.io/powercloud/docker-ce-build@sha256:b1e2679b9a5aabe15a94ae3130f5b02ce67441cf361fda7dc7a41929bb50ba87
23+
resources:
24+
requests:
25+
cpu: "4000m"
26+
limits:
27+
cpu: "4000m"
28+
command:
29+
- /bin/bash
30+
args:
31+
- -c
32+
- |
33+
##
34+
# This job is populated with the files from the 'prow-job-tracking' branch.
35+
# We switch to the 'main' branch, as it contains the scripts used by this job.
36+
###
37+
38+
set -o errexit
39+
set -o nounset
40+
set -o pipefail
41+
set -o xtrace
42+
43+
#Set this to your dev branch for testing
44+
WORK_BRANCH=main
45+
git fetch https://github.com/${REPO_OWNER}/${REPO_NAME} ${WORK_BRANCH}
46+
git checkout ${WORK_BRANCH}
47+
echo "* Start prow-unit-test-docker *"
48+
chmod ug+x $PWD/upstream-master-ci/prow-unit-test-docker.sh
49+
$PWD/upstream-master-ci/prow-unit-test-docker.sh
50+
rc=$?
51+
[ $rc != 0 ] && echo "ERROR: prow-unit-test-docker exited with code:$rc"
52+
exit $rc
53+
54+
securityContext:
55+
privileged: true
56+
- name: postsubmit-integration-cli-docker
57+
cluster: k8s-ppc64le-cluster
58+
labels:
59+
preset-build-docker: "true"
60+
decorate: true
61+
decoration_config:
62+
timeout: 2h
63+
run_if_changed: 'job/postsubmit-ci-docker'
64+
reporter_config:
65+
slack:
66+
channel: 'prow-job-notifications'
67+
job_states_to_report:
68+
- failure
69+
- error
70+
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
71+
branches:
72+
- prow-job-tracking
73+
spec:
74+
containers:
75+
- image: quay.io/powercloud/docker-ce-build@sha256:b1e2679b9a5aabe15a94ae3130f5b02ce67441cf361fda7dc7a41929bb50ba87
76+
resources:
77+
requests:
78+
cpu: "4000m"
79+
limits:
80+
cpu: "4000m"
81+
command:
82+
- /bin/bash
83+
args:
84+
- -c
85+
- |
86+
##
87+
# This job is populated with the files from the 'prow-job-tracking' branch.
88+
# We switch to the 'main' branch, as it contains the scripts used by this job.
89+
###
90+
91+
set -o errexit
92+
set -o nounset
93+
set -o pipefail
94+
set -o xtrace
95+
96+
#Set this to your dev branch for testing
97+
WORK_BRANCH=main
98+
git fetch https://github.com/${REPO_OWNER}/${REPO_NAME} ${WORK_BRANCH}
99+
git checkout ${WORK_BRANCH}
100+
echo "* Start prow-integration-cli-docker *"
101+
chmod ug+x $PWD/upstream-master-ci/prow-integration-cli.sh
102+
$PWD/upstream-master-ci/prow-integration-cli.sh
103+
rc=$?
104+
[ $rc != 0 ] && echo "ERROR: prow-integration-cli-docker exited with code:$rc"
105+
exit $rc
106+
107+
securityContext:
108+
privileged: true
109+
- name: postsubmit-integration-test-docker
110+
cluster: k8s-ppc64le-cluster
111+
labels:
112+
preset-build-docker: "true"
113+
decorate: true
114+
decoration_config:
115+
timeout: 2h
116+
run_if_changed: 'job/postsubmit-ci-docker'
117+
reporter_config:
118+
slack:
119+
channel: 'prow-job-notifications'
120+
job_states_to_report:
121+
- failure
122+
- error
123+
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
124+
branches:
125+
- prow-job-tracking
126+
spec:
127+
containers:
128+
- image: quay.io/powercloud/docker-ce-build@sha256:b1e2679b9a5aabe15a94ae3130f5b02ce67441cf361fda7dc7a41929bb50ba87
129+
resources:
130+
requests:
131+
cpu: "4000m"
132+
limits:
133+
cpu: "4000m"
134+
command:
135+
- /bin/bash
136+
args:
137+
- -c
138+
- |
139+
##
140+
# This job is populated with the files from the 'prow-job-tracking' branch.
141+
# We switch to the 'main' branch, as it contains the scripts used by this job.
142+
###
143+
144+
set -o errexit
145+
set -o nounset
146+
set -o pipefail
147+
set -o xtrace
148+
149+
#Set this to your dev branch for testing
150+
WORK_BRANCH=main
151+
git fetch https://github.com/${REPO_OWNER}/${REPO_NAME} ${WORK_BRANCH}
152+
git checkout ${WORK_BRANCH}
153+
echo "* Start prow-integration-test-docker *"
154+
chmod ug+x $PWD/upstream-master-ci/prow-integration-tests.sh
155+
$PWD/upstream-master-ci/prow-integration-tests.sh
156+
rc=$?
157+
[ $rc != 0 ] && echo "ERROR: prow-integration-test-docker exited with code:$rc"
158+
exit $rc
159+
160+
securityContext:
161+
privileged: true

0 commit comments

Comments
 (0)