Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Synthesis failed for python-asset #136

Closed
yoshi-automation opened this issue Dec 12, 2020 · 11 comments
Closed

Synthesis failed for python-asset #136

yoshi-automation opened this issue Dec 12, 2020 · 11 comments
Assignees
Labels
api: cloudasset Issues related to the googleapis/python-asset API. autosynth failure priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 馃毃 This issue needs some love. 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 python-asset. 馃挃

Here's the output from running synth.py:

autosynth [DEBUG] > Running: git log -1 --pretty=%at 69629b64b83c6421d616be2b8e11795738ec8a6c
2020-12-12 05:33:35,059 autosynth [DEBUG] > Running: git log -1 --pretty=%at f94318521f63085b9ccb43d42af89f153fb39f15
2020-12-12 05:33:35,062 autosynth [DEBUG] > Running: git log -1 --pretty=%at 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1
2020-12-12 05:33:35,065 autosynth [DEBUG] > Running: git log -1 --pretty=%at 5d11bd2888c38ce1fb6fa6bf25494a4219a73928
2020-12-12 05:33:35,068 autosynth [DEBUG] > Running: git log -1 --pretty=%at 3559dd8cb634347737632776ef4089443eacdb4f
2020-12-12 05:33:35,071 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7d1ee3207371ef72a1ca931a0964c4007e687280
2020-12-12 05:33:35,074 autosynth [DEBUG] > Running: git log -1 --pretty=%at 352f25621c28d2fa0784984ea0ed5ea697aa1525
2020-12-12 05:33:35,077 autosynth [DEBUG] > Running: git log -1 --pretty=%at 996775eca5fd934edac3c2ae34b80ff0395b1717
2020-12-12 05:33:35,081 autosynth [DEBUG] > Running: git checkout e5d67ecf628c13b3fa7b89aadb95a41c9405fee0
Note: checking out 'e5d67ecf628c13b3fa7b89aadb95a41c9405fee0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at e5d67ec chore(deps): update dependency google-cloud-storage to v1.34.0 (#135)
2020-12-12 05:33:35,092 autosynth [DEBUG] > Running: git checkout dd372aa22ded7a8ba6f0e03a80e06358a3fa0907
Note: checking out 'dd372aa22ded7a8ba6f0e03a80e06358a3fa0907'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at dd372aa2 fix: remove client recv msg limit fix: add enums to `types/__init__.py`
2020-12-12 05:33:35,106 autosynth [DEBUG] > Running: git checkout 996775eca5fd934edac3c2ae34b80ff0395b1717
Note: checking out '996775eca5fd934edac3c2ae34b80ff0395b1717'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 996775e fix(python): skip samples readmegen in synthtool (#875)
2020-12-12 05:33:35,113 autosynth [DEBUG] > Running: git branch -f autosynth-162
2020-12-12 05:33:35,116 autosynth [DEBUG] > Running: git checkout autosynth-162
Switched to branch 'autosynth-162'
2020-12-12 05:33:35,121 autosynth [INFO] > Running synthtool
2020-12-12 05:33:35,121 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-12 05:33:35,121 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/162/sponge_log.log
2020-12-12 05:33:35,123 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-12 05:33:35,344 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-162
nothing to commit, working tree clean
2020-12-12 05:33:35,482 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-12 05:33:35,487 synthtool [DEBUG] > Ensuring dependencies.
2020-12-12 05:33:35,497 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-12 05:33:35,502 synthtool [DEBUG] > Cloning googleapis.
2020-12-12 05:33:35,502 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-12 05:33:35,505 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-12 05:33:48,488 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 12.974s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-12 05:33:48,551 autosynth [ERROR] > Synthesis failed
2020-12-12 05:33:48,552 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at e5d67ec chore(deps): update dependency google-cloud-storage to v1.34.0 (#135)
2020-12-12 05:33:48,558 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-12 05:33:48,563 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation yoshi-automation added 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 Dec 12, 2020
@product-auto-label product-auto-label bot added the api: cloudasset Issues related to the googleapis/python-asset API. label Dec 12, 2020
@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating python-asset. 馃槶

Here's the output from running synth.py:

o so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at e5d67ec chore(deps): update dependency google-cloud-storage to v1.34.0 (#135)
2020-12-13 05:24:17,205 autosynth [DEBUG] > Running: git checkout dd372aa22ded7a8ba6f0e03a80e06358a3fa0907
Note: checking out 'dd372aa22ded7a8ba6f0e03a80e06358a3fa0907'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at dd372aa2 fix: remove client recv msg limit fix: add enums to `types/__init__.py`
2020-12-13 05:24:17,218 autosynth [DEBUG] > Running: git checkout 996775eca5fd934edac3c2ae34b80ff0395b1717
Note: checking out '996775eca5fd934edac3c2ae34b80ff0395b1717'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 996775e fix(python): skip samples readmegen in synthtool (#875)
2020-12-13 05:24:17,223 autosynth [DEBUG] > Running: git branch -f autosynth-162
2020-12-13 05:24:17,226 autosynth [DEBUG] > Running: git checkout autosynth-162
Switched to branch 'autosynth-162'
2020-12-13 05:24:17,230 autosynth [INFO] > Running synthtool
2020-12-13 05:24:17,231 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-13 05:24:17,231 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/162/sponge_log.log
2020-12-13 05:24:17,232 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-13 05:24:17,436 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-162
nothing to commit, working tree clean
2020-12-13 05:24:17,559 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-13 05:24:17,564 synthtool [DEBUG] > Ensuring dependencies.
2020-12-13 05:24:17,573 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-13 05:24:17,576 synthtool [DEBUG] > Cloning googleapis.
2020-12-13 05:24:17,576 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-13 05:24:17,580 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-13 05:24:29,814 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-java/archive/v0.0.11.zip) = 03104bc9af3ad98a66ab9ccb9700caebb17b2711a0ddde12acdccc368a2b69ca
DEBUG: Rule 'gapic_generator_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "03104bc9af3ad98a66ab9ccb9700caebb17b2711a0ddde12acdccc368a2b69ca"
DEBUG: Call stack for the definition of repository 'gapic_generator_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:142:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip) = c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f"
DEBUG: Call stack for the definition of repository 'com_google_api_codegen' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:77:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 12.214s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-13 05:24:29,877 autosynth [ERROR] > Synthesis failed
2020-12-13 05:24:29,877 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at e5d67ec chore(deps): update dependency google-cloud-storage to v1.34.0 (#135)
2020-12-13 05:24:29,882 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-13 05:24:29,887 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' 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 python-asset. 馃槶

Here's the output from running synth.py:

 create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at e5d67ec chore(deps): update dependency google-cloud-storage to v1.34.0 (#135)
2020-12-14 05:25:13,918 autosynth [DEBUG] > Running: git checkout bdab50fe10ce3190812697e06f2e860780e9095e
Note: checking out 'bdab50fe10ce3190812697e06f2e860780e9095e'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at bdab50fe chore: Update C# namespace
2020-12-14 05:25:13,932 autosynth [DEBUG] > Running: git checkout 996775eca5fd934edac3c2ae34b80ff0395b1717
Note: checking out '996775eca5fd934edac3c2ae34b80ff0395b1717'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 996775e fix(python): skip samples readmegen in synthtool (#875)
2020-12-14 05:25:13,939 autosynth [DEBUG] > Running: git branch -f autosynth-163
2020-12-14 05:25:13,943 autosynth [DEBUG] > Running: git checkout autosynth-163
Switched to branch 'autosynth-163'
2020-12-14 05:25:13,948 autosynth [INFO] > Running synthtool
2020-12-14 05:25:13,948 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-14 05:25:13,948 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/163/sponge_log.log
2020-12-14 05:25:13,951 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-14 05:25:14,173 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-163
nothing to commit, working tree clean
2020-12-14 05:25:14,312 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-14 05:25:14,317 synthtool [DEBUG] > Ensuring dependencies.
2020-12-14 05:25:14,327 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-14 05:25:14,331 synthtool [DEBUG] > Cloning googleapis.
2020-12-14 05:25:14,331 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-14 05:25:14,335 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-14 05:25:30,312 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-java/archive/v0.0.11.zip) = 03104bc9af3ad98a66ab9ccb9700caebb17b2711a0ddde12acdccc368a2b69ca
DEBUG: Rule 'gapic_generator_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "03104bc9af3ad98a66ab9ccb9700caebb17b2711a0ddde12acdccc368a2b69ca"
DEBUG: Call stack for the definition of repository 'gapic_generator_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:142:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip) = c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f"
DEBUG: Call stack for the definition of repository 'com_google_api_codegen' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:77:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 15.967s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-14 05:25:30,386 autosynth [ERROR] > Synthesis failed
2020-12-14 05:25:30,387 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at e5d67ec chore(deps): update dependency google-cloud-storage to v1.34.0 (#135)
2020-12-14 05:25:30,392 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-14 05:25:30,398 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' 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 python-asset. 馃槶

Here's the output from running synth.py:

 may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at e5d67ec chore(deps): update dependency google-cloud-storage to v1.34.0 (#135)
2020-12-15 09:10:08,887 autosynth [DEBUG] > Running: git checkout 6dae98144d466d4f985b926baec6208b01572f55
Note: checking out '6dae98144d466d4f985b926baec6208b01572f55'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6dae9814 chore: Remove unused 'package' attr from java_gapic_library rules
2020-12-15 09:10:08,932 autosynth [DEBUG] > Running: git checkout 996775eca5fd934edac3c2ae34b80ff0395b1717
Note: checking out '996775eca5fd934edac3c2ae34b80ff0395b1717'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 996775e fix(python): skip samples readmegen in synthtool (#875)
2020-12-15 09:10:08,939 autosynth [DEBUG] > Running: git branch -f autosynth-169
2020-12-15 09:10:08,942 autosynth [DEBUG] > Running: git checkout autosynth-169
Switched to branch 'autosynth-169'
2020-12-15 09:10:08,947 autosynth [INFO] > Running synthtool
2020-12-15 09:10:08,947 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-15 09:10:08,947 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/169/sponge_log.log
2020-12-15 09:10:08,949 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-15 09:10:09,163 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-169
nothing to commit, working tree clean
2020-12-15 09:10:09,299 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-15 09:10:09,304 synthtool [DEBUG] > Ensuring dependencies.
2020-12-15 09:10:09,313 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-15 09:10:09,317 synthtool [DEBUG] > Cloning googleapis.
2020-12-15 09:10:09,317 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-15 09:10:09,321 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-15 09:10:23,355 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-java/archive/v0.0.11.zip) = 03104bc9af3ad98a66ab9ccb9700caebb17b2711a0ddde12acdccc368a2b69ca
DEBUG: Rule 'gapic_generator_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "03104bc9af3ad98a66ab9ccb9700caebb17b2711a0ddde12acdccc368a2b69ca"
DEBUG: Call stack for the definition of repository 'gapic_generator_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:142:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip) = c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f"
DEBUG: Call stack for the definition of repository 'com_google_api_codegen' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:77:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 14.024s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-15 09:10:23,411 autosynth [ERROR] > Synthesis failed
2020-12-15 09:10:23,411 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at e5d67ec chore(deps): update dependency google-cloud-storage to v1.34.0 (#135)
2020-12-15 09:10:23,417 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-15 09:10:23,422 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' 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 python-asset. 馃槶

Here's the output from running synth.py:

. Example:

  git checkout -b <new-branch-name>

HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-16 09:19:23,904 autosynth [DEBUG] > Running: git checkout 5256ab60f3d396a3d1bd393043776936b9651c5b
Note: checking out '5256ab60f3d396a3d1bd393043776936b9651c5b'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 5256ab60 feat: Add support for "billingAccounts" as another parent resource name for recommendations and insights APIs.
2020-12-16 09:19:23,955 autosynth [DEBUG] > Running: git checkout aa255b15d52b6d8950cca48cfdf58f7d27a60c8a
Note: checking out 'aa255b15d52b6d8950cca48cfdf58f7d27a60c8a'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at aa255b1 chore(deps): update precommit hook pre-commit/pre-commit-hooks to v3.4.0 (#878)
2020-12-16 09:19:23,963 autosynth [DEBUG] > Running: git branch -f autosynth-175
2020-12-16 09:19:23,967 autosynth [DEBUG] > Running: git checkout autosynth-175
Switched to branch 'autosynth-175'
2020-12-16 09:19:23,973 autosynth [INFO] > Running synthtool
2020-12-16 09:19:23,973 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-16 09:19:23,973 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/175/sponge_log.log
2020-12-16 09:19:23,976 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-16 09:19:24,207 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-175
nothing to commit, working tree clean
2020-12-16 09:19:24,358 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-16 09:19:24,364 synthtool [DEBUG] > Ensuring dependencies.
2020-12-16 09:19:24,376 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-16 09:19:24,381 synthtool [DEBUG] > Cloning googleapis.
2020-12-16 09:19:24,381 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-16 09:19:24,386 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-16 09:19:38,923 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-java/archive/v0.0.11.zip) = 03104bc9af3ad98a66ab9ccb9700caebb17b2711a0ddde12acdccc368a2b69ca
DEBUG: Rule 'gapic_generator_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "03104bc9af3ad98a66ab9ccb9700caebb17b2711a0ddde12acdccc368a2b69ca"
DEBUG: Call stack for the definition of repository 'gapic_generator_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:142:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip) = c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f"
DEBUG: Call stack for the definition of repository 'com_google_api_codegen' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:77:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 14.525s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-16 09:19:38,990 autosynth [ERROR] > Synthesis failed
2020-12-16 09:19:38,991 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-16 09:19:38,997 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-16 09:19:39,002 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' 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 python-asset. 馃槶

Here's the output from running synth.py:

ckout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-17 05:26:36,956 autosynth [DEBUG] > Running: git checkout be40b52d80a2131a1b48f4720c4e8024167faad1
Note: checking out 'be40b52d80a2131a1b48f4720c4e8024167faad1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at be40b52d feat: Add support for "billingAccounts" as another parent resource name for recommendations and insights APIs.
2020-12-17 05:26:37,006 autosynth [DEBUG] > Running: git checkout 41e998d5afdc2c2143a23c9b044b9931936f7318
Note: checking out '41e998d5afdc2c2143a23c9b044b9931936f7318'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 41e998d fix: Update apt before installing apt-transport-https (#882)
2020-12-17 05:26:37,013 autosynth [DEBUG] > Running: git branch -f autosynth-182
2020-12-17 05:26:37,017 autosynth [DEBUG] > Running: git checkout autosynth-182
Switched to branch 'autosynth-182'
2020-12-17 05:26:37,023 autosynth [INFO] > Running synthtool
2020-12-17 05:26:37,023 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-17 05:26:37,023 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/182/sponge_log.log
2020-12-17 05:26:37,025 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-17 05:26:37,259 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-182
nothing to commit, working tree clean
2020-12-17 05:26:37,418 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-17 05:26:37,424 synthtool [DEBUG] > Ensuring dependencies.
2020-12-17 05:26:37,436 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-17 05:26:37,441 synthtool [DEBUG] > Cloning googleapis.
2020-12-17 05:26:37,441 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-17 05:26:37,446 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-17 05:26:52,378 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-java/archive/v0.0.13.zip) = 2709af7bb4211c247a954e0da718d108d99361783b0920192b7d640b83583139
DEBUG: Rule 'gapic_generator_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "2709af7bb4211c247a954e0da718d108d99361783b0920192b7d640b83583139"
DEBUG: Call stack for the definition of repository 'gapic_generator_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:142:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip) = c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f"
DEBUG: Call stack for the definition of repository 'com_google_api_codegen' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:77:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 14.920s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-17 05:26:52,448 autosynth [ERROR] > Synthesis failed
2020-12-17 05:26:52,448 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-17 05:26:52,456 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-17 05:26:52,462 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' 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 python-asset. 馃槶

Here's the output from running synth.py:

 using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-18 05:26:12,063 autosynth [DEBUG] > Running: git checkout c1a601690b7fdfc2ca7a070038546321102b5f0b
Note: checking out 'c1a601690b7fdfc2ca7a070038546321102b5f0b'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at c1a60169 chore: update gapic-generator-java to 0.0.14
2020-12-18 05:26:12,077 autosynth [DEBUG] > Running: git checkout b670a77a454f415d247907908e8ee7943e06d718
Note: checking out 'b670a77a454f415d247907908e8ee7943e06d718'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b670a77 docs(python): document adding Python 3.9 support, dropping 3.5 support (#880)
2020-12-18 05:26:12,084 autosynth [DEBUG] > Running: git branch -f autosynth-186
2020-12-18 05:26:12,087 autosynth [DEBUG] > Running: git checkout autosynth-186
Switched to branch 'autosynth-186'
2020-12-18 05:26:12,092 autosynth [INFO] > Running synthtool
2020-12-18 05:26:12,092 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-18 05:26:12,092 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/186/sponge_log.log
2020-12-18 05:26:12,094 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-18 05:26:12,308 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-186
nothing to commit, working tree clean
2020-12-18 05:26:12,443 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-18 05:26:12,449 synthtool [DEBUG] > Ensuring dependencies.
2020-12-18 05:26:12,458 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-18 05:26:12,462 synthtool [DEBUG] > Cloning googleapis.
2020-12-18 05:26:12,462 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-18 05:26:12,466 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-18 05:26:27,525 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-java/archive/v0.0.14.zip) = b1679b101adc62a0dd530563b8615af55cd29e5ed7558ec291f6cb330c84b220
DEBUG: Rule 'gapic_generator_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b1679b101adc62a0dd530563b8615af55cd29e5ed7558ec291f6cb330c84b220"
DEBUG: Call stack for the definition of repository 'gapic_generator_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:142:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip) = c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f"
DEBUG: Call stack for the definition of repository 'com_google_api_codegen' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:77:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 15.050s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-18 05:26:27,569 autosynth [ERROR] > Synthesis failed
2020-12-18 05:26:27,569 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-18 05:26:27,575 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-18 05:26:27,580 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' 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 python-asset. 馃槶

Here's the output from running synth.py:

may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-19 05:24:58,338 autosynth [DEBUG] > Running: git checkout c1a601690b7fdfc2ca7a070038546321102b5f0b
Note: checking out 'c1a601690b7fdfc2ca7a070038546321102b5f0b'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at c1a60169 chore: update gapic-generator-java to 0.0.14
2020-12-19 05:24:58,376 autosynth [DEBUG] > Running: git checkout b670a77a454f415d247907908e8ee7943e06d718
Note: checking out 'b670a77a454f415d247907908e8ee7943e06d718'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b670a77 docs(python): document adding Python 3.9 support, dropping 3.5 support (#880)
2020-12-19 05:24:58,382 autosynth [DEBUG] > Running: git branch -f autosynth-186
2020-12-19 05:24:58,385 autosynth [DEBUG] > Running: git checkout autosynth-186
Switched to branch 'autosynth-186'
2020-12-19 05:24:58,390 autosynth [INFO] > Running synthtool
2020-12-19 05:24:58,390 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-19 05:24:58,390 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/186/sponge_log.log
2020-12-19 05:24:58,391 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-19 05:24:58,606 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-186
nothing to commit, working tree clean
2020-12-19 05:24:58,740 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-19 05:24:58,745 synthtool [DEBUG] > Ensuring dependencies.
2020-12-19 05:24:58,754 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-19 05:24:58,758 synthtool [DEBUG] > Cloning googleapis.
2020-12-19 05:24:58,758 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-19 05:24:58,761 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-19 05:25:12,111 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-java/archive/v0.0.14.zip) = b1679b101adc62a0dd530563b8615af55cd29e5ed7558ec291f6cb330c84b220
DEBUG: Rule 'gapic_generator_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b1679b101adc62a0dd530563b8615af55cd29e5ed7558ec291f6cb330c84b220"
DEBUG: Call stack for the definition of repository 'gapic_generator_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:142:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip) = c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f"
DEBUG: Call stack for the definition of repository 'com_google_api_codegen' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:77:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 13.339s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-19 05:25:12,162 autosynth [ERROR] > Synthesis failed
2020-12-19 05:25:12,163 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-19 05:25:12,168 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-19 05:25:12,173 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@yoshi-automation yoshi-automation added the 馃毃 This issue needs some love. label Dec 19, 2020
@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating python-asset. 馃槶

Here's the output from running synth.py:

may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-20 05:24:50,097 autosynth [DEBUG] > Running: git checkout c1a601690b7fdfc2ca7a070038546321102b5f0b
Note: checking out 'c1a601690b7fdfc2ca7a070038546321102b5f0b'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at c1a60169 chore: update gapic-generator-java to 0.0.14
2020-12-20 05:24:50,111 autosynth [DEBUG] > Running: git checkout b670a77a454f415d247907908e8ee7943e06d718
Note: checking out 'b670a77a454f415d247907908e8ee7943e06d718'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b670a77 docs(python): document adding Python 3.9 support, dropping 3.5 support (#880)
2020-12-20 05:24:50,117 autosynth [DEBUG] > Running: git branch -f autosynth-186
2020-12-20 05:24:50,120 autosynth [DEBUG] > Running: git checkout autosynth-186
Switched to branch 'autosynth-186'
2020-12-20 05:24:50,124 autosynth [INFO] > Running synthtool
2020-12-20 05:24:50,124 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-20 05:24:50,124 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/186/sponge_log.log
2020-12-20 05:24:50,126 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-20 05:24:50,338 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-186
nothing to commit, working tree clean
2020-12-20 05:24:50,469 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-20 05:24:50,474 synthtool [DEBUG] > Ensuring dependencies.
2020-12-20 05:24:50,483 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-20 05:24:50,486 synthtool [DEBUG] > Cloning googleapis.
2020-12-20 05:24:50,487 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-20 05:24:50,490 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-20 05:25:03,715 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-java/archive/v0.0.14.zip) = b1679b101adc62a0dd530563b8615af55cd29e5ed7558ec291f6cb330c84b220
DEBUG: Rule 'gapic_generator_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b1679b101adc62a0dd530563b8615af55cd29e5ed7558ec291f6cb330c84b220"
DEBUG: Call stack for the definition of repository 'gapic_generator_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:142:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip) = c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f"
DEBUG: Call stack for the definition of repository 'com_google_api_codegen' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:77:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 13.212s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-20 05:25:03,770 autosynth [ERROR] > Synthesis failed
2020-12-20 05:25:03,770 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-20 05:25:03,775 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-20 05:25:03,780 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' 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 python-asset. 馃槶

Here's the output from running synth.py:

 using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-21 05:28:54,102 autosynth [DEBUG] > Running: git checkout c1a601690b7fdfc2ca7a070038546321102b5f0b
Note: checking out 'c1a601690b7fdfc2ca7a070038546321102b5f0b'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at c1a60169 chore: update gapic-generator-java to 0.0.14
2020-12-21 05:28:54,159 autosynth [DEBUG] > Running: git checkout b670a77a454f415d247907908e8ee7943e06d718
Note: checking out 'b670a77a454f415d247907908e8ee7943e06d718'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b670a77 docs(python): document adding Python 3.9 support, dropping 3.5 support (#880)
2020-12-21 05:28:54,166 autosynth [DEBUG] > Running: git branch -f autosynth-186
2020-12-21 05:28:54,171 autosynth [DEBUG] > Running: git checkout autosynth-186
Switched to branch 'autosynth-186'
2020-12-21 05:28:54,176 autosynth [INFO] > Running synthtool
2020-12-21 05:28:54,177 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-21 05:28:54,177 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/186/sponge_log.log
2020-12-21 05:28:54,179 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-21 05:28:54,458 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-186
nothing to commit, working tree clean
2020-12-21 05:28:54,626 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-21 05:28:54,632 synthtool [DEBUG] > Ensuring dependencies.
2020-12-21 05:28:54,644 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-21 05:28:54,650 synthtool [DEBUG] > Cloning googleapis.
2020-12-21 05:28:54,650 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-21 05:28:54,655 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-21 05:29:13,635 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-java/archive/v0.0.14.zip) = b1679b101adc62a0dd530563b8615af55cd29e5ed7558ec291f6cb330c84b220
DEBUG: Rule 'gapic_generator_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b1679b101adc62a0dd530563b8615af55cd29e5ed7558ec291f6cb330c84b220"
DEBUG: Call stack for the definition of repository 'gapic_generator_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:142:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip) = c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f"
DEBUG: Call stack for the definition of repository 'com_google_api_codegen' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:77:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 18.965s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-21 05:29:13,725 autosynth [ERROR] > Synthesis failed
2020-12-21 05:29:13,726 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-21 05:29:13,732 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-21 05:29:13,738 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' 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 python-asset. 馃槶

Here's the output from running synth.py:

h the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-22 05:26:23,048 autosynth [DEBUG] > Running: git checkout bfdb1df3876564228c43c3ea64edf5f90d10d92f
Note: checking out 'bfdb1df3876564228c43c3ea64edf5f90d10d92f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at bfdb1df3 build: add package name to BUILD file for nodejs-web-security-scanner
2020-12-22 05:26:23,098 autosynth [DEBUG] > Running: git checkout 363fe305e9ce34a6cd53951c6ee5f997094b54ee
Note: checking out '363fe305e9ce34a6cd53951c6ee5f997094b54ee'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 363fe30 docs: add instructions for authenticating for system tests (#872)
2020-12-22 05:26:23,106 autosynth [DEBUG] > Running: git branch -f autosynth-190
2020-12-22 05:26:23,110 autosynth [DEBUG] > Running: git checkout autosynth-190
Switched to branch 'autosynth-190'
2020-12-22 05:26:23,115 autosynth [INFO] > Running synthtool
2020-12-22 05:26:23,115 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-22 05:26:23,115 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/190/sponge_log.log
2020-12-22 05:26:23,118 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-22 05:26:23,344 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-190
nothing to commit, working tree clean
2020-12-22 05:26:23,494 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-22 05:26:23,500 synthtool [DEBUG] > Ensuring dependencies.
2020-12-22 05:26:23,510 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-22 05:26:23,515 synthtool [DEBUG] > Cloning googleapis.
2020-12-22 05:26:23,515 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-22 05:26:23,519 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-22 05:26:39,619 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:

Loading: 
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-java/archive/v0.0.14.zip) = b1679b101adc62a0dd530563b8615af55cd29e5ed7558ec291f6cb330c84b220
DEBUG: Rule 'gapic_generator_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b1679b101adc62a0dd530563b8615af55cd29e5ed7558ec291f6cb330c84b220"
DEBUG: Call stack for the definition of repository 'gapic_generator_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:142:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.9.0.zip) = c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c9c1f87e4482918bdbc9a7ac59d80883350742bc876e12175d1d36a72c8b190f"
DEBUG: Call stack for the definition of repository 'com_google_api_codegen' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:77:1
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 16.085s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
    bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
    shell.run(bazel_run_args)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-22 05:26:39,710 autosynth [ERROR] > Synthesis failed
2020-12-22 05:26:39,711 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b1b18ce chore(deps): update dependency google-cloud-bigquery to v2.6.1 (#133)
2020-12-22 05:26:39,717 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-22 05:26:39,723 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  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', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

@busunkim96
Copy link
Contributor

Failure was due to v1beta1 being removed. Addressed in #127

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: cloudasset Issues related to the googleapis/python-asset API. autosynth failure priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 馃毃 This issue needs some love. 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