Skip to content

Commit 7fe1949

Browse files
authored
Use inrepo config for prow (#1341)
Signed-off-by: Oleg Avdeev <[email protected]>
1 parent 36e8695 commit 7fe1949

File tree

2 files changed

+187
-191
lines changed

2 files changed

+187
-191
lines changed

.prow.yaml

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
presubmits:
2+
- name: test-core-and-ingestion
3+
decorate: true
4+
spec:
5+
containers:
6+
- image: maven:3.6-jdk-11
7+
command: ["infra/scripts/test-core-ingestion.sh"]
8+
resources:
9+
requests:
10+
cpu: "2000m"
11+
memory: "1536Mi"
12+
skip_branches:
13+
- ^v0\.(3|4)-branch$
14+
15+
- name: test-core-and-ingestion-java-8
16+
decorate: true
17+
always_run: true
18+
spec:
19+
containers:
20+
- image: maven:3.6-jdk-8
21+
command: ["infra/scripts/test-core-ingestion.sh"]
22+
resources:
23+
requests:
24+
cpu: "2000m"
25+
memory: "1536Mi"
26+
branches:
27+
- ^v0\.(3|4)-branch$
28+
29+
- name: test-serving
30+
decorate: true
31+
spec:
32+
containers:
33+
- image: maven:3.6-jdk-11
34+
command: ["infra/scripts/test-serving.sh"]
35+
skip_branches:
36+
- ^v0\.(3|4)-branch$
37+
38+
- name: test-serving-java-8
39+
decorate: true
40+
always_run: true
41+
spec:
42+
containers:
43+
- image: maven:3.6-jdk-8
44+
command: ["infra/scripts/test-serving.sh"]
45+
branches:
46+
- ^v0\.(3|4)-branch$
47+
48+
- name: test-java-sdk
49+
decorate: true
50+
spec:
51+
containers:
52+
- image: maven:3.6-jdk-11
53+
command: ["infra/scripts/test-java-sdk.sh"]
54+
skip_branches:
55+
- ^v0\.(3|4)-branch$
56+
57+
- name: test-java-sdk-java-8
58+
decorate: true
59+
always_run: true
60+
spec:
61+
containers:
62+
- image: maven:3.6-jdk-8
63+
command: ["infra/scripts/test-java-sdk.sh"]
64+
branches:
65+
- ^v0\.(3|4)-branch$
66+
67+
- name: test-python-sdk
68+
decorate: true
69+
spec:
70+
containers:
71+
- image: python:3.7
72+
command: ["infra/scripts/test-python-sdk.sh"]
73+
74+
- name: test-telemetry
75+
decorate: true
76+
run_if_changed: "sdk/python/.*"
77+
spec:
78+
containers:
79+
- image: python:3.7
80+
command: ["infra/scripts/test-telemetry.sh"]
81+
env:
82+
- name: GOOGLE_APPLICATION_CREDENTIALS
83+
value: /etc/gcloud/service-account.json
84+
volumeMounts:
85+
- mountPath: /etc/gcloud/service-account.json
86+
name: service-account
87+
readOnly: true
88+
subPath: service-account.json
89+
volumes:
90+
- name: service-account
91+
secret:
92+
secretName: feast-service-account
93+
94+
- name: test-golang-sdk
95+
decorate: true
96+
spec:
97+
containers:
98+
- image: golang:1.13
99+
command: ["infra/scripts/test-golang-sdk.sh"]
100+
101+
postsubmits:
102+
feast-dev/feast:
103+
- name: publish-python-sdk
104+
decorate: true
105+
spec:
106+
containers:
107+
- image: python:3
108+
command:
109+
- sh
110+
- -c
111+
- |
112+
make compile-protos-python && infra/scripts/publish-python-sdk.sh \
113+
--directory-path sdk/python --repository pypi
114+
volumeMounts:
115+
- name: pypirc
116+
mountPath: /root/.pypirc
117+
subPath: .pypirc
118+
readOnly: true
119+
volumes:
120+
- name: pypirc
121+
secret:
122+
secretName: pypirc
123+
branches:
124+
# Filter on tags with semantic versioning, prefixed with "v"
125+
# https://github.com/semver/semver/issues/232
126+
- ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$
127+
128+
- name: publish-java-sdk
129+
decorate: true
130+
spec:
131+
containers:
132+
- image: maven:3.6-jdk-11
133+
command:
134+
- bash
135+
- -c
136+
- infra/scripts/publish-java-sdk.sh --revision ${PULL_BASE_REF:1}
137+
volumeMounts:
138+
- name: gpg-keys
139+
mountPath: /etc/gpg
140+
readOnly: true
141+
- name: maven-settings
142+
mountPath: /root/.m2/settings.xml
143+
subPath: settings.xml
144+
readOnly: true
145+
volumes:
146+
- name: gpg-keys
147+
secret:
148+
secretName: gpg-keys
149+
- name: maven-settings
150+
secret:
151+
secretName: maven-settings
152+
skip_branches:
153+
# Skip version 0.3 and 0.4
154+
- ^v0\.(3|4)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$
155+
156+
branches:
157+
# Filter on tags with semantic versioning, prefixed with "v".
158+
- ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$
159+
160+
- name: publish-java-8-sdk
161+
decorate: true
162+
spec:
163+
containers:
164+
- image: maven:3.6-jdk-8
165+
command:
166+
- bash
167+
- -c
168+
- infra/scripts/publish-java-sdk.sh --revision ${PULL_BASE_REF:1}
169+
volumeMounts:
170+
- name: gpg-keys
171+
mountPath: /etc/gpg
172+
readOnly: true
173+
- name: maven-settings
174+
mountPath: /root/.m2/settings.xml
175+
subPath: settings.xml
176+
readOnly: true
177+
volumes:
178+
- name: gpg-keys
179+
secret:
180+
secretName: gpg-keys
181+
- name: maven-settings
182+
secret:
183+
secretName: maven-settings
184+
branches:
185+
# Filter on tags with semantic versioning, prefixed with "v". v0.3 and v0.4 only.
186+
- ^v0\.(3|4)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$

.prow/config.yaml

Lines changed: 1 addition & 191 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pod_namespace: test-pods
44
in_repo_config:
55
enabled:
66
"*": true
7-
7+
88
plank:
99
job_url_prefix_config:
1010
"*": https://prow.feast.dev/view/gcs
@@ -67,193 +67,3 @@ tide:
6767
blocker_label: merge-blocker
6868
squash_label: tide/squash
6969

70-
# presubmits and postsubmits configure ProwJobs:
71-
# https://github.com/kubernetes/test-infra/blob/6571843b1aa7bd6cf577a7a8b9e9971241f424d5/prow/jobs.md
72-
73-
presubmits:
74-
feast-dev/feast:
75-
- name: test-core-and-ingestion
76-
decorate: true
77-
spec:
78-
containers:
79-
- image: maven:3.6-jdk-11
80-
command: ["infra/scripts/test-core-ingestion.sh"]
81-
resources:
82-
requests:
83-
cpu: "2000m"
84-
memory: "1536Mi"
85-
skip_branches:
86-
- ^v0\.(3|4)-branch$
87-
88-
- name: test-core-and-ingestion-java-8
89-
decorate: true
90-
always_run: true
91-
spec:
92-
containers:
93-
- image: maven:3.6-jdk-8
94-
command: ["infra/scripts/test-core-ingestion.sh"]
95-
resources:
96-
requests:
97-
cpu: "2000m"
98-
memory: "1536Mi"
99-
branches:
100-
- ^v0\.(3|4)-branch$
101-
102-
- name: test-serving
103-
decorate: true
104-
spec:
105-
containers:
106-
- image: maven:3.6-jdk-11
107-
command: ["infra/scripts/test-serving.sh"]
108-
skip_branches:
109-
- ^v0\.(3|4)-branch$
110-
111-
- name: test-serving-java-8
112-
decorate: true
113-
always_run: true
114-
spec:
115-
containers:
116-
- image: maven:3.6-jdk-8
117-
command: ["infra/scripts/test-serving.sh"]
118-
branches:
119-
- ^v0\.(3|4)-branch$
120-
121-
- name: test-java-sdk
122-
decorate: true
123-
spec:
124-
containers:
125-
- image: maven:3.6-jdk-11
126-
command: ["infra/scripts/test-java-sdk.sh"]
127-
skip_branches:
128-
- ^v0\.(3|4)-branch$
129-
130-
- name: test-java-sdk-java-8
131-
decorate: true
132-
always_run: true
133-
spec:
134-
containers:
135-
- image: maven:3.6-jdk-8
136-
command: ["infra/scripts/test-java-sdk.sh"]
137-
branches:
138-
- ^v0\.(3|4)-branch$
139-
140-
- name: test-python-sdk
141-
decorate: true
142-
spec:
143-
containers:
144-
- image: python:3.7
145-
command: ["infra/scripts/test-python-sdk.sh"]
146-
147-
- name: test-telemetry
148-
decorate: true
149-
run_if_changed: "sdk/python/.*"
150-
spec:
151-
containers:
152-
- image: python:3.7
153-
command: ["infra/scripts/test-telemetry.sh"]
154-
env:
155-
- name: GOOGLE_APPLICATION_CREDENTIALS
156-
value: /etc/gcloud/service-account.json
157-
volumeMounts:
158-
- mountPath: /etc/gcloud/service-account.json
159-
name: service-account
160-
readOnly: true
161-
subPath: service-account.json
162-
volumes:
163-
- name: service-account
164-
secret:
165-
secretName: feast-service-account
166-
167-
- name: test-golang-sdk
168-
decorate: true
169-
spec:
170-
containers:
171-
- image: golang:1.13
172-
command: ["infra/scripts/test-golang-sdk.sh"]
173-
174-
postsubmits:
175-
feast-dev/feast:
176-
- name: publish-python-sdk
177-
decorate: true
178-
spec:
179-
containers:
180-
- image: python:3
181-
command:
182-
- sh
183-
- -c
184-
- |
185-
make compile-protos-python && infra/scripts/publish-python-sdk.sh \
186-
--directory-path sdk/python --repository pypi
187-
volumeMounts:
188-
- name: pypirc
189-
mountPath: /root/.pypirc
190-
subPath: .pypirc
191-
readOnly: true
192-
volumes:
193-
- name: pypirc
194-
secret:
195-
secretName: pypirc
196-
branches:
197-
# Filter on tags with semantic versioning, prefixed with "v"
198-
# https://github.com/semver/semver/issues/232
199-
- ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$
200-
201-
- name: publish-java-sdk
202-
decorate: true
203-
spec:
204-
containers:
205-
- image: maven:3.6-jdk-11
206-
command:
207-
- bash
208-
- -c
209-
- infra/scripts/publish-java-sdk.sh --revision ${PULL_BASE_REF:1}
210-
volumeMounts:
211-
- name: gpg-keys
212-
mountPath: /etc/gpg
213-
readOnly: true
214-
- name: maven-settings
215-
mountPath: /root/.m2/settings.xml
216-
subPath: settings.xml
217-
readOnly: true
218-
volumes:
219-
- name: gpg-keys
220-
secret:
221-
secretName: gpg-keys
222-
- name: maven-settings
223-
secret:
224-
secretName: maven-settings
225-
skip_branches:
226-
# Skip version 0.3 and 0.4
227-
- ^v0\.(3|4)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$
228-
229-
branches:
230-
# Filter on tags with semantic versioning, prefixed with "v".
231-
- ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$
232-
233-
- name: publish-java-8-sdk
234-
decorate: true
235-
spec:
236-
containers:
237-
- image: maven:3.6-jdk-8
238-
command:
239-
- bash
240-
- -c
241-
- infra/scripts/publish-java-sdk.sh --revision ${PULL_BASE_REF:1}
242-
volumeMounts:
243-
- name: gpg-keys
244-
mountPath: /etc/gpg
245-
readOnly: true
246-
- name: maven-settings
247-
mountPath: /root/.m2/settings.xml
248-
subPath: settings.xml
249-
readOnly: true
250-
volumes:
251-
- name: gpg-keys
252-
secret:
253-
secretName: gpg-keys
254-
- name: maven-settings
255-
secret:
256-
secretName: maven-settings
257-
branches:
258-
# Filter on tags with semantic versioning, prefixed with "v". v0.3 and v0.4 only.
259-
- ^v0\.(3|4)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$

0 commit comments

Comments
 (0)