Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synthesis failed for Area120Tables #6707

Closed
yoshi-automation opened this issue Nov 10, 2020 · 72 comments
Closed

Synthesis failed for Area120Tables #6707

yoshi-automation opened this issue Nov 10, 2020 · 72 comments
Assignees
Labels
api: area120tables Issues related to the Area 120 Tables API API. autosynth failure priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@yoshi-automation
Copy link
Contributor

Hello! Autosynth couldn't regenerate Area120Tables. 💔

Here's the output from running synth.py:

20-11-10 05:16:50,337 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-10 05:16:50,824 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-10 05:16:50,827 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-10 05:16:50,830 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-10 05:16:50,833 autosynth [DEBUG] > Running: git config push.default simple
2020-11-10 05:16:50,836 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-10 05:16:50,840 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-10 05:16:51,117 autosynth [INFO] > Running synthtool
2020-11-10 05:16:51,117 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-10 05:16:51,117 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-10 05:16:51,119 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-10 05:16:51,348 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-10 05:16:53,064 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpvyk74jrd/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpvyk74jrd/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:24.310 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:24.438 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:24.453 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:25.902 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:25.978 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-10 05:17:29,081 autosynth [ERROR] > Synthesis failed
2020-11-10 05:17:29,082 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation yoshi-automation added api: area120tables Issues related to the Area 120 Tables API API. autosynth failure priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Nov 10, 2020
@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-11 05:16:18,352 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-11 05:16:18,839 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-11 05:16:18,842 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-11 05:16:18,845 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-11 05:16:18,848 autosynth [DEBUG] > Running: git config push.default simple
2020-11-11 05:16:18,851 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-11 05:16:18,854 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-11 05:16:19,081 autosynth [INFO] > Running synthtool
2020-11-11 05:16:19,081 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-11 05:16:19,081 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-11 05:16:19,083 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-11 05:16:19,305 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-11 05:16:21,031 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpfwp__aa2/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpfwp__aa2/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:52.287 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:52.417 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:52.433 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:53.881 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:53.954 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-11 05:16:56,775 autosynth [ERROR] > Synthesis failed
2020-11-11 05:16:56,775 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@dazuma dazuma added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Nov 11, 2020
@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-12 05:15:34,048 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-12 05:15:34,536 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-12 05:15:34,539 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-12 05:15:34,542 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-12 05:15:34,544 autosynth [DEBUG] > Running: git config push.default simple
2020-11-12 05:15:34,547 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-12 05:15:34,550 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-12 05:15:34,833 autosynth [INFO] > Running synthtool
2020-11-12 05:15:34,833 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-12 05:15:34,833 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-12 05:15:34,835 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-12 05:15:35,046 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-12 05:15:36,722 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmptdbso722/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmptdbso722/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:06.322 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:06.437 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:06.455 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:07.910 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:07.986 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-12 05:16:10,668 autosynth [ERROR] > Synthesis failed
2020-11-12 05:16:10,668 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-13 05:14:06,133 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-13 05:14:06,610 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-13 05:14:06,613 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-13 05:14:06,616 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-13 05:14:06,618 autosynth [DEBUG] > Running: git config push.default simple
2020-11-13 05:14:06,621 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-13 05:14:06,624 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-13 05:14:06,892 autosynth [INFO] > Running synthtool
2020-11-13 05:14:06,892 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-13 05:14:06,892 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-13 05:14:06,894 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-13 05:14:07,105 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-13 05:14:08,749 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpvlcnqk3n/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpvlcnqk3n/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:14:37.717 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:14:37.841 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:14:37.856 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:14:39.366 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:14:39.437 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-13 05:14:42,123 autosynth [ERROR] > Synthesis failed
2020-11-13 05:14:42,123 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-14 05:16:13,011 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-14 05:16:13,481 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-14 05:16:13,485 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-14 05:16:13,488 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-14 05:16:13,491 autosynth [DEBUG] > Running: git config push.default simple
2020-11-14 05:16:13,494 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-14 05:16:13,498 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-14 05:16:13,747 autosynth [INFO] > Running synthtool
2020-11-14 05:16:13,747 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-14 05:16:13,748 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-14 05:16:13,754 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-14 05:16:13,979 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-14 05:16:15,695 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpxn1n1n41/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpxn1n1n41/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:47.096 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:47.227 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:47.247 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:48.747 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:48.826 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-14 05:16:51,616 autosynth [ERROR] > Synthesis failed
2020-11-14 05:16:51,616 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-15 05:15:41,436 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-15 05:15:41,925 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-15 05:15:41,928 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-15 05:15:41,932 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-15 05:15:41,935 autosynth [DEBUG] > Running: git config push.default simple
2020-11-15 05:15:41,937 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-15 05:15:41,941 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-15 05:15:42,165 autosynth [INFO] > Running synthtool
2020-11-15 05:15:42,165 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-15 05:15:42,165 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-15 05:15:42,168 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-15 05:15:42,386 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-15 05:15:44,069 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpmo1f6xz6/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpmo1f6xz6/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:14.228 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:14.356 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:14.374 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:15.942 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:16.016 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-15 05:16:18,745 autosynth [ERROR] > Synthesis failed
2020-11-15 05:16:18,746 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-16 05:17:21,838 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-16 05:17:22,330 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-16 05:17:22,333 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-16 05:17:22,336 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-16 05:17:22,340 autosynth [DEBUG] > Running: git config push.default simple
2020-11-16 05:17:22,343 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-16 05:17:22,346 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-16 05:17:22,580 autosynth [INFO] > Running synthtool
2020-11-16 05:17:22,580 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-16 05:17:22,580 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-16 05:17:22,583 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-16 05:17:22,824 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-16 05:17:24,840 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpud3ngkjw/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpud3ngkjw/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:58.765 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:58.924 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:58.938 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:18:00.589 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:18:00.666 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-16 05:18:03,525 autosynth [ERROR] > Synthesis failed
2020-11-16 05:18:03,526 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-17 05:14:53,670 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-17 05:14:54,134 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-17 05:14:54,136 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-17 05:14:54,139 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-17 05:14:54,142 autosynth [DEBUG] > Running: git config push.default simple
2020-11-17 05:14:54,144 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-17 05:14:54,147 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-17 05:14:54,413 autosynth [INFO] > Running synthtool
2020-11-17 05:14:54,413 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-17 05:14:54,413 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-17 05:14:54,416 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-17 05:14:54,622 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-17 05:14:56,260 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpt7pmz49s/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpt7pmz49s/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:15:24.176 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:15:24.290 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:15:24.307 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:15:25.672 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:15:25.743 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-17 05:15:28,455 autosynth [ERROR] > Synthesis failed
2020-11-17 05:15:28,456 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-18 05:15:49,378 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-18 05:15:49,855 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-18 05:15:49,858 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-18 05:15:49,861 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-18 05:15:49,864 autosynth [DEBUG] > Running: git config push.default simple
2020-11-18 05:15:49,867 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-18 05:15:49,870 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-18 05:15:50,092 autosynth [INFO] > Running synthtool
2020-11-18 05:15:50,092 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-18 05:15:50,092 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-18 05:15:50,095 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-18 05:15:50,304 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-18 05:15:51,989 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpqjgu2w7i/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpqjgu2w7i/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:22.372 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:22.489 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:22.515 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:23.978 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:24.055 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-18 05:16:26,846 autosynth [ERROR] > Synthesis failed
2020-11-18 05:16:26,846 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-19 05:17:47,325 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-19 05:17:47,810 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-19 05:17:47,813 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-19 05:17:47,816 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-19 05:17:47,818 autosynth [DEBUG] > Running: git config push.default simple
2020-11-19 05:17:47,821 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-19 05:17:47,824 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-19 05:17:48,066 autosynth [INFO] > Running synthtool
2020-11-19 05:17:48,066 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-19 05:17:48,066 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-19 05:17:48,069 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-19 05:17:48,292 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-19 05:17:50,039 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp4mcjh0vo/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp4mcjh0vo/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:18:20.378 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:18:20.502 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:18:20.517 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:18:21.997 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:18:22.073 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-19 05:18:24,841 autosynth [ERROR] > Synthesis failed
2020-11-19 05:18:24,841 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-20 05:16:59,719 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-20 05:17:00,272 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-20 05:17:00,275 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-20 05:17:00,278 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-20 05:17:00,281 autosynth [DEBUG] > Running: git config push.default simple
2020-11-20 05:17:00,284 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-20 05:17:00,287 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-20 05:17:00,705 autosynth [INFO] > Running synthtool
2020-11-20 05:17:00,705 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-20 05:17:00,705 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-20 05:17:00,708 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-20 05:17:00,934 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-20 05:17:02,725 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp1zm_led8/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp1zm_led8/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:34.652 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:34.787 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:34.807 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:36.286 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:36.367 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-20 05:17:39,190 autosynth [ERROR] > Synthesis failed
2020-11-20 05:17:39,190 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-21 05:15:41,103 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-21 05:15:41,566 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-21 05:15:41,569 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-21 05:15:41,572 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-21 05:15:41,575 autosynth [DEBUG] > Running: git config push.default simple
2020-11-21 05:15:41,577 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-21 05:15:41,581 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-21 05:15:41,819 autosynth [INFO] > Running synthtool
2020-11-21 05:15:41,819 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-21 05:15:41,819 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-21 05:15:41,821 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-21 05:15:42,037 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-21 05:15:43,742 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmptn_0ughf/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmptn_0ughf/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:14.248 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:14.370 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:14.383 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:15.802 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:15.871 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-21 05:16:18,584 autosynth [ERROR] > Synthesis failed
2020-11-21 05:16:18,584 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-22 05:15:59,019 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-22 05:15:59,500 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-22 05:15:59,503 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-22 05:15:59,507 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-22 05:15:59,509 autosynth [DEBUG] > Running: git config push.default simple
2020-11-22 05:15:59,512 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-22 05:15:59,516 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-22 05:15:59,744 autosynth [INFO] > Running synthtool
2020-11-22 05:15:59,744 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-22 05:15:59,744 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-22 05:15:59,747 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-22 05:15:59,973 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-22 05:16:01,681 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpalsddtou/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpalsddtou/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:33.161 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:33.289 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:33.303 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:34.729 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:34.802 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-22 05:16:37,588 autosynth [ERROR] > Synthesis failed
2020-11-22 05:16:37,589 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-23 05:15:29,729 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-23 05:15:30,192 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-23 05:15:30,195 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-23 05:15:30,198 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-23 05:15:30,201 autosynth [DEBUG] > Running: git config push.default simple
2020-11-23 05:15:30,203 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-23 05:15:30,206 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-23 05:15:30,465 autosynth [INFO] > Running synthtool
2020-11-23 05:15:30,465 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-23 05:15:30,465 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-23 05:15:30,468 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-23 05:15:30,676 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-23 05:15:32,343 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpe4qv2ac9/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpe4qv2ac9/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:02.128 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:02.246 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:02.261 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:03.665 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:03.736 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-23 05:16:06,638 autosynth [ERROR] > Synthesis failed
2020-11-23 05:16:06,639 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-24 05:16:30,511 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-24 05:16:30,994 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-24 05:16:30,997 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-24 05:16:31,001 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-24 05:16:31,004 autosynth [DEBUG] > Running: git config push.default simple
2020-11-24 05:16:31,008 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-24 05:16:31,011 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-24 05:16:31,244 autosynth [INFO] > Running synthtool
2020-11-24 05:16:31,244 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-24 05:16:31,244 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-24 05:16:31,247 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-24 05:16:31,461 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-24 05:16:33,151 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpbp1o4y7s/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpbp1o4y7s/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:04.707 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:04.875 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:04.888 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:06.524 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:06.607 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-24 05:17:09,446 autosynth [ERROR] > Synthesis failed
2020-11-24 05:17:09,446 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-25 05:16:22,312 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-25 05:16:22,834 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-25 05:16:22,837 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-25 05:16:22,840 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-25 05:16:22,843 autosynth [DEBUG] > Running: git config push.default simple
2020-11-25 05:16:22,845 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-25 05:16:22,849 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-25 05:16:23,112 autosynth [INFO] > Running synthtool
2020-11-25 05:16:23,113 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-25 05:16:23,114 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-25 05:16:23,116 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-25 05:16:23,337 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-25 05:16:25,048 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpd9g6ggp9/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpd9g6ggp9/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:55.823 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:55.958 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:55.971 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:57.463 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:57.540 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-25 05:17:00,360 autosynth [ERROR] > Synthesis failed
2020-11-25 05:17:00,361 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-26 05:16:02,263 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-26 05:16:02,904 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-26 05:16:02,907 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-26 05:16:02,910 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-26 05:16:02,913 autosynth [DEBUG] > Running: git config push.default simple
2020-11-26 05:16:02,917 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-26 05:16:02,920 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-26 05:16:03,160 autosynth [INFO] > Running synthtool
2020-11-26 05:16:03,160 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-26 05:16:03,160 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-26 05:16:03,163 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-26 05:16:03,377 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-26 05:16:05,089 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpgn2znjgl/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpgn2znjgl/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:34.397 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:34.530 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:34.546 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:35.943 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:36.019 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-26 05:16:38,767 autosynth [ERROR] > Synthesis failed
2020-11-26 05:16:38,768 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-27 05:16:13,091 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-27 05:16:13,549 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-27 05:16:13,552 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-27 05:16:13,555 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-27 05:16:13,558 autosynth [DEBUG] > Running: git config push.default simple
2020-11-27 05:16:13,561 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-27 05:16:13,564 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-27 05:16:13,790 autosynth [INFO] > Running synthtool
2020-11-27 05:16:13,791 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-27 05:16:13,791 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-27 05:16:13,793 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-27 05:16:14,035 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-27 05:16:16,145 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpzn1bzcbf/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpzn1bzcbf/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:46.620 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:46.741 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:46.759 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:48.161 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:48.230 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-27 05:16:51,581 autosynth [ERROR] > Synthesis failed
2020-11-27 05:16:51,581 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-28 05:15:03,523 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-28 05:15:04,024 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-28 05:15:04,027 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-28 05:15:04,030 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-28 05:15:04,033 autosynth [DEBUG] > Running: git config push.default simple
2020-11-28 05:15:04,036 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-28 05:15:04,039 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-28 05:15:04,264 autosynth [INFO] > Running synthtool
2020-11-28 05:15:04,264 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-28 05:15:04,264 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-28 05:15:04,266 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-28 05:15:04,472 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-28 05:15:06,124 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpxtxiz7fe/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpxtxiz7fe/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:15:35.670 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:15:35.818 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:15:35.834 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:15:37.309 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:15:37.378 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-28 05:15:40,061 autosynth [ERROR] > Synthesis failed
2020-11-28 05:15:40,061 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-29 05:16:18,961 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-29 05:16:19,442 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-29 05:16:19,445 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-29 05:16:19,448 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-29 05:16:19,452 autosynth [DEBUG] > Running: git config push.default simple
2020-11-29 05:16:19,455 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-29 05:16:19,458 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-29 05:16:19,688 autosynth [INFO] > Running synthtool
2020-11-29 05:16:19,688 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-29 05:16:19,688 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-29 05:16:19,691 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-29 05:16:19,919 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-29 05:16:21,664 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp5ae595_p/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp5ae595_p/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:53.038 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:53.175 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:53.188 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:54.610 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:54.683 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-29 05:16:57,544 autosynth [ERROR] > Synthesis failed
2020-11-29 05:16:57,544 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-11-30 05:15:23,469 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-11-30 05:15:23,955 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-11-30 05:15:23,958 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-11-30 05:15:23,960 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-11-30 05:15:23,963 autosynth [DEBUG] > Running: git config push.default simple
2020-11-30 05:15:23,966 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-11-30 05:15:23,969 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-11-30 05:15:24,241 autosynth [INFO] > Running synthtool
2020-11-30 05:15:24,241 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-11-30 05:15:24,241 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-11-30 05:15:24,243 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-11-30 05:15:24,459 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-11-30 05:15:26,153 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp3g7vh0yl/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp3g7vh0yl/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:15:55.890 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:15:56.008 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:15:56.024 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:15:57.596 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:15:57.666 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-11-30 05:16:00,417 autosynth [ERROR] > Synthesis failed
2020-11-30 05:16:00,417 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-01 05:15:06,224 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-01 05:15:06,726 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-01 05:15:06,729 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-01 05:15:06,732 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-01 05:15:06,735 autosynth [DEBUG] > Running: git config push.default simple
2020-12-01 05:15:06,737 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-01 05:15:06,741 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-01 05:15:06,964 autosynth [INFO] > Running synthtool
2020-12-01 05:15:06,964 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-01 05:15:06,964 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-01 05:15:06,968 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-01 05:15:07,178 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-01 05:15:08,847 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmplcrcq9vf/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmplcrcq9vf/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:15:38.326 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:15:38.445 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:15:38.460 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:15:39.829 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:15:39.896 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-01 05:15:42,538 autosynth [ERROR] > Synthesis failed
2020-12-01 05:15:42,539 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-02 05:14:54,714 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-02 05:14:55,178 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-02 05:14:55,181 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-02 05:14:55,183 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-02 05:14:55,186 autosynth [DEBUG] > Running: git config push.default simple
2020-12-02 05:14:55,188 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-02 05:14:55,191 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-02 05:14:55,415 autosynth [INFO] > Running synthtool
2020-12-02 05:14:55,415 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-02 05:14:55,415 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-02 05:14:55,417 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-02 05:14:55,616 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-02 05:14:57,364 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp_tgj28md/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp_tgj28md/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:15:25.152 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:15:25.260 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:15:25.274 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:15:26.647 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:15:26.720 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-02 05:15:29,719 autosynth [ERROR] > Synthesis failed
2020-12-02 05:15:29,719 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-03 05:16:28,785 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-03 05:16:29,249 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-03 05:16:29,252 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-03 05:16:29,256 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-03 05:16:29,259 autosynth [DEBUG] > Running: git config push.default simple
2020-12-03 05:16:29,262 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-03 05:16:29,265 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-03 05:16:29,508 autosynth [INFO] > Running synthtool
2020-12-03 05:16:29,508 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-03 05:16:29,509 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-03 05:16:29,512 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-03 05:16:29,725 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-03 05:16:31,440 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp5vorxrg6/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp5vorxrg6/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:02.624 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:02.753 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:02.770 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:04.243 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:04.318 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-03 05:17:07,070 autosynth [ERROR] > Synthesis failed
2020-12-03 05:17:07,070 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-04 05:17:08,755 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-04 05:17:09,241 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-04 05:17:09,245 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-04 05:17:09,247 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-04 05:17:09,250 autosynth [DEBUG] > Running: git config push.default simple
2020-12-04 05:17:09,253 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-04 05:17:09,256 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-04 05:17:09,564 autosynth [INFO] > Running synthtool
2020-12-04 05:17:09,564 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-04 05:17:09,564 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-04 05:17:09,566 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-04 05:17:09,790 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-04 05:17:11,569 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpmw4jfhsx/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpmw4jfhsx/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:43.501 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:43.660 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:43.678 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:45.147 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:45.224 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 256, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-04 05:17:48,099 autosynth [ERROR] > Synthesis failed
2020-12-04 05:17:48,099 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-25 05:17:00,670 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-25 05:17:01,160 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-25 05:17:01,164 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-25 05:17:01,167 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-25 05:17:01,170 autosynth [DEBUG] > Running: git config push.default simple
2020-12-25 05:17:01,174 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-25 05:17:01,177 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-25 05:17:01,419 autosynth [INFO] > Running synthtool
2020-12-25 05:17:01,419 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-25 05:17:01,419 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-25 05:17:01,421 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-25 05:17:01,658 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-25 05:17:03,465 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpif1eswux/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpif1eswux/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:35.694 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:35.828 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:35.841 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:37.321 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:37.396 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-25 05:17:40,281 autosynth [ERROR] > Synthesis failed
2020-12-25 05:17:40,281 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-26 05:17:53,160 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-26 05:17:53,634 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-26 05:17:53,637 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-26 05:17:53,641 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-26 05:17:53,644 autosynth [DEBUG] > Running: git config push.default simple
2020-12-26 05:17:53,648 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-26 05:17:53,651 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-26 05:17:53,885 autosynth [INFO] > Running synthtool
2020-12-26 05:17:53,885 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-26 05:17:53,885 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-26 05:17:53,888 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-26 05:17:54,133 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-26 05:17:56,454 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpnd1fixfc/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpnd1fixfc/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:18:29.296 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:18:29.426 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:18:29.441 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:18:30.934 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:18:31.010 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-26 05:18:34,634 autosynth [ERROR] > Synthesis failed
2020-12-26 05:18:34,634 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-27 05:16:01,556 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-27 05:16:02,093 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-27 05:16:02,097 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-27 05:16:02,100 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-27 05:16:02,102 autosynth [DEBUG] > Running: git config push.default simple
2020-12-27 05:16:02,105 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-27 05:16:02,109 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-27 05:16:02,354 autosynth [INFO] > Running synthtool
2020-12-27 05:16:02,354 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-27 05:16:02,354 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-27 05:16:02,357 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-27 05:16:02,582 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-27 05:16:04,395 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmphujsybps/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmphujsybps/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:35.884 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:36.007 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:36.016 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:37.526 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:37.602 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-27 05:16:40,681 autosynth [ERROR] > Synthesis failed
2020-12-27 05:16:40,681 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-28 05:16:07,050 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-28 05:16:07,511 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-28 05:16:07,514 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-28 05:16:07,517 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-28 05:16:07,519 autosynth [DEBUG] > Running: git config push.default simple
2020-12-28 05:16:07,522 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-28 05:16:07,525 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-28 05:16:07,756 autosynth [INFO] > Running synthtool
2020-12-28 05:16:07,756 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-28 05:16:07,756 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-28 05:16:07,759 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-28 05:16:07,991 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-28 05:16:10,270 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp7zt5oen0/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp7zt5oen0/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:40.103 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:40.254 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:40.268 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:41.708 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:41.781 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-28 05:16:45,283 autosynth [ERROR] > Synthesis failed
2020-12-28 05:16:45,283 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-29 05:15:28,155 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-29 05:15:28,650 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-29 05:15:28,653 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-29 05:15:28,657 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-29 05:15:28,660 autosynth [DEBUG] > Running: git config push.default simple
2020-12-29 05:15:28,662 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-29 05:15:28,666 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-29 05:15:28,882 autosynth [INFO] > Running synthtool
2020-12-29 05:15:28,882 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-29 05:15:28,882 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-29 05:15:28,884 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-29 05:15:29,104 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-29 05:15:31,000 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp5g26se3d/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp5g26se3d/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:00.557 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:00.690 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:00.705 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:02.249 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:02.327 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-29 05:16:05,221 autosynth [ERROR] > Synthesis failed
2020-12-29 05:16:05,222 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-30 05:17:10,038 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-30 05:17:10,523 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-30 05:17:10,526 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-30 05:17:10,530 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-30 05:17:10,533 autosynth [DEBUG] > Running: git config push.default simple
2020-12-30 05:17:10,537 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-30 05:17:10,540 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-30 05:17:10,773 autosynth [INFO] > Running synthtool
2020-12-30 05:17:10,773 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-30 05:17:10,773 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-30 05:17:10,776 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-30 05:17:11,008 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-30 05:17:12,865 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpo829lrde/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpo829lrde/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:46.509 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:46.656 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:46.683 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:48.446 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:48.526 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-30 05:17:51,480 autosynth [ERROR] > Synthesis failed
2020-12-30 05:17:51,481 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

