Hello! Autosynth couldn't regenerate google-http-java-client. :broken_heart:
Here's the output from running synth.py
:
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/google-http-java-client/synth.py", line 21, in <module>
templates = common_templates.java_library()
File "/tmpfs/src/github/synthtool/synthtool/gcp/common.py", line 95, in java_library
return self._generic_library("java_library", **kwargs)
File "/tmpfs/src/github/synthtool/synthtool/gcp/common.py", line 57, in _generic_library
result = t.render(**kwargs)
File "/tmpfs/src/github/synthtool/synthtool/sources/templates.py", line 83, in render
_render_to_path(self.env, template_name, self.dir / subdir, kwargs)
File "/tmpfs/src/github/synthtool/synthtool/sources/templates.py", line 53, in _render_to_path
output.dump(fh)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/jinja2/environment.py", line 1313, in dump
fp.writelines(iterable)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/jinja2/environment.py", line 1357, in __next__
return self._next()
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/jinja2/environment.py", line 1125, in generate
yield self.environment.handle_exception()
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/home/kbuilder/.cache/synthtool/synthtool/synthtool/gcp/templates/java_library/.github/workflows/ci.yaml", line 12, in top-level template code
java: [{% if metadata['min_java_version'] <= 7 %}7, {% endif %}8, 11]
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'min_java_version'
2020-06-19 13:26:21,282 autosynth [ERROR] > Synthesis failed
2020-06-19 13:26:21,288 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at a82b980 chore(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.1.0 (#1050)
2020-06-19 13:26:21,295 autosynth [DEBUG] > Running: git checkout autosynth-synthtool
Switched to branch 'autosynth-synthtool'
2020-06-19 13:26:21,302 autosynth [ERROR] > Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.
2020-06-19 13:26:21,443 autosynth [DEBUG] > Running: git checkout a82b9808f112c240c213726356e610e3a9fb4e61
Note: checking out 'a82b9808f112c240c213726356e610e3a9fb4e61'.
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 a82b980 chore(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.1.0 (#1050)
2020-06-19 13:26:21,450 autosynth [DEBUG] > Running: git checkout 3e6fed750653a8f41a5efeca0bc16b756a9532bb
HEAD is now at 3e6fed7 Revert "ci(java): run dependency test on Java 8 and 11 (#633)" (#636)
2020-06-19 13:26:21,459 autosynth [DEBUG] > Running: git branch -f autosynth-70
2020-06-19 13:26:21,463 autosynth [DEBUG] > Running: git checkout autosynth-70
Switched to branch 'autosynth-70'
2020-06-19 13:26:21,469 autosynth [INFO] > Running synthtool
2020-06-19 13:26:21,470 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-06-19 13:26:21,470 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/google-http-java-client/70/sponge_log.log
2020-06-19 13:26:21,472 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-06-19 13:26:21,679 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-http-java-client/synth.py.
On branch autosynth-70
nothing to commit, working tree clean
2020-06-19 13:26:21,813 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
.github/CODEOWNERS
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/ISSUE_TEMPLATE/support_request.md
.github/PULL_REQUEST_TEMPLATE.md
.github/release-please.yml
.github/trusted-contribution.yml
.github/workflows/ci.yaml
2020-06-19 13:26:21,835 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/google-http-java-client/synth.py", line 21, in <module>
templates = common_templates.java_library()
File "/tmpfs/src/github/synthtool/synthtool/gcp/common.py", line 95, in java_library
return self._generic_library("java_library", **kwargs)
File "/tmpfs/src/github/synthtool/synthtool/gcp/common.py", line 57, in _generic_library
result = t.render(**kwargs)
File "/tmpfs/src/github/synthtool/synthtool/sources/templates.py", line 83, in render
_render_to_path(self.env, template_name, self.dir / subdir, kwargs)
File "/tmpfs/src/github/synthtool/synthtool/sources/templates.py", line 53, in _render_to_path
output.dump(fh)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/jinja2/environment.py", line 1313, in dump
fp.writelines(iterable)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/jinja2/environment.py", line 1357, in __next__
return self._next()
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/jinja2/environment.py", line 1125, in generate
yield self.environment.handle_exception()
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/home/kbuilder/.cache/synthtool/synthtool/synthtool/gcp/templates/java_library/.github/workflows/ci.yaml", line 12, in top-level template code
java: [{% if metadata['min_java_version'] <= 7 %}7, {% endif %}8, 11]
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'min_java_version'
2020-06-19 13:26:21,879 autosynth [ERROR] > Synthesis failed
2020-06-19 13:26:21,885 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at a82b980 chore(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.1.0 (#1050)
2020-06-19 13:26:21,893 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-06-19 13:26:21,900 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 649, in <module>
main()
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 498, in main
return _inner_main(temp_dir)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 629, in _inner_main
commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 393, in synthesize_loop
synthesize_inner_loop(toolbox, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 403, in synthesize_inner_loop
synthesizer, len(toolbox.versions) - 1
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 275, 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.
type: bug priority: p1 autosynth failure