blob: cc4b5fcf748992c83ea07b4f36cfd964ac7218d9 [file] [log] [blame]
Yong Nib2e4bfa2017-05-09 18:12:10 -07001#!/usr/bin/env python2.7
Jan Tattermusch7897ae92017-06-07 22:57:36 +02002# Copyright 2017 gRPC authors.
Yong Nib2e4bfa2017-05-09 18:12:10 -07003#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02004# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
Yong Nib2e4bfa2017-05-09 18:12:10 -07007#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02008# http://www.apache.org/licenses/LICENSE-2.0
Yong Nib2e4bfa2017-05-09 18:12:10 -07009#
Jan Tattermusch7897ae92017-06-07 22:57:36 +020010# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
Yong Nib2e4bfa2017-05-09 18:12:10 -070015
16# Dictionaries used for client matrix testing.
17
ncteisene4bef082017-12-11 16:51:34 -080018
Yong Nib2e4bfa2017-05-09 18:12:10 -070019def get_github_repo(lang):
ncteisene4bef082017-12-11 16:51:34 -080020 return {
Jakob Roland Andersen3ebfe922018-03-06 16:39:27 +010021 'dart': 'https://github.com/grpc/grpc-dart.git',
Eric Gribkoffca455542018-02-15 15:24:17 -080022 'go': 'https://github.com/grpc/grpc-go.git',
23 'java': 'https://github.com/grpc/grpc-java.git',
24 'node': 'https://github.com/grpc/grpc-node.git',
ncteisene4bef082017-12-11 16:51:34 -080025 # all other languages use the grpc.git repo.
Mehrdad Afshari2de11952018-02-12 13:08:16 -080026 }.get(lang, 'https://github.com/grpc/grpc.git')
ncteisene4bef082017-12-11 16:51:34 -080027
Yong Nib2e4bfa2017-05-09 18:12:10 -070028
Alex Polcyn84263292017-11-15 00:32:50 +000029def get_release_tags(lang):
ncteisene4bef082017-12-11 16:51:34 -080030 return map(lambda r: get_release_tag_name(r), LANG_RELEASE_MATRIX[lang])
31
Alex Polcyn84263292017-11-15 00:32:50 +000032
33def get_release_tag_name(release_info):
ncteisene4bef082017-12-11 16:51:34 -080034 assert len(release_info.keys()) == 1
35 return release_info.keys()[0]
36
Alex Polcyn84263292017-11-15 00:32:50 +000037
38def should_build_docker_interop_image_from_release_tag(lang):
ncteisene4bef082017-12-11 16:51:34 -080039 if lang in ['go', 'java', 'node']:
40 return False
41 return True
42
Alex Polcyn84263292017-11-15 00:32:50 +000043
Yong Nib2e4bfa2017-05-09 18:12:10 -070044# Dictionary of runtimes per language
45LANG_RUNTIME_MATRIX = {
ncteisene4bef082017-12-11 16:51:34 -080046 'cxx': ['cxx'], # This is actually debian8.
Yong Nib2e4bfa2017-05-09 18:12:10 -070047 'go': ['go1.7', 'go1.8'],
Yong Nib92813b2017-05-31 12:07:09 -070048 'java': ['java_oracle8'],
Adele Zhoua00f9722017-11-15 15:12:02 -080049 'python': ['python'],
Adele Zhoubcd23cd2017-11-01 15:42:00 -070050 'node': ['node'],
Adele Zhou1487c9f2017-10-26 17:59:18 -070051 'ruby': ['ruby'],
Adele Zhou9fe79dc2017-11-02 14:08:29 -070052 'php': ['php', 'php7'],
Adele Zhouf7f38d12017-11-02 17:57:54 -070053 'csharp': ['csharp', 'csharpcoreclr'],
Yong Nib2e4bfa2017-05-09 18:12:10 -070054}
55
56# Dictionary of releases per language. For each language, we need to provide
Yong Nibbd348c2017-07-18 08:38:11 -070057# a release tag pointing to the latest build of the branch.
Yong Nib2e4bfa2017-05-09 18:12:10 -070058LANG_RELEASE_MATRIX = {
Yong Nibbd348c2017-07-18 08:38:11 -070059 'cxx': [
ncteisene4bef082017-12-11 16:51:34 -080060 {
61 'v1.0.1': None
62 },
63 {
64 'v1.1.4': None
65 },
66 {
67 'v1.2.5': None
68 },
69 {
70 'v1.3.9': None
71 },
72 {
73 'v1.4.2': None
74 },
75 {
76 'v1.6.6': None
77 },
78 {
79 'v1.7.2': None
80 },
Mehrdad Afsharia3cd72b2017-12-12 19:06:53 -080081 {
82 'v1.8.0': None
83 },
Mehrdad Afshari2de11952018-02-12 13:08:16 -080084 {
85 'v1.9.1': None
86 },
Mehrdad Afsharibaefff22018-03-21 21:28:13 -070087 {
Mehrdad Afshari979d1be2018-05-22 14:10:15 -070088 'v1.10.1': None
Mehrdad Afsharibaefff22018-03-21 21:28:13 -070089 },
Mehrdad Afshari3d0aab02018-04-18 20:04:33 -040090 {
Mehrdad Afshari979d1be2018-05-22 14:10:15 -070091 'v1.11.1': None
92 },
93 {
94 'v1.12.0': None
Mehrdad Afshari3d0aab02018-04-18 20:04:33 -040095 },
Srini Polavarapu98bf1a52018-06-28 16:54:33 -070096 {
97 'v1.13.0': None
98 },
Yong Nibbd348c2017-07-18 08:38:11 -070099 ],
100 'go': [
ncteisene4bef082017-12-11 16:51:34 -0800101 {
102 'v1.0.5': None
103 },
104 {
105 'v1.2.1': None
106 },
107 {
108 'v1.3.0': None
109 },
110 {
111 'v1.4.2': None
112 },
113 {
114 'v1.5.2': None
115 },
116 {
117 'v1.6.0': None
118 },
119 {
120 'v1.7.4': None
121 },
122 {
Menghan Li5bbf9e52017-12-12 16:50:39 -0800123 'v1.8.2': None
ncteisene4bef082017-12-11 16:51:34 -0800124 },
Menghan Li2146b3a2018-01-04 14:57:27 -0800125 {
Menghan Li63efbc62018-01-19 13:19:39 -0800126 'v1.9.2': None
Menghan Li2146b3a2018-01-04 14:57:27 -0800127 },
Menghan Liea1fefe2018-02-15 15:22:31 -0800128 {
Doug Fawley9205bef2018-03-30 08:58:01 -0700129 'v1.10.1': None
Menghan Liea1fefe2018-02-15 15:22:31 -0800130 },
Menghan Li8ba39a92018-03-27 15:06:47 -0700131 {
Menghan Lie0ecd1d2018-04-04 14:52:37 -0700132 'v1.11.3': None
Menghan Li8ba39a92018-03-27 15:06:47 -0700133 },
Yuxuan Li39637d82018-05-08 15:27:27 -0700134 {
135 'v1.12.0': None
136 },
Yong Nibbd348c2017-07-18 08:38:11 -0700137 ],
138 'java': [
ncteisene4bef082017-12-11 16:51:34 -0800139 {
140 'v1.0.3': None
141 },
142 {
143 'v1.1.2': None
144 },
145 {
146 'v1.2.0': None
147 },
148 {
149 'v1.3.1': None
150 },
151 {
152 'v1.4.0': None
153 },
154 {
155 'v1.5.0': None
156 },
157 {
158 'v1.6.1': None
159 },
160 {
161 'v1.7.0': None
162 },
163 {
164 'v1.8.0': None
165 },
Kun Zhang07fb6b52018-01-11 14:27:25 -0800166 {
Eric Anderson540a1042018-02-09 16:28:16 -0800167 'v1.9.1': None
Kun Zhang07fb6b52018-01-11 14:27:25 -0800168 },
Eric Gribkoff6dc65d92018-02-15 15:37:19 -0800169 {
Eric Gribkoff2fd31eb2018-03-23 15:10:46 -0700170 'v1.10.1': None
Eric Gribkoff6dc65d92018-02-15 15:37:19 -0800171 },
Eric Anderson6ebafda2018-03-29 10:47:17 -0700172 {
173 'v1.11.0': None
174 },
Spencer Fang7d1009b2018-05-15 16:29:23 -0700175 {
176 'v1.12.0': None
177 },
ZHANG Dapeng4f0a4e92018-06-18 10:31:02 -0700178 {
ZHANG Dapengb607f712018-06-20 17:45:35 -0700179 'v1.13.1': None
ZHANG Dapeng4f0a4e92018-06-18 10:31:02 -0700180 },
Yong Nibbd348c2017-07-18 08:38:11 -0700181 ],
Adele Zhoua00f9722017-11-15 15:12:02 -0800182 'python': [
ncteisene4bef082017-12-11 16:51:34 -0800183 {
184 'v1.0.x': None
185 },
186 {
187 'v1.1.4': None
188 },
189 {
190 'v1.2.5': None
191 },
192 {
193 'v1.3.9': None
194 },
195 {
196 'v1.4.2': None
197 },
198 {
199 'v1.6.6': None
200 },
201 {
202 'v1.7.2': None
203 },
Mehrdad Afsharia3cd72b2017-12-12 19:06:53 -0800204 {
205 'v1.8.1': None # first python 1.8 release is 1.8.1
206 },
Mehrdad Afshari2de11952018-02-12 13:08:16 -0800207 {
208 'v1.9.1': None
209 },
Mehrdad Afsharibaefff22018-03-21 21:28:13 -0700210 {
Mehrdad Afshari979d1be2018-05-22 14:10:15 -0700211 'v1.10.1': None
Mehrdad Afsharibaefff22018-03-21 21:28:13 -0700212 },
Mehrdad Afshari3d0aab02018-04-18 20:04:33 -0400213 {
Mehrdad Afshari979d1be2018-05-22 14:10:15 -0700214 'v1.11.1': None
215 },
216 {
217 'v1.12.0': None
Mehrdad Afshari3d0aab02018-04-18 20:04:33 -0400218 },
Srini Polavarapu98bf1a52018-06-28 16:54:33 -0700219 {
220 'v1.13.0': None
221 },
Adele Zhou4fba3782017-11-14 17:43:37 -0800222 ],
Adele Zhou1487c9f2017-10-26 17:59:18 -0700223 'node': [
murgatroid99993769d2018-03-16 12:11:59 -0700224 {
225 'v1.0.1': None
226 },
Adele Zhou0e702232018-03-21 13:37:47 -0700227 {
228 'v1.1.4': None
229 },
230 {
231 'v1.2.5': None
232 },
233 {
234 'v1.3.9': None
235 },
236 {
237 'v1.4.2': None
238 },
239 {
240 'v1.6.6': None
241 },
Adele Zhou5657cd52018-03-21 11:30:28 -0700242 # TODO: https://github.com/grpc/grpc-node/issues/235.
243 #{
244 # 'v1.7.2': None
245 #},
murgatroid99dfb41b62018-03-16 10:13:31 -0700246 {
247 'v1.8.4': None
248 },
249 {
250 'v1.9.1': None
Mehrdad Afsharibaefff22018-03-21 21:28:13 -0700251 },
252 {
253 'v1.10.0': None
254 },
Adele Zhou1487c9f2017-10-26 17:59:18 -0700255 ],
256 'ruby': [
ncteisene4bef082017-12-11 16:51:34 -0800257 {
258 'v1.0.1': {
259 'patch': [
260 'tools/dockerfile/interoptest/grpc_interop_ruby/Dockerfile',
261 'tools/dockerfile/interoptest/grpc_interop_ruby/build_interop.sh',
262 ]
263 }
264 },
265 {
266 'v1.1.4': None
267 },
268 {
269 'v1.2.5': None
270 },
271 {
272 'v1.3.9': None
273 },
274 {
275 'v1.4.2': None
276 },
277 {
278 'v1.6.6': None
279 },
280 {
281 'v1.7.2': None
282 },
Mehrdad Afsharia3cd72b2017-12-12 19:06:53 -0800283 {
284 'v1.8.0': None
285 },
Mehrdad Afshari2de11952018-02-12 13:08:16 -0800286 {
287 'v1.9.1': None
288 },
Mehrdad Afsharibaefff22018-03-21 21:28:13 -0700289 {
Mehrdad Afshari979d1be2018-05-22 14:10:15 -0700290 'v1.10.1': None
Mehrdad Afsharibaefff22018-03-21 21:28:13 -0700291 },
Mehrdad Afshari3d0aab02018-04-18 20:04:33 -0400292 {
Mehrdad Afshari979d1be2018-05-22 14:10:15 -0700293 'v1.11.1': None
294 },
295 {
296 'v1.12.0': None
Mehrdad Afshari3d0aab02018-04-18 20:04:33 -0400297 },
Srini Polavarapu98bf1a52018-06-28 16:54:33 -0700298 {
299 'v1.13.0': None
300 },
Adele Zhou1487c9f2017-10-26 17:59:18 -0700301 ],
Adele Zhou9fe79dc2017-11-02 14:08:29 -0700302 'php': [
ncteisene4bef082017-12-11 16:51:34 -0800303 {
304 'v1.0.1': None
305 },
306 {
307 'v1.1.4': None
308 },
309 {
310 'v1.2.5': None
311 },
312 {
313 'v1.3.9': None
314 },
315 {
316 'v1.4.2': None
317 },
318 {
319 'v1.6.6': None
320 },
321 {
322 'v1.7.2': None
323 },
Mehrdad Afsharia3cd72b2017-12-12 19:06:53 -0800324 {
325 'v1.8.0': None
326 },
Mehrdad Afshari2de11952018-02-12 13:08:16 -0800327 {
328 'v1.9.1': None
329 },
Mehrdad Afsharibaefff22018-03-21 21:28:13 -0700330 {
Mehrdad Afshari979d1be2018-05-22 14:10:15 -0700331 'v1.10.1': None
Mehrdad Afsharibaefff22018-03-21 21:28:13 -0700332 },
Mehrdad Afshari3d0aab02018-04-18 20:04:33 -0400333 {
Mehrdad Afshari979d1be2018-05-22 14:10:15 -0700334 'v1.11.1': None
335 },
336 {
337 'v1.12.0': None
Mehrdad Afshari3d0aab02018-04-18 20:04:33 -0400338 },
Srini Polavarapu98bf1a52018-06-28 16:54:33 -0700339 {
340 'v1.13.0': None
341 },
Adele Zhou9fe79dc2017-11-02 14:08:29 -0700342 ],
ncteisene4bef082017-12-11 16:51:34 -0800343 'csharp': [
Jan Tattermusch544dfcc2018-05-30 16:39:51 +0200344 {
345 'v1.0.1': {
346 'patch': [
347 'tools/dockerfile/interoptest/grpc_interop_csharp/Dockerfile',
348 'tools/dockerfile/interoptest/grpc_interop_csharpcoreclr/Dockerfile',
349 ]
350 }
351 },
ncteisene4bef082017-12-11 16:51:34 -0800352 {
353 'v1.1.4': None
354 },
355 {
356 'v1.2.5': None
357 },
358 {
359 'v1.3.9': None
360 },
361 {
362 'v1.4.2': None
363 },
364 {
365 'v1.6.6': None
366 },
367 {
368 'v1.7.2': None
369 },
Mehrdad Afsharia3cd72b2017-12-12 19:06:53 -0800370 {
371 'v1.8.0': None
372 },
Mehrdad Afshari2de11952018-02-12 13:08:16 -0800373 {
374 'v1.9.1': None
375 },
Mehrdad Afsharibaefff22018-03-21 21:28:13 -0700376 {
Mehrdad Afshari979d1be2018-05-22 14:10:15 -0700377 'v1.10.1': None
Mehrdad Afsharibaefff22018-03-21 21:28:13 -0700378 },
Mehrdad Afshari3d0aab02018-04-18 20:04:33 -0400379 {
Mehrdad Afshari979d1be2018-05-22 14:10:15 -0700380 'v1.11.1': None
381 },
382 {
383 'v1.12.0': None
Mehrdad Afshari3d0aab02018-04-18 20:04:33 -0400384 },
Srini Polavarapu98bf1a52018-06-28 16:54:33 -0700385 {
386 'v1.13.0': None
387 },
Adele Zhouf7f38d12017-11-02 17:57:54 -0700388 ],
Yong Nib2e4bfa2017-05-09 18:12:10 -0700389}
Adele Zhou46fb1652018-03-19 15:33:46 -0700390
391# This matrix lists the version of testcases to use for a release. As new
392# releases come out, some older docker commands for running tests need to be
393# changed, hence the need for specifying which commands to use for a
394# particular version in some cases. If not specified, xxx__master file will be
395# used. For example, all java versions will run the commands in java__master.
396# The testcases files exist under the testcases directory.
397TESTCASES_VERSION_MATRIX = {
398 'node_v1.0.1': 'node__v1.0.1',
399 'node_v1.1.4': 'node__v1.1.4',
400 'node_v1.2.5': 'node__v1.1.4',
401 'node_v1.3.9': 'node__v1.1.4',
402 'node_v1.4.2': 'node__v1.1.4',
403 'node_v1.6.6': 'node__v1.1.4',
404 'ruby_v1.0.1': 'ruby__v1.0.1',
Jan Tattermusch544dfcc2018-05-30 16:39:51 +0200405 'csharp_v1.0.1': 'csharp__v1.1.4',
Adele Zhou46fb1652018-03-19 15:33:46 -0700406 'csharp_v1.1.4': 'csharp__v1.1.4',
407 'csharp_v1.2.5': 'csharp__v1.1.4',
Adele Zhou663a71b2018-04-23 23:01:40 -0700408 'python_v1.0.x': 'python__v1.0.x',
409 'python_v1.1.4': 'python__v1.0.x',
410 'python_v1.2.5': 'python__v1.0.x',
411 'python_v1.3.9': 'python__v1.0.x',
412 'python_v1.4.2': 'python__v1.0.x',
413 'python_v1.6.6': 'python__v1.0.x',
414 'python_v1.7.2': 'python__v1.0.x',
415 'python_v1.8.1': 'python__v1.0.x',
416 'python_v1.9.1': 'python__v1.0.x',
Mehrdad Afsharid7202c92018-05-25 11:45:59 -0700417 'python_v1.10.1': 'python__v1.0.x',
Adele Zhou46fb1652018-03-19 15:33:46 -0700418}