googleapis / elixir-google-api

Elixir client libraries for accessing Google APIs.
https://hex.pm/users/google-cloud
Apache License 2.0
1.02k stars 460 forks source link

Synthesis failed for WorkflowExecutions #6688

Closed yoshi-automation closed 3 years ago

yoshi-automation commented 4 years ago

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

Here's the output from running synth.py:

2020-11-06 07:04:06,619 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-06 07:04:07,119 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-06 07:04:07,122 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-06 07:04:07,125 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-06 07:04:07,129 autosynth [DEBUG] > Running: git config push.default simple
2020-11-06 07:04:07,132 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-06 07:04:07,135 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-06 07:04:07,381 autosynth [INFO] > Running synthtool
2020-11-06 07:04:07,381 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-06 07:04:07,381 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-06 07:04:07,384 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-06 07:04:07,602 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-06 07:04:09,294 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmptmj7cwmt/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmptmj7cwmt/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

15:04:42.036 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

15:04:42.159 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-06 07:04:42,579 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmptmj7cwmt/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmptmj7cwmt/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmptmj7cwmt/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-06 07:04:43,008 autosynth [ERROR] > Synthesis failed
2020-11-06 07:04:43,009 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 4 years ago

Autosynth is still having trouble generating WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-07 06:54:27,686 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-07 06:54:28,182 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-07 06:54:28,185 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-07 06:54:28,188 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-07 06:54:28,191 autosynth [DEBUG] > Running: git config push.default simple
2020-11-07 06:54:28,194 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-07 06:54:28,197 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-07 06:54:28,412 autosynth [INFO] > Running synthtool
2020-11-07 06:54:28,412 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-07 06:54:28,412 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-07 06:54:28,415 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-07 06:54:28,628 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-07 06:54:30,330 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpevt6yq0s/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpevt6yq0s/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

14:55:00.209 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

14:55:00.325 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-07 06:55:00,728 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmpevt6yq0s/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmpevt6yq0s/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmpevt6yq0s/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-07 06:55:01,154 autosynth [ERROR] > Synthesis failed
2020-11-07 06:55:01,155 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 4 years ago

Autosynth is still having trouble generating WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-08 06:57:27,985 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-08 06:57:28,486 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-08 06:57:28,489 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-08 06:57:28,492 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-08 06:57:28,495 autosynth [DEBUG] > Running: git config push.default simple
2020-11-08 06:57:28,498 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-08 06:57:28,501 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-08 06:57:28,727 autosynth [INFO] > Running synthtool
2020-11-08 06:57:28,727 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-08 06:57:28,727 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-08 06:57:28,730 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-08 06:57:28,950 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-08 06:57:30,631 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp1lapdkhp/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp1lapdkhp/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

14:58:01.197 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

14:58:01.308 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-08 06:58:01,682 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmp1lapdkhp/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmp1lapdkhp/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmp1lapdkhp/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-08 06:58:02,103 autosynth [ERROR] > Synthesis failed
2020-11-08 06:58:02,103 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 4 years ago

Autosynth is still having trouble generating WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-09 06:50:56,746 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-09 06:50:57,216 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-09 06:50:57,219 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-09 06:50:57,222 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-09 06:50:57,225 autosynth [DEBUG] > Running: git config push.default simple
2020-11-09 06:50:57,227 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-09 06:50:57,230 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-09 06:50:57,450 autosynth [INFO] > Running synthtool
2020-11-09 06:50:57,450 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-09 06:50:57,450 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-09 06:50:57,453 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-09 06:50:57,656 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-09 06:50:59,276 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpe3bvpk1l/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpe3bvpk1l/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

14:51:28.794 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

14:51:28.896 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-09 06:51:29,275 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmpe3bvpk1l/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmpe3bvpk1l/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmpe3bvpk1l/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-09 06:51:29,633 autosynth [ERROR] > Synthesis failed
2020-11-09 06:51:29,634 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 4 years ago

Autosynth is still having trouble generating WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-10 07:07:42,617 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-10 07:07:43,142 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-10 07:07:43,145 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-10 07:07:43,149 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-10 07:07:43,151 autosynth [DEBUG] > Running: git config push.default simple
2020-11-10 07:07:43,154 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-10 07:07:43,158 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-10 07:07:43,391 autosynth [INFO] > Running synthtool
2020-11-10 07:07:43,392 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-10 07:07:43,392 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-10 07:07:43,394 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-10 07:07:43,629 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-10 07:07:45,490 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp7i35o8og/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp7i35o8og/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

15:08:17.041 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

15:08:17.155 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-10 07:08:17,605 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmp7i35o8og/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmp7i35o8og/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmp7i35o8og/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-10 07:08:18,016 autosynth [ERROR] > Synthesis failed
2020-11-10 07:08:18,016 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 4 years ago

Autosynth is still having trouble generating WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-11 07:02:18,146 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-11 07:02:18,669 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-11 07:02:18,672 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-11 07:02:18,675 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-11 07:02:18,678 autosynth [DEBUG] > Running: git config push.default simple
2020-11-11 07:02:18,681 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-11 07:02:18,684 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-11 07:02:18,933 autosynth [INFO] > Running synthtool
2020-11-11 07:02:18,933 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-11 07:02:18,933 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-11 07:02:18,935 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-11 07:02:19,158 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-11 07:02:20,921 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp7kswox0s/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp7kswox0s/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

15:02:52.787 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

15:02:52.906 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-11 07:02:53,329 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmp7kswox0s/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmp7kswox0s/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmp7kswox0s/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-11 07:02:53,768 autosynth [ERROR] > Synthesis failed
2020-11-11 07:02:53,768 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 4 years ago

Autosynth is still having trouble generating WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-12 06:57:21,739 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-12 06:57:22,219 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-12 06:57:22,222 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-12 06:57:22,224 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-12 06:57:22,228 autosynth [DEBUG] > Running: git config push.default simple
2020-11-12 06:57:22,231 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-12 06:57:22,234 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-12 06:57:22,489 autosynth [INFO] > Running synthtool
2020-11-12 06:57:22,489 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-12 06:57:22,489 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-12 06:57:22,491 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-12 06:57:22,702 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-12 06:57:24,538 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpw3t2uldc/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpw3t2uldc/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

14:57:53.658 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

14:57:53.765 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-12 06:57:54,181 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmpw3t2uldc/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmpw3t2uldc/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmpw3t2uldc/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-12 06:57:54,553 autosynth [ERROR] > Synthesis failed
2020-11-12 06:57:54,553 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' 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 WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-13 06:57:33,176 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-13 06:57:33,652 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-13 06:57:33,655 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-13 06:57:33,658 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-13 06:57:33,660 autosynth [DEBUG] > Running: git config push.default simple
2020-11-13 06:57:33,663 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-13 06:57:33,666 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-13 06:57:33,946 autosynth [INFO] > Running synthtool
2020-11-13 06:57:33,947 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-13 06:57:33,947 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-13 06:57:33,949 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-13 06:57:34,164 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-13 06:57:35,907 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp__8otocb/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp__8otocb/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

14:58:05.325 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

14:58:05.427 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-13 06:58:05,828 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmp__8otocb/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmp__8otocb/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmp__8otocb/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-13 06:58:06,241 autosynth [ERROR] > Synthesis failed
2020-11-13 06:58:06,241 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' 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 WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-14 07:03:14,222 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-14 07:03:14,729 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-14 07:03:14,732 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-14 07:03:14,735 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-14 07:03:14,738 autosynth [DEBUG] > Running: git config push.default simple
2020-11-14 07:03:14,741 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-14 07:03:14,744 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-14 07:03:15,000 autosynth [INFO] > Running synthtool
2020-11-14 07:03:15,000 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-14 07:03:15,000 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-14 07:03:15,003 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-14 07:03:15,229 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-14 07:03:16,996 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmptzf_zs64/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmptzf_zs64/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

15:03:47.941 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

15:03:48.083 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-14 07:03:48,489 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmptzf_zs64/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmptzf_zs64/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmptzf_zs64/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-14 07:03:48,901 autosynth [ERROR] > Synthesis failed
2020-11-14 07:03:48,902 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' 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 WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-15 07:18:03,937 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-15 07:18:04,508 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-15 07:18:04,513 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-15 07:18:04,518 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-15 07:18:04,522 autosynth [DEBUG] > Running: git config push.default simple
2020-11-15 07:18:04,526 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-15 07:18:04,531 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-15 07:18:04,771 autosynth [INFO] > Running synthtool
2020-11-15 07:18:04,771 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-15 07:18:04,771 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-15 07:18:04,776 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-15 07:18:05,025 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-15 07:18:06,906 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp898b63ci/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp898b63ci/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

15:18:45.039 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

15:18:45.177 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-15 07:18:45,632 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmp898b63ci/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmp898b63ci/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmp898b63ci/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-15 07:18:46,117 autosynth [ERROR] > Synthesis failed
2020-11-15 07:18:46,117 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' 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 WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-16 07:06:47,595 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-16 07:06:48,094 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-16 07:06:48,098 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-16 07:06:48,102 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-16 07:06:48,106 autosynth [DEBUG] > Running: git config push.default simple
2020-11-16 07:06:48,110 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-16 07:06:48,115 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-16 07:06:48,344 autosynth [INFO] > Running synthtool
2020-11-16 07:06:48,344 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-16 07:06:48,344 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-16 07:06:48,347 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-16 07:06:48,574 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-16 07:06:50,397 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp8qvwlzdz/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp8qvwlzdz/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

