blob: e0ae854ab779a693ba512c15860ad45abfd5d9e5 [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 {
21 'go': 'git@github.com:grpc/grpc-go.git',
22 'java': 'git@github.com:grpc/grpc-java.git',
23 'node': 'git@github.com:grpc/grpc-node.git',
24 # all other languages use the grpc.git repo.
25 }.get(lang, 'git@github.com:grpc/grpc.git')
26
Yong Nib2e4bfa2017-05-09 18:12:10 -070027
Alex Polcyn84263292017-11-15 00:32:50 +000028def get_release_tags(lang):
ncteisene4bef082017-12-11 16:51:34 -080029 return map(lambda r: get_release_tag_name(r), LANG_RELEASE_MATRIX[lang])
30
Alex Polcyn84263292017-11-15 00:32:50 +000031
32def get_release_tag_name(release_info):
ncteisene4bef082017-12-11 16:51:34 -080033 assert len(release_info.keys()) == 1
34 return release_info.keys()[0]
35
Alex Polcyn84263292017-11-15 00:32:50 +000036
37def should_build_docker_interop_image_from_release_tag(lang):
ncteisene4bef082017-12-11 16:51:34 -080038 if lang in ['go', 'java', 'node']:
39 return False
40 return True
41
Alex Polcyn84263292017-11-15 00:32:50 +000042
Yong Nib2e4bfa2017-05-09 18:12:10 -070043# Dictionary of runtimes per language
44LANG_RUNTIME_MATRIX = {
ncteisene4bef082017-12-11 16:51:34 -080045 'cxx': ['cxx'], # This is actually debian8.
Yong Nib2e4bfa2017-05-09 18:12:10 -070046 'go': ['go1.7', 'go1.8'],
Yong Nib92813b2017-05-31 12:07:09 -070047 'java': ['java_oracle8'],
Adele Zhoua00f9722017-11-15 15:12:02 -080048 'python': ['python'],
Adele Zhoubcd23cd2017-11-01 15:42:00 -070049 'node': ['node'],
Adele Zhou1487c9f2017-10-26 17:59:18 -070050 'ruby': ['ruby'],
Adele Zhou9fe79dc2017-11-02 14:08:29 -070051 'php': ['php', 'php7'],
Adele Zhouf7f38d12017-11-02 17:57:54 -070052 'csharp': ['csharp', 'csharpcoreclr'],
Yong Nib2e4bfa2017-05-09 18:12:10 -070053}
54
55# Dictionary of releases per language. For each language, we need to provide
Yong Nibbd348c2017-07-18 08:38:11 -070056# a release tag pointing to the latest build of the branch.
Yong Nib2e4bfa2017-05-09 18:12:10 -070057LANG_RELEASE_MATRIX = {
Yong Nibbd348c2017-07-18 08:38:11 -070058 'cxx': [
ncteisene4bef082017-12-11 16:51:34 -080059 {
60 'v1.0.1': None
61 },
62 {
63 'v1.1.4': None
64 },
65 {
66 'v1.2.5': None
67 },
68 {
69 'v1.3.9': None
70 },
71 {
72 'v1.4.2': None
73 },
74 {
75 'v1.6.6': None
76 },
77 {
78 'v1.7.2': None
79 },
Mehrdad Afsharia3cd72b2017-12-12 19:06:53 -080080 {
81 'v1.8.0': None
82 },
Yong Nibbd348c2017-07-18 08:38:11 -070083 ],
84 'go': [
ncteisene4bef082017-12-11 16:51:34 -080085 {
86 'v1.0.5': None
87 },
88 {
89 'v1.2.1': None
90 },
91 {
92 'v1.3.0': None
93 },
94 {
95 'v1.4.2': None
96 },
97 {
98 'v1.5.2': None
99 },
100 {
101 'v1.6.0': None
102 },
103 {
104 'v1.7.4': None
105 },
106 {
Menghan Li5bbf9e52017-12-12 16:50:39 -0800107 'v1.8.2': None
ncteisene4bef082017-12-11 16:51:34 -0800108 },
Yong Nibbd348c2017-07-18 08:38:11 -0700109 ],
110 'java': [
ncteisene4bef082017-12-11 16:51:34 -0800111 {
112 'v1.0.3': None
113 },
114 {
115 'v1.1.2': None
116 },
117 {
118 'v1.2.0': None
119 },
120 {
121 'v1.3.1': None
122 },
123 {
124 'v1.4.0': None
125 },
126 {
127 'v1.5.0': None
128 },
129 {
130 'v1.6.1': None
131 },
132 {
133 'v1.7.0': None
134 },
135 {
136 'v1.8.0': None
137 },
Yong Nibbd348c2017-07-18 08:38:11 -0700138 ],
Adele Zhoua00f9722017-11-15 15:12:02 -0800139 'python': [
ncteisene4bef082017-12-11 16:51:34 -0800140 {
141 'v1.0.x': None
142 },
143 {
144 'v1.1.4': None
145 },
146 {
147 'v1.2.5': None
148 },
149 {
150 'v1.3.9': None
151 },
152 {
153 'v1.4.2': None
154 },
155 {
156 'v1.6.6': None
157 },
158 {
159 'v1.7.2': None
160 },
Mehrdad Afsharia3cd72b2017-12-12 19:06:53 -0800161 {
162 'v1.8.1': None # first python 1.8 release is 1.8.1
163 },
Adele Zhou4fba3782017-11-14 17:43:37 -0800164 ],
Adele Zhou1487c9f2017-10-26 17:59:18 -0700165 'node': [
ncteisene4bef082017-12-11 16:51:34 -0800166 {
167 'v1.0.1': None
168 },
169 {
170 'v1.1.4': None
171 },
172 {
173 'v1.2.5': None
174 },
175 {
176 'v1.3.9': None
177 },
178 {
179 'v1.4.2': None
180 },
181 {
182 'v1.6.6': None
183 },
Alex Polcyn84263292017-11-15 00:32:50 +0000184 #{'v1.7.1': None}, Failing tests
Adele Zhou1487c9f2017-10-26 17:59:18 -0700185 ],
186 'ruby': [
ncteisene4bef082017-12-11 16:51:34 -0800187 {
188 'v1.0.1': {
189 'patch': [
190 'tools/dockerfile/interoptest/grpc_interop_ruby/Dockerfile',
191 'tools/dockerfile/interoptest/grpc_interop_ruby/build_interop.sh',
192 ]
193 }
194 },
195 {
196 'v1.1.4': None
197 },
198 {
199 'v1.2.5': None
200 },
201 {
202 'v1.3.9': None
203 },
204 {
205 'v1.4.2': None
206 },
207 {
208 'v1.6.6': None
209 },
210 {
211 'v1.7.2': None
212 },
Mehrdad Afsharia3cd72b2017-12-12 19:06:53 -0800213 {
214 'v1.8.0': None
215 },
Adele Zhou1487c9f2017-10-26 17:59:18 -0700216 ],
Adele Zhou9fe79dc2017-11-02 14:08:29 -0700217 'php': [
ncteisene4bef082017-12-11 16:51:34 -0800218 {
219 'v1.0.1': None
220 },
221 {
222 'v1.1.4': None
223 },
224 {
225 'v1.2.5': None
226 },
227 {
228 'v1.3.9': None
229 },
230 {
231 'v1.4.2': None
232 },
233 {
234 'v1.6.6': None
235 },
236 {
237 'v1.7.2': None
238 },
Mehrdad Afsharia3cd72b2017-12-12 19:06:53 -0800239 {
240 'v1.8.0': None
241 },
Adele Zhou9fe79dc2017-11-02 14:08:29 -0700242 ],
ncteisene4bef082017-12-11 16:51:34 -0800243 'csharp': [
Alex Polcyn84263292017-11-15 00:32:50 +0000244 #{'v1.0.1': None},
ncteisene4bef082017-12-11 16:51:34 -0800245 {
246 'v1.1.4': None
247 },
248 {
249 'v1.2.5': None
250 },
251 {
252 'v1.3.9': None
253 },
254 {
255 'v1.4.2': None
256 },
257 {
258 'v1.6.6': None
259 },
260 {
261 'v1.7.2': None
262 },
Mehrdad Afsharia3cd72b2017-12-12 19:06:53 -0800263 {
264 'v1.8.0': None
265 },
Adele Zhouf7f38d12017-11-02 17:57:54 -0700266 ],
Yong Nib2e4bfa2017-05-09 18:12:10 -0700267}