googleapis / google-cloud-ruby

Google Cloud Client Library for Ruby
https://googleapis.github.io/google-cloud-ruby/
Apache License 2.0
1.35k stars 546 forks source link

Synthesis failed for monitoring #4390

Closed yoshi-automation closed 4 years ago

yoshi-automation commented 4 years ago

Hello! Autosynth couldn't regenerate monitoring. :broken_heart:

Here's the output from running synth.py:

Cloning into 'working_repo'...
Switched to branch 'autosynth-monitoring'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', 'synth.py', '--']
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/google-cloud-monitoring/synth.py.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
latest: Pulling from googleapis/artman
Digest: sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e
Status: Image is up to date for googleapis/artman:latest
synthtool > Cloning googleapis.
synthtool > Running generator for google/monitoring/artman_monitoring.yaml.
synthtool > Failed executing docker run --name artman-docker --rm -i -e HOST_USER_ID=1000 -e HOST_GROUP_ID=1000 -e RUNNING_IN_ARTMAN_DOCKER=True -v /home/kbuilder/.cache/synthtool/googleapis:/home/kbuilder/.cache/synthtool/googleapis -v /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles:/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles -w /home/kbuilder/.cache/synthtool/googleapis googleapis/artman:latest /bin/bash -c artman --local --config google/monitoring/artman_monitoring.yaml generate ruby_gapic:

artman> Final args:
artman>   api_name: monitoring
artman>   api_version: v3
artman>   artifact_type: GAPIC
artman>   aspect: ALL
artman>   gapic_code_dir: /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/ruby/google-cloud-ruby/google-cloud-monitoring
artman>   gapic_yaml: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/monitoring_gapic.yaml
artman>   generator_args: null
artman>   import_proto_path:
artman>     - /home/kbuilder/.cache/synthtool/googleapis
artman>   language: ruby
artman>   organization_name: google-cloud
artman>   output_dir: /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles
artman>   proto_deps:
artman>     - name: google-common-protos
artman>   proto_package: ''
artman>   root_dir: /home/kbuilder/.cache/synthtool/googleapis
artman>   samples: ''
artman>   service_yaml: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/monitoring.yaml
artman>   src_proto_path:
artman>     - /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3
artman>   toolkit_path: /toolkit
artman>   
artman> Creating GapicClientPipeline.
artman.output >
WARNING: toplevel: (lint) control-presence: Service monitoring.googleapis.com does not have control environment configured.
WARNING: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/monitoring.yaml:148: auth rule has selector(s) 'google.monitoring.v3.AgentTranslationService.CreateCollectdTimeSeries' that do not match and are not shadowed by other rules.
ERROR: toplevel: interface not reachable: google.monitoring.v3.ServiceMonitoringService.
WARNING: toplevel: (lint) control-presence: Service monitoring.googleapis.com does not have control environment configured.
WARNING: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/monitoring.yaml:148: auth rule has selector(s) 'google.monitoring.v3.AgentTranslationService.CreateCollectdTimeSeries' that do not match and are not shadowed by other rules.
ERROR: toplevel: interface not reachable: google.monitoring.v3.ServiceMonitoringService.

artman> Traceback (most recent call last):
  File "/artman/artman/cli/main.py", line 72, in main
    engine.run()
  File "/usr/local/lib/python3.5/dist-packages/taskflow/engines/action_engine/engine.py", line 247, in run
    for _state in self.run_iter(timeout=timeout):
  File "/usr/local/lib/python3.5/dist-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter
    failure.Failure.reraise_if_any(er_failures)
  File "/usr/local/lib/python3.5/dist-packages/taskflow/types/failure.py", line 339, in reraise_if_any
    failures[0].reraise()
  File "/usr/local/lib/python3.5/dist-packages/taskflow/types/failure.py", line 346, in reraise
    six.reraise(*self._exc_info)
  File "/usr/local/lib/python3.5/dist-packages/six.py", line 696, in reraise
    raise value
  File "/usr/local/lib/python3.5/dist-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
    result = task.execute(**arguments)
  File "/artman/artman/tasks/gapic_tasks.py", line 148, in execute
    task_utils.gapic_gen_task(toolkit_path, [gapic_artifact] + args))
  File "/artman/artman/tasks/task_base.py", line 64, in exec_command
    raise e
  File "/artman/artman/tasks/task_base.py", line 56, in exec_command
    output = subprocess.check_output(args, stderr=subprocess.STDOUT)
  File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['java', '-cp', '/toolkit/build/libs/gapic-generator-latest-fatjar.jar', 'com.google.api.codegen.GeneratorMain', 'LEGACY_GAPIC_AND_PACKAGE', '--descriptor_set=/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/google-cloud-monitoring-v3.desc', '--package_yaml2=/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/ruby_google-cloud-monitoring-v3_package2.yaml', '--output=/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/ruby/google-cloud-ruby/google-cloud-monitoring', '--language=ruby', '--service_yaml=/home/kbuilder/.cache/synthtool/googleapis/google/monitoring/monitoring.yaml', '--gapic_yaml=/home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/monitoring_gapic.yaml']' returned non-zero exit status 1

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/google-cloud-monitoring/synth.py", line 31, in <module>
    artman_output_name='google-cloud-ruby/google-cloud-monitoring'
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/gcp/gapic_generator.py", line 58, in ruby_library
    return self._generate_code(service, version, "ruby", **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/gcp/gapic_generator.py", line 138, in _generate_code
    generator_args=generator_args,
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/gcp/artman.py", line 141, in run
    shell.run(cmd, cwd=root_dir)
  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 '['docker', 'run', '--name', 'artman-docker', '--rm', '-i', '-e', 'HOST_USER_ID=1000', '-e', 'HOST_GROUP_ID=1000', '-e', 'RUNNING_IN_ARTMAN_DOCKER=True', '-v', '/home/kbuilder/.cache/synthtool/googleapis:/home/kbuilder/.cache/synthtool/googleapis', '-v', '/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles:/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles', '-w', PosixPath('/home/kbuilder/.cache/synthtool/googleapis'), 'googleapis/artman:latest', '/bin/bash', '-c', 'artman --local --config google/monitoring/artman_monitoring.yaml generate ruby_gapic']' returned non-zero exit status 32.
synthtool > Cleaned up 0 temporary directories.
synthtool > Wrote metadata to synth.metadata.

Synthesis failed

Google internal developers can see the full log here.

yoshi-automation commented 4 years ago

Autosynth is still having trouble generating monitoring. :sob:

Here's the output from running synth.py:

Cloning into 'working_repo'...
Switched to branch 'autosynth-monitoring'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', 'synth.py', '--']
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/google-cloud-monitoring/synth.py.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
latest: Pulling from googleapis/artman
Digest: sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e
Status: Image is up to date for googleapis/artman:latest
synthtool > Cloning googleapis.
synthtool > Running generator for google/monitoring/artman_monitoring.yaml.
synthtool > Failed executing docker run --name artman-docker --rm -i -e HOST_USER_ID=1000 -e HOST_GROUP_ID=1000 -e RUNNING_IN_ARTMAN_DOCKER=True -v /home/kbuilder/.cache/synthtool/googleapis:/home/kbuilder/.cache/synthtool/googleapis -v /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles:/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles -w /home/kbuilder/.cache/synthtool/googleapis googleapis/artman:latest /bin/bash -c artman --local --config google/monitoring/artman_monitoring.yaml generate ruby_gapic:

artman> Final args:
artman>   api_name: monitoring
artman>   api_version: v3
artman>   artifact_type: GAPIC
artman>   aspect: ALL
artman>   gapic_code_dir: /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/ruby/google-cloud-ruby/google-cloud-monitoring
artman>   gapic_yaml: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/monitoring_gapic.yaml
artman>   generator_args: null
artman>   import_proto_path:
artman>     - /home/kbuilder/.cache/synthtool/googleapis
artman>   language: ruby
artman>   organization_name: google-cloud
artman>   output_dir: /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles
artman>   proto_deps:
artman>     - name: google-common-protos
artman>   proto_package: ''
artman>   root_dir: /home/kbuilder/.cache/synthtool/googleapis
artman>   samples: ''
artman>   service_yaml: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/monitoring.yaml
artman>   src_proto_path:
artman>     - /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3
artman>   toolkit_path: /toolkit
artman>   
artman> Creating GapicClientPipeline.
artman.output >
WARNING: toplevel: (lint) control-presence: Service monitoring.googleapis.com does not have control environment configured.
WARNING: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/monitoring.yaml:148: auth rule has selector(s) 'google.monitoring.v3.AgentTranslationService.CreateCollectdTimeSeries' that do not match and are not shadowed by other rules.
ERROR: toplevel: interface not reachable: google.monitoring.v3.ServiceMonitoringService.
WARNING: toplevel: (lint) control-presence: Service monitoring.googleapis.com does not have control environment configured.
WARNING: /home/kbuilder/.cache/synthtool/googleapis/google/monitoring/monitoring.yaml:148: auth rule has selector(s) 'google.monitoring.v3.AgentTranslationService.CreateCollectdTimeSeries' that do not match and are not shadowed by other rules.
ERROR: toplevel: interface not reachable: google.monitoring.v3.ServiceMonitoringService.

artman> Traceback (most recent call last):
  File "/artman/artman/cli/main.py", line 72, in main
    engine.run()
  File "/usr/local/lib/python3.5/dist-packages/taskflow/engines/action_engine/engine.py", line 247, in run
    for _state in self.run_iter(timeout=timeout):
  File "/usr/local/lib/python3.5/dist-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter
    failure.Failure.reraise_if_any(er_failures)
  File "/usr/local/lib/python3.5/dist-packages/taskflow/types/failure.py", line 339, in reraise_if_any
    failures[0].reraise()
  File "/usr/local/lib/python3.5/dist-packages/taskflow/types/failure.py", line 346, in reraise
    six.reraise(*self._exc_info)
  File "/usr/local/lib/python3.5/dist-packages/six.py", line 696, in reraise
    raise value
  File "/usr/local/lib/python3.5/dist-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
    result = task.execute(**arguments)
  File "/artman/artman/tasks/gapic_tasks.py", line 148, in execute
    task_utils.gapic_gen_task(toolkit_path, [gapic_artifact] + args))
  File "/artman/artman/tasks/task_base.py", line 64, in exec_command
    raise e
  File "/artman/artman/tasks/task_base.py", line 56, in exec_command
    output = subprocess.check_output(args, stderr=subprocess.STDOUT)
  File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['java', '-cp', '/toolkit/build/libs/gapic-generator-latest-fatjar.jar', 'com.google.api.codegen.GeneratorMain', 'LEGACY_GAPIC_AND_PACKAGE', '--descriptor_set=/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/google-cloud-monitoring-v3.desc', '--package_yaml2=/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/ruby_google-cloud-monitoring-v3_package2.yaml', '--output=/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/ruby/google-cloud-ruby/google-cloud-monitoring', '--language=ruby', '--service_yaml=/home/kbuilder/.cache/synthtool/googleapis/google/monitoring/monitoring.yaml', '--gapic_yaml=/home/kbuilder/.cache/synthtool/googleapis/google/monitoring/v3/monitoring_gapic.yaml']' returned non-zero exit status 1

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/google-cloud-monitoring/synth.py", line 31, in <module>
    artman_output_name='google-cloud-ruby/google-cloud-monitoring'
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/gcp/gapic_generator.py", line 58, in ruby_library
    return self._generate_code(service, version, "ruby", **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/gcp/gapic_generator.py", line 138, in _generate_code
    generator_args=generator_args,
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/gcp/artman.py", line 141, in run
    shell.run(cmd, cwd=root_dir)
  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 '['docker', 'run', '--name', 'artman-docker', '--rm', '-i', '-e', 'HOST_USER_ID=1000', '-e', 'HOST_GROUP_ID=1000', '-e', 'RUNNING_IN_ARTMAN_DOCKER=True', '-v', '/home/kbuilder/.cache/synthtool/googleapis:/home/kbuilder/.cache/synthtool/googleapis', '-v', '/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles:/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles', '-w', PosixPath('/home/kbuilder/.cache/synthtool/googleapis'), 'googleapis/artman:latest', '/bin/bash', '-c', 'artman --local --config google/monitoring/artman_monitoring.yaml generate ruby_gapic']' returned non-zero exit status 32.
synthtool > Cleaned up 0 temporary directories.
synthtool > Wrote metadata to synth.metadata.

Synthesis failed

Google internal developers can see the full log here.

quartzmo commented 4 years ago

ERROR: toplevel: interface not reachable: google.monitoring.v3.ServiceMonitoringService.

yoshi-automation commented 4 years ago

Autosynth passed, closing! :green_heart: