Merge pull request #22256 from apolcyn/fix_interop_matrix_builder

Re-initialize submodules after checking out a tag in interop matrix builder
pull/22371/head
apolcyn 5 years ago committed by GitHub
commit d6e2514d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      tools/interop_matrix/create_matrix_images.py

@ -325,6 +325,19 @@ def checkout_grpc_stack(lang, release):
'%s: %s' % (str(output), commit_log),
do_newline=True)
# git submodule update
jobset.message('START',
'git submodule update --init at %s from %s' %
(release, stack_base),
do_newline=True)
subprocess.check_call(['git', 'submodule', 'update', '--init'],
cwd=stack_base,
stderr=subprocess.STDOUT)
jobset.message('SUCCESS',
'git submodule update --init',
'%s: %s' % (str(output), commit_log),
do_newline=True)
# Write git log to commit_log so it can be packaged with the docker image.
with open(os.path.join(stack_base, 'commit_log'), 'w') as f:
f.write(commit_log)

Loading…
Cancel
Save