Skip to content

Synthesis failed for tasks #7580

@yoshi-automation

Description

@yoshi-automation

Hello! Autosynth couldn't regenerate tasks. 💔

Here's the output from running synth.py:

Cloning into 'working_repo'...
Switched to branch 'autosynth-tasks'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', 'synth.py', '--']
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/tasks/synth.py.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
latest: Pulling from googleapis/artman
Digest: sha256:70ba28fda87e032ae44e6df41b7fc342c1b0cce1ed90658c4890eb4f613038c2
Status: Image is up to date for googleapis/artman:latest
synthtool > Cloning googleapis.
synthtool > Running generator for google/cloud/tasks/artman_cloudtasks_v2beta2.yaml.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta2.
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2beta2/cloudtasks.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta2/google/cloud/tasks_v2beta2/proto/cloudtasks.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2beta2/queue.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta2/google/cloud/tasks_v2beta2/proto/queue.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2beta2/target.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta2/google/cloud/tasks_v2beta2/proto/target.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2beta2/task.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta2/google/cloud/tasks_v2beta2/proto/task.proto
synthtool > Placed proto files into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta2/google/cloud/tasks_v2beta2/proto.
synthtool > Replaced '(Google IAM .*?_) ' in google/cloud/tasks_v2beta2/gapic/cloud_tasks_client.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2beta2/proto/target_pb2.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2beta2/proto/task_pb2.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2beta2/proto/queue_pb2.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2beta2/proto/cloudtasks_pb2.py.
synthtool > Running generator for google/cloud/tasks/artman_cloudtasks_v2beta3.yaml.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta3.
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2beta3/cloudtasks.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta3/google/cloud/tasks_v2beta3/proto/cloudtasks.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2beta3/queue.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta3/google/cloud/tasks_v2beta3/proto/queue.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2beta3/target.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta3/google/cloud/tasks_v2beta3/proto/target.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2beta3/task.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta3/google/cloud/tasks_v2beta3/proto/task.proto
synthtool > Placed proto files into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2beta3/google/cloud/tasks_v2beta3/proto.
synthtool > Replaced '(Google IAM .*?_) ' in google/cloud/tasks_v2beta3/gapic/cloud_tasks_client.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2beta3/proto/target_pb2.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2beta3/proto/task_pb2.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2beta3/proto/queue_pb2.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2beta3/proto/cloudtasks_pb2.py.
synthtool > Running generator for google/cloud/tasks/artman_cloudtasks_v2.yaml.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2.
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2/cloudtasks.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2/google/cloud/tasks_v2/proto/cloudtasks.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2/queue.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2/google/cloud/tasks_v2/proto/queue.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2/target.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2/google/cloud/tasks_v2/proto/target.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/tasks/v2/task.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2/google/cloud/tasks_v2/proto/task.proto
synthtool > Placed proto files into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/tasks-v2/google/cloud/tasks_v2/proto.
synthtool > Replaced '(Google IAM .*?_) ' in google/cloud/tasks_v2/gapic/cloud_tasks_client.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2/proto/target_pb2.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2/proto/task_pb2.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2/proto/queue_pb2.py.
synthtool > Replaced '>`__' in google/cloud/tasks_v2/proto/cloudtasks_pb2.py.
synthtool > Replaced '(in queue.yaml/xml) <\n\\s+' in google/cloud/tasks_v2beta2/proto/queue_pb2.py.
synthtool > Replaced '#retry_parameters>\n          `__\\.' in google/cloud/tasks_v2/proto/queue_pb2.py.
synthtool > Replaced '>>> # TODO: Initialize `queue`:' in google/cloud/tasks_v2beta3/gapic/cloud_tasks_client.py.
synthtool > Replaced '^(\\s+)>>> queue = {}\n' in google/cloud/tasks_v2beta3/gapic/cloud_tasks_client.py.
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 87, in <module>
    main()
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 79, 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 205, in _call_with_frames_removed
  File "/tmpfs/src/git/autosynth/working_repo/tasks/synth.py", line 89, in <module>
    templated_files = common.py_library(unit_cov_level=97, cov_level=100)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/gcp/common.py", line 48, in py_library
    return self._generic_library("python_library", **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/gcp/common.py", line 38, in _generic_library
    self._load_generic_metadata(kwargs["metadata"])
KeyError: 'metadata'
synthtool > Cleaned up 1 temporary directories.
synthtool > Wrote metadata to synth.metadata.

Synthesis failed

Google internal developers can see the full log here.

Metadata

Metadata

Assignees

Labels

autosynth failurepriority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions