googleapis / google-api-ruby-client

REST client for Google APIs
Apache License 2.0
2.81k stars 872 forks source link

Synthesis failed for driveactivity-v2 #4635

Closed yoshi-automation closed 3 years ago

yoshi-automation commented 3 years ago

Hello! Autosynth couldn't regenerate driveactivity-v2. :broken_heart:

Please investigate and fix this issue within 5 business days. While it remains broken, this library cannot be updated with changes to the driveactivity-v2 API, and the library grows stale.

See https://github.com/googleapis/synthtool/blob/master/autosynth/TroubleShooting.md for trouble shooting tips.

Here's the output from running synth.py:

.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/rubygems_integration.rb:527:in `block in download_gem'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/retry.rb:40:in `run'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/retry.rb:30:in `attempt'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/rubygems_integration.rb:526:in `download_gem'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/source/rubygems.rb:506:in `download_gem'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/source/rubygems.rb:447:in `fetch_gem'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/source/rubygems.rb:138:in `install'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/installer/gem_installer.rb:67:in `install'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/installer/gem_installer.rb:18:in `install_from_spec'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/worker.rb:62:in `apply_func'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/worker.rb:57:in `block in process_queue'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/worker.rb:54:in `loop'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/worker.rb:54:in `process_queue'
  /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/worker.rb:88:in `block (2 levels) in create_threads'

Environment

Bundler       2.2.17
  Platforms   ruby, x86_64-linux
Ruby          2.6.7p197 (2021-04-05 revision 67941) [x86_64-linux]
  Full Path   /root/.rbenv/versions/2.6.7/bin/ruby
  Config Dir  /root/.rbenv/versions/2.6.7/etc
RubyGems      3.2.17
  Gem Home    /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0
  Gem Path    /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0:/root/.gem/ruby/2.6.0
  User Home   /root
  User Path   /root/.gem/ruby/2.6.0
  Bin Dir     /root/.rbenv/versions/2.6.7/bin
OpenSSL       
  Compiled    OpenSSL 1.1.1  11 Sep 2018
  Loaded      OpenSSL 1.1.1  11 Sep 2018
  Cert File   /usr/lib/ssl/cert.pem
  Cert Dir    /usr/lib/ssl/certs
Tools         
  Git         2.17.1
  RVM         not installed
  rbenv       rbenv 1.1.2
  chruby      not installed

Bundler Build Metadata

Built At          2021-05-05
Git SHA           69cbd6e10e
Released Version  true

Gemfile

Gemfile

source 'https://rubygems.org'

gemspec

group :development do
  gem 'bundler', '>= 1.7'
  gem 'rake', '~> 13.0'
  gem 'rspec', '~> 3.1'
  gem 'json_spec', '~> 1.1'
  gem 'webmock', '~> 2.1'
  gem 'simplecov', '~> 0.12'
  gem 'coveralls', '~> 0.8'
  gem 'rubocop', '~> 0.49.0'
  gem 'launchy', '~> 2.4'
  gem 'dotenv', '~> 2.0'
  gem 'fakefs', '~> 0.6', require: "fakefs/safe"
  gem 'google-id-token', '~> 1.3'
  gem 'os', '~> 0.9'
  gem 'rmail', '~> 1.1'
  gem 'redis', '~> 3.2'
  gem 'logging', '~> 2.2'
  gem 'opencensus', '~> 0.4'
  gem 'httparty'
end

platforms :jruby do
  group :development do
    gem 'jruby-openssl'
  end
end

platforms :ruby do
  group :development do
    gem 'yard', '~> 0.9', '>= 0.9.11'
    gem 'redcarpet', '~> 3.2'
    gem 'github-markup', '~> 1.3'
    gem 'pry-doc', '~> 0.8'
    gem 'pry-byebug', '~> 3.2'
  end
end

Gemfile.lock

<No /workspace/google-apis-generator/Gemfile.lock found>

Gemspecs

google-apis-generator.gemspec

require File.expand_path("lib/google/apis/generator/version", __dir__)

Gem::Specification.new do |gem|
  gem.name = "google-apis-generator"
  gem.version = Google::Apis::Generator::VERSION
  gem.authors = ["Google LLC"]
  gem.email = "googleapis-packages@google.com"
  gem.summary = "Code generator for legacy Google REST clients"
  gem.homepage = "https://github.com/google/google-api-ruby-client"
  gem.license = "Apache-2.0"
  gem.metadata = {
    "bug_tracker_uri" => "https://github.com/googleapis/google-api-ruby-client/issues",
    "changelog_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/master/google-apis-generator/CHANGELOG.md",
    "documentation_uri" => "https://googleapis.dev/ruby/google-apis-generator/v#{Google::Apis::Generator::VERSION}",
    "source_code_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/master/google-apis-generator"
  }

  gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("lib/**/*.tmpl") + Dir.glob("bin/*") + Dir.glob("*.md") + [".yardopts"]
  gem.executables = ["generate-api"]
  gem.require_paths = ["lib"]

  gem.required_ruby_version = ">= 2.5"
  gem.add_runtime_dependency "activesupport", ">= 5.0"
  gem.add_runtime_dependency "gems", "~> 1.2"
  gem.add_runtime_dependency "google-apis-core", "~> 0.1"
  gem.add_runtime_dependency "google-apis-discovery_v1", "~> 0.0"
  gem.add_runtime_dependency "thor", ">= 0.20", "< 2.a"
end

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error: https://github.com/rubygems/rubygems/search?q=bad+response+Gateway+Error+502+%28https+%2F%2Frubygems.org%2Fgems%2Fconcurrent-ruby-1.1.9.gem%29&type=Issues

If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at: https://github.com/rubygems/rubygems/issues/new?labels=Bundler chown -R 1000:1000 /workspace/generated 2021-06-08 03:08:41,183 synthtool [ERROR] > Failed executing docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace -e USER_GROUP=1000:1000 --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth driveactivity v2:

None ERROR:synthtool:Failed executing docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace -e USER_GROUP=1000:1000 --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth driveactivity v2:

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 main() File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1137, in call return self.main(args, kwargs) File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1062, in main rv = self.invoke(ctx) File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 763, 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 "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "/home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py", line 41, in shell.run(command, 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', '--rm', '-v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-w', '/workspace', '-e', 'USER_GROUP=1000:1000', '--entrypoint', 'script/synth.rb', 'gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth', 'driveactivity', 'v2']' returned non-zero exit status 1. 2021-06-08 03:08:41,209 autosynth [ERROR] > Synthesis failed 2021-06-08 03:08:41,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 356, in main() File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 191, in main return _inner_main(temp_dir) File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 293, in _inner_main ).synthesize(synth_log_path / "sponge_log.log") 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', 'generated/google-apis-driveactivity_v2/synth.metadata', 'synth.py', '--', 'driveactivity', 'v2']' returned non-zero exit status 1.



Google internal developers can see the full log [here](http://sponge2/results/invocations/bdd2ce63-997e-4095-81b3-cd54e5fccbe4/targets/github%2Fsynthtool;config=default/tests;query=google-api-ruby-client;failed=false).
yoshi-automation commented 3 years ago

Autosynth passed, closing! :green_heart: