googleapis / nodejs-pubsub

Node.js client for Google Cloud Pub/Sub: Ingest event streams from anywhere, at any scale, for simple, reliable, real-time stream analytics.
https://cloud.google.com/pubsub/
Apache License 2.0
522 stars 227 forks source link

Synthesis failed for nodejs-pubsub #1170

Closed yoshi-automation closed 3 years ago

yoshi-automation commented 3 years ago

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

Here's the output from running synth.py:

it log -1 --pretty=%at c2de32114ec484aa708d32012d1fa8d75232daf5
2020-12-11 21:34:14,059 autosynth [DEBUG] > Running: git log -1 --pretty=%at 32af6da519a6b042e3da62008e2a75e991efb6b4
2020-12-11 21:34:14,061 autosynth [DEBUG] > Running: git log -1 --pretty=%at 69629b64b83c6421d616be2b8e11795738ec8a6c
2020-12-11 21:34:14,064 autosynth [DEBUG] > Running: git log -1 --pretty=%at f94318521f63085b9ccb43d42af89f153fb39f15
2020-12-11 21:34:14,067 autosynth [DEBUG] > Running: git log -1 --pretty=%at 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1
2020-12-11 21:34:14,070 autosynth [DEBUG] > Running: git log -1 --pretty=%at 5d11bd2888c38ce1fb6fa6bf25494a4219a73928
2020-12-11 21:34:14,072 autosynth [DEBUG] > Running: git log -1 --pretty=%at 3559dd8cb634347737632776ef4089443eacdb4f
2020-12-11 21:34:14,075 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7d1ee3207371ef72a1ca931a0964c4007e687280
2020-12-11 21:34:14,078 autosynth [DEBUG] > Running: git log -1 --pretty=%at 352f25621c28d2fa0784984ea0ed5ea697aa1525
2020-12-11 21:34:14,080 autosynth [DEBUG] > Running: git log -1 --pretty=%at 996775eca5fd934edac3c2ae34b80ff0395b1717
2020-12-11 21:34:14,084 autosynth [DEBUG] > Running: git checkout 15c9ffa0bbf9c29ae70330cb9abd7f9934a697b6
Note: checking out '15c9ffa0bbf9c29ae70330cb9abd7f9934a697b6'.

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 15c9ffa tests: add some diagnostics to this potentially flaky test to get more debug info if it happens again (#1167)
2020-12-11 21:34:14,113 autosynth [DEBUG] > Running: git checkout dd372aa22ded7a8ba6f0e03a80e06358a3fa0907
Note: checking out 'dd372aa22ded7a8ba6f0e03a80e06358a3fa0907'.

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 dd372aa2 fix: remove client recv msg limit fix: add enums to `types/__init__.py`
2020-12-11 21:34:14,136 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:14,142 autosynth [DEBUG] > Running: git branch -f autosynth-266
2020-12-11 21:34:14,145 autosynth [DEBUG] > Running: git checkout autosynth-266
Switched to branch 'autosynth-266'
2020-12-11 21:34:14,149 autosynth [INFO] > Running synthtool
2020-12-11 21:34:14,149 autosynth [INFO] > ['/usr/local/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-11 21:34:14,149 autosynth [DEBUG] > log_file_path: /kokoro/artifacts/logs/nodejs-pubsub/266/sponge_log.log
2020-12-11 21:34:14,151 autosynth [DEBUG] > Running: /usr/local/bin/python -m synthtool --metadata synth.metadata synth.py --
2020-12-11 21:34:14,387 synthtool [DEBUG] > Executing /root/.cache/synthtool/nodejs-pubsub/synth.py.
On branch autosynth-266
nothing to commit, working tree clean
2020-12-11 21:34:14,517 synthtool [DEBUG] > Ensuring dependencies.
DEBUG:synthtool:Ensuring dependencies.
2020-12-11 21:34:14,526 synthtool [DEBUG] > Using precloned repo /root/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /root/.cache/synthtool/synthtool
2020-12-11 21:34:14,530 synthtool [DEBUG] > Cloning googleapis.
DEBUG:synthtool:Cloning googleapis.
2020-12-11 21:34:14,531 synthtool [DEBUG] > Using precloned repo /root/.cache/synthtool/googleapis
DEBUG:synthtool:Using precloned repo /root/.cache/synthtool/googleapis
2020-12-11 21:34:14,534 synthtool [DEBUG] > Generating code for: //google/pubsub/v1:pubsub-v1-nodejs.
DEBUG:synthtool:Generating code for: //google/pubsub/v1:pubsub-v1-nodejs.
2020-12-11 21:37:24,967 synthtool [SUCCESS] > Generated code into /tmp/tmpywld3e3t.
SUCCESS:synthtool:Generated code into /tmp/tmpywld3e3t.
.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:37:25,192 synthtool [DEBUG] > Post-processing GAPIC library...
DEBUG:synthtool:Post-processing GAPIC library...
2020-12-11 21:37:25,192 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-pubsub/synth.py", line 25, in <module>
    node.postprocess_gapic_library()
  File "/synthtool/synthtool/languages/node.py", line 193, in postprocess_gapic_library
    install(hide_output=hide_output)
  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:37:25,250 autosynth [ERROR] > Synthesis failed
2020-12-11 21:37:25,250 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 15c9ffa tests: add some diagnostics to this potentially flaky test to get more debug info if it happens again (#1167)
2020-12-11 21:37:25,261 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-11 21:37:25,269 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-pubsub. :sob:

Here's the output from running synth.py:

it log -1 --pretty=%at c2de32114ec484aa708d32012d1fa8d75232daf5
2020-12-11 21:48:09,271 autosynth [DEBUG] > Running: git log -1 --pretty=%at 32af6da519a6b042e3da62008e2a75e991efb6b4
2020-12-11 21:48:09,274 autosynth [DEBUG] > Running: git log -1 --pretty=%at 69629b64b83c6421d616be2b8e11795738ec8a6c
2020-12-11 21:48:09,276 autosynth [DEBUG] > Running: git log -1 --pretty=%at f94318521f63085b9ccb43d42af89f153fb39f15
2020-12-11 21:48:09,279 autosynth [DEBUG] > Running: git log -1 --pretty=%at 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1
2020-12-11 21:48:09,283 autosynth [DEBUG] > Running: git log -1 --pretty=%at 5d11bd2888c38ce1fb6fa6bf25494a4219a73928
2020-12-11 21:48:09,285 autosynth [DEBUG] > Running: git log -1 --pretty=%at 3559dd8cb634347737632776ef4089443eacdb4f
2020-12-11 21:48:09,288 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7d1ee3207371ef72a1ca931a0964c4007e687280
2020-12-11 21:48:09,291 autosynth [DEBUG] > Running: git log -1 --pretty=%at 352f25621c28d2fa0784984ea0ed5ea697aa1525
2020-12-11 21:48:09,294 autosynth [DEBUG] > Running: git log -1 --pretty=%at 996775eca5fd934edac3c2ae34b80ff0395b1717
2020-12-11 21:48:09,297 autosynth [DEBUG] > Running: git checkout 15c9ffa0bbf9c29ae70330cb9abd7f9934a697b6
Note: checking out '15c9ffa0bbf9c29ae70330cb9abd7f9934a697b6'.

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 15c9ffa tests: add some diagnostics to this potentially flaky test to get more debug info if it happens again (#1167)
2020-12-11 21:48:09,326 autosynth [DEBUG] > Running: git checkout dd372aa22ded7a8ba6f0e03a80e06358a3fa0907
Note: checking out 'dd372aa22ded7a8ba6f0e03a80e06358a3fa0907'.

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 dd372aa2 fix: remove client recv msg limit fix: add enums to `types/__init__.py`
2020-12-11 21:48:09,381 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:09,388 autosynth [DEBUG] > Running: git branch -f autosynth-266
2020-12-11 21:48:09,391 autosynth [DEBUG] > Running: git checkout autosynth-266
Switched to branch 'autosynth-266'
2020-12-11 21:48:09,395 autosynth [INFO] > Running synthtool
2020-12-11 21:48:09,395 autosynth [INFO] > ['/usr/local/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-11 21:48:09,396 autosynth [DEBUG] > log_file_path: /kokoro/artifacts/logs/nodejs-pubsub/266/sponge_log.log
2020-12-11 21:48:09,397 autosynth [DEBUG] > Running: /usr/local/bin/python -m synthtool --metadata synth.metadata synth.py --
2020-12-11 21:48:09,601 synthtool [DEBUG] > Executing /root/.cache/synthtool/nodejs-pubsub/synth.py.
On branch autosynth-266
nothing to commit, working tree clean
2020-12-11 21:48:09,728 synthtool [DEBUG] > Ensuring dependencies.
DEBUG:synthtool:Ensuring dependencies.
2020-12-11 21:48:09,737 synthtool [DEBUG] > Using precloned repo /root/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /root/.cache/synthtool/synthtool
2020-12-11 21:48:09,742 synthtool [DEBUG] > Cloning googleapis.
DEBUG:synthtool:Cloning googleapis.
2020-12-11 21:48:09,742 synthtool [DEBUG] > Using precloned repo /root/.cache/synthtool/googleapis
DEBUG:synthtool:Using precloned repo /root/.cache/synthtool/googleapis
2020-12-11 21:48:09,746 synthtool [DEBUG] > Generating code for: //google/pubsub/v1:pubsub-v1-nodejs.
DEBUG:synthtool:Generating code for: //google/pubsub/v1:pubsub-v1-nodejs.
2020-12-11 21:51:08,793 synthtool [SUCCESS] > Generated code into /tmp/tmpbab430m5.
SUCCESS:synthtool:Generated code into /tmp/tmpbab430m5.
.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:51:09,029 synthtool [DEBUG] > Post-processing GAPIC library...
DEBUG:synthtool:Post-processing GAPIC library...
2020-12-11 21:51:09,029 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-pubsub/synth.py", line 25, in <module>
    node.postprocess_gapic_library()
  File "/synthtool/synthtool/languages/node.py", line 193, in postprocess_gapic_library
    install(hide_output=hide_output)
  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:51:09,087 autosynth [ERROR] > Synthesis failed
2020-12-11 21:51:09,087 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 15c9ffa tests: add some diagnostics to this potentially flaky test to get more debug info if it happens again (#1167)
2020-12-11 21:51:09,099 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-11 21:51:09,108 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-pubsub. :sob:

Here's the output from running synth.py:

ic.js
  38:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/detachSubscription.js
  38:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/getSubscription.js
  37:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/getSubscriptionPolicy.js
  38:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/getTopicPolicy.js
  38:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/listAllTopics.js
  33:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/listSubscriptions.js
  33:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/listTopicSubscriptions.js
  38:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/listenForErrors.js
  41:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/listenForMessages.js
  42:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/listenWithCustomAttributes.js
  41:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/modifyPushConfig.js
  42:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/opentelemetryTracing.js
  49:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/publishBatchedMessages.js
  49:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/publishMessage.js
  43:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/publishMessageWithCustomAttributes.js
  42:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/publishOrderedMessage.js
  47:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/publishWithRetrySettings.js
  45:24  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/quickstart.js
  24:26  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/removeDeadLetterPolicy.js
  42:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/resumePublish.js
  45:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/setSubscriptionPolicy.js
  38:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/setTopicPolicy.js
  38:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/subscribeWithFlowControlSettings.js
  49:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/synchronousPull.js
  43:24  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/synchronousPullWithDeliveryAttempts.js
  43:24  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/synchronousPullWithLeaseManagement.js
  45:24  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/system-test/quickstart.test.js
  17:26  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/system-test/subscriptions.test.js
  17:26  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/system-test/topics.test.js
  17:26  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/testSubscriptionPermissions.js
  38:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/testTopicPermissions.js
  38:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

/root/.cache/synthtool/nodejs-pubsub/samples/updateDeadLetterPolicy.js
  42:28  error  "@google-cloud/pubsub" is not found  node/no-missing-require

✖ 40 problems (40 errors, 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-pubsub/node_modules/gts/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/root/.cache/synthtool/nodejs-pubsub/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-pubsub/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-cloud/pubsub@2.7.0 fix: `gts fix`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @google-cloud/pubsub@2.7.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_09_13_373Z-debug.log
2020-12-11 22:09:13,381 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-pubsub/synth.py", line 25, in <module>
    node.postprocess_gapic_library()
  File "/synthtool/synthtool/languages/node.py", line 194, in postprocess_gapic_library
    fix(hide_output=hide_output)
  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:09:13,458 autosynth [ERROR] > Synthesis failed
2020-12-11 22:09:13,458 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 15c9ffa tests: add some diagnostics to this potentially flaky test to get more debug info if it happens again (#1167)
2020-12-11 22:09:13,504 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-11 22:09:13,535 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: