googleapis / python-texttospeech

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-texttospeech
Apache License 2.0
124 stars 45 forks source link

Synthesis failed for python-texttospeech #91

Closed yoshi-automation closed 3 years ago

yoshi-automation commented 4 years ago

Hello! Autosynth couldn't regenerate python-texttospeech. :broken_heart:

Here's the output from running synth.py:

ake experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 5e53d6b6 feat: added support for per type and partition export for Cloud Asset API
2020-09-16 06:21:42,995 autosynth [DEBUG] > Running: git checkout fdd03c161003ab97657cc0218f25c82c89ddf4b6
Note: checking out 'fdd03c161003ab97657cc0218f25c82c89ddf4b6'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at fdd03c1 build(test): recursively find test files; fail on unsupported dependency versions (#717)
2020-09-16 06:21:43,006 autosynth [DEBUG] > Running: git branch -f autosynth-142
2020-09-16 06:21:43,010 autosynth [DEBUG] > Running: git checkout autosynth-142
Switched to branch 'autosynth-142'
2020-09-16 06:21:43,015 autosynth [INFO] > Running synthtool
2020-09-16 06:21:43,015 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-09-16 06:21:43,015 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/142/sponge_log.log
2020-09-16 06:21:43,017 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-16 06:21:43,322 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-142
nothing to commit, working tree clean
2020-09-16 06:21:43,458 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-09-16 06:21:43,467 synthtool [DEBUG] > Ensuring dependencies.
2020-09-16 06:21:43,472 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-09-16 06:21:43,476 synthtool [DEBUG] > Cloning googleapis.
2020-09-16 06:21:43,477 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-09-16 06:21:43,480 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:42b13df8689c1cc45d5cb972e10a774c2b673dbf190c8c1267426977448c8e59
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2020-09-16 06:21:44,391 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 278, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 278, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 88, in build
    load_services=load_services
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 512, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 512, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1006, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1006, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 729, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 730, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 718, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 391, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2020-09-16 06:21:45,523 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmpkjo6w2rw/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmpkjo6w2rw/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2020-09-16 06:21:45,591 autosynth [ERROR] > Synthesis failed
2020-09-16 06:21:45,592 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at feb04c5 docs: use sphinx-1.5.5 for sphinx-docfx-yaml (#89)
2020-09-16 06:21:45,598 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-16 06:21:45,603 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 692, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 541, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 672, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

tached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2020-12-25 06:17:04,369 autosynth [DEBUG] > Running: git checkout 6b026e1443948dcfc0b9e3289c85e940eb70f694
Note: checking out '6b026e1443948dcfc0b9e3289c85e940eb70f694'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6b026e1 feat: Update Ruby Apiary metadata path to match Repo reorganization (#888)
2020-12-25 06:17:04,382 autosynth [DEBUG] > Running: git branch -f autosynth-599
2020-12-25 06:17:04,386 autosynth [DEBUG] > Running: git checkout autosynth-599
Switched to branch 'autosynth-599'
2020-12-25 06:17:04,392 autosynth [INFO] > Running synthtool
2020-12-25 06:17:04,392 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-25 06:17:04,393 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/599/sponge_log.log
2020-12-25 06:17:04,395 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-25 06:17:04,649 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-599
nothing to commit, working tree clean
2020-12-25 06:17:04,806 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-25 06:17:04,817 synthtool [DEBUG] > Ensuring dependencies.
2020-12-25 06:17:04,824 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-25 06:17:04,831 synthtool [DEBUG] > Cloning googleapis.
2020-12-25 06:17:04,831 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-25 06:17:04,836 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2020-12-25 06:17:05,982 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2020-12-25 06:17:07,238 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmpdulqo0uo/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmpdulqo0uo/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2020-12-25 06:17:07,288 autosynth [ERROR] > Synthesis failed
2020-12-25 06:17:07,289 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2020-12-25 06:17:07,295 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-25 06:17:07,301 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

tached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2020-12-26 06:11:38,030 autosynth [DEBUG] > Running: git checkout 6b026e1443948dcfc0b9e3289c85e940eb70f694
Note: checking out '6b026e1443948dcfc0b9e3289c85e940eb70f694'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6b026e1 feat: Update Ruby Apiary metadata path to match Repo reorganization (#888)
2020-12-26 06:11:38,037 autosynth [DEBUG] > Running: git branch -f autosynth-599
2020-12-26 06:11:38,041 autosynth [DEBUG] > Running: git checkout autosynth-599
Switched to branch 'autosynth-599'
2020-12-26 06:11:38,045 autosynth [INFO] > Running synthtool
2020-12-26 06:11:38,045 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-26 06:11:38,045 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/599/sponge_log.log
2020-12-26 06:11:38,047 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-26 06:11:38,264 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-599
nothing to commit, working tree clean
2020-12-26 06:11:38,400 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-26 06:11:38,408 synthtool [DEBUG] > Ensuring dependencies.
2020-12-26 06:11:38,413 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-26 06:11:38,417 synthtool [DEBUG] > Cloning googleapis.
2020-12-26 06:11:38,417 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-26 06:11:38,420 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2020-12-26 06:11:39,296 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2020-12-26 06:11:40,379 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmp0rlhez7p/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmp0rlhez7p/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2020-12-26 06:11:40,420 autosynth [ERROR] > Synthesis failed
2020-12-26 06:11:40,420 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2020-12-26 06:11:40,425 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-26 06:11:40,429 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

tached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2020-12-27 06:12:55,751 autosynth [DEBUG] > Running: git checkout 6b026e1443948dcfc0b9e3289c85e940eb70f694
Note: checking out '6b026e1443948dcfc0b9e3289c85e940eb70f694'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6b026e1 feat: Update Ruby Apiary metadata path to match Repo reorganization (#888)
2020-12-27 06:12:55,761 autosynth [DEBUG] > Running: git branch -f autosynth-599
2020-12-27 06:12:55,764 autosynth [DEBUG] > Running: git checkout autosynth-599
Switched to branch 'autosynth-599'
2020-12-27 06:12:55,769 autosynth [INFO] > Running synthtool
2020-12-27 06:12:55,769 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-27 06:12:55,769 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/599/sponge_log.log
2020-12-27 06:12:55,770 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-27 06:12:55,989 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-599
nothing to commit, working tree clean
2020-12-27 06:12:56,125 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-27 06:12:56,133 synthtool [DEBUG] > Ensuring dependencies.
2020-12-27 06:12:56,138 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-27 06:12:56,142 synthtool [DEBUG] > Cloning googleapis.
2020-12-27 06:12:56,142 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-27 06:12:56,145 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2020-12-27 06:12:57,019 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2020-12-27 06:12:58,106 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmptg5y6gxm/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmptg5y6gxm/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2020-12-27 06:12:58,163 autosynth [ERROR] > Synthesis failed
2020-12-27 06:12:58,163 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2020-12-27 06:12:58,168 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-27 06:12:58,172 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

tached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2020-12-28 06:16:45,426 autosynth [DEBUG] > Running: git checkout 6b026e1443948dcfc0b9e3289c85e940eb70f694
Note: checking out '6b026e1443948dcfc0b9e3289c85e940eb70f694'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6b026e1 feat: Update Ruby Apiary metadata path to match Repo reorganization (#888)
2020-12-28 06:16:45,433 autosynth [DEBUG] > Running: git branch -f autosynth-599
2020-12-28 06:16:45,437 autosynth [DEBUG] > Running: git checkout autosynth-599
Switched to branch 'autosynth-599'
2020-12-28 06:16:45,441 autosynth [INFO] > Running synthtool
2020-12-28 06:16:45,442 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-28 06:16:45,442 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/599/sponge_log.log
2020-12-28 06:16:45,444 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-28 06:16:45,676 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-599
nothing to commit, working tree clean
2020-12-28 06:16:45,821 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-28 06:16:45,830 synthtool [DEBUG] > Ensuring dependencies.
2020-12-28 06:16:45,836 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-28 06:16:45,842 synthtool [DEBUG] > Cloning googleapis.
2020-12-28 06:16:45,842 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-28 06:16:45,846 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2020-12-28 06:16:46,795 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2020-12-28 06:16:47,989 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmp04_1nnh6/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmp04_1nnh6/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2020-12-28 06:16:48,036 autosynth [ERROR] > Synthesis failed
2020-12-28 06:16:48,036 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2020-12-28 06:16:48,041 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-28 06:16:48,046 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

tached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2020-12-29 08:13:07,659 autosynth [DEBUG] > Running: git checkout 6b026e1443948dcfc0b9e3289c85e940eb70f694
Note: checking out '6b026e1443948dcfc0b9e3289c85e940eb70f694'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6b026e1 feat: Update Ruby Apiary metadata path to match Repo reorganization (#888)
2020-12-29 08:13:07,663 autosynth [DEBUG] > Running: git branch -f autosynth-599
2020-12-29 08:13:07,666 autosynth [DEBUG] > Running: git checkout autosynth-599
Switched to branch 'autosynth-599'
2020-12-29 08:13:07,669 autosynth [INFO] > Running synthtool
2020-12-29 08:13:07,670 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-29 08:13:07,670 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/599/sponge_log.log
2020-12-29 08:13:07,671 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-29 08:13:07,856 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-599
nothing to commit, working tree clean
2020-12-29 08:13:07,969 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-29 08:13:07,975 synthtool [DEBUG] > Ensuring dependencies.
2020-12-29 08:13:07,979 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-29 08:13:07,982 synthtool [DEBUG] > Cloning googleapis.
2020-12-29 08:13:07,982 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-29 08:13:07,985 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2020-12-29 08:13:08,749 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2020-12-29 08:13:09,755 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmp5v5yfs3v/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmp5v5yfs3v/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2020-12-29 08:13:09,808 autosynth [ERROR] > Synthesis failed
2020-12-29 08:13:09,809 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2020-12-29 08:13:09,813 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-29 08:13:09,817 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

4750767be6d08'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2020-12-30 07:31:31,345 autosynth [DEBUG] > Running: git checkout 6133907dbb3ddab204a17a15d5c53ec0aae9b033
Note: checking out '6133907dbb3ddab204a17a15d5c53ec0aae9b033'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6133907 chore(java): remove formatter action (#892)
2020-12-30 07:31:31,354 autosynth [DEBUG] > Running: git branch -f autosynth-600
2020-12-30 07:31:31,357 autosynth [DEBUG] > Running: git checkout autosynth-600
Switched to branch 'autosynth-600'
2020-12-30 07:31:31,361 autosynth [INFO] > Running synthtool
2020-12-30 07:31:31,361 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-30 07:31:31,361 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/600/sponge_log.log
2020-12-30 07:31:31,362 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-30 07:31:31,566 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-600
nothing to commit, working tree clean
2020-12-30 07:31:31,691 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-30 07:31:31,698 synthtool [DEBUG] > Ensuring dependencies.
2020-12-30 07:31:31,703 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-30 07:31:31,707 synthtool [DEBUG] > Cloning googleapis.
2020-12-30 07:31:31,707 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-30 07:31:31,710 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2020-12-30 07:31:32,599 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2020-12-30 07:31:33,645 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmp_foet213/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmp_foet213/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2020-12-30 07:31:33,704 autosynth [ERROR] > Synthesis failed
2020-12-30 07:31:33,705 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2020-12-30 07:31:33,710 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-30 07:31:33,714 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

4750767be6d08'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2020-12-31 06:13:40,954 autosynth [DEBUG] > Running: git checkout 6133907dbb3ddab204a17a15d5c53ec0aae9b033
Note: checking out '6133907dbb3ddab204a17a15d5c53ec0aae9b033'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6133907 chore(java): remove formatter action (#892)
2020-12-31 06:13:40,962 autosynth [DEBUG] > Running: git branch -f autosynth-600
2020-12-31 06:13:40,965 autosynth [DEBUG] > Running: git checkout autosynth-600
Switched to branch 'autosynth-600'
2020-12-31 06:13:40,969 autosynth [INFO] > Running synthtool
2020-12-31 06:13:40,969 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-31 06:13:40,969 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/600/sponge_log.log
2020-12-31 06:13:40,970 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-31 06:13:41,151 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-600
nothing to commit, working tree clean
2020-12-31 06:13:41,265 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-31 06:13:41,272 synthtool [DEBUG] > Ensuring dependencies.
2020-12-31 06:13:41,276 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-31 06:13:41,280 synthtool [DEBUG] > Cloning googleapis.
2020-12-31 06:13:41,280 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-31 06:13:41,283 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2020-12-31 06:13:42,151 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2020-12-31 06:13:43,154 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmp91exyk6_/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmp91exyk6_/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2020-12-31 06:13:43,207 autosynth [ERROR] > Synthesis failed
2020-12-31 06:13:43,207 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2020-12-31 06:13:43,212 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-31 06:13:43,216 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

4750767be6d08'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2021-01-01 06:16:23,759 autosynth [DEBUG] > Running: git checkout 6133907dbb3ddab204a17a15d5c53ec0aae9b033
Note: checking out '6133907dbb3ddab204a17a15d5c53ec0aae9b033'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6133907 chore(java): remove formatter action (#892)
2021-01-01 06:16:23,764 autosynth [DEBUG] > Running: git branch -f autosynth-600
2021-01-01 06:16:23,766 autosynth [DEBUG] > Running: git checkout autosynth-600
Switched to branch 'autosynth-600'
2021-01-01 06:16:23,770 autosynth [INFO] > Running synthtool
2021-01-01 06:16:23,770 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2021-01-01 06:16:23,770 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/600/sponge_log.log
2021-01-01 06:16:23,772 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2021-01-01 06:16:23,984 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-600
nothing to commit, working tree clean
2021-01-01 06:16:24,114 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2021-01-01 06:16:24,121 synthtool [DEBUG] > Ensuring dependencies.
2021-01-01 06:16:24,126 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2021-01-01 06:16:24,130 synthtool [DEBUG] > Cloning googleapis.
2021-01-01 06:16:24,130 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2021-01-01 06:16:24,133 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2021-01-01 06:16:25,056 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2021-01-01 06:16:26,149 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmpnlv4165m/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmpnlv4165m/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2021-01-01 06:16:26,200 autosynth [ERROR] > Synthesis failed
2021-01-01 06:16:26,200 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2021-01-01 06:16:26,205 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-01-01 06:16:26,209 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

4750767be6d08'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2021-01-02 06:13:26,384 autosynth [DEBUG] > Running: git checkout 6133907dbb3ddab204a17a15d5c53ec0aae9b033
Note: checking out '6133907dbb3ddab204a17a15d5c53ec0aae9b033'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6133907 chore(java): remove formatter action (#892)
2021-01-02 06:13:26,395 autosynth [DEBUG] > Running: git branch -f autosynth-600
2021-01-02 06:13:26,399 autosynth [DEBUG] > Running: git checkout autosynth-600
Switched to branch 'autosynth-600'
2021-01-02 06:13:26,403 autosynth [INFO] > Running synthtool
2021-01-02 06:13:26,404 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2021-01-02 06:13:26,404 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/600/sponge_log.log
2021-01-02 06:13:26,405 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2021-01-02 06:13:26,628 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-600
nothing to commit, working tree clean
2021-01-02 06:13:26,766 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2021-01-02 06:13:26,774 synthtool [DEBUG] > Ensuring dependencies.
2021-01-02 06:13:26,779 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2021-01-02 06:13:26,783 synthtool [DEBUG] > Cloning googleapis.
2021-01-02 06:13:26,783 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2021-01-02 06:13:26,787 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2021-01-02 06:13:27,765 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2021-01-02 06:13:28,933 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmpszy2tk5s/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmpszy2tk5s/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2021-01-02 06:13:28,978 autosynth [ERROR] > Synthesis failed
2021-01-02 06:13:28,979 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2021-01-02 06:13:28,984 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-01-02 06:13:28,988 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

4750767be6d08'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2021-01-03 06:14:04,600 autosynth [DEBUG] > Running: git checkout 6133907dbb3ddab204a17a15d5c53ec0aae9b033
Note: checking out '6133907dbb3ddab204a17a15d5c53ec0aae9b033'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6133907 chore(java): remove formatter action (#892)
2021-01-03 06:14:04,611 autosynth [DEBUG] > Running: git branch -f autosynth-600
2021-01-03 06:14:04,614 autosynth [DEBUG] > Running: git checkout autosynth-600
Switched to branch 'autosynth-600'
2021-01-03 06:14:04,619 autosynth [INFO] > Running synthtool
2021-01-03 06:14:04,619 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2021-01-03 06:14:04,619 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/600/sponge_log.log
2021-01-03 06:14:04,621 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2021-01-03 06:14:04,842 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-600
nothing to commit, working tree clean
2021-01-03 06:14:04,980 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2021-01-03 06:14:04,989 synthtool [DEBUG] > Ensuring dependencies.
2021-01-03 06:14:04,993 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2021-01-03 06:14:04,998 synthtool [DEBUG] > Cloning googleapis.
2021-01-03 06:14:04,998 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2021-01-03 06:14:05,001 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2021-01-03 06:14:05,957 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2021-01-03 06:14:07,063 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmp98eu18mh/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmp98eu18mh/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2021-01-03 06:14:07,125 autosynth [ERROR] > Synthesis failed
2021-01-03 06:14:07,125 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2021-01-03 06:14:07,131 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-01-03 06:14:07,136 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

4750767be6d08'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 69697504 fix: fixed config for Python and Java grpc lib
2021-01-04 06:23:36,778 autosynth [DEBUG] > Running: git checkout 6133907dbb3ddab204a17a15d5c53ec0aae9b033
Note: checking out '6133907dbb3ddab204a17a15d5c53ec0aae9b033'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6133907 chore(java): remove formatter action (#892)
2021-01-04 06:23:36,789 autosynth [DEBUG] > Running: git branch -f autosynth-600
2021-01-04 06:23:36,794 autosynth [DEBUG] > Running: git checkout autosynth-600
Switched to branch 'autosynth-600'
2021-01-04 06:23:36,799 autosynth [INFO] > Running synthtool
2021-01-04 06:23:36,799 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2021-01-04 06:23:36,799 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/600/sponge_log.log
2021-01-04 06:23:36,802 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2021-01-04 06:23:37,039 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-600
nothing to commit, working tree clean
2021-01-04 06:23:37,193 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2021-01-04 06:23:37,203 synthtool [DEBUG] > Ensuring dependencies.
2021-01-04 06:23:37,210 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2021-01-04 06:23:37,216 synthtool [DEBUG] > Cloning googleapis.
2021-01-04 06:23:37,216 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2021-01-04 06:23:37,221 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2021-01-04 06:23:38,246 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2021-01-04 06:23:39,484 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmphla78epn/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmphla78epn/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2021-01-04 06:23:39,536 autosynth [ERROR] > Synthesis failed
2021-01-04 06:23:39,537 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2021-01-04 06:23:39,542 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-01-04 06:23:39,548 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating python-texttospeech. :sob:

Here's the output from running synth.py:

0e2eff29f778e4a'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at ad3bb00e chore: update gapic-generator-java to 0.0.16
2021-01-05 06:18:26,339 autosynth [DEBUG] > Running: git checkout 6133907dbb3ddab204a17a15d5c53ec0aae9b033
Note: checking out '6133907dbb3ddab204a17a15d5c53ec0aae9b033'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6133907 chore(java): remove formatter action (#892)
2021-01-05 06:18:26,350 autosynth [DEBUG] > Running: git branch -f autosynth-601
2021-01-05 06:18:26,354 autosynth [DEBUG] > Running: git checkout autosynth-601
Switched to branch 'autosynth-601'
2021-01-05 06:18:26,358 autosynth [INFO] > Running synthtool
2021-01-05 06:18:26,359 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2021-01-05 06:18:26,359 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-texttospeech/601/sponge_log.log
2021-01-05 06:18:26,361 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2021-01-05 06:18:26,590 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-texttospeech/synth.py.
On branch autosynth-601
nothing to commit, working tree clean
2021-01-05 06:18:26,728 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2021-01-05 06:18:26,736 synthtool [DEBUG] > Ensuring dependencies.
2021-01-05 06:18:26,742 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2021-01-05 06:18:26,746 synthtool [DEBUG] > Cloning googleapis.
2021-01-05 06:18:26,746 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2021-01-05 06:18:26,749 synthtool [DEBUG] > Pulling Docker image: gapic-generator-python:latest
latest: Pulling from gapic-images/gapic-generator-python
Digest: sha256:3a8a0d87763987cdf78444b53bae7286c173149eaa9319faca00c07a7a292d72
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-python:latest
2021-01-05 06:18:27,723 synthtool [DEBUG] > Generating code for: google/cloud/texttospeech/v1beta1.
Traceback (most recent call last):
  File "/usr/local/bin/protoc-gen-python_gapic", line 8, in <module>
    sys.exit(generate())
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/gapic/cli/generate.py", line 58, in generate
    api_schema = api.API.build(req.proto_file, opts=opts, package=package)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in build
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 311, in <dictcomp>
    for name, proto in pre_protos.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 95, in build
    all_resources=all_resources or {},
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in proto
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/api.py", line 549, in <genexpr>
    for k, v in naive.services.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in with_context
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 1179, in <genexpr>
    for k, v in self.methods.items()
  File "/usr/local/lib/python3.7/site-packages/gapic/utils/cache.py", line 39, in inner
    self._cached_values[fx.__name__] = fx(self)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 818, in flattened_fields
    for sig in signatures
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 819, in <genexpr>
    for name_and_field in filter_fields(sig)
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 807, in filter_fields
    field = self.input.get_field(*name.split('.'))
  File "/usr/local/lib/python3.7/site-packages/gapic/schema/wrappers.py", line 414, in get_field
    cursor = self.fields[field_path[0]]
KeyError: 'input'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
2021-01-05 06:18:28,877 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly --mount type=bind,source=/tmpfs/tmp/tmpucalh7en/,destination=/out/ --rm --user 1000 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-texttospeech/synth.py", line 30, in <module>
    library = gapic.py_library(service="texttospeech", version=version,)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/home/kbuilder/.cache/synthtool/googleapis/google/cloud/texttospeech/v1beta1/,destination=/in/google/cloud/texttospeech/v1beta1/,readonly', '--mount', 'type=bind,source=/tmpfs/tmp/tmpucalh7en/,destination=/out/', '--rm', '--user', '1000', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 1.
2021-01-05 06:18:28,929 autosynth [ERROR] > Synthesis failed
2021-01-05 06:18:28,929 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 420eb87 chore: require samples checks (#94)
2021-01-05 06:18:28,935 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-01-05 06:18:28,940 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth passed, closing! :green_heart: