diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2018-05-30 18:59:51 +0200 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2018-05-30 20:16:13 +0200 |
commit | d851d827dd73928f044cd2c2835f58ccbc4a9acd (patch) | |
tree | bba0dac7f144a5e2a544f8ac17a24ea3bac6b25b /tools/interop_matrix | |
parent | c093a7f8a117dc88f5075b67ec5b48b48c3151ff (diff) |
point out complexity in create_matrix_images.py
Diffstat (limited to 'tools/interop_matrix')
-rwxr-xr-x | tools/interop_matrix/create_matrix_images.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/interop_matrix/create_matrix_images.py b/tools/interop_matrix/create_matrix_images.py index e75d309b3c..24fd0e2ea4 100755 --- a/tools/interop_matrix/create_matrix_images.py +++ b/tools/interop_matrix/create_matrix_images.py @@ -274,6 +274,13 @@ def maybe_apply_patches_on_git_tag(stack_base, lang, release): sys.exit(1) subprocess.check_output( ['git', 'apply', patch_file], cwd=stack_base, stderr=subprocess.STDOUT) + + # TODO(jtattermusch): this really would need simplification and refactoring + # - "git add" and "git commit" can easily be done in a single command + # - it looks like the only reason for the existence of the "files_to_patch" + # entry is to perform "git add" - which is clumsy and fragile. + # - we only allow a single patch with name "git_repo.patch". A better design + # would be to allow multiple patches that can have more descriptive names. for repo_relative_path in files_to_patch: subprocess.check_output( ['git', 'add', repo_relative_path], |