This repository was archived by the owner on Feb 28, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 28, 2024. It is now read-only.
Synthesis failed for python-asset #136
Copy link
Copy link
Closed
Labels
🚨This issue needs some love.This issue needs some love.api: cloudassetIssues related to the googleapis/python-asset API.Issues related to the googleapis/python-asset API.autosynth failurepriority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Hello! Autosynth couldn't regenerate python-asset. 💔
Here's the output from running synth.py:
autosynth [DEBUG] > Running: git log -1 --pretty=%at 69629b64b83c6421d616be2b8e11795738ec8a6c
2020-12-12 05:33:35,059 autosynth [DEBUG] > Running: git log -1 --pretty=%at f94318521f63085b9ccb43d42af89f153fb39f15
2020-12-12 05:33:35,062 autosynth [DEBUG] > Running: git log -1 --pretty=%at 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1
2020-12-12 05:33:35,065 autosynth [DEBUG] > Running: git log -1 --pretty=%at 5d11bd2888c38ce1fb6fa6bf25494a4219a73928
2020-12-12 05:33:35,068 autosynth [DEBUG] > Running: git log -1 --pretty=%at 3559dd8cb634347737632776ef4089443eacdb4f
2020-12-12 05:33:35,071 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7d1ee3207371ef72a1ca931a0964c4007e687280
2020-12-12 05:33:35,074 autosynth [DEBUG] > Running: git log -1 --pretty=%at 352f25621c28d2fa0784984ea0ed5ea697aa1525
2020-12-12 05:33:35,077 autosynth [DEBUG] > Running: git log -1 --pretty=%at 996775eca5fd934edac3c2ae34b80ff0395b1717
2020-12-12 05:33:35,081 autosynth [DEBUG] > Running: git checkout e5d67ecf628c13b3fa7b89aadb95a41c9405fee0
Note: checking out 'e5d67ecf628c13b3fa7b89aadb95a41c9405fee0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at e5d67ec chore(deps): update dependency google-cloud-storage to v1.34.0 (#135)
2020-12-12 05:33:35,092 autosynth [DEBUG] > Running: git checkout dd372aa22ded7a8ba6f0e03a80e06358a3fa0907
Note: checking out 'dd372aa22ded7a8ba6f0e03a80e06358a3fa0907'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at dd372aa2 fix: remove client recv msg limit fix: add enums to `types/__init__.py`
2020-12-12 05:33:35,106 autosynth [DEBUG] > Running: git checkout 996775eca5fd934edac3c2ae34b80ff0395b1717
Note: checking out '996775eca5fd934edac3c2ae34b80ff0395b1717'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 996775e fix(python): skip samples readmegen in synthtool (#875)
2020-12-12 05:33:35,113 autosynth [DEBUG] > Running: git branch -f autosynth-162
2020-12-12 05:33:35,116 autosynth [DEBUG] > Running: git checkout autosynth-162
Switched to branch 'autosynth-162'
2020-12-12 05:33:35,121 autosynth [INFO] > Running synthtool
2020-12-12 05:33:35,121 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-12 05:33:35,121 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-asset/162/sponge_log.log
2020-12-12 05:33:35,123 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-12 05:33:35,344 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/python-asset/synth.py.
On branch autosynth-162
nothing to commit, working tree clean
2020-12-12 05:33:35,482 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-12 05:33:35,487 synthtool [DEBUG] > Ensuring dependencies.
2020-12-12 05:33:35,497 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-12-12 05:33:35,502 synthtool [DEBUG] > Cloning googleapis.
2020-12-12 05:33:35,502 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-12-12 05:33:35,505 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1beta1:asset-v1beta1-py.
2020-12-12 05:33:48,488 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/cloud/asset/v1beta1:asset-v1beta1-py:
Loading:
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.37.1.zip) = b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "b9a321eaa612c69ad98850fde896b79702707d27d15b40224ab6312f28b09b60"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
- <builtin>
- /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:241:1
Loading: 0 packages loaded
Loading: 0 packages loaded
ERROR: Skipping '//google/cloud/asset/v1beta1:asset-v1beta1-py': no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
- /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
WARNING: Target pattern parsing failed.
ERROR: no such package 'google/cloud/asset/v1beta1': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
- /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1
INFO: Elapsed time: 12.974s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
Traceback (most recent call last):
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
main()
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
spec.loader.exec_module(synth_module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/kbuilder/.cache/synthtool/python-asset/synth.py", line 36, in <module>
bazel_target=f"//google/cloud/asset/{version}:asset-{version}-py",
File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in py_library
return self._generate_code(service, version, "python", **kwargs)
File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 193, in _generate_code
shell.run(bazel_run_args)
File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
raise exc
File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
encoding="utf-8",
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/asset/v1beta1:asset-v1beta1-py']' returned non-zero exit status 1.
2020-12-12 05:33:48,551 autosynth [ERROR] > Synthesis failed
2020-12-12 05:33:48,552 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at e5d67ec chore(deps): update dependency google-cloud-storage to v1.34.0 (#135)
2020-12-12 05:33:48,558 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-12 05:33:48,563 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
main()
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
return _inner_main(temp_dir)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
synthesizer.synthesize(synth_log_path, self.environ)
File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
synth_proc.check_returncode() # Raise an exception.
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.
Google internal developers can see the full log here.
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.api: cloudassetIssues related to the googleapis/python-asset API.Issues related to the googleapis/python-asset API.autosynth failurepriority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Activity
yoshi-automation commentedon Dec 13, 2020
Autosynth is still having trouble generating python-asset. 😭
Here's the output from running
synth.py:Google internal developers can see the full log here.
yoshi-automation commentedon Dec 14, 2020
Autosynth is still having trouble generating python-asset. 😭
Here's the output from running
synth.py:Google internal developers can see the full log here.
yoshi-automation commentedon Dec 15, 2020
Autosynth is still having trouble generating python-asset. 😭
Here's the output from running
synth.py:Google internal developers can see the full log here.
yoshi-automation commentedon Dec 16, 2020
Autosynth is still having trouble generating python-asset. 😭
Here's the output from running
synth.py:Google internal developers can see the full log here.
yoshi-automation commentedon Dec 17, 2020
Autosynth is still having trouble generating python-asset. 😭
Here's the output from running
synth.py:Google internal developers can see the full log here.
yoshi-automation commentedon Dec 18, 2020
Autosynth is still having trouble generating python-asset. 😭
Here's the output from running
synth.py:Google internal developers can see the full log here.
yoshi-automation commentedon Dec 19, 2020
Autosynth is still having trouble generating python-asset. 😭
Here's the output from running
synth.py:Google internal developers can see the full log here.
yoshi-automation commentedon Dec 20, 2020
Autosynth is still having trouble generating python-asset. 😭
Here's the output from running
synth.py:Google internal developers can see the full log here.
yoshi-automation commentedon Dec 21, 2020
Autosynth is still having trouble generating python-asset. 😭
Here's the output from running
synth.py:Google internal developers can see the full log here.
yoshi-automation commentedon Dec 22, 2020
Autosynth is still having trouble generating python-asset. 😭
Here's the output from running
synth.py:Google internal developers can see the full log here.
busunkim96 commentedon Dec 22, 2020
Failure was due to v1beta1 being removed. Addressed in #127