Skip to content

Commit e4f3da9

Browse files
authored
Add OSSM proxy jobs for 3.2 (#68942)
1 parent 13ebe99 commit e4f3da9

File tree

3 files changed

+777
-0
lines changed

3 files changed

+777
-0
lines changed
Lines changed: 346 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
1+
base_images:
2+
cli:
3+
name: "4.19"
4+
namespace: ocp
5+
tag: cli
6+
build_root:
7+
image_stream_tag:
8+
name: maistra-builder
9+
namespace: ci
10+
tag: "3.2"
11+
use_build_cache: true
12+
releases:
13+
latest:
14+
release:
15+
architecture: multi
16+
channel: stable
17+
version: "4.19"
18+
resources:
19+
'*':
20+
requests:
21+
cpu: 200m
22+
memory: 200Mi
23+
tests:
24+
- as: unit
25+
steps:
26+
cluster_profile: ossm-aws
27+
env:
28+
CI: "true"
29+
COMPUTE_NODE_REPLICAS: "1"
30+
COMPUTE_NODE_TYPE: m5d.8xlarge
31+
LOCAL_CPU_RESOURCES: "30"
32+
LOCAL_JOBS: "30"
33+
LOCAL_RAM_RESOURCES: "61440"
34+
MAISTRA_BUILDER_IMAGE: quay.io/maistra-dev/maistra-builder:3.2
35+
MAISTRA_NAMESPACE: maistra-e2e-test
36+
MAISTRA_SC_POD: maistra-proxy-test-pod
37+
test:
38+
- as: copy-src
39+
cli: latest
40+
commands: |
41+
tar cf - . | oc exec -i -n "${MAISTRA_NAMESPACE}" "${MAISTRA_SC_POD}" -- tar xf - -C /work/
42+
env:
43+
- name: MAISTRA_NAMESPACE
44+
- name: MAISTRA_SC_POD
45+
from: src
46+
resources:
47+
requests:
48+
cpu: 100m
49+
memory: 100Mi
50+
timeout: 20m0s
51+
- as: unit
52+
cli: latest
53+
commands: |
54+
oc rsh -n "${MAISTRA_NAMESPACE}" "${MAISTRA_SC_POD}" \
55+
sh -c \
56+
"export CI=${CI}; \
57+
export LOCAL_CPU_RESOURCES=${LOCAL_CPU_RESOURCES}; \
58+
export LOCAL_RAM_RESOURCES=${LOCAL_RAM_RESOURCES}; \
59+
export LOCAL_JOBS=${LOCAL_JOBS}; \
60+
./ossm/ci/pre-submit.sh"
61+
oc cp "${MAISTRA_NAMESPACE}"/"${MAISTRA_SC_POD}":"${ARTIFACT_DIR}"/. "${ARTIFACT_DIR}"
62+
env:
63+
- name: MAISTRA_NAMESPACE
64+
- name: MAISTRA_SC_POD
65+
- name: CI
66+
- name: LOCAL_CPU_RESOURCES
67+
- name: LOCAL_RAM_RESOURCES
68+
- name: LOCAL_JOBS
69+
from: src
70+
resources:
71+
requests:
72+
cpu: 100m
73+
memory: 100Mi
74+
timeout: 8h0m0s
75+
workflow: servicemesh-proxy-e2e-aws
76+
timeout: 8h0m0s
77+
- as: unit-arm
78+
steps:
79+
cluster_profile: ossm-aws
80+
env:
81+
CI: "true"
82+
COMPUTE_NODE_REPLICAS: "1"
83+
COMPUTE_NODE_TYPE: m8gd.8xlarge
84+
LOCAL_CPU_RESOURCES: "30"
85+
LOCAL_JOBS: "30"
86+
LOCAL_RAM_RESOURCES: "61440"
87+
MAISTRA_BUILDER_IMAGE: quay.io/maistra-dev/maistra-builder:3.2
88+
MAISTRA_NAMESPACE: maistra-e2e-test
89+
MAISTRA_SC_POD: maistra-proxy-test-pod
90+
OCP_ARCH: arm64
91+
test:
92+
- as: copy-src
93+
cli: latest
94+
commands: |
95+
tar cf - . | oc exec -i -n "${MAISTRA_NAMESPACE}" "${MAISTRA_SC_POD}" -- tar xf - -C /work/
96+
env:
97+
- name: MAISTRA_NAMESPACE
98+
- name: MAISTRA_SC_POD
99+
from: src
100+
resources:
101+
requests:
102+
cpu: 100m
103+
memory: 100Mi
104+
timeout: 20m0s
105+
- as: unit-arm
106+
cli: latest
107+
commands: |
108+
oc rsh -n "${MAISTRA_NAMESPACE}" "${MAISTRA_SC_POD}" \
109+
sh -c \
110+
"export CI=${CI}; \
111+
export LOCAL_CPU_RESOURCES=${LOCAL_CPU_RESOURCES}; \
112+
export LOCAL_RAM_RESOURCES=${LOCAL_RAM_RESOURCES}; \
113+
export LOCAL_JOBS=${LOCAL_JOBS}; \
114+
./ossm/ci/pre-submit.sh"
115+
oc cp "${MAISTRA_NAMESPACE}"/"${MAISTRA_SC_POD}":"${ARTIFACT_DIR}"/. "${ARTIFACT_DIR}"
116+
env:
117+
- name: MAISTRA_NAMESPACE
118+
- name: MAISTRA_SC_POD
119+
- name: CI
120+
- name: LOCAL_CPU_RESOURCES
121+
- name: LOCAL_RAM_RESOURCES
122+
- name: LOCAL_JOBS
123+
from: src
124+
resources:
125+
requests:
126+
cpu: 100m
127+
memory: 100Mi
128+
timeout: 8h0m0s
129+
workflow: servicemesh-proxy-e2e-aws
130+
timeout: 8h0m0s
131+
- always_run: false
132+
as: envoy
133+
optional: true
134+
steps:
135+
cluster_profile: ossm-aws
136+
env:
137+
CI: "true"
138+
COMPUTE_NODE_REPLICAS: "1"
139+
COMPUTE_NODE_ROOTVOLUME_SIZE: "300"
140+
COMPUTE_NODE_TYPE: m5d.8xlarge
141+
LOCAL_CPU_RESOURCES: "30"
142+
LOCAL_JOBS: "30"
143+
LOCAL_RAM_RESOURCES: "61440"
144+
MAISTRA_BUILDER_IMAGE: quay.io/maistra-dev/maistra-builder:3.2
145+
MAISTRA_NAMESPACE: maistra-e2e-test
146+
MAISTRA_SC_POD: maistra-proxy-test-pod
147+
test:
148+
- as: copy-src
149+
cli: latest
150+
commands: |
151+
tar cf - . | oc exec -i -n "${MAISTRA_NAMESPACE}" "${MAISTRA_SC_POD}" -- tar xf - -C /work/
152+
env:
153+
- name: MAISTRA_NAMESPACE
154+
- name: MAISTRA_SC_POD
155+
from: src
156+
resources:
157+
requests:
158+
cpu: 100m
159+
memory: 100Mi
160+
timeout: 20m0s
161+
- as: envoy
162+
cli: latest
163+
commands: |
164+
oc rsh -n "${MAISTRA_NAMESPACE}" "${MAISTRA_SC_POD}" \
165+
sh -c \
166+
"export CI=${CI}; \
167+
export LOCAL_CPU_RESOURCES=${LOCAL_CPU_RESOURCES}; \
168+
export LOCAL_RAM_RESOURCES=${LOCAL_RAM_RESOURCES}; \
169+
export LOCAL_JOBS=${LOCAL_JOBS}; \
170+
./ossm/ci/pre-submit-envoy.sh"
171+
oc cp "${MAISTRA_NAMESPACE}"/"${MAISTRA_SC_POD}":"${ARTIFACT_DIR}"/. "${ARTIFACT_DIR}"
172+
env:
173+
- name: MAISTRA_NAMESPACE
174+
- name: MAISTRA_SC_POD
175+
- name: CI
176+
- name: LOCAL_CPU_RESOURCES
177+
- name: LOCAL_RAM_RESOURCES
178+
- name: LOCAL_JOBS
179+
from: src
180+
resources:
181+
requests:
182+
cpu: 100m
183+
memory: 100Mi
184+
timeout: 8h0m0s
185+
workflow: servicemesh-envoy-e2e-aws
186+
timeout: 8h0m0s
187+
- as: copy-artifacts-gcs
188+
postsubmit: true
189+
steps:
190+
cluster_profile: ossm-aws
191+
env:
192+
ARTIFACTS_GCS_PATH: gs://maistra-prow-testing/proxy
193+
CI: "true"
194+
COMPUTE_NODE_REPLICAS: "1"
195+
COMPUTE_NODE_TYPE: m5d.8xlarge
196+
GCS_PROJECT: maistra-prow-testing
197+
LOCAL_CPU_RESOURCES: "30"
198+
LOCAL_JOBS: "30"
199+
LOCAL_RAM_RESOURCES: "61440"
200+
MAISTRA_BUILDER_IMAGE: quay.io/maistra-dev/maistra-builder:3.2
201+
MAISTRA_NAMESPACE: maistra-e2e-test
202+
MAISTRA_SC_POD: maistra-proxy-test-pod
203+
test:
204+
- as: copy-src
205+
cli: latest
206+
commands: |
207+
# copy source
208+
tar cf - . | oc exec -i -n "${MAISTRA_NAMESPACE}" "${MAISTRA_SC_POD}" -- tar xf - -C /work/
209+
# copy gcs service-account
210+
TARGET=$(readlink -f /maistra-secrets/service-account.json)
211+
oc cp "${TARGET}" "${MAISTRA_NAMESPACE}"/"${MAISTRA_SC_POD}":/work/
212+
credentials:
213+
- collection: ""
214+
mount_path: /maistra-secrets
215+
name: gcs-credentials
216+
namespace: test-credentials
217+
env:
218+
- name: MAISTRA_NAMESPACE
219+
- name: MAISTRA_SC_POD
220+
from: src
221+
resources:
222+
requests:
223+
cpu: 100m
224+
memory: 100Mi
225+
timeout: 20m0s
226+
- as: copy-artifacts-gcs
227+
cli: latest
228+
commands: |
229+
oc rsh -n "${MAISTRA_NAMESPACE}" "${MAISTRA_SC_POD}" \
230+
sh -c \
231+
"export CI=${CI}; \
232+
export LOCAL_CPU_RESOURCES=${LOCAL_CPU_RESOURCES}; \
233+
export LOCAL_RAM_RESOURCES=${LOCAL_RAM_RESOURCES}; \
234+
export LOCAL_JOBS=${LOCAL_JOBS}; \
235+
export GOOGLE_APPLICATION_CREDENTIALS='/work/service-account.json'; \
236+
./ossm/ci/post-submit.sh"
237+
env:
238+
- name: MAISTRA_NAMESPACE
239+
- name: MAISTRA_SC_POD
240+
- name: CI
241+
- name: LOCAL_CPU_RESOURCES
242+
- name: LOCAL_RAM_RESOURCES
243+
- name: LOCAL_JOBS
244+
- name: GCS_PROJECT
245+
- name: ARTIFACTS_GCS_PATH
246+
from: src
247+
resources:
248+
requests:
249+
cpu: 100m
250+
memory: 100Mi
251+
timeout: 8h0m0s
252+
workflow: servicemesh-proxy-e2e-aws
253+
timeout: 8h0m0s
254+
- as: copy-artifacts-gcs-arm
255+
postsubmit: true
256+
steps:
257+
cluster_profile: ossm-aws
258+
env:
259+
ARTIFACTS_GCS_PATH: gs://maistra-prow-testing/proxy
260+
CI: "true"
261+
COMPUTE_NODE_REPLICAS: "1"
262+
COMPUTE_NODE_TYPE: m8gd.8xlarge
263+
GCS_PROJECT: maistra-prow-testing
264+
LOCAL_CPU_RESOURCES: "30"
265+
LOCAL_JOBS: "30"
266+
LOCAL_RAM_RESOURCES: "61440"
267+
MAISTRA_BUILDER_IMAGE: quay.io/maistra-dev/maistra-builder:3.2
268+
MAISTRA_NAMESPACE: maistra-e2e-test
269+
MAISTRA_SC_POD: maistra-proxy-test-pod
270+
OCP_ARCH: arm64
271+
test:
272+
- as: copy-src
273+
cli: latest
274+
commands: |
275+
# copy source
276+
tar cf - . | oc exec -i -n "${MAISTRA_NAMESPACE}" "${MAISTRA_SC_POD}" -- tar xf - -C /work/
277+
# copy gcs service-account
278+
TARGET=$(readlink -f /maistra-secrets/service-account.json)
279+
oc cp "${TARGET}" "${MAISTRA_NAMESPACE}"/"${MAISTRA_SC_POD}":/work/
280+
credentials:
281+
- collection: ""
282+
mount_path: /maistra-secrets
283+
name: gcs-credentials
284+
namespace: test-credentials
285+
env:
286+
- name: MAISTRA_NAMESPACE
287+
- name: MAISTRA_SC_POD
288+
from: src
289+
resources:
290+
requests:
291+
cpu: 100m
292+
memory: 100Mi
293+
timeout: 20m0s
294+
- as: copy-artifacts-gcs-arm
295+
cli: latest
296+
commands: |
297+
oc rsh -n "${MAISTRA_NAMESPACE}" "${MAISTRA_SC_POD}" \
298+
sh -c \
299+
"export CI=${CI}; \
300+
export LOCAL_CPU_RESOURCES=${LOCAL_CPU_RESOURCES}; \
301+
export LOCAL_RAM_RESOURCES=${LOCAL_RAM_RESOURCES}; \
302+
export LOCAL_JOBS=${LOCAL_JOBS}; \
303+
export GOOGLE_APPLICATION_CREDENTIALS='/work/service-account.json'; \
304+
./ossm/ci/post-submit.sh"
305+
env:
306+
- name: MAISTRA_NAMESPACE
307+
- name: MAISTRA_SC_POD
308+
- name: CI
309+
- name: LOCAL_CPU_RESOURCES
310+
- name: LOCAL_RAM_RESOURCES
311+
- name: LOCAL_JOBS
312+
- name: GCS_PROJECT
313+
- name: ARTIFACTS_GCS_PATH
314+
from: src
315+
resources:
316+
requests:
317+
cpu: 100m
318+
memory: 100Mi
319+
timeout: 8h0m0s
320+
workflow: servicemesh-proxy-e2e-aws
321+
timeout: 8h0m0s
322+
- as: update-istio
323+
commands: |
324+
# load test-infra automator.sh script
325+
export ISTIO_ENVOY_BASE_URL="https://storage.googleapis.com/maistra-prow-testing/proxy"
326+
git clone https://github.com/maistra/test-infra.git
327+
cd test-infra
328+
./tools/automator.sh \
329+
-o openshift-service-mesh \
330+
-r istio \
331+
-f /creds-github/token \
332+
"-c bin/update_proxy.sh ${PULL_BASE_SHA}" \
333+
'-t [release-1.27] Automator: Update proxy' \
334+
-m bump-proxy-1.27 \
335+
-b release-1.27
336+
container:
337+
from: src
338+
postsubmit: true
339+
secrets:
340+
- mount_path: /creds-github
341+
name: ossm-github-simple-job
342+
timeout: 8h0m0s
343+
zz_generated_metadata:
344+
branch: release-1.27
345+
org: openshift-service-mesh
346+
repo: proxy

0 commit comments

Comments
 (0)