blob: 7b02f51725cb24410dca42cf2f67d1ab0f9e3776 [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
18def get_github_repo(lang):
19 return {
20 'go': 'git@github.com:grpc/grpc-go.git',
21 'java': 'git@github.com:grpc/grpc-java.git',
Adele Zhou99986d72017-11-22 11:08:58 -080022 'node': 'git@github.com:grpc/grpc-node.git',
Yong Ni51750dc2017-07-14 11:30:56 -070023 # all other languages use the grpc.git repo.
Yong Nib2e4bfa2017-05-09 18:12:10 -070024 }.get(lang, 'git@github.com:grpc/grpc.git')
25
Alex Polcyn84263292017-11-15 00:32:50 +000026def get_release_tags(lang):
27 return map(lambda r: get_release_tag_name(r), LANG_RELEASE_MATRIX[lang])
28
29def get_release_tag_name(release_info):
30 assert len(release_info.keys()) == 1
31 return release_info.keys()[0]
32
33def should_build_docker_interop_image_from_release_tag(lang):
34 if lang in ['go', 'java', 'node']:
35 return False
36 return True
37
Yong Nib2e4bfa2017-05-09 18:12:10 -070038# Dictionary of runtimes per language
39LANG_RUNTIME_MATRIX = {
Yong Ni51750dc2017-07-14 11:30:56 -070040 'cxx': ['cxx'], # This is actually debian8.
Yong Nib2e4bfa2017-05-09 18:12:10 -070041 'go': ['go1.7', 'go1.8'],
Yong Nib92813b2017-05-31 12:07:09 -070042 'java': ['java_oracle8'],
Adele Zhoua00f9722017-11-15 15:12:02 -080043 'python': ['python'],
Adele Zhoubcd23cd2017-11-01 15:42:00 -070044 'node': ['node'],
Adele Zhou1487c9f2017-10-26 17:59:18 -070045 'ruby': ['ruby'],
Adele Zhou9fe79dc2017-11-02 14:08:29 -070046 'php': ['php', 'php7'],
Adele Zhouf7f38d12017-11-02 17:57:54 -070047 'csharp': ['csharp', 'csharpcoreclr'],
Yong Nib2e4bfa2017-05-09 18:12:10 -070048}
49
50# Dictionary of releases per language. For each language, we need to provide
Yong Nibbd348c2017-07-18 08:38:11 -070051# a release tag pointing to the latest build of the branch.
Yong Nib2e4bfa2017-05-09 18:12:10 -070052LANG_RELEASE_MATRIX = {
Yong Nibbd348c2017-07-18 08:38:11 -070053 'cxx': [
Alex Polcyn84263292017-11-15 00:32:50 +000054 {'v1.0.1': None},
55 {'v1.1.4': None},
56 {'v1.2.5': None},
57 {'v1.3.9': None},
58 {'v1.4.2': None},
59 {'v1.6.6': None},
60 {'v1.7.2': None},
Yong Nibbd348c2017-07-18 08:38:11 -070061 ],
62 'go': [
Alex Polcyn84263292017-11-15 00:32:50 +000063 {'v1.0.5': None},
64 {'v1.2.1': None},
65 {'v1.3.0': None},
66 {'v1.4.2': None},
67 {'v1.5.2': None},
68 {'v1.6.0': None},
69 {'v1.7.0': None},
70 {'v1.7.1': None},
71 {'v1.7.2': None},
72 {'v1.7.3': None},
73 {'v1.8.0': None},
Yong Nibbd348c2017-07-18 08:38:11 -070074 ],
75 'java': [
Alex Polcyn84263292017-11-15 00:32:50 +000076 {'v1.0.3': None},
77 {'v1.1.2': None},
78 {'v1.2.0': None},
79 {'v1.3.1': None},
80 {'v1.4.0': None},
81 {'v1.5.0': None},
82 {'v1.6.1': None},
83 {'v1.7.0': None},
84 {'v1.8.0': None},
Yong Nibbd348c2017-07-18 08:38:11 -070085 ],
Adele Zhoua00f9722017-11-15 15:12:02 -080086 'python': [
Alex Polcyn84263292017-11-15 00:32:50 +000087 {'v1.0.x': None},
88 {'v1.1.4': None},
89 {'v1.2.5': None},
90 {'v1.3.9': None},
91 {'v1.4.2': None},
92 {'v1.6.6': None},
93 {'v1.7.2': None},
Adele Zhou4fba3782017-11-14 17:43:37 -080094 ],
Adele Zhou1487c9f2017-10-26 17:59:18 -070095 'node': [
Alex Polcyn84263292017-11-15 00:32:50 +000096 {'v1.0.1': None},
97 {'v1.1.4': None},
98 {'v1.2.5': None},
99 {'v1.3.9': None},
100 {'v1.4.2': None},
101 {'v1.6.6': None},
102 #{'v1.7.1': None}, Failing tests
Adele Zhou1487c9f2017-10-26 17:59:18 -0700103 ],
104 'ruby': [
Alex Polcyn84263292017-11-15 00:32:50 +0000105 {'v1.0.1': {'patch': [
106 'tools/dockerfile/interoptest/grpc_interop_ruby/Dockerfile',
107 'tools/dockerfile/interoptest/grpc_interop_ruby/build_interop.sh',
108 ]}},
109 {'v1.1.4': None},
110 {'v1.2.5': None},
111 {'v1.3.9': None},
112 {'v1.4.2': None},
113 {'v1.6.6': None},
114 {'v1.7.2': None},
Adele Zhou1487c9f2017-10-26 17:59:18 -0700115 ],
Adele Zhou9fe79dc2017-11-02 14:08:29 -0700116 'php': [
Alex Polcyn84263292017-11-15 00:32:50 +0000117 {'v1.0.1': None},
118 {'v1.1.4': None},
119 {'v1.2.5': None},
120 {'v1.3.9': None},
121 {'v1.4.2': None},
122 {'v1.6.6': None},
123 {'v1.7.2': None},
Adele Zhou9fe79dc2017-11-02 14:08:29 -0700124 ],
Adele Zhouf7f38d12017-11-02 17:57:54 -0700125 'csharp': [
Alex Polcyn84263292017-11-15 00:32:50 +0000126 #{'v1.0.1': None},
127 {'v1.1.4': None},
128 {'v1.2.5': None},
129 {'v1.3.9': None},
130 {'v1.4.2': None},
131 {'v1.6.6': None},
132 {'v1.7.2': None},
Adele Zhouf7f38d12017-11-02 17:57:54 -0700133 ],
Yong Nib2e4bfa2017-05-09 18:12:10 -0700134}