Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Synthesis failed for java-compute #198

Closed
yoshi-automation opened this issue Sep 1, 2020 · 158 comments · Fixed by #250
Closed

Synthesis failed for java-compute #198

yoshi-automation opened this issue Sep 1, 2020 · 158 comments · Fixed by #250
Assignees
Labels
api: compute Issues related to the googleapis/java-compute API. autosynth failure priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@yoshi-automation
Copy link
Contributor

Hello! Autosynth couldn't regenerate java-compute. 💔

Here's the output from running synth.py:

synth.py', '--']
2020-09-01 14:20:37,029 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/30/sponge_log.log
2020-09-01 14:20:37,031 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-01 14:20:37,250 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-30
nothing to commit, working tree clean
2020-09-01 14:20:37,401 synthtool [DEBUG] > Ensuring dependencies.
2020-09-01 14:20:37,410 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-01 14:20:37,411 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-01 14:20:37,415 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-01 14:20:48,173 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target @bazel_tools//tools/build_defs/pkg:build_tar: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.682s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-01 14:20:48,251 autosynth [ERROR] > Synthesis failed
2020-09-01 14:20:48,251 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-01 14:20:48,268 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-01 14:20:48,277 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 Sep 1, 2020
@product-auto-label product-auto-label bot added the api: compute Issues related to the googleapis/java-compute API. label Sep 1, 2020
@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating java-compute. 😭

Here's the output from running synth.py:

h.py', '--']
2020-09-02 01:20:27,819 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/32/sponge_log.log
2020-09-02 01:20:27,821 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-02 01:20:28,024 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-32
nothing to commit, working tree clean
2020-09-02 01:20:28,162 synthtool [DEBUG] > Ensuring dependencies.
2020-09-02 01:20:28,171 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-02 01:20:28,172 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-02 01:20:28,176 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-02 01:20:38,108 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.874s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 20 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 20 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-02 01:20:38,152 autosynth [ERROR] > Synthesis failed
2020-09-02 01:20:38,152 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-02 01:20:38,163 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-02 01:20:38,171 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

a', 'synth.metadata', 'synth.py', '--']
2020-09-02 14:20:26,342 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/35/sponge_log.log
2020-09-02 14:20:26,344 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-02 14:20:26,561 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-35
nothing to commit, working tree clean
2020-09-02 14:20:26,712 synthtool [DEBUG] > Ensuring dependencies.
2020-09-02 14:20:26,722 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-02 14:20:26,723 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-02 14:20:26,727 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-02 14:20:36,587 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.792s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-02 14:20:36,647 autosynth [ERROR] > Synthesis failed
2020-09-02 14:20:36,648 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-02 14:20:36,659 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-02 14:20:36,669 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

synth.py', '--']
2020-09-03 01:25:38,256 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/38/sponge_log.log
2020-09-03 01:25:38,258 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-03 01:25:38,487 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-38
nothing to commit, working tree clean
2020-09-03 01:25:38,645 synthtool [DEBUG] > Ensuring dependencies.
2020-09-03 01:25:38,656 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-03 01:25:38,657 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-03 01:25:38,662 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-03 01:25:48,902 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.181s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-03 01:25:48,966 autosynth [ERROR] > Synthesis failed
2020-09-03 01:25:48,967 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-03 01:25:48,979 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-03 01:25:48,989 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

.py', '--']
2020-09-03 14:25:29,180 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/41/sponge_log.log
2020-09-03 14:25:29,183 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-03 14:25:29,427 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-41
nothing to commit, working tree clean
2020-09-03 14:25:29,586 synthtool [DEBUG] > Ensuring dependencies.
2020-09-03 14:25:29,597 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-03 14:25:29,598 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-03 14:25:29,603 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-03 14:25:39,969 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.296s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-03 14:25:40,058 autosynth [ERROR] > Synthesis failed
2020-09-03 14:25:40,059 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-03 14:25:40,076 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-03 14:25:40,092 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

', 'synth.metadata', 'synth.py', '--']
2020-09-04 01:25:27,469 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/43/sponge_log.log
2020-09-04 01:25:27,472 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-04 01:25:27,696 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-43
nothing to commit, working tree clean
2020-09-04 01:25:27,848 synthtool [DEBUG] > Ensuring dependencies.
2020-09-04 01:25:27,858 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-04 01:25:27,859 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-04 01:25:27,863 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-04 01:25:38,093 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
Loading: 0 packages loaded
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.169s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-04 01:25:38,171 autosynth [ERROR] > Synthesis failed
2020-09-04 01:25:38,172 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-04 01:25:38,187 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-04 01:25:38,201 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