15:07:22.847 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

15:07:22.974 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-16 07:07:23,381 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmp8qvwlzdz/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmp8qvwlzdz/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmp8qvwlzdz/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-16 07:07:23,860 autosynth [ERROR] > Synthesis failed
2020-11-16 07:07:23,860 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' 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 WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-17 06:52:16,974 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-17 06:52:17,456 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-17 06:52:17,458 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-17 06:52:17,461 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-17 06:52:17,464 autosynth [DEBUG] > Running: git config push.default simple
2020-11-17 06:52:17,467 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-17 06:52:17,469 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-17 06:52:17,694 autosynth [INFO] > Running synthtool
2020-11-17 06:52:17,694 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-17 06:52:17,694 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-17 06:52:17,697 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-17 06:52:17,897 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-17 06:52:19,565 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpcpkv5xtw/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpcpkv5xtw/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

14:52:47.444 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

14:52:47.547 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-17 06:52:47,915 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmpcpkv5xtw/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmpcpkv5xtw/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmpcpkv5xtw/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-17 06:52:48,318 autosynth [ERROR] > Synthesis failed
2020-11-17 06:52:48,318 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' 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 WorkflowExecutions. :sob:

Here's the output from running synth.py:

2020-11-18 06:59:14,294 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-18 06:59:14,781 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-18 06:59:14,784 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-18 06:59:14,787 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-11-18 06:59:14,790 autosynth [DEBUG] > Running: git config push.default simple
2020-11-18 06:59:14,793 autosynth [DEBUG] > Running: git branch -f autosynth-workflowexecutions
2020-11-18 06:59:14,796 autosynth [DEBUG] > Running: git checkout autosynth-workflowexecutions
Switched to branch 'autosynth-workflowexecutions'
2020-11-18 06:59:15,041 autosynth [INFO] > Running synthtool
2020-11-18 06:59:15,041 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/workflow_executions/synth.metadata', 'synth.py', '--']
2020-11-18 06:59:15,041 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/WorkflowExecutions/sponge_log.log
2020-11-18 06:59:15,044 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/workflow_executions/synth.metadata synth.py -- WorkflowExecutions
2020-11-18 06:59:15,264 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflowexecutions
nothing to commit, working tree clean
2020-11-18 06:59:17,008 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpctewz9f2/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpctewz9f2/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

14:59:47.371 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

14:59:47.475 [info]  FETCHING: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta
{:error, "All formats failed"}
** (File.Error) could not read file "/workspace/specifications/gdd/WorkflowExecutions-v1beta.json": no such file or directory
    (elixir) lib/file.ex:353: File.read!/1
    lib/google_apis/generator/elixir_generator/token.ex:79: GoogleApis.Generator.ElixirGenerator.Token.build/1
    lib/google_apis/generator/elixir_generator.ex:40: GoogleApis.Generator.ElixirGenerator.generate_client/1
    lib/mix/tasks/google_apis.generate.ex:33: anonymous fn/1 in Mix.Tasks.GoogleApis.Generate.builder/1
    (elixir) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:783: Enum.each/2
    lib/mix/tasks/google_apis.generate.ex:31: Mix.Tasks.GoogleApis.Generate.builder/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
fixing file permissions
2020-11-18 06:59:47,886 synthtool [ERROR] > Failed executing docker run --rm -v/tmpfs/tmp/tmpctewz9f2/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

None
ERROR:synthtool:Failed executing docker run --rm -v/tmpfs/tmp/tmpctewz9f2/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh WorkflowExecutions:

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/elixir-google-api/synth.py", line 59, in <module>
    shell.run(command, cwd=repository, 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/tmpfs/tmp/tmpctewz9f2/repo:/workspace', '-v/var/run/docker.sock:/var/run/docker.sock', '-e', 'USER_GROUP=1000:1000', '-w', '/workspace', 'gcr.io/cloud-devrel-public-resources/elixir19', 'scripts/generate_client.sh', 'WorkflowExecutions']' returned non-zero exit status 1.
2020-11-18 06:59:48,299 autosynth [ERROR] > Synthesis failed
2020-11-18 06:59:48,299 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 291, 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', 'clients/workflow_executions/synth.metadata', 'synth.py', '--', 'WorkflowExecutions']' 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: