This repository was archived by the owner on Mar 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 134
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Synthesis failed for java-bigquery #519
Copy link
Copy link
Closed
Labels
api: bigqueryIssues related to the googleapis/java-bigquery API.Issues related to the googleapis/java-bigquery 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 java-bigquery. 💔
Here's the output from running synth.py:
mit, working tree clean
2020-07-08 15:18:34,647 synthtool [DEBUG] > 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/java-bigquery/synth.py", line 27, in <module>
'.kokoro/presubmit/java11-samples.cfg',
File "/tmpfs/src/github/synthtool/synthtool/languages/java.py", line 365, in common_templates
["samples/**/src/main/java/**/*.java", "samples/**/pom.xml"]
File "/tmpfs/src/github/synthtool/synthtool/gcp/snippets.py", line 121, in all_snippets
for snippet, code in all_snippets_from_file(file).items():
File "/tmpfs/src/github/synthtool/synthtool/gcp/snippets.py", line 105, in all_snippets_from_file
for snippet, lines in snippet_lines.items()
File "/tmpfs/src/github/synthtool/synthtool/gcp/snippets.py", line 105, in <dictcomp>
for snippet, lines in snippet_lines.items()
File "/tmpfs/src/github/synthtool/synthtool/gcp/snippets.py", line 49, in _trim_leading_whitespace
max_leading_spaces = min(leading_spaces)
ValueError: min() arg is an empty sequence
2020-07-08 15:18:34,717 autosynth [ERROR] > Synthesis failed
2020-07-08 15:18:34,718 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at a0540e4 deps: update dependency com.google.apis:google-api-services-bigquery to v2-rev20200625-1.30.9 (#517)
2020-07-08 15:18:34,724 autosynth [DEBUG] > Running: git checkout autosynth-self
Switched to branch 'autosynth-self'
2020-07-08 15:18:34,730 autosynth [ERROR] > Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.
2020-07-08 15:18:34,858 autosynth [DEBUG] > Running: git checkout a0540e4792818853a502bf56b363b26a60c5f5d9
Note: checking out 'a0540e4792818853a502bf56b363b26a60c5f5d9'.
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 a0540e4 deps: update dependency com.google.apis:google-api-services-bigquery to v2-rev20200625-1.30.9 (#517)
2020-07-08 15:18:34,865 autosynth [DEBUG] > Running: git checkout 799d8e6522c1ef7cb55a70d9ea0b15e045c3d00b
Previous HEAD position was 4f2c9f7 ci(java): run dependency test on Java 8 and 11 (#639)
HEAD is now at 799d8e6 fix: typeo in nodejs .gitattribute (#655)
2020-07-08 15:18:34,875 autosynth [DEBUG] > Running: git branch -f autosynth-12
2020-07-08 15:18:34,879 autosynth [DEBUG] > Running: git checkout autosynth-12
Switched to branch 'autosynth-12'
2020-07-08 15:18:34,885 autosynth [INFO] > Running synthtool
2020-07-08 15:18:34,885 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-07-08 15:18:34,885 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/java-bigquery/12/sponge_log.log
2020-07-08 15:18:34,887 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-07-08 15:18:35,121 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/java-bigquery/synth.py.
On branch autosynth-12
nothing to commit, working tree clean
2020-07-08 15:18:35,382 synthtool [DEBUG] > 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/java-bigquery/synth.py", line 27, in <module>
'.kokoro/presubmit/java11-samples.cfg',
File "/tmpfs/src/github/synthtool/synthtool/languages/java.py", line 365, in common_templates
["samples/**/src/main/java/**/*.java", "samples/**/pom.xml"]
File "/tmpfs/src/github/synthtool/synthtool/gcp/snippets.py", line 121, in all_snippets
for snippet, code in all_snippets_from_file(file).items():
File "/tmpfs/src/github/synthtool/synthtool/gcp/snippets.py", line 105, in all_snippets_from_file
for snippet, lines in snippet_lines.items()
File "/tmpfs/src/github/synthtool/synthtool/gcp/snippets.py", line 105, in <dictcomp>
for snippet, lines in snippet_lines.items()
File "/tmpfs/src/github/synthtool/synthtool/gcp/snippets.py", line 49, in _trim_leading_whitespace
max_leading_spaces = min(leading_spaces)
ValueError: min() arg is an empty sequence
2020-07-08 15:18:35,434 autosynth [ERROR] > Synthesis failed
2020-07-08 15:18:35,434 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at a0540e4 deps: update dependency com.google.apis:google-api-services-bigquery to v2-rev20200625-1.30.9 (#517)
2020-07-08 15:18:35,441 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-07-08 15:18:35,447 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the googleapis/java-bigquery API.Issues related to the googleapis/java-bigquery 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.