.py', '--']
2020-09-04 14:25:12,757 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/44/sponge_log.log
2020-09-04 14:25:12,759 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-04 14:25:12,986 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-44
nothing to commit, working tree clean
2020-09-04 14:25:13,141 synthtool [DEBUG] > Ensuring dependencies.
2020-09-04 14:25:13,151 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-04 14:25:13,152 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-04 14:25:13,156 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-04 14:25:24,289 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 11.059s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-04 14:25:24,380 autosynth [ERROR] > Synthesis failed
2020-09-04 14:25:24,380 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-04 14:25:24,398 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-04 14:25:24,413 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

', 'synth.metadata', 'synth.py', '--']
2020-09-05 01:25:42,044 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/45/sponge_log.log
2020-09-05 01:25:42,046 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-05 01:25:42,280 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-45
nothing to commit, working tree clean
2020-09-05 01:25:42,436 synthtool [DEBUG] > Ensuring dependencies.
2020-09-05 01:25:42,447 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-05 01:25:42,448 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-05 01:25:42,452 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-05 01:25:52,823 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.305s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-05 01:25:52,921 autosynth [ERROR] > Synthesis failed
2020-09-05 01:25:52,922 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-05 01:25:52,939 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-05 01:25:52,954 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

h.py', '--']
2020-09-05 14:25:05,552 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/45/sponge_log.log
2020-09-05 14:25:05,554 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-05 14:25:05,775 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-45
nothing to commit, working tree clean
2020-09-05 14:25:05,928 synthtool [DEBUG] > Ensuring dependencies.
2020-09-05 14:25:05,939 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-05 14:25:05,940 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-05 14:25:05,944 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-05 14:25:15,773 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.774s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-05 14:25:15,833 autosynth [ERROR] > Synthesis failed
2020-09-05 14:25:15,834 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-05 14:25:15,846 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-05 14:25:15,857 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

.py', '--']
2020-09-06 01:25:53,414 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/47/sponge_log.log
2020-09-06 01:25:53,417 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-06 01:25:53,674 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-47
nothing to commit, working tree clean
2020-09-06 01:25:53,842 synthtool [DEBUG] > Ensuring dependencies.
2020-09-06 01:25:53,853 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-06 01:25:53,854 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-06 01:25:53,858 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-06 01:26:04,359 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.430s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-06 01:26:04,436 autosynth [ERROR] > Synthesis failed
2020-09-06 01:26:04,437 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-06 01:26:04,449 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-06 01:26:04,460 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

.py', '--']
2020-09-06 14:25:18,770 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/48/sponge_log.log
2020-09-06 14:25:18,773 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-06 14:25:18,988 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-48
nothing to commit, working tree clean
2020-09-06 14:25:19,140 synthtool [DEBUG] > Ensuring dependencies.
2020-09-06 14:25:19,151 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-06 14:25:19,151 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-06 14:25:19,156 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-06 14:25:29,357 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.130s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-06 14:25:29,444 autosynth [ERROR] > Synthesis failed
2020-09-06 14:25:29,445 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-06 14:25:29,462 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-06 14:25:29,477 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

.py', '--']
2020-09-07 01:24:58,885 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/48/sponge_log.log
2020-09-07 01:24:58,887 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-07 01:24:59,109 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-48
nothing to commit, working tree clean
2020-09-07 01:24:59,260 synthtool [DEBUG] > Ensuring dependencies.
2020-09-07 01:24:59,270 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-07 01:24:59,271 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-07 01:24:59,275 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-07 01:25:09,876 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.546s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-07 01:25:09,934 autosynth [ERROR] > Synthesis failed
2020-09-07 01:25:09,935 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-07 01:25:09,946 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-07 01:25:09,956 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

', 'synth.metadata', 'synth.py', '--']
2020-09-07 14:24:57,828 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/50/sponge_log.log
2020-09-07 14:24:57,830 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-07 14:24:58,051 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-50
nothing to commit, working tree clean
2020-09-07 14:24:58,201 synthtool [DEBUG] > Ensuring dependencies.
2020-09-07 14:24:58,211 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-07 14:24:58,212 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-07 14:24:58,216 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-07 14:25:08,670 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
Loading: 0 packages loaded
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.390s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-07 14:25:08,751 autosynth [ERROR] > Synthesis failed
2020-09-07 14:25:08,752 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-07 14:25:08,768 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-07 14:25:08,781 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

.py', '--']
2020-09-08 01:25:42,586 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/51/sponge_log.log
2020-09-08 01:25:42,589 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-08 01:25:42,812 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-51
nothing to commit, working tree clean
2020-09-08 01:25:42,966 synthtool [DEBUG] > Ensuring dependencies.
2020-09-08 01:25:42,976 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-08 01:25:42,977 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-08 01:25:42,981 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-08 01:25:53,599 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.555s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-08 01:25:53,690 autosynth [ERROR] > Synthesis failed
2020-09-08 01:25:53,691 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 0ca9fc0 test: fix more flaky network tests (#189)
2020-09-08 01:25:53,709 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-08 01:25:53,724 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 Sep 8, 2020
@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating java-compute. 😭

Here's the output from running synth.py:

EBUG] > log_file_path: /tmpfs/src/logs/java-compute/55/sponge_log.log
2020-09-08 14:42:13,788 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-08 14:42:14,006 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-55
nothing to commit, working tree clean
2020-09-08 14:42:14,153 synthtool [DEBUG] > Ensuring dependencies.
2020-09-08 14:42:14,163 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-08 14:42:14,164 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-08 14:42:14,167 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-08 14:42:23,970 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.736s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-08 14:42:24,043 autosynth [ERROR] > Synthesis failed
2020-09-08 14:42:24,043 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8145520 deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 (#197)
2020-09-08 14:42:24,059 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-08 14:42:24,073 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

EBUG] > log_file_path: /tmpfs/src/logs/java-compute/56/sponge_log.log
2020-09-09 01:29:02,224 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-09 01:29:02,442 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-56
nothing to commit, working tree clean
2020-09-09 01:29:02,591 synthtool [DEBUG] > Ensuring dependencies.
2020-09-09 01:29:02,602 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-09 01:29:02,603 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-09 01:29:02,607 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-09 01:29:12,644 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.984s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 20 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 20 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-09 01:29:12,701 autosynth [ERROR] > Synthesis failed
2020-09-09 01:29:12,701 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8145520 deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 (#197)
2020-09-09 01:29:12,713 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-09 01:29:12,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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

 14:29:28,603 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/58/sponge_log.log
2020-09-09 14:29:28,606 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-09 14:29:28,846 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-58
nothing to commit, working tree clean
2020-09-09 14:29:29,010 synthtool [DEBUG] > Ensuring dependencies.
2020-09-09 14:29:29,023 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-09 14:29:29,024 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-09 14:29:29,029 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-09 14:29:39,410 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.319s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 20 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 20 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-09 14:29:39,505 autosynth [ERROR] > Synthesis failed
2020-09-09 14:29:39,505 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8145520 deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 (#197)
2020-09-09 14:29:39,523 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-09 14:29:39,538 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

 01:29:11,298 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/61/sponge_log.log
2020-09-10 01:29:11,300 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-10 01:29:11,524 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-61
nothing to commit, working tree clean
2020-09-10 01:29:11,681 synthtool [DEBUG] > Ensuring dependencies.
2020-09-10 01:29:11,692 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-10 01:29:11,693 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-10 01:29:11,697 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-10 01:29:21,856 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.101s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 20 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 20 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-10 01:29:21,935 autosynth [ERROR] > Synthesis failed
2020-09-10 01:29:21,935 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8145520 deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 (#197)
2020-09-10 01:29:21,951 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-10 01:29:21,966 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 690, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

BUG] > log_file_path: /tmpfs/src/logs/java-compute/64/sponge_log.log
2020-09-10 14:37:43,689 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-10 14:37:43,913 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-64
nothing to commit, working tree clean
2020-09-10 14:37:44,068 synthtool [DEBUG] > Ensuring dependencies.
2020-09-10 14:37:44,080 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-10 14:37:44,081 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-10 14:37:44,085 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-10 14:37:55,741 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 11.591s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-10 14:37:55,826 autosynth [ERROR] > Synthesis failed
2020-09-10 14:37:55,827 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8145520 deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 (#197)
2020-09-10 14:37:55,839 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-10 14:37:55,850 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 692, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 541, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 672, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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.

@chingor13 chingor13 added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Sep 10, 2020
@yoshi-automation yoshi-automation removed the 🚨 This issue needs some love. label Sep 10, 2020
@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating java-compute. 😭

Here's the output from running synth.py:

og
2020-09-11 01:35:19,949 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-11 01:35:20,166 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-66
nothing to commit, working tree clean
2020-09-11 01:35:20,314 synthtool [DEBUG] > Ensuring dependencies.
2020-09-11 01:35:20,325 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-11 01:35:20,326 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-11 01:35:20,330 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-11 01:35:30,758 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded)
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.367s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 16 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 16 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-11 01:35:30,816 autosynth [ERROR] > Synthesis failed
2020-09-11 01:35:30,817 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8145520 deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 (#197)
2020-09-11 01:35:30,829 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-11 01:35:30,839 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 692, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 541, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 672, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

 14:35:02,406 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/66/sponge_log.log
2020-09-11 14:35:02,408 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-11 14:35:02,615 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-66
nothing to commit, working tree clean
2020-09-11 14:35:02,755 synthtool [DEBUG] > Ensuring dependencies.
2020-09-11 14:35:02,765 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-11 14:35:02,766 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-11 14:35:02,770 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-11 14:35:13,667 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.828s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-11 14:35:13,742 autosynth [ERROR] > Synthesis failed
2020-09-11 14:35:13,742 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8145520 deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 (#197)
2020-09-11 14:35:13,759 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-11 14:35:13,769 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 692, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 541, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 672, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

BUG] > log_file_path: /tmpfs/src/logs/java-compute/68/sponge_log.log
2020-09-12 01:35:30,317 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-12 01:35:30,540 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-68
nothing to commit, working tree clean
2020-09-12 01:35:30,693 synthtool [DEBUG] > Ensuring dependencies.
2020-09-12 01:35:30,705 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-12 01:35:30,706 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-12 01:35:30,710 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-12 01:35:41,957 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 11.187s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-12 01:35:42,019 autosynth [ERROR] > Synthesis failed
2020-09-12 01:35:42,019 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8145520 deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 (#197)
2020-09-12 01:35:42,031 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-12 01:35:42,042 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 692, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 541, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 672, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

BUG] > log_file_path: /tmpfs/src/logs/java-compute/68/sponge_log.log
2020-09-12 14:37:05,663 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-09-12 14:37:05,901 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-68
nothing to commit, working tree clean
2020-09-12 14:37:06,062 synthtool [DEBUG] > Ensuring dependencies.
2020-09-12 14:37:06,072 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-09-12 14:37:06,073 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-09-12 14:37:06,077 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-09-12 14:37:17,668 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 11.529s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 62, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-09-12 14:37:17,735 autosynth [ERROR] > Synthesis failed
2020-09-12 14:37:17,735 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8145520 deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 (#197)
2020-09-12 14:37:17,753 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-09-12 14:37:17,768 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 692, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 541, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 672, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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 java-compute. 😭

Here's the output from running synth.py:

0-11-06 01:26:56,574 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/357/sponge_log.log
2020-11-06 01:26:56,577 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-06 01:26:56,808 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-357
nothing to commit, working tree clean
2020-11-06 01:26:56,969 synthtool [DEBUG] > Ensuring dependencies.
2020-11-06 01:26:56,980 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-06 01:26:56,981 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-06 01:26:56,986 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-06 01:27:06,809 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.763s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-06 01:27:06,865 autosynth [ERROR] > Synthesis failed
2020-11-06 01:27:06,866 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-06 01:27:06,877 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-06 01:27:06,885 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 java-compute. 😭

Here's the output from running synth.py:

0-11-06 14:26:39,430 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/363/sponge_log.log
2020-11-06 14:26:39,432 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-06 14:26:39,646 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-363
nothing to commit, working tree clean
2020-11-06 14:26:39,791 synthtool [DEBUG] > Ensuring dependencies.
2020-11-06 14:26:39,801 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-06 14:26:39,802 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-06 14:26:39,806 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-06 14:26:49,414 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
Loading: 0 packages loaded
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.550s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-06 14:26:49,480 autosynth [ERROR] > Synthesis failed
2020-11-06 14:26:49,481 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-06 14:26:49,492 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-06 14:26:49,503 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 java-compute. 😭

Here's the output from running synth.py:

tosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/367/sponge_log.log
2020-11-07 01:27:52,688 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-07 01:27:52,899 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-367
nothing to commit, working tree clean
2020-11-07 01:27:53,043 synthtool [DEBUG] > Ensuring dependencies.
2020-11-07 01:27:53,053 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-07 01:27:53,054 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-07 01:27:53,058 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-07 01:28:04,352 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 11.177s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-07 01:28:04,429 autosynth [ERROR] > Synthesis failed
2020-11-07 01:28:04,429 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-07 01:28:04,440 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-07 01:28:04,449 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 java-compute. 😭

Here's the output from running synth.py:

th [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/368/sponge_log.log
2020-11-07 14:26:59,957 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-07 14:27:00,185 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-368
nothing to commit, working tree clean
2020-11-07 14:27:00,346 synthtool [DEBUG] > Ensuring dependencies.
2020-11-07 14:27:00,356 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-07 14:27:00,357 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-07 14:27:00,362 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-07 14:27:10,743 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.319s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 18 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 18 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-07 14:27:10,819 autosynth [ERROR] > Synthesis failed
2020-11-07 14:27:10,820 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-07 14:27:10,831 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-07 14:27:10,842 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 java-compute. 😭

Here's the output from running synth.py:

th [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/368/sponge_log.log
2020-11-08 01:26:40,263 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-08 01:26:40,484 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-368
nothing to commit, working tree clean
2020-11-08 01:26:40,636 synthtool [DEBUG] > Ensuring dependencies.
2020-11-08 01:26:40,646 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-08 01:26:40,647 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-08 01:26:40,650 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-08 01:26:50,983 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.270s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-08 01:26:51,044 autosynth [ERROR] > Synthesis failed
2020-11-08 01:26:51,044 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-08 01:26:51,056 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-08 01:26:51,066 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 java-compute. 😭

Here's the output from running synth.py:

th [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/368/sponge_log.log
2020-11-08 14:26:56,441 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-08 14:26:56,671 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-368
nothing to commit, working tree clean
2020-11-08 14:26:56,829 synthtool [DEBUG] > Ensuring dependencies.
2020-11-08 14:26:56,840 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-08 14:26:56,841 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-08 14:26:56,846 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-08 14:27:06,971 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.060s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 20 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 20 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-08 14:27:07,038 autosynth [ERROR] > Synthesis failed
2020-11-08 14:27:07,038 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-08 14:27:07,051 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-08 14:27:07,062 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 java-compute. 😭

Here's the output from running synth.py:

0-11-09 01:27:02,089 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/368/sponge_log.log
2020-11-09 01:27:02,091 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-09 01:27:02,323 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-368
nothing to commit, working tree clean
2020-11-09 01:27:02,480 synthtool [DEBUG] > Ensuring dependencies.
2020-11-09 01:27:02,491 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-09 01:27:02,492 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-09 01:27:02,497 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-09 01:27:12,552 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.994s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-09 01:27:12,616 autosynth [ERROR] > Synthesis failed
2020-11-09 01:27:12,616 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-09 01:27:12,628 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-09 01:27:12,639 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 java-compute. 😭

Here's the output from running synth.py:

th [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/376/sponge_log.log
2020-11-09 14:31:25,038 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-09 14:31:25,263 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-376
nothing to commit, working tree clean
2020-11-09 14:31:25,425 synthtool [DEBUG] > Ensuring dependencies.
2020-11-09 14:31:25,438 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-09 14:31:25,439 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-09 14:31:25,444 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-09 14:31:36,373 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.863s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-09 14:31:36,434 autosynth [ERROR] > Synthesis failed
2020-11-09 14:31:36,434 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-09 14:31:36,446 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-09 14:31:36,456 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 java-compute. 😭

Here's the output from running synth.py:

th [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/380/sponge_log.log
2020-11-10 01:53:17,314 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-10 01:53:17,529 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-380
nothing to commit, working tree clean
2020-11-10 01:53:17,685 synthtool [DEBUG] > Ensuring dependencies.
2020-11-10 01:53:17,697 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-10 01:53:17,698 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-10 01:53:17,702 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-10 01:53:28,978 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 11.218s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-10 01:53:29,067 autosynth [ERROR] > Synthesis failed
2020-11-10 01:53:29,067 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-10 01:53:29,079 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-10 01:53:29,092 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 java-compute. 😭

Here's the output from running synth.py:

th [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/384/sponge_log.log
2020-11-10 14:27:47,182 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-10 14:27:47,399 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-384
nothing to commit, working tree clean
2020-11-10 14:27:47,549 synthtool [DEBUG] > Ensuring dependencies.
2020-11-10 14:27:47,558 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-10 14:27:47,559 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-10 14:27:47,563 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-10 14:27:57,883 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.266s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-10 14:27:57,942 autosynth [ERROR] > Synthesis failed
2020-11-10 14:27:57,942 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-10 14:27:57,953 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-10 14:27:57,963 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 java-compute. 😭

Here's the output from running synth.py:

th [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/388/sponge_log.log
2020-11-11 01:27:37,739 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-11 01:27:37,953 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-388
nothing to commit, working tree clean
2020-11-11 01:27:38,101 synthtool [DEBUG] > Ensuring dependencies.
2020-11-11 01:27:38,112 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-11 01:27:38,113 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-11 01:27:38,117 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-11 01:27:49,171 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.994s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-11 01:27:49,253 autosynth [ERROR] > Synthesis failed
2020-11-11 01:27:49,253 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-11 01:27:49,270 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-11 01:27:49,284 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 java-compute. 😭

Here's the output from running synth.py:

0-11-11 14:26:07,213 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/395/sponge_log.log
2020-11-11 14:26:07,215 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-11 14:26:07,420 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-395
nothing to commit, working tree clean
2020-11-11 14:26:07,561 synthtool [DEBUG] > Ensuring dependencies.
2020-11-11 14:26:07,571 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-11 14:26:07,572 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-11 14:26:07,575 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-11 14:26:17,097 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
Loading: 0 packages loaded
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.461s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-11 14:26:17,153 autosynth [ERROR] > Synthesis failed
2020-11-11 14:26:17,154 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-11 14:26:17,165 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-11 14:26:17,175 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 java-compute. 😭

Here's the output from running synth.py:

th [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/398/sponge_log.log
2020-11-12 01:26:59,368 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-12 01:26:59,588 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-398
nothing to commit, working tree clean
2020-11-12 01:26:59,741 synthtool [DEBUG] > Ensuring dependencies.
2020-11-12 01:26:59,752 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-12 01:26:59,752 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-12 01:26:59,757 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-12 01:27:10,732 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
Loading: 0 packages loaded
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.913s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-12 01:27:10,809 autosynth [ERROR] > Synthesis failed
2020-11-12 01:27:10,809 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-12 01:27:10,826 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-12 01:27:10,836 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 java-compute. 😭

Here's the output from running synth.py:

th [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/405/sponge_log.log
2020-11-12 14:50:46,927 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-12 14:50:47,156 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-405
nothing to commit, working tree clean
2020-11-12 14:50:47,310 synthtool [DEBUG] > Ensuring dependencies.
2020-11-12 14:50:47,321 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-12 14:50:47,322 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-12 14:50:47,326 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-12 14:50:59,023 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 11.627s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-12 14:50:59,112 autosynth [ERROR] > Synthesis failed
2020-11-12 14:50:59,113 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-12 14:50:59,125 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-12 14:50:59,135 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 java-compute. 😭

Here's the output from running synth.py:

-11-13 01:36:40,939 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/407/sponge_log.log
2020-11-13 01:36:40,941 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-13 01:36:41,143 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-407
nothing to commit, working tree clean
2020-11-13 01:36:41,287 synthtool [DEBUG] > Ensuring dependencies.
2020-11-13 01:36:41,296 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-13 01:36:41,297 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-13 01:36:41,301 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-13 01:36:51,958 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.604s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-13 01:36:52,017 autosynth [ERROR] > Synthesis failed
2020-11-13 01:36:52,017 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-13 01:36:52,028 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-13 01:36:52,036 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 java-compute. 😭

Here's the output from running synth.py:

0-11-13 14:26:27,072 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/412/sponge_log.log
2020-11-13 14:26:27,074 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-13 14:26:27,291 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-412
nothing to commit, working tree clean
2020-11-13 14:26:27,438 synthtool [DEBUG] > Ensuring dependencies.
2020-11-13 14:26:27,448 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-13 14:26:27,449 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-13 14:26:27,453 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-13 14:26:36,668 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
Loading: 0 packages loaded
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.156s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-13 14:26:36,723 autosynth [ERROR] > Synthesis failed
2020-11-13 14:26:36,724 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-13 14:26:36,735 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-13 14:26:36,744 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 java-compute. 😭

Here's the output from running synth.py:

0-11-14 01:34:03,770 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/417/sponge_log.log
2020-11-14 01:34:03,772 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-14 01:34:04,012 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-417
nothing to commit, working tree clean
2020-11-14 01:34:04,171 synthtool [DEBUG] > Ensuring dependencies.
2020-11-14 01:34:04,182 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-14 01:34:04,183 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-14 01:34:04,187 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-14 01:34:14,028 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.788s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-14 01:34:14,092 autosynth [ERROR] > Synthesis failed
2020-11-14 01:34:14,093 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-14 01:34:14,104 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-14 01:34:14,114 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 java-compute. 😭

Here's the output from running synth.py:

-11-14 14:27:54,217 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/420/sponge_log.log
2020-11-14 14:27:54,219 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-14 14:27:54,439 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-420
nothing to commit, working tree clean
2020-11-14 14:27:54,590 synthtool [DEBUG] > Ensuring dependencies.
2020-11-14 14:27:54,600 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-14 14:27:54,601 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-14 14:27:54,605 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-14 14:28:04,850 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.192s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-14 14:28:04,923 autosynth [ERROR] > Synthesis failed
2020-11-14 14:28:04,923 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-14 14:28:04,936 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-14 14:28:04,947 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 java-compute. 😭

Here's the output from running synth.py:

gs/java-compute/420/sponge_log.log
2020-11-15 01:28:13,852 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-15 01:28:14,062 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-420
nothing to commit, working tree clean
2020-11-15 01:28:14,208 synthtool [DEBUG] > Ensuring dependencies.
2020-11-15 01:28:14,219 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-15 01:28:14,219 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-15 01:28:14,223 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-15 01:28:24,083 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
Loading: 0 packages loaded
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Loading: 0 packages loaded
    currently loading: gapic/google/compute/v1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target @bazel_tools//tools/build_defs/pkg:build_tar: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.806s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-15 01:28:24,145 autosynth [ERROR] > Synthesis failed
2020-11-15 01:28:24,145 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-15 01:28:24,157 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-15 01:28:24,168 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 java-compute. 😭

Here's the output from running synth.py:

0-11-15 14:27:49,838 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/421/sponge_log.log
2020-11-15 14:27:49,841 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-15 14:27:50,064 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-421
nothing to commit, working tree clean
2020-11-15 14:27:50,218 synthtool [DEBUG] > Ensuring dependencies.
2020-11-15 14:27:50,229 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-15 14:27:50,230 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-15 14:27:50,234 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-15 14:28:00,239 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 9.948s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-15 14:28:00,298 autosynth [ERROR] > Synthesis failed
2020-11-15 14:28:00,298 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-15 14:28:00,310 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-15 14:28:00,320 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 java-compute. 😭

Here's the output from running synth.py:

-11-16 01:28:21,590 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/422/sponge_log.log
2020-11-16 01:28:21,593 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-16 01:28:21,817 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-422
nothing to commit, working tree clean
2020-11-16 01:28:21,973 synthtool [DEBUG] > Ensuring dependencies.
2020-11-16 01:28:21,983 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-16 01:28:21,984 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-16 01:28:21,988 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-16 01:28:32,231 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.186s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-16 01:28:32,298 autosynth [ERROR] > Synthesis failed
2020-11-16 01:28:32,298 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-16 01:28:32,316 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-16 01:28:32,327 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 java-compute. 😭

Here's the output from running synth.py:

th [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/431/sponge_log.log
2020-11-16 14:28:37,612 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-16 14:28:37,841 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-431
nothing to commit, working tree clean
2020-11-16 14:28:38,005 synthtool [DEBUG] > Ensuring dependencies.
2020-11-16 14:28:38,020 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-16 14:28:38,021 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-16 14:28:38,026 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-16 14:28:48,772 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.672s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-16 14:28:48,857 autosynth [ERROR] > Synthesis failed
2020-11-16 14:28:48,857 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-16 14:28:48,875 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-16 14:28:48,890 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 java-compute. 😭

Here's the output from running synth.py:

-11-17 01:28:10,831 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-compute/436/sponge_log.log
2020-11-17 01:28:10,833 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-17 01:28:11,047 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-436
nothing to commit, working tree clean
2020-11-17 01:28:11,197 synthtool [DEBUG] > Ensuring dependencies.
2020-11-17 01:28:11,207 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-17 01:28:11,208 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-17 01:28:11,212 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-17 01:28:21,498 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.229s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-17 01:28:21,554 autosynth [ERROR] > Synthesis failed
2020-11-17 01:28:21,554 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b2413cd chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#244)
2020-11-17 01:28:21,565 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-17 01:28:21,574 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 java-compute. 😭

Here's the output from running synth.py:

log
2020-11-17 14:53:06,256 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-17 14:53:06,474 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-445
nothing to commit, working tree clean
2020-11-17 14:53:06,626 synthtool [DEBUG] > Ensuring dependencies.
2020-11-17 14:53:06,637 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-17 14:53:06,638 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-17 14:53:06,642 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-17 14:53:18,326 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded)
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 11.618s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-17 14:53:18,422 autosynth [ERROR] > Synthesis failed
2020-11-17 14:53:18,423 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 98b5455 chore(deps): bundle related dependencies to avoid conflicts during updates (#247)
2020-11-17 14:53:18,434 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-17 14:53:18,446 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 java-compute. 😭

Here's the output from running synth.py:

BUG] > log_file_path: /tmpfs/src/logs/java-compute/450/sponge_log.log
2020-11-18 01:36:37,862 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-18 01:36:38,070 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-450
nothing to commit, working tree clean
2020-11-18 01:36:38,217 synthtool [DEBUG] > Ensuring dependencies.
2020-11-18 01:36:38,227 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-18 01:36:38,228 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-18 01:36:38,231 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-18 01:36:48,618 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.333s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-18 01:36:48,678 autosynth [ERROR] > Synthesis failed
2020-11-18 01:36:48,678 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 98b5455 chore(deps): bundle related dependencies to avoid conflicts during updates (#247)
2020-11-18 01:36:48,689 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-18 01:36:48,698 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 java-compute. 😭

Here's the output from running synth.py:

BUG] > log_file_path: /tmpfs/src/logs/java-compute/464/sponge_log.log
2020-11-18 14:37:05,633 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-18 14:37:05,854 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-464
nothing to commit, working tree clean
2020-11-18 14:37:06,011 synthtool [DEBUG] > Ensuring dependencies.
2020-11-18 14:37:06,021 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-18 14:37:06,022 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-18 14:37:06,026 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-18 14:37:17,629 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
Loading: 0 packages loaded
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 11.548s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-18 14:37:17,696 autosynth [ERROR] > Synthesis failed
2020-11-18 14:37:17,696 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 98b5455 chore(deps): bundle related dependencies to avoid conflicts during updates (#247)
2020-11-18 14:37:17,708 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-18 14:37:17,718 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 java-compute. 😭

Here's the output from running synth.py:

BUG] > log_file_path: /tmpfs/src/logs/java-compute/466/sponge_log.log
2020-11-19 01:27:07,683 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-11-19 01:27:07,908 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-compute/synth.py.
On branch autosynth-466
nothing to commit, working tree clean
2020-11-19 01:27:08,062 synthtool [DEBUG] > Ensuring dependencies.
2020-11-19 01:27:08,073 synthtool [DEBUG] > Cloning discovery-artifact-manager.
2020-11-19 01:27:08,074 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/discovery-artifact-manager
2020-11-19 01:27:08,078 synthtool [DEBUG] > Generating code for: //gapic/google/compute/v1:google-cloud-compute-v1-java.
2020-11-19 01:27:18,561 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //gapic/google/compute/v1:google-cloud-compute-v1-java:

Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/protocolbuffers/protobuf/archive/fe1790ca0df67173702f70d5646b82f48f412b99.zip) = 419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "419f654d36998a51de2e0b79a67885ec48f8d803615ce66ec82cd15f54936730"
DEBUG: Call stack for the definition of repository 'com_google_protobuf' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:17:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gax-java/archive/v1.54.0.zip) = 61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d
DEBUG: Rule 'com_google_api_gax_java' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "61f813b2ad571a0ca59f9e28252a9958bb283198ab4dc827eb776c48dd13fc0d"
DEBUG: Call stack for the definition of repository 'com_google_api_gax_java' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:54:1
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/128224d3c06a23fe55a32abd5d3760515974291d.zip) = cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532
Loading: 0 packages loaded
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cb2cd312a6c6560d641531879d51cc6e1b5a17f1eff485234d502eb37c681532"
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/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:45:1
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/googleapis/archive/84c8ad4e52f8eec8f08a60636cfa597b86969b5c.zip) = eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141
DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "eccaa7c65f1ba78448c5bb3fbf2f1e8d60ec0f9b3c0e0eddf843cb7c7ea51141"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:109:5
 - /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/com_google_api_codegen/repositories.bzl:68:5
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:88:1
INFO: SHA256 (https://github.com/googleapis/protoc-java-resource-names-plugin/archive/7632facb0a1d9f76d9152eefe21422dc55e36524.zip) = 5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c
DEBUG: Rule 'com_google_protoc_java_resource_names_plugin' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "5a1e32596021450457a0f9926e8bc601fb4f8d07e634afc5845719d3510a4c9c"
DEBUG: Call stack for the definition of repository 'com_google_protoc_java_resource_names_plugin' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a6a947520debde4a04620f960b938b83/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
 - <builtin>
 - /home/kbuilder/.cache/synthtool/discovery-artifact-manager/WORKSPACE:82:1
Analyzing: target //gapic/google/compute/v1:google-cloud-compute-v1-java (1 packages loaded, 0 targets configured)
ERROR: While resolving toolchains for target //gapic/google/compute/v1:compute_java_gapic_test: 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 '//gapic/google/compute/v1:google-cloud-compute-v1-java' 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: 10.423s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)
FAILED: Build did NOT complete successfully (8 packages loaded, 21 targets configured)

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/java-compute/synth.py", line 33, in <module>
    discogapic = True,
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 61, in java_library
    service, version, "java", tar_strip_components=0, **kwargs
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 182, 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', '//gapic/google/compute/v1:google-cloud-compute-v1-java']' returned non-zero exit status 1.
2020-11-19 01:27:18,636 autosynth [ERROR] > Synthesis failed
2020-11-19 01:27:18,636 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 98b5455 chore(deps): bundle related dependencies to avoid conflicts during updates (#247)
2020-11-19 01:27:18,648 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-19 01:27:18,660 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.

gcf-merge-on-green bot pushed a commit that referenced this issue Nov 19, 2020
We will be replacing with a new generator soon

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

Successfully merging a pull request may close this issue.

2 participants