googleapis/python-datastore

Synthesis failed for python-datastore

yoshi-automation opened this issue ยท 0 comments

Hello! Autosynth couldn't regenerate python-datastore. ๐Ÿ’”

Please investigate and fix this issue within 5 business days. While it remains broken,
this library cannot be updated with changes to the python-datastore API, and the library grows
stale.

See https://github.com/googleapis/synthtool/blob/master/autosynth/TroubleShooting.md
for trouble shooting tips.

Here's the output from running synth.py:

el>
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator/archive/v2.6.2.zip) = e8f05e7f106d14c30ac3f290d1da8bb64e7774da93b5a47373ac96aec0d83af0
DEBUG: Rule 'com_google_api_codegen' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "e8f05e7f106d14c30ac3f290d1da8bb64e7774da93b5a47373ac96aec0d83af0"
DEBUG: Repository com_google_api_codegen instantiated at:
  /h/.cache/synthtool/googleapis/WORKSPACE:77:13: in <toplevel>
Repository rule http_archive defined at:
  /h/.cache/bazel/_bazel_kbuilder/b5de94aa84a8cf499aaad6667c1b1a91/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/bazelbuild/rules_python/archive/748aa53d7701e71101dfd15d800e100f6ff8e5d1.zip) = d3e40ca3b7e00b72d2b1585e0b3396bcce50f0fc692e2b7c91d8b0dc471e3eaf
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "d3e40ca3b7e00b72d2b1585e0b3396bcce50f0fc692e2b7c91d8b0dc471e3eaf"
DEBUG: Repository rules_python instantiated at:
  /h/.cache/synthtool/googleapis/WORKSPACE:42:13: in <toplevel>
Repository rule http_archive defined at:
  /h/.cache/bazel/_bazel_kbuilder/b5de94aa84a8cf499aaad6667c1b1a91/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: SHA256 (https://github.com/googleapis/gapic-generator-python/archive/v0.35.9.zip) = 02706f88c0ec491b7ecb012569a5f9acb858e156b896072fd60307280bd2a685
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "02706f88c0ec491b7ecb012569a5f9acb858e156b896072fd60307280bd2a685"
DEBUG: Repository gapic_generator_python instantiated at:
  /h/.cache/synthtool/googleapis/WORKSPACE:240:13: in <toplevel>
Repository rule http_archive defined at:
  /h/.cache/bazel/_bazel_kbuilder/b5de94aa84a8cf499aaad6667c1b1a91/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
Loading: 0 packages loaded
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-go/archive/v0.15.2.tar.gz) = 62faf40306288808913b6229be6b708f70e815fbf3d3d20edc6c553f1e17177b
DEBUG: Rule 'com_googleapis_gapic_generator_go' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "62faf40306288808913b6229be6b708f70e815fbf3d3d20edc6c553f1e17177b"
DEBUG: Repository com_googleapis_gapic_generator_go instantiated at:
  /h/.cache/synthtool/googleapis/WORKSPACE:278:13: in <toplevel>