20-12-31 05:15:32,424 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2020-12-31 05:15:32,896 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2020-12-31 05:15:32,899 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-31 05:15:32,901 autosynth [DEBUG] > Running: git config user.email [email protected]
2020-12-31 05:15:32,904 autosynth [DEBUG] > Running: git config push.default simple
2020-12-31 05:15:32,907 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2020-12-31 05:15:32,910 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2020-12-31 05:15:33,127 autosynth [INFO] > Running synthtool
2020-12-31 05:15:33,128 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2020-12-31 05:15:33,128 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2020-12-31 05:15:33,130 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2020-12-31 05:15:33,347 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2020-12-31 05:15:35,118 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpxt0o37se/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpxt0o37se/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:05.745 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:05.866 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:05.880 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:07.393 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:07.471 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2020-12-31 05:16:10,337 autosynth [ERROR] > Synthesis failed
2020-12-31 05:16:10,337 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-01 05:18:46,203 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-01 05:18:46,674 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-01 05:18:46,677 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-01 05:18:46,680 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-01 05:18:46,683 autosynth [DEBUG] > Running: git config push.default simple
2021-01-01 05:18:46,685 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-01 05:18:46,688 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-01 05:18:46,906 autosynth [INFO] > Running synthtool
2021-01-01 05:18:46,907 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-01 05:18:46,907 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-01 05:18:46,909 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-01 05:18:47,122 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-01 05:18:48,888 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpgxrhm7oc/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpgxrhm7oc/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:19:18.525 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:19:18.648 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:19:18.664 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:19:20.118 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:19:20.192 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-01 05:19:23,122 autosynth [ERROR] > Synthesis failed
2021-01-01 05:19:23,122 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-02 05:15:52,480 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-02 05:15:52,970 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-02 05:15:52,973 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-02 05:15:52,975 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-02 05:15:52,978 autosynth [DEBUG] > Running: git config push.default simple
2021-01-02 05:15:52,981 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-02 05:15:52,984 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-02 05:15:53,252 autosynth [INFO] > Running synthtool
2021-01-02 05:15:53,252 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-02 05:15:53,252 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-02 05:15:53,254 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-02 05:15:53,473 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-02 05:15:55,192 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp0yakxhei/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp0yakxhei/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:25.815 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:25.957 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:25.972 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:27.547 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:27.624 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-02 05:16:30,420 autosynth [ERROR] > Synthesis failed
2021-01-02 05:16:30,420 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-03 05:16:48,778 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-03 05:16:49,257 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-03 05:16:49,260 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-03 05:16:49,263 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-03 05:16:49,265 autosynth [DEBUG] > Running: git config push.default simple
2021-01-03 05:16:49,268 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-03 05:16:49,271 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-03 05:16:49,486 autosynth [INFO] > Running synthtool
2021-01-03 05:16:49,486 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-03 05:16:49,486 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-03 05:16:49,488 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-03 05:16:49,724 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-03 05:16:51,916 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpb8kxzvpa/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpb8kxzvpa/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:23.372 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:23.494 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:23.507 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:25.020 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:25.096 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-03 05:17:28,390 autosynth [ERROR] > Synthesis failed
2021-01-03 05:17:28,390 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-04 05:16:12,835 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-04 05:16:13,325 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-04 05:16:13,328 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-04 05:16:13,331 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-04 05:16:13,334 autosynth [DEBUG] > Running: git config push.default simple
2021-01-04 05:16:13,337 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-04 05:16:13,340 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-04 05:16:13,601 autosynth [INFO] > Running synthtool
2021-01-04 05:16:13,601 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-04 05:16:13,601 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-04 05:16:13,604 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-04 05:16:13,828 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-04 05:16:15,776 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp3emehd0a/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp3emehd0a/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:47.240 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:47.366 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:47.381 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:48.878 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:48.953 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-04 05:16:51,781 autosynth [ERROR] > Synthesis failed
2021-01-04 05:16:51,781 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-05 05:15:42,244 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-05 05:15:42,720 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-05 05:15:42,723 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-05 05:15:42,726 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-05 05:15:42,728 autosynth [DEBUG] > Running: git config push.default simple
2021-01-05 05:15:42,731 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-05 05:15:42,734 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-05 05:15:42,970 autosynth [INFO] > Running synthtool
2021-01-05 05:15:42,970 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-05 05:15:42,970 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-05 05:15:42,973 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-05 05:15:43,190 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-05 05:15:45,083 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpvi2f4n6v/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpvi2f4n6v/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:15.564 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:15.687 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:15.701 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:17.125 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:17.197 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-05 05:16:19,971 autosynth [ERROR] > Synthesis failed
2021-01-05 05:16:19,971 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-06 05:15:59,919 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-06 05:16:00,413 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-06 05:16:00,416 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-06 05:16:00,419 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-06 05:16:00,422 autosynth [DEBUG] > Running: git config push.default simple
2021-01-06 05:16:00,425 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-06 05:16:00,428 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-06 05:16:00,661 autosynth [INFO] > Running synthtool
2021-01-06 05:16:00,661 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-06 05:16:00,661 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-06 05:16:00,664 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-06 05:16:00,884 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-06 05:16:02,838 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpkjdiuler/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpkjdiuler/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:35.138 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:35.264 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:35.281 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:36.750 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:36.823 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-06 05:16:39,625 autosynth [ERROR] > Synthesis failed
2021-01-06 05:16:39,626 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-07 05:14:06,564 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-07 05:14:07,043 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-07 05:14:07,046 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-07 05:14:07,049 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-07 05:14:07,051 autosynth [DEBUG] > Running: git config push.default simple
2021-01-07 05:14:07,054 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-07 05:14:07,057 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-07 05:14:07,295 autosynth [INFO] > Running synthtool
2021-01-07 05:14:07,295 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-07 05:14:07,295 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-07 05:14:07,297 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-07 05:14:07,508 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-07 05:14:09,190 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpzsiej36m/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpzsiej36m/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:14:37.577 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:14:37.690 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:14:37.712 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:14:39.218 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:14:39.287 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-07 05:14:42,196 autosynth [ERROR] > Synthesis failed
2021-01-07 05:14:42,196 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-08 05:15:43,303 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-08 05:15:43,804 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-08 05:15:43,807 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-08 05:15:43,810 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-08 05:15:43,813 autosynth [DEBUG] > Running: git config push.default simple
2021-01-08 05:15:43,816 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-08 05:15:43,820 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-08 05:15:44,070 autosynth [INFO] > Running synthtool
2021-01-08 05:15:44,070 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-08 05:15:44,070 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-08 05:15:44,072 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-08 05:15:44,307 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-08 05:15:46,179 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpe_yyxrmo/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpe_yyxrmo/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:18.998 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:19.128 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:19.142 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:20.707 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:20.788 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-08 05:16:23,698 autosynth [ERROR] > Synthesis failed
2021-01-08 05:16:23,698 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-09 05:16:22,232 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-09 05:16:22,720 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-09 05:16:22,723 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-09 05:16:22,728 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-09 05:16:22,731 autosynth [DEBUG] > Running: git config push.default simple
2021-01-09 05:16:22,734 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-09 05:16:22,738 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-09 05:16:22,964 autosynth [INFO] > Running synthtool
2021-01-09 05:16:22,964 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-09 05:16:22,964 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-09 05:16:22,966 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-09 05:16:23,192 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-09 05:16:25,046 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpwlzmp6kt/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpwlzmp6kt/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:56.122 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:56.249 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:56.263 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:57.779 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:57.860 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-09 05:17:00,711 autosynth [ERROR] > Synthesis failed
2021-01-09 05:17:00,711 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-10 05:17:47,471 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-10 05:17:47,972 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-10 05:17:47,975 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-10 05:17:47,979 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-10 05:17:47,983 autosynth [DEBUG] > Running: git config push.default simple
2021-01-10 05:17:47,987 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-10 05:17:47,991 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-10 05:17:48,224 autosynth [INFO] > Running synthtool
2021-01-10 05:17:48,224 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-10 05:17:48,224 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-10 05:17:48,227 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-10 05:17:48,471 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-10 05:17:50,325 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmplxmyrppo/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmplxmyrppo/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:18:24.918 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:18:25.061 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:18:25.077 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:18:26.718 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:18:26.802 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-10 05:18:29,874 autosynth [ERROR] > Synthesis failed
2021-01-10 05:18:29,874 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-11 05:16:30,456 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-11 05:16:30,960 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-11 05:16:30,963 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-11 05:16:30,966 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-11 05:16:30,968 autosynth [DEBUG] > Running: git config push.default simple
2021-01-11 05:16:30,971 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-11 05:16:30,974 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-11 05:16:31,214 autosynth [INFO] > Running synthtool
2021-01-11 05:16:31,214 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-11 05:16:31,214 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-11 05:16:31,217 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-11 05:16:31,433 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-11 05:16:33,229 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp7jcrbm49/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp7jcrbm49/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:04.371 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:04.491 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:04.504 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:06.092 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:06.168 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-11 05:17:09,021 autosynth [ERROR] > Synthesis failed
2021-01-11 05:17:09,021 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-12 05:13:13,171 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-12 05:13:13,629 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-12 05:13:13,632 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-12 05:13:13,634 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-12 05:13:13,636 autosynth [DEBUG] > Running: git config push.default simple
2021-01-12 05:13:13,639 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-12 05:13:13,642 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-12 05:13:13,873 autosynth [INFO] > Running synthtool
2021-01-12 05:13:13,873 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-12 05:13:13,873 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-12 05:13:13,875 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-12 05:13:14,053 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-12 05:13:15,531 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp8s6z2n0q/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp8s6z2n0q/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:13:40.870 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:13:40.972 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:13:40.986 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:13:42.247 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:13:42.305 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-12 05:13:45,075 autosynth [ERROR] > Synthesis failed
2021-01-12 05:13:45,075 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

21-01-13 05:19:10,045 autosynth [INFO] > logs will be written to: /tmpfs/src/logs/elixir-google-api
2021-01-13 05:19:10,564 autosynth [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-13 05:19:10,567 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-13 05:19:10,571 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-13 05:19:10,575 autosynth [DEBUG] > Running: git config push.default simple
2021-01-13 05:19:10,579 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-13 05:19:10,583 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-13 05:19:10,813 autosynth [INFO] > Running synthtool
2021-01-13 05:19:10,813 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-13 05:19:10,813 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-13 05:19:10,816 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-13 05:19:11,067 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-13 05:19:13,059 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpdy28sy0i/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpdy28sy0i/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:19:50.159 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:19:50.313 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:19:50.328 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:19:52.001 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:19:52.087 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-13 05:19:55,216 autosynth [ERROR] > Synthesis failed
2021-01-13 05:19:55,216 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

h [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-14 05:16:16,758 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-14 05:16:16,760 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-14 05:16:16,763 autosynth [DEBUG] > Running: git config push.default simple
2021-01-14 05:16:16,766 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-14 05:16:16,769 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-14 05:16:16,991 autosynth [INFO] > Running synthtool
2021-01-14 05:16:16,991 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-14 05:16:16,991 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-14 05:16:16,993 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-14 05:16:17,211 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-14 05:16:18,972 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp9_991x88/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp9_991x88/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:49.699 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:49.818 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:49.834 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchDeleteRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_delete_rows_request.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:51.336 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:51.414 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-14 05:16:54,299 autosynth [ERROR] > Synthesis failed
2021-01-14 05:16:54,299 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

h [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-15 05:15:08,060 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-15 05:15:08,063 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-15 05:15:08,066 autosynth [DEBUG] > Running: git config push.default simple
2021-01-15 05:15:08,068 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-15 05:15:08,071 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-15 05:15:08,351 autosynth [INFO] > Running synthtool
2021-01-15 05:15:08,351 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-15 05:15:08,351 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-15 05:15:08,353 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-15 05:15:08,560 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-15 05:15:10,245 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpglffhb8n/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpglffhb8n/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:15:38.925 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:15:39.046 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:15:39.061 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchDeleteRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_delete_rows_request.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:15:40.579 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:15:40.652 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-15 05:15:43,296 autosynth [ERROR] > Synthesis failed
2021-01-15 05:15:43,296 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

h [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-16 05:17:00,557 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-16 05:17:00,561 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-16 05:17:00,564 autosynth [DEBUG] > Running: git config push.default simple
2021-01-16 05:17:00,567 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-16 05:17:00,571 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-16 05:17:01,031 autosynth [INFO] > Running synthtool
2021-01-16 05:17:01,031 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-16 05:17:01,031 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-16 05:17:01,034 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-16 05:17:01,271 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-16 05:17:03,121 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpg1qbtivy/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpg1qbtivy/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:36.132 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:36.270 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:36.286 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchDeleteRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_delete_rows_request.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:37.807 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:37.885 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-16 05:17:40,823 autosynth [ERROR] > Synthesis failed
2021-01-16 05:17:40,824 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

h [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-17 05:15:30,875 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-17 05:15:30,878 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-17 05:15:30,880 autosynth [DEBUG] > Running: git config push.default simple
2021-01-17 05:15:30,883 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-17 05:15:30,886 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-17 05:15:31,139 autosynth [INFO] > Running synthtool
2021-01-17 05:15:31,139 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-17 05:15:31,139 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-17 05:15:31,141 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-17 05:15:31,352 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-17 05:15:33,112 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp9b8lrsts/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp9b8lrsts/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:03.508 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:03.622 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:03.636 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchDeleteRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_delete_rows_request.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:05.203 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:05.277 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-17 05:16:08,156 autosynth [ERROR] > Synthesis failed
2021-01-17 05:16:08,156 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

h [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-18 05:15:49,925 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-18 05:15:49,928 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-18 05:15:49,931 autosynth [DEBUG] > Running: git config push.default simple
2021-01-18 05:15:49,934 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-18 05:15:49,937 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-18 05:15:50,171 autosynth [INFO] > Running synthtool
2021-01-18 05:15:50,171 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-18 05:15:50,171 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-18 05:15:50,173 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-18 05:15:50,394 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-18 05:15:52,134 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpzfpn_ez9/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpzfpn_ez9/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:16:22.676 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:16:22.797 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:16:22.812 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchDeleteRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_delete_rows_request.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:16:24.291 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:16:24.366 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-18 05:16:27,205 autosynth [ERROR] > Synthesis failed
2021-01-18 05:16:27,206 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating Area120Tables. 😭

Here's the output from running synth.py:

h [DEBUG] > Running: git config --global core.excludesfile /home/kbuilder/.autosynth-gitignore
2021-01-19 05:16:47,271 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2021-01-19 05:16:47,275 autosynth [DEBUG] > Running: git config user.email [email protected]
2021-01-19 05:16:47,277 autosynth [DEBUG] > Running: git config push.default simple
2021-01-19 05:16:47,280 autosynth [DEBUG] > Running: git branch -f autosynth-area120tables
2021-01-19 05:16:47,284 autosynth [DEBUG] > Running: git checkout autosynth-area120tables
Switched to branch 'autosynth-area120tables'
2021-01-19 05:16:48,233 autosynth [INFO] > Running synthtool
2021-01-19 05:16:48,234 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/area120tables/synth.metadata', 'synth.py', '--']
2021-01-19 05:16:48,234 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/elixir-google-api/Area120Tables/sponge_log.log
2021-01-19 05:16:48,236 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata clients/area120tables/synth.metadata synth.py -- Area120Tables
2021-01-19 05:16:48,470 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-area120tables
nothing to commit, working tree clean
2021-01-19 05:16:50,247 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpajfoj5yf/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 Area120Tables
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpajfoj5yf/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 Area120Tables
/workspace /workspace
Removing clients/area120tables/
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
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)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> 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

13:17:22.328 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1alpha1

13:17:22.460 [info]  FETCHING: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1

13:17:22.473 [info]  FOUND: https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing BatchCreateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_request.ex.
Writing BatchCreateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_create_rows_response.ex.
Writing BatchDeleteRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_delete_rows_request.ex.
Writing BatchUpdateRowsRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_request.ex.
Writing BatchUpdateRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/batch_update_rows_response.ex.
Writing ColumnDescription to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/column_description.ex.
Writing CreateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/create_row_request.ex.
Writing Empty to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/empty.ex.
Writing LabeledItem to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/labeled_item.ex.
Writing ListRowsResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_rows_response.ex.
Writing ListTablesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_tables_response.ex.
Writing ListWorkspacesResponse to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/list_workspaces_response.ex.
Writing LookupDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/lookup_details.ex.
Writing RelationshipDetails to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/relationship_details.ex.
Writing Row to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/row.ex.
Writing Table to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/table.ex.
Writing UpdateRowRequest to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/update_row_request.ex.
Writing Workspace to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/model/workspace.ex.
Writing Tables to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/tables.ex.
Writing Workspaces to clients/area120_tables/lib/google_api/area120_tables/v1alpha1/api/workspaces.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:17:24.024 [warn]  Failed to get hex version for google_api_area120_tables. Falling back on reading mix.exs.

13:17:24.102 [info]  Bumping minor
fixing file permissions
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 "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 258, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 106, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/area120tables/synth.metadata'
2021-01-19 05:17:27,006 autosynth [ERROR] > Synthesis failed
2021-01-19 05:17:27,006 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing clients/area120_tables/
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/area120tables/synth.metadata', 'synth.py', '--', 'Area120Tables']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation
Copy link
Contributor Author

Autosynth passed, closing! 💚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: area120tables Issues related to the Area 120 Tables API API. autosynth failure priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants