This repository was archived by the owner on Dec 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
Synthesis failed for python-kms #27
Copy link
Copy link
Closed
Labels
api: cloudkmsIssues related to the googleapis/python-kms API.Issues related to the googleapis/python-kms 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-kms. 💔
Here's the output from running synth.py:
vent <InotifyEvent: src_path=b'./google/cloud/kms_v1/services/key_management_service/client.py', wd=228, mask=IN_MODIFY, cookie=0, name=client.py>
reformatted /home/kbuilder/.cache/synthtool/python-kms/google/cloud/kms_v1/services/key_management_service/client.py
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/gapic/key_management_service_client.py', wd=227, mask=IN_MODIFY, cookie=0, name=key_management_service_client.py>
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/gapic/key_management_service_client.py', wd=227, mask=IN_MODIFY, cookie=0, name=key_management_service_client.py>
reformatted /home/kbuilder/.cache/synthtool/python-kms/google/cloud/kms_v1/gapic/key_management_service_client.py
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/types/__init__.py', wd=226, mask=IN_MODIFY, cookie=0, name=__init__.py>
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/types/__init__.py', wd=226, mask=IN_MODIFY, cookie=0, name=__init__.py>
reformatted /home/kbuilder/.cache/synthtool/python-kms/google/cloud/kms_v1/types/__init__.py
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/services/key_management_service/async_client.py', wd=228, mask=IN_MODIFY, cookie=0, name=async_client.py>
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/services/key_management_service/async_client.py', wd=228, mask=IN_MODIFY, cookie=0, name=async_client.py>
reformatted /home/kbuilder/.cache/synthtool/python-kms/google/cloud/kms_v1/services/key_management_service/async_client.py
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/types/resources.py', wd=226, mask=IN_MODIFY, cookie=0, name=resources.py>
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/types/resources.py', wd=226, mask=IN_MODIFY, cookie=0, name=resources.py>
reformatted /home/kbuilder/.cache/synthtool/python-kms/google/cloud/kms_v1/types/resources.py
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/services/key_management_service/transports/grpc.py', wd=229, mask=IN_MODIFY, cookie=0, name=grpc.py>
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/services/key_management_service/transports/grpc.py', wd=229, mask=IN_MODIFY, cookie=0, name=grpc.py>
reformatted /home/kbuilder/.cache/synthtool/python-kms/google/cloud/kms_v1/services/key_management_service/transports/grpc.py
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./noxfile.py', wd=1, mask=IN_MODIFY, cookie=0, name=noxfile.py>
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./noxfile.py', wd=1, mask=IN_MODIFY, cookie=0, name=noxfile.py>
reformatted /home/kbuilder/.cache/synthtool/python-kms/noxfile.py
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/types/service.py', wd=226, mask=IN_MODIFY, cookie=0, name=service.py>
reformatted /home/kbuilder/.cache/synthtool/python-kms/google/cloud/kms_v1/types/service.py
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/types/service.py', wd=226, mask=IN_MODIFY, cookie=0, name=service.py>
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./google/cloud/kms_v1/services/key_management_service/transports/grpc_asyncio.py', wd=229, mask=IN_MODIFY, cookie=0, name=grpc_asyncio.py>
reformatted /home/kbuilder/.cache/synthtool/python-kms/google/cloud/kms_v1/services/key_management_service/transports/grpc_asyncio.py
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./tests/unit/gapic/kms_v1/test_key_management_service.py', wd=16, mask=IN_MODIFY, cookie=0, name=test_key_management_service.py>
DEBUG:watchdog.observers.inotify_buffer:in-event <InotifyEvent: src_path=b'./tests/unit/gapic/kms_v1/test_key_management_service.py', wd=16, mask=IN_MODIFY, cookie=0, name=test_key_management_service.py>
reformatted /home/kbuilder/.cache/synthtool/python-kms/tests/unit/gapic/kms_v1/test_key_management_service.py
Oh no! 💥 💔 💥
17 files reformatted, 18 files left unchanged, 1 file failed to reformat.
Command black docs google tests noxfile.py setup.py failed with exit code 123
Session blacken failed.
2020-07-29 06:12:09,883 synthtool [ERROR] > Failed executing nox -s blacken:
None
ERROR:synthtool:Failed executing nox -s blacken:
None
2020-07-29 06:12:09,897 synthtool [DEBUG] > Wrote metadata to synth.metadata.
DEBUG:synthtool:Wrote metadata to synth.metadata.
Traceback (most recent call last):
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
main()
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
spec.loader.exec_module(synth_module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/kbuilder/.cache/synthtool/python-kms/synth.py", line 84, in <module>
s.shell.run(["nox", "-s", "blacken"], hide_output=False)
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 '['nox', '-s', 'blacken']' returned non-zero exit status 1.
2020-07-29 06:12:09,938 autosynth [ERROR] > Synthesis failed
2020-07-29 06:12:09,938 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at dd0c3db chore(deps): update dependency cryptography to v3 (#24)
2020-07-29 06:12:09,947 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-07-29 06:12:09,954 autosynth [DEBUG] > Running: git clean -fdx
Removing .nox/
Removing __pycache__/
Removing google/__pycache__/
Removing google/cloud/__pycache__/
Removing google/cloud/kms/
Removing google/cloud/kms_v1/py.typed
Removing google/cloud/kms_v1/services/
Removing google/cloud/kms_v1/types/
Removing mypy.ini
Removing scripts/fixup_kms_v1_keywords.py
Removing tests/unit/gapic/kms_v1/
Traceback (most recent call last):
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 367, in synthesize_loop
synthesize_inner_loop(fork, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 411, in synthesize_inner_loop
synthesizer, len(toolbox.versions) - 1
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 266, in synthesize_version_in_new_branch
synthesizer.synthesize(synth_log_path, self.environ)
File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
synth_proc.check_returncode() # Raise an exception.
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
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 657, in <module>
main()
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 506, in main
return _inner_main(temp_dir)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 637, 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
synthesize_loop_single_pr(toolbox, change_pusher, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 401, in synthesize_loop_single_pr
synthesize_inner_loop(toolbox, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 411, in synthesize_inner_loop
synthesizer, len(toolbox.versions) - 1
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 266, in synthesize_version_in_new_branch
synthesizer.synthesize(synth_log_path, self.environ)
File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
synth_proc.check_returncode() # Raise an exception.
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.
Google internal developers can see the full log here.
Metadata
Metadata
Assignees
Labels
api: cloudkmsIssues related to the googleapis/python-kms API.Issues related to the googleapis/python-kms 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.