| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 | #!/usr/bin/env python2.7# Copyright 2017 gRPC authors.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at##     http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.# Dictionaries used for client matrix testing.def get_github_repo(lang):    return {        'dart': 'https://github.com/grpc/grpc-dart.git',        'go': 'https://github.com/grpc/grpc-go.git',        'java': 'https://github.com/grpc/grpc-java.git',        'node': 'https://github.com/grpc/grpc-node.git',        # all other languages use the grpc.git repo.    }.get(lang, 'https://github.com/grpc/grpc.git')def get_release_tags(lang):    return map(lambda r: get_release_tag_name(r), LANG_RELEASE_MATRIX[lang])def get_release_tag_name(release_info):    assert len(release_info.keys()) == 1    return release_info.keys()[0]def should_build_docker_interop_image_from_release_tag(lang):    if lang in ['go', 'java', 'node']:        return False    return True# Dictionary of runtimes per languageLANG_RUNTIME_MATRIX = {    'cxx': ['cxx'],  # This is actually debian8.    'go': ['go1.7', 'go1.8'],    'java': ['java_oracle8'],    'python': ['python'],    'node': ['node'],    'ruby': ['ruby'],    'php': ['php', 'php7'],    'csharp': ['csharp', 'csharpcoreclr'],}# Dictionary of releases per language.  For each language, we need to provide# a release tag pointing to the latest build of the branch.LANG_RELEASE_MATRIX = {    'cxx': [        {            'v1.0.1': None        },        {            'v1.1.4': None        },        {            'v1.2.5': None        },        {            'v1.3.9': None        },        {            'v1.4.2': None        },        {            'v1.6.6': None        },        {            'v1.7.2': None        },        {            'v1.8.0': None        },        {            'v1.9.1': None        },        {            'v1.10.1': None        },        {            'v1.11.1': None        },        {            'v1.12.0': None        },    ],    'go': [        {            'v1.0.5': None        },        {            'v1.2.1': None        },        {            'v1.3.0': None        },        {            'v1.4.2': None        },        {            'v1.5.2': None        },        {            'v1.6.0': None        },        {            'v1.7.4': None        },        {            'v1.8.2': None        },        {            'v1.9.2': None        },        {            'v1.10.1': None        },        {            'v1.11.3': None        },        {            'v1.12.0': None        },    ],    'java': [        {            'v1.0.3': None        },        {            'v1.1.2': None        },        {            'v1.2.0': None        },        {            'v1.3.1': None        },        {            'v1.4.0': None        },        {            'v1.5.0': None        },        {            'v1.6.1': None        },        {            'v1.7.0': None        },        {            'v1.8.0': None        },        {            'v1.9.1': None        },        {            'v1.10.1': None        },        {            'v1.11.0': None        },        {            'v1.12.0': None        },    ],    'python': [        {            'v1.0.x': None        },        {            'v1.1.4': None        },        {            'v1.2.5': None        },        {            'v1.3.9': None        },        {            'v1.4.2': None        },        {            'v1.6.6': None        },        {            'v1.7.2': None        },        {            'v1.8.1': None  # first python 1.8 release is 1.8.1        },        {            'v1.9.1': None        },        {            'v1.10.1': None        },        {            'v1.11.1': None        },        {            'v1.12.0': None        },    ],    'node': [        {            'v1.0.1': None        },        {            'v1.1.4': None        },        {            'v1.2.5': None        },        {            'v1.3.9': None        },        {            'v1.4.2': None        },        {            'v1.6.6': None        },        # TODO: https://github.com/grpc/grpc-node/issues/235.        #{        #    'v1.7.2': None        #},        {            'v1.8.4': None        },        {            'v1.9.1': None        },        {            'v1.10.0': None        },    ],    'ruby': [        {            'v1.0.1': {                'patch': [                    'tools/dockerfile/interoptest/grpc_interop_ruby/Dockerfile',                    'tools/dockerfile/interoptest/grpc_interop_ruby/build_interop.sh',                ]            }        },        {            'v1.1.4': None        },        {            'v1.2.5': None        },        {            'v1.3.9': None        },        {            'v1.4.2': None        },        {            'v1.6.6': None        },        {            'v1.7.2': None        },        {            'v1.8.0': None        },        {            'v1.9.1': None        },        {            'v1.10.1': None        },        {            'v1.11.1': None        },        {            'v1.12.0': None        },    ],    'php': [        {            'v1.0.1': None        },        {            'v1.1.4': None        },        {            'v1.2.5': None        },        {            'v1.3.9': None        },        {            'v1.4.2': None        },        {            'v1.6.6': None        },        {            'v1.7.2': None        },        {            'v1.8.0': None        },        {            'v1.9.1': None        },        {            'v1.10.1': None        },        {            'v1.11.1': None        },        {            'v1.12.0': None        },    ],    'csharp': [        #{'v1.0.1': None},        {            'v1.1.4': None        },        {            'v1.2.5': None        },        {            'v1.3.9': None        },        {            'v1.4.2': None        },        {            'v1.6.6': None        },        {            'v1.7.2': None        },        {            'v1.8.0': None        },        {            'v1.9.1': None        },        {            'v1.10.1': None        },        {            'v1.11.1': None        },        {            'v1.12.0': None        },    ],}# This matrix lists the version of testcases to use for a release. As new# releases come out, some older docker commands for running tests need to be# changed, hence the need for specifying which commands to use for a# particular version in some cases. If not specified, xxx__master file will be# used. For example, all java versions will run the commands in java__master.# The testcases files exist under the testcases directory.TESTCASES_VERSION_MATRIX = {    'node_v1.0.1': 'node__v1.0.1',    'node_v1.1.4': 'node__v1.1.4',    'node_v1.2.5': 'node__v1.1.4',    'node_v1.3.9': 'node__v1.1.4',    'node_v1.4.2': 'node__v1.1.4',    'node_v1.6.6': 'node__v1.1.4',    'ruby_v1.0.1': 'ruby__v1.0.1',    'csharp_v1.1.4': 'csharp__v1.1.4',    'csharp_v1.2.5': 'csharp__v1.1.4',    'python_v1.0.x': 'python__v1.0.x',    'python_v1.1.4': 'python__v1.0.x',    'python_v1.2.5': 'python__v1.0.x',    'python_v1.3.9': 'python__v1.0.x',    'python_v1.4.2': 'python__v1.0.x',    'python_v1.6.6': 'python__v1.0.x',    'python_v1.7.2': 'python__v1.0.x',    'python_v1.8.1': 'python__v1.0.x',    'python_v1.9.1': 'python__v1.0.x',    'python_v1.10.0': 'python__v1.0.x',}
 |