Functions | Variables
create_matrix_images Namespace Reference

Functions

def add_files_to_image (image, with_files, label=None)
 
def build_all_images_for_lang (lang)
 
def build_all_images_for_release (lang, release)
 
def build_image_jobspec (runtime, env, gcr_tag, stack_base)
 
def checkout_grpc_stack (lang, release)
 
def cleanup ()
 
def maybe_apply_patches_on_git_tag (stack_base, lang, release)
 

Variables

string _BUILD_INFO = '/var/local/build_info'
 
string _IMAGE_BUILDER = 'tools/run_tests/dockerize/build_interop_image.sh'
 
 _LANGUAGES = list(client_matrix.LANG_RUNTIME_MATRIX.keys())
 
 _RELEASES
 
 action
 
 argp = argparse.ArgumentParser(description='Run interop tests.')
 
 args = argp.parse_args()
 
 choices
 
 const
 
 default
 
 do_newline
 
def docker_images = build_all_images_for_lang(lang)
 
list docker_images_cleanup = []
 
 help
 
 image
 
list languages = ['all'] else _LANGUAGES
 
 nargs
 
 python_util_dir
 

Function Documentation

◆ add_files_to_image()

def create_matrix_images.add_files_to_image (   image,
  with_files,
  label = None 
)
Add files to a docker image.

  image: docker image name, i.e. grpc_interop_java:26328ad8
  with_files: additional files to include in the docker image.
  label: label string to attach to the image.

Definition at line 101 of file create_matrix_images.py.

◆ build_all_images_for_lang()

def create_matrix_images.build_all_images_for_lang (   lang)
Build all docker images for a language across releases and runtimes.

Definition at line 163 of file create_matrix_images.py.

◆ build_all_images_for_release()

def create_matrix_images.build_all_images_for_release (   lang,
  release 
)
Build all docker images for a release across all runtimes.

Definition at line 194 of file create_matrix_images.py.

◆ build_image_jobspec()

def create_matrix_images.build_image_jobspec (   runtime,
  env,
  gcr_tag,
  stack_base 
)
Build interop docker image for a language with runtime.

  runtime: a <lang><version> string, for example go1.8.
  env:     dictionary of env to passed to the build script.
  gcr_tag: the tag for the docker image (i.e. v1.3.0).
  stack_base: the local gRPC repo path.

Definition at line 140 of file create_matrix_images.py.

◆ checkout_grpc_stack()

def create_matrix_images.checkout_grpc_stack (   lang,
  release 
)
Invokes 'git check' for the lang/release and returns directory created.

Definition at line 290 of file create_matrix_images.py.

◆ cleanup()

def create_matrix_images.cleanup ( )

Definition at line 241 of file create_matrix_images.py.

◆ maybe_apply_patches_on_git_tag()

def create_matrix_images.maybe_apply_patches_on_git_tag (   stack_base,
  lang,
  release 
)

Definition at line 251 of file create_matrix_images.py.

Variable Documentation

◆ _BUILD_INFO

string create_matrix_images._BUILD_INFO = '/var/local/build_info'
private

Definition at line 47 of file create_matrix_images.py.

◆ _IMAGE_BUILDER

string create_matrix_images._IMAGE_BUILDER = 'tools/run_tests/dockerize/build_interop_image.sh'
private

Definition at line 37 of file create_matrix_images.py.

◆ _LANGUAGES

create_matrix_images._LANGUAGES = list(client_matrix.LANG_RUNTIME_MATRIX.keys())
private

Definition at line 38 of file create_matrix_images.py.

◆ _RELEASES

create_matrix_images._RELEASES
private
Initial value:
1 = sorted(
2  list(
3  set(release
4  for release_dict in list(client_matrix.LANG_RELEASE_MATRIX.values())
5  for release in list(release_dict.keys()))))

Definition at line 40 of file create_matrix_images.py.

◆ action

create_matrix_images.action

Definition at line 69 of file create_matrix_images.py.

◆ argp

create_matrix_images.argp = argparse.ArgumentParser(description='Run interop tests.')

Definition at line 49 of file create_matrix_images.py.

◆ args

create_matrix_images.args = argp.parse_args()

Definition at line 98 of file create_matrix_images.py.

◆ choices

create_matrix_images.choices

Definition at line 56 of file create_matrix_images.py.

◆ const

create_matrix_images.const

Definition at line 86 of file create_matrix_images.py.

◆ default

create_matrix_images.default

Definition at line 51 of file create_matrix_images.py.

◆ do_newline

create_matrix_images.do_newline

Definition at line 352 of file create_matrix_images.py.

◆ docker_images

def create_matrix_images.docker_images = build_all_images_for_lang(lang)

Definition at line 349 of file create_matrix_images.py.

◆ docker_images_cleanup

list create_matrix_images.docker_images_cleanup = []

Definition at line 247 of file create_matrix_images.py.

◆ help

create_matrix_images.help

Definition at line 52 of file create_matrix_images.py.

◆ image

create_matrix_images.image

Definition at line 352 of file create_matrix_images.py.

◆ languages

list create_matrix_images.languages = ['all'] else _LANGUAGES

Definition at line 347 of file create_matrix_images.py.

◆ nargs

create_matrix_images.nargs

Definition at line 64 of file create_matrix_images.py.

◆ python_util_dir

create_matrix_images.python_util_dir
Initial value:
1 = os.path.abspath(
2  os.path.join(os.path.dirname(__file__), '../run_tests/python_utils'))

Definition at line 31 of file create_matrix_images.py.

cpp.gmock_class.set
set
Definition: bloaty/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class.py:44


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:10