googleapis / nodejs-proto-files

All of the Google API's protocol buffer files
Apache License 2.0
76 stars 18 forks source link

Synthesis failed for nodejs-proto-files #328

Closed yoshi-automation closed 3 years ago

yoshi-automation commented 3 years ago

Hello! Autosynth couldn't regenerate nodejs-proto-files. :broken_heart:

Here's the output from running synth.py:

G] > Running: git log -1 --pretty=%at 2c8aecedd55b0480fb4e123b6e07fa5b12953862
2020-12-11 21:34:06,239 autosynth [DEBUG] > Running: git log -1 --pretty=%at 1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b
2020-12-11 21:34:06,242 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279
2020-12-11 21:34:06,245 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7d652819519dfa24da9e14548232e4aaba71a11c
2020-12-11 21:34:06,248 autosynth [DEBUG] > Running: git log -1 --pretty=%at e89175cf074dccc4babb4eca66ae913696e47a71
2020-12-11 21:34:06,251 autosynth [DEBUG] > Running: git log -1 --pretty=%at d5fc0bcf9ea9789c5b0e3154a9e3b29e5cea6116
2020-12-11 21:34:06,254 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58
2020-12-11 21:34:06,257 autosynth [DEBUG] > Running: git log -1 --pretty=%at dc9903a8c30c3662b6098f0e4a97f221d67268b2
2020-12-11 21:34:06,260 autosynth [DEBUG] > Running: git log -1 --pretty=%at 9a7d9fbb7045c34c9d3d22c1ff766eeae51f04c9
2020-12-11 21:34:06,263 autosynth [DEBUG] > Running: git log -1 --pretty=%at 39b7149da4026765385403632db3c6f63db96b2c
2020-12-11 21:34:06,266 autosynth [DEBUG] > Running: git log -1 --pretty=%at a073c873f3928c561bdf87fdfbf1d081d1998984
2020-12-11 21:34:06,268 autosynth [DEBUG] > Running: git log -1 --pretty=%at 68742c6016bf0d16948a572633d17955a8737414
2020-12-11 21:34:06,271 autosynth [DEBUG] > Running: git log -1 --pretty=%at 91b34d7ffc37581e03eec8b16d08b84e46b82bbe
2020-12-11 21:34:06,274 autosynth [DEBUG] > Running: git log -1 --pretty=%at 943bb78606d035001123030067dffcc34f4645f2
2020-12-11 21:34:06,277 autosynth [DEBUG] > Running: git log -1 --pretty=%at 15013eff642a7e7e855aed5a29e6e83c39beba2a
2020-12-11 21:34:06,280 autosynth [DEBUG] > Running: git log -1 --pretty=%at c2de32114ec484aa708d32012d1fa8d75232daf5
2020-12-11 21:34:06,283 autosynth [DEBUG] > Running: git log -1 --pretty=%at 32af6da519a6b042e3da62008e2a75e991efb6b4
2020-12-11 21:34:06,286 autosynth [DEBUG] > Running: git log -1 --pretty=%at 69629b64b83c6421d616be2b8e11795738ec8a6c
2020-12-11 21:34:06,289 autosynth [DEBUG] > Running: git log -1 --pretty=%at f94318521f63085b9ccb43d42af89f153fb39f15
2020-12-11 21:34:06,292 autosynth [DEBUG] > Running: git log -1 --pretty=%at 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1
2020-12-11 21:34:06,295 autosynth [DEBUG] > Running: git log -1 --pretty=%at 5d11bd2888c38ce1fb6fa6bf25494a4219a73928
2020-12-11 21:34:06,298 autosynth [DEBUG] > Running: git log -1 --pretty=%at 3559dd8cb634347737632776ef4089443eacdb4f
2020-12-11 21:34:06,301 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7d1ee3207371ef72a1ca931a0964c4007e687280
2020-12-11 21:34:06,304 autosynth [DEBUG] > Running: git log -1 --pretty=%at 352f25621c28d2fa0784984ea0ed5ea697aa1525
2020-12-11 21:34:06,307 autosynth [DEBUG] > Running: git log -1 --pretty=%at 996775eca5fd934edac3c2ae34b80ff0395b1717
2020-12-11 21:34:06,310 autosynth [DEBUG] > Running: git checkout 1dd1a907bb59b19a1f9ff76546041e732cb9cd15
Note: checking out '1dd1a907bb59b19a1f9ff76546041e732cb9cd15'.

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 1dd1a90 chore: release 2.3.0 (#323)
2020-12-11 21:34:06,316 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-11 21:34:06,322 autosynth [DEBUG] > Running: git branch -f autosynth-34
2020-12-11 21:34:06,324 autosynth [DEBUG] > Running: git checkout autosynth-34
Switched to branch 'autosynth-34'
2020-12-11 21:34:06,328 autosynth [INFO] > Running synthtool
2020-12-11 21:34:06,328 autosynth [INFO] > ['/usr/local/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-11 21:34:06,328 autosynth [DEBUG] > log_file_path: /kokoro/artifacts/logs/nodejs-proto-files/34/sponge_log.log
2020-12-11 21:34:06,330 autosynth [DEBUG] > Running: /usr/local/bin/python -m synthtool --metadata synth.metadata synth.py --
2020-12-11 21:34:06,569 synthtool [DEBUG] > Executing /root/.cache/synthtool/nodejs-proto-files/synth.py.
On branch autosynth-34
nothing to commit, working tree clean
2020-12-11 21:34:06,729 synthtool [DEBUG] > Using precloned repo /root/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /root/.cache/synthtool/synthtool
.eslintignore
.eslintrc.json
.gitattributes
.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/workflows/ci.yaml
.kokoro/.gitattributes
.kokoro/common.cfg
.kokoro/continuous/node10/common.cfg
.kokoro/continuous/node10/docs.cfg
.kokoro/continuous/node10/test.cfg
.kokoro/continuous/node12/common.cfg
.kokoro/continuous/node12/lint.cfg
.kokoro/continuous/node12/samples-test.cfg
.kokoro/continuous/node12/system-test.cfg
.kokoro/continuous/node12/test.cfg
.kokoro/docs.sh
.kokoro/lint.sh
.kokoro/populate-secrets.sh
.kokoro/presubmit/node10/common.cfg
.kokoro/presubmit/node12/common.cfg
.kokoro/presubmit/node12/samples-test.cfg
.kokoro/presubmit/node12/system-test.cfg
.kokoro/presubmit/node12/test.cfg
.kokoro/publish.sh
.kokoro/release/docs-devsite.cfg
.kokoro/release/docs-devsite.sh
.kokoro/release/docs.cfg
.kokoro/release/docs.sh
.kokoro/release/publish.cfg
.kokoro/samples-test.sh
.kokoro/system-test.sh
.kokoro/test.bat
.kokoro/test.sh
.kokoro/trampoline.sh
.kokoro/trampoline_v2.sh
.mocharc.js
.nycrc
.prettierignore
.prettierrc.js
.trampolinerc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
api-extractor.json
renovate.json
samples/README.md
2020-12-11 21:34:06,892 synthtool [DEBUG] > Installing dependencies...
DEBUG:synthtool:Installing dependencies...
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/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 "/root/.cache/synthtool/nodejs-proto-files/synth.py", line 27, in <module>
    node.install()
  File "/synthtool/synthtool/languages/node.py", line 167, in install
    shell.run(["npm", "install"], hide_output=hide_output)
  File "/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/usr/local/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/local/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'npm': 'npm'
2020-12-11 21:34:06,961 autosynth [ERROR] > Synthesis failed
2020-12-11 21:34:06,962 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 1dd1a90 chore: release 2.3.0 (#323)
2020-12-11 21:34:06,969 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-11 21:34:06,974 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/usr/local/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating nodejs-proto-files. :sob:

Here's the output from running synth.py:

G] > Running: git log -1 --pretty=%at 2c8aecedd55b0480fb4e123b6e07fa5b12953862
2020-12-11 21:48:03,316 autosynth [DEBUG] > Running: git log -1 --pretty=%at 1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b
2020-12-11 21:48:03,319 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279
2020-12-11 21:48:03,322 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7d652819519dfa24da9e14548232e4aaba71a11c
2020-12-11 21:48:03,324 autosynth [DEBUG] > Running: git log -1 --pretty=%at e89175cf074dccc4babb4eca66ae913696e47a71
2020-12-11 21:48:03,327 autosynth [DEBUG] > Running: git log -1 --pretty=%at d5fc0bcf9ea9789c5b0e3154a9e3b29e5cea6116
2020-12-11 21:48:03,330 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58
2020-12-11 21:48:03,333 autosynth [DEBUG] > Running: git log -1 --pretty=%at dc9903a8c30c3662b6098f0e4a97f221d67268b2
2020-12-11 21:48:03,336 autosynth [DEBUG] > Running: git log -1 --pretty=%at 9a7d9fbb7045c34c9d3d22c1ff766eeae51f04c9
2020-12-11 21:48:03,338 autosynth [DEBUG] > Running: git log -1 --pretty=%at 39b7149da4026765385403632db3c6f63db96b2c
2020-12-11 21:48:03,341 autosynth [DEBUG] > Running: git log -1 --pretty=%at a073c873f3928c561bdf87fdfbf1d081d1998984
2020-12-11 21:48:03,344 autosynth [DEBUG] > Running: git log -1 --pretty=%at 68742c6016bf0d16948a572633d17955a8737414
2020-12-11 21:48:03,346 autosynth [DEBUG] > Running: git log -1 --pretty=%at 91b34d7ffc37581e03eec8b16d08b84e46b82bbe
2020-12-11 21:48:03,349 autosynth [DEBUG] > Running: git log -1 --pretty=%at 943bb78606d035001123030067dffcc34f4645f2
2020-12-11 21:48:03,352 autosynth [DEBUG] > Running: git log -1 --pretty=%at 15013eff642a7e7e855aed5a29e6e83c39beba2a
2020-12-11 21:48:03,355 autosynth [DEBUG] > Running: git log -1 --pretty=%at c2de32114ec484aa708d32012d1fa8d75232daf5
2020-12-11 21:48:03,357 autosynth [DEBUG] > Running: git log -1 --pretty=%at 32af6da519a6b042e3da62008e2a75e991efb6b4
2020-12-11 21:48:03,360 autosynth [DEBUG] > Running: git log -1 --pretty=%at 69629b64b83c6421d616be2b8e11795738ec8a6c
2020-12-11 21:48:03,363 autosynth [DEBUG] > Running: git log -1 --pretty=%at f94318521f63085b9ccb43d42af89f153fb39f15
2020-12-11 21:48:03,365 autosynth [DEBUG] > Running: git log -1 --pretty=%at 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1
2020-12-11 21:48:03,368 autosynth [DEBUG] > Running: git log -1 --pretty=%at 5d11bd2888c38ce1fb6fa6bf25494a4219a73928
2020-12-11 21:48:03,371 autosynth [DEBUG] > Running: git log -1 --pretty=%at 3559dd8cb634347737632776ef4089443eacdb4f
2020-12-11 21:48:03,374 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7d1ee3207371ef72a1ca931a0964c4007e687280
2020-12-11 21:48:03,376 autosynth [DEBUG] > Running: git log -1 --pretty=%at 352f25621c28d2fa0784984ea0ed5ea697aa1525
2020-12-11 21:48:03,379 autosynth [DEBUG] > Running: git log -1 --pretty=%at 996775eca5fd934edac3c2ae34b80ff0395b1717
2020-12-11 21:48:03,382 autosynth [DEBUG] > Running: git checkout 1dd1a907bb59b19a1f9ff76546041e732cb9cd15
Note: checking out '1dd1a907bb59b19a1f9ff76546041e732cb9cd15'.

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 1dd1a90 chore: release 2.3.0 (#323)
2020-12-11 21:48:03,387 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-11 21:48:03,393 autosynth [DEBUG] > Running: git branch -f autosynth-34
2020-12-11 21:48:03,396 autosynth [DEBUG] > Running: git checkout autosynth-34
Switched to branch 'autosynth-34'
2020-12-11 21:48:03,399 autosynth [INFO] > Running synthtool
2020-12-11 21:48:03,400 autosynth [INFO] > ['/usr/local/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-11 21:48:03,400 autosynth [DEBUG] > log_file_path: /kokoro/artifacts/logs/nodejs-proto-files/34/sponge_log.log
2020-12-11 21:48:03,401 autosynth [DEBUG] > Running: /usr/local/bin/python -m synthtool --metadata synth.metadata synth.py --
2020-12-11 21:48:03,606 synthtool [DEBUG] > Executing /root/.cache/synthtool/nodejs-proto-files/synth.py.
On branch autosynth-34
nothing to commit, working tree clean
2020-12-11 21:48:03,733 synthtool [DEBUG] > Using precloned repo /root/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /root/.cache/synthtool/synthtool
.eslintignore
.eslintrc.json
.gitattributes
.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/workflows/ci.yaml
.kokoro/.gitattributes
.kokoro/common.cfg
.kokoro/continuous/node10/common.cfg
.kokoro/continuous/node10/docs.cfg
.kokoro/continuous/node10/test.cfg
.kokoro/continuous/node12/common.cfg
.kokoro/continuous/node12/lint.cfg
.kokoro/continuous/node12/samples-test.cfg
.kokoro/continuous/node12/system-test.cfg
.kokoro/continuous/node12/test.cfg
.kokoro/docs.sh
.kokoro/lint.sh
.kokoro/populate-secrets.sh
.kokoro/presubmit/node10/common.cfg
.kokoro/presubmit/node12/common.cfg
.kokoro/presubmit/node12/samples-test.cfg
.kokoro/presubmit/node12/system-test.cfg
.kokoro/presubmit/node12/test.cfg
.kokoro/publish.sh
.kokoro/release/docs-devsite.cfg
.kokoro/release/docs-devsite.sh
.kokoro/release/docs.cfg
.kokoro/release/docs.sh
.kokoro/release/publish.cfg
.kokoro/samples-test.sh
.kokoro/system-test.sh
.kokoro/test.bat
.kokoro/test.sh
.kokoro/trampoline.sh
.kokoro/trampoline_v2.sh
.mocharc.js
.nycrc
.prettierignore
.prettierrc.js
.trampolinerc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
api-extractor.json
renovate.json
samples/README.md
2020-12-11 21:48:03,888 synthtool [DEBUG] > Installing dependencies...
DEBUG:synthtool:Installing dependencies...
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/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 "/root/.cache/synthtool/nodejs-proto-files/synth.py", line 27, in <module>
    node.install()
  File "/synthtool/synthtool/languages/node.py", line 167, in install
    shell.run(["npm", "install"], hide_output=hide_output)
  File "/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/usr/local/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/local/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'npm': 'npm'
2020-12-11 21:48:03,947 autosynth [ERROR] > Synthesis failed
2020-12-11 21:48:03,947 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 1dd1a90 chore: release 2.3.0 (#323)
2020-12-11 21:48:03,955 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-11 21:48:03,960 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/usr/local/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth is still having trouble generating nodejs-proto-files. :sob:

Here's the output from running synth.py:

reak on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated

> core-js@2.6.12 postinstall /root/.cache/synthtool/nodejs-proto-files/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> @compodoc/compodoc@1.1.11 postinstall /root/.cache/synthtool/nodejs-proto-files/node_modules/@compodoc/compodoc
> opencollective-postinstall || exit 0

Thank you for using @compodoc/compodoc!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/compodoc/donate

> protobufjs@6.10.2 postinstall /root/.cache/synthtool/nodejs-proto-files/node_modules/protobufjs
> node scripts/postinstall

npm WARN lifecycle google-proto-files@2.3.0~prepare: cannot run in wd google-proto-files@2.3.0 npm run compile && node ./build/tools/prepublish.js (wd=/root/.cache/synthtool/nodejs-proto-files)
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/live-server/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 970 packages from 859 contributors and audited 973 packages in 20.276s

81 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

2020-12-11 22:04:58,306 synthtool [DEBUG] > Running prelint...
DEBUG:synthtool:Running prelint...

> google-proto-files@2.3.0 prelint /root/.cache/synthtool/nodejs-proto-files
> cd samples; npm link ../; npm install

npm WARN lifecycle google-proto-files@2.3.0~prepare: cannot run in wd google-proto-files@2.3.0 npm run compile && node ./build/tools/prepublish.js (wd=/root/.cache/synthtool/nodejs-proto-files)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/live-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

audited 973 packages in 4.974s

81 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

/root/.nvm/versions/node/v14.15.1/lib/node_modules/google-proto-files -> /root/.cache/synthtool/nodejs-proto-files
/root/.cache/synthtool/nodejs-proto-files/samples/node_modules/google-proto-files -> /root/.nvm/versions/node/v14.15.1/lib/node_modules/google-proto-files -> /root/.cache/synthtool/nodejs-proto-files
npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 108 packages from 71 contributors and audited 125 packages in 4.716s

81 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

2020-12-11 22:05:10,579 synthtool [DEBUG] > Running fix...
DEBUG:synthtool:Running fix...

> google-proto-files@2.3.0 fix /root/.cache/synthtool/nodejs-proto-files
> gts fix

version: 14

/root/.cache/synthtool/nodejs-proto-files/samples/quickstart.js
  20:24  error  "google-proto-files" is not found  node/no-missing-require

✖ 1 problem (1 error, 0 warnings)

Error: Command failed with exit code 1: node ./node_modules/eslint/bin/eslint --fix **/*.ts **/*.js **/*.tsx **/*.jsx --no-error-on-unmatched-pattern
    at makeError (/root/.cache/synthtool/nodejs-proto-files/node_modules/gts/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/root/.cache/synthtool/nodejs-proto-files/node_modules/gts/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async run (/root/.cache/synthtool/nodejs-proto-files/node_modules/gts/build/src/cli.js:120:17) {
  shortMessage: 'Command failed with exit code 1: node ./node_modules/eslint/bin/eslint --fix **/*.ts **/*.js **/*.tsx **/*.jsx --no-error-on-unmatched-pattern',
  command: 'node ./node_modules/eslint/bin/eslint --fix **/*.ts **/*.js **/*.tsx **/*.jsx --no-error-on-unmatched-pattern',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! google-proto-files@2.3.0 fix: `gts fix`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the google-proto-files@2.3.0 fix script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-12-11T22_05_13_228Z-debug.log
2020-12-11 22:05:13,244 synthtool [ERROR] > Failed executing npm run fix:

None
ERROR:synthtool:Failed executing npm run fix:

None
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/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 "/root/.cache/synthtool/nodejs-proto-files/synth.py", line 28, in <module>
    node.fix()
  File "/synthtool/synthtool/languages/node.py", line 179, in fix
    shell.run(["npm", "run", "fix"], hide_output=hide_output)
  File "/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/usr/local/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['npm', 'run', 'fix']' returned non-zero exit status 1.
2020-12-11 22:05:13,314 autosynth [ERROR] > Synthesis failed
2020-12-11 22:05:13,314 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 1dd1a90 chore: release 2.3.0 (#323)
2020-12-11 22:05:13,326 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-11 22:05:13,333 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing node_modules/
Removing package-lock.json
Removing samples/node_modules/
Removing samples/package-lock.json
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/usr/local/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

yoshi-automation commented 3 years ago

Autosynth passed, closing! :green_heart: