googleapis / python-billingbudgets

This library has moved to https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-billing-budgets
Apache License 2.0
9 stars 8 forks source link

Synthesis failed for python-billingbudgets #32

Closed yoshi-automation closed 4 years ago

yoshi-automation commented 4 years ago

Hello! Autosynth couldn't regenerate python-billingbudgets. :broken_heart:

Here's the output from running synth.py:

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 d33f57a chore: release 0.4.0 (#29)
2020-06-20 07:45:36,593 autosynth [DEBUG] > Running: git checkout 04cb397eb7590ea1e6c10a39fca3d8fe0fb3d256
Note: checking out '04cb397eb7590ea1e6c10a39fca3d8fe0fb3d256'.

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 04cb397 chore: add labels with context info (#518)
2020-06-20 07:45:36,607 autosynth [DEBUG] > Running: git checkout ee9e8e4e67f06aba881392a1a2956fbe7a42d216
Note: checking out 'ee9e8e4e67f06aba881392a1a2956fbe7a42d216'.

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 ee9e8e4e docs: minor comments change.
2020-06-20 07:45:36,711 autosynth [DEBUG] > Running: git branch -f autosynth-self-2
2020-06-20 07:45:36,717 autosynth [DEBUG] > Running: git checkout autosynth-self-2
Switched to branch 'autosynth-self-2'
2020-06-20 07:45:36,722 autosynth [INFO] > Running synthtool
2020-06-20 07:45:36,723 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-06-20 07:45:36,723 autosynth [DEBUG] > log_file_path: /tmpfs/src/github/synthtool/logs/googleapis/python-billingbudgets/self/2/sponge_log.log
2020-06-20 07:45:36,725 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-06-20 07:45:36,947 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-billingbudgets/synth.py.
On branch autosynth-self-2
nothing to commit, working tree clean
2020-06-20 07:45:37,087 synthtool [DEBUG] > Ensuring dependencies.
DEBUG:synthtool:Ensuring dependencies.
2020-06-20 07:45:37,102 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-06-20 07:45:37,107 synthtool [DEBUG] > Cloning googleapis.
DEBUG:synthtool:Cloning googleapis.
2020-06-20 07:45:37,108 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-06-20 07:45:37,113 synthtool [DEBUG] > Generating code for: //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py.
DEBUG:synthtool:Generating code for: //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py.
2020-06-20 07:45:38,548 synthtool [ERROR] > Failed executing bazel --max_idle_secs=60 build //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py:

Loading: 
Loading: 0 packages loaded
Analyzing: target //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target @pypi_black//:black: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
ERROR: Analysis of target '//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py' failed; build aborted: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
INFO: Elapsed time: 1.417s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (15 packages loaded, 14 targets configured)
FAILED: Build did NOT complete successfully (15 packages loaded, 14 targets configured)

ERROR:synthtool:Failed executing bazel --max_idle_secs=60 build //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py:

Loading: 
Loading: 0 packages loaded
Analyzing: target //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target @pypi_black//:black: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
ERROR: Analysis of target '//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py' failed; build aborted: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
INFO: Elapsed time: 1.417s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (15 packages loaded, 14 targets configured)
FAILED: Build did NOT complete successfully (15 packages loaded, 14 targets configured)

2020-06-20 07:45:38,550 synthtool [DEBUG] > Wrote metadata to synth.metadata.
DEBUG:synthtool:Wrote metadata to synth.metadata.
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-billingbudgets/synth.py", line 33, in <module>
    include_protos=True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 46, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 180, 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=60', 'build', '//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py']' returned non-zero exit status 1.
2020-06-20 07:45:38,629 autosynth [ERROR] > Synthesis failed
2020-06-20 07:45:38,629 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at d33f57a chore: release 0.4.0 (#29)
2020-06-20 07:45:38,637 autosynth [DEBUG] > Running: git checkout autosynth-self
Switched to branch 'autosynth-self'
2020-06-20 07:45:38,644 autosynth [ERROR] > Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.
2020-06-20 07:45:38,831 autosynth [INFO] > PR already exists: https://github.com/googleapis/python-billingbudgets/pull/31
2020-06-20 07:45:38,831 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing google/__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 649, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 506, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 629, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 367, in synthesize_loop
    synthesize_inner_loop(fork, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 411, in synthesize_inner_loop
    synthesizer, len(toolbox.versions) - 1
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 266, 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 commented 4 years ago

Autosynth is still having trouble generating python-billingbudgets. :sob:

Here's the output from running synth.py:

 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 ee9e8e4e docs: minor comments change.
2020-06-21 05:21:52,936 autosynth [DEBUG] > Running: git branch -f autosynth-self-2
2020-06-21 05:21:52,940 autosynth [DEBUG] > Running: git checkout autosynth-self-2
Switched to branch 'autosynth-self-2'
2020-06-21 05:21:52,944 autosynth [INFO] > Running synthtool
2020-06-21 05:21:52,944 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-06-21 05:21:52,944 autosynth [DEBUG] > log_file_path: /tmpfs/src/github/synthtool/logs/googleapis/python-billingbudgets/self/2/sponge_log.log
2020-06-21 05:21:52,946 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-06-21 05:21:53,160 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-billingbudgets/synth.py.
On branch autosynth-self-2
nothing to commit, working tree clean
2020-06-21 05:21:53,291 synthtool [DEBUG] > Ensuring dependencies.
DEBUG:synthtool:Ensuring dependencies.
2020-06-21 05:21:53,301 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-06-21 05:21:53,305 synthtool [DEBUG] > Cloning googleapis.
DEBUG:synthtool:Cloning googleapis.
2020-06-21 05:21:53,305 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-06-21 05:21:53,308 synthtool [DEBUG] > Generating code for: //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py.
DEBUG:synthtool:Generating code for: //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py.
2020-06-21 05:21:54,396 synthtool [ERROR] > Failed executing bazel --max_idle_secs=60 build //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py:

Loading: 
Loading: 0 packages loaded
Analyzing: target //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py (1 packages loaded, 0 targets configured)
INFO: Call stack for the definition of repository 'go_sdk' which is a _go_download_sdk (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/io_bazel_rules_go/go/private/sdk.bzl:79:20):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/io_bazel_rules_go/go/private/sdk.bzl:92:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/io_bazel_rules_go/go/private/sdk.bzl:260:13
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:81:1
ERROR: While resolving toolchains for target @pypi_black//:black: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
ERROR: Analysis of target '//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py' failed; build aborted: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
INFO: Elapsed time: 1.074s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (21 packages loaded, 102 targets configured)
FAILED: Build did NOT complete successfully (21 packages loaded, 102 targets configured)

ERROR:synthtool:Failed executing bazel --max_idle_secs=60 build //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py:

Loading: 
Loading: 0 packages loaded
Analyzing: target //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py (1 packages loaded, 0 targets configured)
INFO: Call stack for the definition of repository 'go_sdk' which is a _go_download_sdk (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/io_bazel_rules_go/go/private/sdk.bzl:79:20):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/io_bazel_rules_go/go/private/sdk.bzl:92:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/io_bazel_rules_go/go/private/sdk.bzl:260:13
 - /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:81:1
ERROR: While resolving toolchains for target @pypi_black//:black: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
ERROR: Analysis of target '//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py' failed; build aborted: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
INFO: Elapsed time: 1.074s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (21 packages loaded, 102 targets configured)
FAILED: Build did NOT complete successfully (21 packages loaded, 102 targets configured)

2020-06-21 05:21:54,397 synthtool [DEBUG] > Wrote metadata to synth.metadata.
DEBUG:synthtool:Wrote metadata to synth.metadata.
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-billingbudgets/synth.py", line 33, in <module>
    include_protos=True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 46, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 180, 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=60', 'build', '//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py']' returned non-zero exit status 1.
2020-06-21 05:21:54,435 autosynth [ERROR] > Synthesis failed
2020-06-21 05:21:54,435 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at d33f57a chore: release 0.4.0 (#29)
2020-06-21 05:21:54,440 autosynth [DEBUG] > Running: git checkout autosynth-self
Switched to branch 'autosynth-self'
2020-06-21 05:21:54,444 autosynth [ERROR] > Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.
2020-06-21 05:21:54,823 autosynth [INFO] > PR already exists: https://github.com/googleapis/python-billingbudgets/pull/31
2020-06-21 05:21:54,823 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing google/__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 649, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 506, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 629, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 367, in synthesize_loop
    synthesize_inner_loop(fork, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 411, in synthesize_inner_loop
    synthesizer, len(toolbox.versions) - 1
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 266, 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 commented 4 years ago

Autosynth is still having trouble generating python-billingbudgets. :sob:

Here's the output from running synth.py:

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 d33f57a chore: release 0.4.0 (#29)
2020-06-22 05:21:35,879 autosynth [DEBUG] > Running: git checkout 04cb397eb7590ea1e6c10a39fca3d8fe0fb3d256
Note: checking out '04cb397eb7590ea1e6c10a39fca3d8fe0fb3d256'.

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 04cb397 chore: add labels with context info (#518)
2020-06-22 05:21:35,892 autosynth [DEBUG] > Running: git checkout ee9e8e4e67f06aba881392a1a2956fbe7a42d216
Note: checking out 'ee9e8e4e67f06aba881392a1a2956fbe7a42d216'.

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 ee9e8e4e docs: minor comments change.
2020-06-22 05:21:35,968 autosynth [DEBUG] > Running: git branch -f autosynth-self-2
2020-06-22 05:21:35,971 autosynth [DEBUG] > Running: git checkout autosynth-self-2
Switched to branch 'autosynth-self-2'
2020-06-22 05:21:35,975 autosynth [INFO] > Running synthtool
2020-06-22 05:21:35,975 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-06-22 05:21:35,975 autosynth [DEBUG] > log_file_path: /tmpfs/src/github/synthtool/logs/googleapis/python-billingbudgets/self/2/sponge_log.log
2020-06-22 05:21:35,977 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-06-22 05:21:36,190 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-billingbudgets/synth.py.
On branch autosynth-self-2
nothing to commit, working tree clean
2020-06-22 05:21:36,320 synthtool [DEBUG] > Ensuring dependencies.
DEBUG:synthtool:Ensuring dependencies.
2020-06-22 05:21:36,330 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-06-22 05:21:36,334 synthtool [DEBUG] > Cloning googleapis.
DEBUG:synthtool:Cloning googleapis.
2020-06-22 05:21:36,334 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-06-22 05:21:36,337 synthtool [DEBUG] > Generating code for: //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py.
DEBUG:synthtool:Generating code for: //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py.
2020-06-22 05:21:37,209 synthtool [ERROR] > Failed executing bazel --max_idle_secs=60 build //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py:

Loading: 
Loading: 0 packages loaded
Analyzing: target //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target @pypi_black//:black: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
ERROR: Analysis of target '//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py' failed; build aborted: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
INFO: Elapsed time: 0.861s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (21 packages loaded, 95 targets configured)
FAILED: Build did NOT complete successfully (21 packages loaded, 95 targets configured)

ERROR:synthtool:Failed executing bazel --max_idle_secs=60 build //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py:

Loading: 
Loading: 0 packages loaded
Analyzing: target //google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target @pypi_black//:black: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
ERROR: Analysis of target '//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py' failed; build aborted: invalid registered toolchain '@gapic_generator_python//:pyenv3_toolchain': no such package '@gapic_generator_python//': The repository '@gapic_generator_python' could not be resolved
INFO: Elapsed time: 0.861s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (21 packages loaded, 95 targets configured)
FAILED: Build did NOT complete successfully (21 packages loaded, 95 targets configured)

2020-06-22 05:21:37,211 synthtool [DEBUG] > Wrote metadata to synth.metadata.
DEBUG:synthtool:Wrote metadata to synth.metadata.
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-billingbudgets/synth.py", line 33, in <module>
    include_protos=True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 46, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 180, 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=60', 'build', '//google/cloud/billing/budgets/v1beta1:billing-budgets-v1beta1-py']' returned non-zero exit status 1.
2020-06-22 05:21:37,258 autosynth [ERROR] > Synthesis failed
2020-06-22 05:21:37,258 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at d33f57a chore: release 0.4.0 (#29)
2020-06-22 05:21:37,264 autosynth [DEBUG] > Running: git checkout autosynth-self
Switched to branch 'autosynth-self'
2020-06-22 05:21:37,269 autosynth [ERROR] > Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.
2020-06-22 05:21:37,437 autosynth [INFO] > PR already exists: https://github.com/googleapis/python-billingbudgets/pull/31
2020-06-22 05:21:37,437 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing google/__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 649, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 506, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 629, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 367, in synthesize_loop
    synthesize_inner_loop(fork, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 411, in synthesize_inner_loop
    synthesizer, len(toolbox.versions) - 1
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 266, 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 commented 4 years ago

Autosynth is still having trouble generating python-billingbudgets. :sob:

Here's the output from running synth.py:

ro/samples/python3.8/common.cfg
.kokoro/samples/python3.8/continuous.cfg
.kokoro/samples/python3.8/periodic.cfg
.kokoro/samples/python3.8/presubmit.cfg
.kokoro/test-samples.sh
.kokoro/trampoline.sh
CODE_OF_CONDUCT.md
CONTRIBUTING.rst
LICENSE
MANIFEST.in
docs/_static/custom.css
docs/_templates/layout.html
docs/conf.py.j2
docs/multiprocessing.rst
noxfile.py.j2
renovate.json
Skipping: samples/AUTHORING_GUIDE.md
Skipping: samples/CONTRIBUTING.md
scripts/decrypt-secrets.sh
scripts/readme-gen/readme_gen.py.j2
scripts/readme-gen/templates/README.tmpl.rst
scripts/readme-gen/templates/auth.tmpl.rst
scripts/readme-gen/templates/auth_api_key.tmpl.rst
scripts/readme-gen/templates/install_deps.tmpl.rst
scripts/readme-gen/templates/install_portaudio.tmpl.rst
setup.cfg
testing/.gitignore
Running session blacken
Creating virtual environment (virtualenv) using python3.6 in .nox/blacken
pip install black==19.3b0
black docs google tests noxfile.py setup.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/__init__.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/__init__.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets_v1beta1/__init__.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets_v1beta1/gapic/enums.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets_v1beta1/gapic/budget_service_client_config.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/docs/conf.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets_v1beta1/gapic/transports/budget_service_grpc_transport.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets_v1beta1/proto/budget_model_pb2_grpc.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets_v1beta1/proto/budget_service_pb2_grpc.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets_v1beta1/types.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets_v1beta1/gapic/budget_service_client.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/noxfile.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets_v1beta1/proto/budget_service_pb2.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/tests/unit/gapic/v1beta1/test_budget_service_client_v1beta1.py
reformatted /home/kbuilder/.cache/synthtool/python-billingbudgets/google/cloud/billing_budgets_v1beta1/proto/budget_model_pb2.py
All done! ✨ 🍰 ✨
16 files reformatted, 4 files left unchanged.
Session blacken was successful.
2020-06-23 07:01:52,266 synthtool [DEBUG] > Wrote metadata to synth.metadata.
DEBUG:synthtool:Wrote metadata to synth.metadata.
2020-06-23 07:01:52,316 autosynth [INFO] > Changed files:
2020-06-23 07:01:52,316 autosynth [INFO] > M .flake8
 M .gitignore
 M .kokoro/publish-docs.sh
 M .kokoro/release.sh
 M MANIFEST.in
 M docs/conf.py
 M google/cloud/billing_budgets_v1beta1/__init__.py
 M google/cloud/billing_budgets_v1beta1/gapic/budget_service_client.py
 M google/cloud/billing_budgets_v1beta1/gapic/enums.py
 M google/cloud/billing_budgets_v1beta1/gapic/transports/budget_service_grpc_transport.py
 M google/cloud/billing_budgets_v1beta1/proto/budget_model.proto
 M google/cloud/billing_budgets_v1beta1/proto/budget_model_pb2.py
 M google/cloud/billing_budgets_v1beta1/proto/budget_service.proto
 M google/cloud/billing_budgets_v1beta1/proto/budget_service_pb2.py
 M google/cloud/billing_budgets_v1beta1/proto/budget_service_pb2_grpc.py
 M google/cloud/billing_budgets_v1beta1/types.py
 M noxfile.py
 M synth.metadata
?? .kokoro/samples/
?? .kokoro/test-samples.sh
?? docs/multiprocessing.rst
?? scripts/
?? testing/
2020-06-23 07:01:52,316 autosynth [DEBUG] > Running: git log cf41866c6f14f10a07aa1e2a1260fc0a2727d889 -1 --no-decorate --pretty=%s
2020-06-23 07:01:52,320 autosynth [DEBUG] > Running: git log cf41866c6f14f10a07aa1e2a1260fc0a2727d889 -1 --no-decorate --pretty=%b%n%nSource-Author: %an <%ae>%nSource-Date: %ad
2020-06-23 07:01:52,324 autosynth [DEBUG] > Running: git add -A
2020-06-23 07:01:52,330 autosynth [DEBUG] > Running: git commit -m feat: migrate websecurityscanner v1alpha BUILD.bazel python part to use micro-gen

PiperOrigin-RevId: 317812187

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Jun 23 00:06:29 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: cf41866c6f14f10a07aa1e2a1260fc0a2727d889
Source-Link: https://github.com/googleapis/googleapis/commit/cf41866c6f14f10a07aa1e2a1260fc0a2727d889
[autosynth-281 5862cfb] feat: migrate websecurityscanner v1alpha BUILD.bazel python part to use micro-gen
 44 files changed, 1088 insertions(+), 276 deletions(-)
 create mode 100644 .kokoro/samples/lint/common.cfg
 create mode 100644 .kokoro/samples/lint/continuous.cfg
 create mode 100644 .kokoro/samples/lint/periodic.cfg
 create mode 100644 .kokoro/samples/lint/presubmit.cfg
 create mode 100644 .kokoro/samples/python3.6/common.cfg
 create mode 100644 .kokoro/samples/python3.6/continuous.cfg
 create mode 100644 .kokoro/samples/python3.6/periodic.cfg
 create mode 100644 .kokoro/samples/python3.6/presubmit.cfg
 create mode 100644 .kokoro/samples/python3.7/common.cfg
 create mode 100644 .kokoro/samples/python3.7/continuous.cfg
 create mode 100644 .kokoro/samples/python3.7/periodic.cfg
 create mode 100644 .kokoro/samples/python3.7/presubmit.cfg
 create mode 100644 .kokoro/samples/python3.8/common.cfg
 create mode 100644 .kokoro/samples/python3.8/continuous.cfg
 create mode 100644 .kokoro/samples/python3.8/periodic.cfg
 create mode 100644 .kokoro/samples/python3.8/presubmit.cfg
 create mode 100755 .kokoro/test-samples.sh
 create mode 100644 docs/multiprocessing.rst
 create mode 100755 scripts/decrypt-secrets.sh
 create mode 100644 scripts/readme-gen/readme_gen.py
 create mode 100644 scripts/readme-gen/templates/README.tmpl.rst
 create mode 100644 scripts/readme-gen/templates/auth.tmpl.rst
 create mode 100644 scripts/readme-gen/templates/auth_api_key.tmpl.rst
 create mode 100644 scripts/readme-gen/templates/install_deps.tmpl.rst
 create mode 100644 scripts/readme-gen/templates/install_portaudio.tmpl.rst
 create mode 100644 testing/.gitignore
2020-06-23 07:01:52,344 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 5862cfb feat: migrate websecurityscanner v1alpha BUILD.bazel python part to use micro-gen
2020-06-23 07:01:52,350 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-06-23 07:01:52,355 autosynth [DEBUG] > Running: git diff HEAD..autosynth-281 -- . :(exclude)synth.metadata
2020-06-23 07:01:52,359 autosynth [DEBUG] > Running: git diff HEAD..autosynth-281 -- synth.metadata
2020-06-23 07:01:52,364 autosynth [DEBUG] > Running: git diff HEAD..autosynth-282 -- . :(exclude)synth.metadata
2020-06-23 07:01:52,371 autosynth [DEBUG] > Running: git diff HEAD autosynth-282
2020-06-23 07:01:52,379 autosynth [DEBUG] > Running: git apply /tmpfs/tmp/tmpnev97j_j/autosynth-282.patch
2020-06-23 07:01:52,384 autosynth [DEBUG] > Running: git add -A
2020-06-23 07:01:52,390 autosynth [DEBUG] > Running: git commit -m chore(python): fix line breaks in template and use newer black version

* chore(python): fix line breaks in template

* fix: also update black version

Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
Source-Date: Tue Jun 23 02:33:35 2020 -0700
Source-Repo: googleapis/synthtool
Source-Sha: cf2eff09d0f5319a4dc5cdce2b6356d85af4a798
Source-Link: https://github.com/googleapis/synthtool/commit/cf2eff09d0f5319a4dc5cdce2b6356d85af4a798
[autosynth be498a1] chore(python): fix line breaks in template and use newer black version
 10 files changed, 55 insertions(+), 32 deletions(-)
2020-06-23 07:01:52,402 autosynth [DEBUG] > Running: git push --force origin autosynth
To https://github.com/googleapis/python-billingbudgets.git
 + 3ec70fb...be498a1 autosynth -> autosynth (forced update)
2020-06-23 07:01:56,547 autosynth [DEBUG] > Running: git log -17 --pretty=%b
2020-06-23 07:01:59,527 autosynth [DEBUG] > Running: git clean -fdx
Removing .nox/
Removing __pycache__/
Removing google/__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 649, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 506, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 629, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 367, in synthesize_loop
    synthesize_inner_loop(fork, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 411, in synthesize_inner_loop
    synthesizer, len(toolbox.versions) - 1
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 266, 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.