Repository rule http_archive defined at:
  /h/.cache/bazel/_bazel_kbuilder/b5de94aa84a8cf499aaad6667c1b1a91/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: SHA256 (https://github.com/googleapis/gapic-generator-typescript/archive/v1.1.0.tar.gz) = 37799a8ce876061ffb27d79b69d830f11bf2574616a2d7f9cc1e1530e48686df
DEBUG: Rule 'gapic_generator_typescript' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "37799a8ce876061ffb27d79b69d830f11bf2574616a2d7f9cc1e1530e48686df"
DEBUG: Repository gapic_generator_typescript instantiated at:
  /h/.cache/synthtool/googleapis/WORKSPACE:297:13: in <toplevel>
Repository rule http_archive defined at:
  /h/.cache/bazel/_bazel_kbuilder/b5de94aa84a8cf499aaad6667c1b1a91/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: SHA256 (https://github.com/googleapis/gapic-generator-csharp/archive/v1.3.1.zip) = 1118448d4c3db2a443e0bc3bf240de749adbae3311703e264d14213041b6f1c3
DEBUG: Rule 'gapic_generator_csharp' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "1118448d4c3db2a443e0bc3bf240de749adbae3311703e264d14213041b6f1c3"
DEBUG: Repository gapic_generator_csharp instantiated at:
  /h/.cache/synthtool/googleapis/WORKSPACE:346:13: in <toplevel>
Repository rule http_archive defined at:
  /h/.cache/bazel/_bazel_kbuilder/b5de94aa84a8cf499aaad6667c1b1a91/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
Loading: 0 packages loaded
INFO: SHA256 (https://github.com/googleapis/gapic-generator-ruby/archive/9cc95d8f4e05bdfe4ea9c67e6ca670f27c01c8f2.zip) = cfa78149b54f69f991b9f5fd1f5f8c68ead8b8b52679a9bd48afdfb3f5a32e41
DEBUG: Rule 'gapic_generator_ruby' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cfa78149b54f69f991b9f5fd1f5f8c68ead8b8b52679a9bd48afdfb3f5a32e41"
DEBUG: Repository gapic_generator_ruby instantiated at:
  /h/.cache/synthtool/googleapis/WORKSPACE:360:13: in <toplevel>
Repository rule http_archive defined at:
  /h/.cache/bazel/_bazel_kbuilder/b5de94aa84a8cf499aaad6667c1b1a91/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
ERROR: /h/.cache/bazel/_bazel_kbuilder/b5de94aa84a8cf499aaad6667c1b1a91/external/com_google_api_codegen/rules_gapic/python/py_gapic_pkg.bzl:53:59: invalid escape sequence: \;. You can enable unknown escape sequences by passing the flag --incompatible_restrict_string_escapes=false
ERROR: Skipping '//google/datastore/v1:datastore-v1-py': error loading package 'google/datastore/v1': in /h/.cache/bazel/_bazel_kbuilder/b5de94aa84a8cf499aaad6667c1b1a91/external/com_google_googleapis_imports/imports.bzl: Extension 'rules_gapic/python/py_gapic_pkg.bzl' has errors
WARNING: Target pattern parsing failed.
ERROR: error loading package 'google/datastore/v1': in /h/.cache/bazel/_bazel_kbuilder/b5de94aa84a8cf499aaad6667c1b1a91/external/com_google_googleapis_imports/imports.bzl: Extension 'rules_gapic/python/py_gapic_pkg.bzl' has errors
INFO: Elapsed time: 31.069s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)
FAILED: Build did NOT complete successfully (1 packages loaded)
2021-05-18 05:52:51,230 synthtool [ERROR] > Failed executing bazel --max_idle_secs=240 build //google/datastore/v1:datastore-v1-py:

None
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/workspace/synthtool/__main__.py", line 102, in <module>
    main()
  File "/workspace/env/lib/python3.8/site-packages/click/core.py", line 1134, in __call__
    return self.main(*args, **kwargs)
  File "/workspace/env/lib/python3.8/site-packages/click/core.py", line 1059, in main
    rv = self.invoke(ctx)
  File "/workspace/env/lib/python3.8/site-packages/click/core.py", line 1401, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/workspace/env/lib/python3.8/site-packages/click/core.py", line 767, in invoke
    return __callback(*args, **kwargs)
  File "/workspace/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/h/.cache/synthtool/python-datastore/synth.py", line 25, in <module>
    library = gapic.py_library(
  File "/workspace/synthtool/gcp/gapic_bazel.py", line 52, in py_library
    return self._generate_code(service, version, "python", False, **kwargs)
  File "/workspace/synthtool/gcp/gapic_bazel.py", line 204, in _generate_code
    shell.run(bazel_run_args, hide_output=False)
  File "/workspace/synthtool/shell.py", line 39, in run
    raise exc
  File "/workspace/synthtool/shell.py", line 27, in run
    return subprocess.run(
  File "/usr/local/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bazel', '--max_idle_secs=240', 'build', '//google/datastore/v1:datastore-v1-py']' returned non-zero exit status 1.
2021-05-18 05:52:51,313 autosynth [ERROR] > Synthesis failed
2021-05-18 05:52:51,313 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 81fad04 chore: add library type to .repo-metadata.json (#169)
2021-05-18 05:52:51,318 autosynth [DEBUG] > Running: git checkout autosynth-self
Switched to branch 'autosynth-self'
2021-05-18 05:52:51,322 autosynth [ERROR] > Command '['/workspace/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.
2021-05-18 05:52:51,533 autosynth [INFO] > PR already exists: https://github.com/googleapis/python-datastore/pull/171
2021-05-18 05:52:51,533 autosynth [DEBUG] > Running: git clean -fdx
Removing .nox/
Removing __pycache__/
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/workspace/autosynth/synth.py", line 356, in <module>
    main()
  File "/workspace/autosynth/synth.py", line 191, in main
    return _inner_main(temp_dir)
  File "/workspace/autosynth/synth.py", line 336, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/workspace/autosynth/synth.py", line 95, in synthesize_loop
    synthesize_inner_loop(fork, synthesizer)
  File "/workspace/autosynth/synth.py", line 138, in synthesize_inner_loop
    if not toolbox.synthesize_version_in_new_branch(
  File "/workspace/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/workspace/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/usr/local/lib/python3.8/subprocess.py", line 448, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['/workspace/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.