Skip to content

Synthesis failed for logging #8931

@yoshi-automation

Description

@yoshi-automation

Hello! Autosynth couldn't regenerate logging. 💔

Here's the output from running synth.py:

Cloning into 'working_repo'...
Switched to branch 'autosynth-logging'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', 'synth.py', '--']
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/logging/synth.py.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
latest: Pulling from googleapis/artman
Digest: sha256:6929f343c400122d85818195b18613330a12a014bffc1e08499550d40571479d
Status: Image is up to date for googleapis/artman:latest
synthtool > Cloning googleapis.
synthtool > Running generator for google/logging/artman_logging.yaml.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/logging-v2.
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/logging/v2/logging.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/logging-v2/google/cloud/logging_v2/proto/logging.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/logging/v2/logging_config.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/logging-v2/google/cloud/logging_v2/proto/logging_config.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/logging/v2/log_entry.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/logging-v2/google/cloud/logging_v2/proto/log_entry.proto
synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/logging/v2/logging_metrics.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/logging-v2/google/cloud/logging_v2/proto/logging_metrics.proto
synthtool > Placed proto files into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/logging-v2/google/cloud/logging_v2/proto.
synthtool > Replaced '(^.*$\\n)*' in google/cloud/logging_v2/proto/logging_config_pb2.py.
synthtool > Replaced '(^.*$\\n)*' in google/cloud/logging_v2/proto/logging_metrics_pb2.py.
synthtool > Replaced '(^.*$\\n)*' in google/cloud/logging_v2/proto/logging_pb2.py.
synthtool > Replaced '(^.*$\\n)*' in google/cloud/logging_v2/proto/log_entry_pb2.py.
synthtool > Replaced 'channel =.*\n(\\s+)address=.*\n\\s+credentials=.*,\n' in google/cloud/logging_v2/gapic/transports/metrics_service_v2_grpc_transport.py.
synthtool > Replaced 'channel =.*\n(\\s+)address=.*\n\\s+credentials=.*,\n' in google/cloud/logging_v2/gapic/transports/logging_service_v2_grpc_transport.py.
synthtool > Replaced 'channel =.*\n(\\s+)address=.*\n\\s+credentials=.*,\n' in google/cloud/logging_v2/gapic/transports/config_service_v2_grpc_transport.py.
.coveragerc
.flake8
MANIFEST.in
noxfile.py.j2
setup.cfg
Running session blacken
Creating virtualenv using python3.6 in .nox/blacken
pip install black
black google tests docs
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/gapic/enums.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/gapic/config_service_v2_client_config.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/gapic/logging_service_v2_client_config.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/gapic/metrics_service_v2_client_config.py
error: cannot format /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/gapic/transports/config_service_v2_grpc_transport.py: cannot use --safe with this file; failed to parse source file with Python 3.6's builtin AST. Re-run with --fast or stop using deprecated Python 2 syntax. AST error message: keyword argument repeated (<unknown>, line 73)
error: cannot format /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/gapic/transports/logging_service_v2_grpc_transport.py: cannot use --safe with this file; failed to parse source file with Python 3.6's builtin AST. Re-run with --fast or stop using deprecated Python 2 syntax. AST error message: keyword argument repeated (<unknown>, line 73)
error: cannot format /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/gapic/transports/metrics_service_v2_grpc_transport.py: cannot use --safe with this file; failed to parse source file with Python 3.6's builtin AST. Re-run with --fast or stop using deprecated Python 2 syntax. AST error message: keyword argument repeated (<unknown>, line 73)
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/gapic/logging_service_v2_client.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/proto/log_entry_pb2_grpc.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/gapic/metrics_service_v2_client.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/gapic/config_service_v2_client.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/proto/logging_config_pb2_grpc.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/proto/logging_metrics_pb2_grpc.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/proto/log_entry_pb2.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/proto/logging_pb2_grpc.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/proto/logging_metrics_pb2.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/proto/logging_config_pb2.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/tests/unit/gapic/v2/test_logging_service_v2_client_v2.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/tests/unit/gapic/v2/test_config_service_v2_client_v2.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/google/cloud/logging_v2/proto/logging_pb2.py
reformatted /tmpfs/src/git/autosynth/working_repo/logging/tests/unit/gapic/v2/test_metrics_service_v2_client_v2.py
All done! 💥 💔 💥
18 files reformatted, 52 files left unchanged, 3 files failed to reformat.
Command black google tests docs failed with exit code 123
Session blacken failed.
synthtool > Failed executing nox -s blacken:

None
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/logging/synth.py", line 56, in <module>
    s.shell.run(["nox", "-s", "blacken"], hide_output=False)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['nox', '-s', 'blacken']' returned non-zero exit status 1.
synthtool > Cleaned up 2 temporary directories.
synthtool > Wrote metadata to synth.metadata.

Synthesis failed

Google internal developers can see the full log here.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the Cloud Logging API.autosynth failuretype: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions