googleapis / cloud-debug-nodejs

Node.js agent for Google Cloud Debugger: investigate your code’s behavior in production
https://cloud.google.com/debugger/
Apache License 2.0
168 stars 51 forks source link

Synthesis failed for cloud-debug-nodejs #880

Closed SurferJeffAtGoogle closed 4 years ago

SurferJeffAtGoogle commented 4 years ago

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

Here's the output from running synth.py:

inal-newline@2.0.0
├── merge-stream@2.0.0
├── is-stream@2.0.0
├── signal-exit@3.0.3
├── human-signals@1.1.1
├── onetime@5.1.0 (mimic-fn@2.1.0)
├── npm-run-path@4.0.1 (path-key@3.1.1)
├── cross-spawn@7.0.2 (path-key@3.1.1, shebang-command@2.0.0, which@2.0.2)
└── get-stream@5.1.0 (pump@3.0.0)

express@4.17.1 node_modules/express
├── escape-html@1.0.3
├── utils-merge@1.0.1
├── merge-descriptors@1.0.1
├── encodeurl@1.0.2
├── range-parser@1.2.1
├── vary@1.1.2
├── etag@1.8.1
├── parseurl@1.3.3
├── serve-static@1.14.1
├── fresh@0.5.2
├── safe-buffer@5.1.2
├── array-flatten@1.1.1
├── setprototypeof@1.1.1
├── statuses@1.5.0
├── cookie-signature@1.0.6
├── methods@1.1.2
├── content-type@1.0.4
├── path-to-regexp@0.1.7
├── content-disposition@0.5.3
├── cookie@0.4.0
├── depd@1.1.2
├── on-finished@2.3.0 (ee-first@1.1.1)
├── qs@6.7.0
├── finalhandler@1.1.2 (unpipe@1.0.0)
├── debug@2.6.9 (ms@2.0.0)
├── proxy-addr@2.0.6 (forwarded@0.1.2, ipaddr.js@1.9.1)
├── send@0.17.1 (destroy@1.0.4, ms@2.1.1, mime@1.6.0, http-errors@1.7.3)
├── accepts@1.3.7 (negotiator@0.6.2, mime-types@2.1.27)
├── type-is@1.6.18 (media-typer@0.3.0, mime-types@2.1.27)
└── body-parser@1.19.0 (bytes@3.1.0, http-errors@1.7.2, raw-body@2.4.0, iconv-lite@0.4.24)

mocha@7.1.2 node_modules/mocha
├── escape-string-regexp@1.0.5
├── browser-stdout@1.3.1
├── ms@2.1.1
├── strip-json-comments@2.0.1
├── ansi-colors@3.2.3
├── he@1.2.0
├── growl@1.10.5
├── debug@3.2.6
├── supports-color@6.0.0 (has-flag@3.0.0)
├── yargs-parser@13.1.2 (decamelize@1.2.0, camelcase@5.3.1)
├── which@1.3.1 (isexe@2.0.0)
├── diff@3.5.0
├── glob@7.1.3 (path-is-absolute@1.0.1, inherits@2.0.4, fs.realpath@1.0.0, inflight@1.0.6, once@1.4.0)
├── minimatch@3.0.4 (brace-expansion@1.1.11)
├── mkdirp@0.5.5 (minimist@1.2.5)
├── object.assign@4.1.0 (define-properties@1.1.3, object-keys@1.1.1, function-bind@1.1.1, has-symbols@1.0.1)
├── wide-align@1.1.3 (string-width@2.1.1)
├── find-up@3.0.0 (locate-path@3.0.0)
├── log-symbols@3.0.0 (chalk@2.4.2)
├── chokidar@3.3.0 (glob-parent@5.1.1, normalize-path@3.0.0, is-glob@4.0.1, is-binary-path@2.1.0, readdirp@3.2.0, anymatch@3.1.1, braces@3.0.2)
├── js-yaml@3.13.1 (esprima@4.0.1, argparse@1.0.10)
├── yargs@13.3.2 (require-main-filename@2.0.0, set-blocking@2.0.0, which-module@2.0.0, y18n@4.0.0, get-caller-file@2.0.5, require-directory@2.1.1, string-width@3.1.0, cliui@5.0.0)
├── node-environment-flags@1.0.6 (semver@5.7.1, object.getownpropertydescriptors@2.1.0)
└── yargs-unparser@1.6.0 (flat@4.1.0, lodash@4.17.15)
2020-05-15 09:44:19,448 synthtool [DEBUG] > Running fix...
DEBUG:synthtool:Running fix...

> @google-cloud/debug-agent@4.2.2 fix /usr/local/google/home/rennie/.cache/synthtool/cloud-debug-nodejs
> gts fix

version: 8
Error: gts requires node.js 10.x or up. You are currently running
      v8.11.1, which is not supported. Please upgrade to
      a safe, secure version of nodejs!
    at run (/usr/local/google/home/rennie/.cache/synthtool/cloud-debug-nodejs/node_modules/gts/build/src/cli.js:81:15)
    at Object.<anonymous> (/usr/local/google/home/rennie/.cache/synthtool/cloud-debug-nodejs/node_modules/gts/build/src/cli.js:142:1)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

npm ERR! Linux 5.2.17-1rodete3-amd64
npm ERR! argv "/usr/local/google/home/rennie/Downloads/node-v4.2.1-linux-x64/bin/node" "/usr/local/google/home/rennie/Downloads/node-v4.2.1-linux-x64/bin/npm" "run" "fix"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! @google-cloud/debug-agent@4.2.2 fix: `gts fix`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @google-cloud/debug-agent@4.2.2 fix script 'gts fix'.
npm ERR! This is most likely a problem with the @google-cloud/debug-agent package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gts fix
npm ERR! You can get their info via:
npm ERR!     npm owner ls @google-cloud/debug-agent
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /usr/local/google/home/rennie/.cache/synthtool/cloud-debug-nodejs/npm-debug.log
2020-05-15 09:44:20,476 synthtool [ERROR] > Failed executing npm run fix:

None
ERROR:synthtool:Failed executing npm run fix:

None
2020-05-15 09:44:20,476 synthtool [DEBUG] > Wrote metadata to synth.metadata.
DEBUG:synthtool:Wrote metadata to synth.metadata.
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 "/usr/local/google/home/rennie/gitrepos/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/usr/local/google/home/rennie/env3.6/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/google/home/rennie/env3.6/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/google/home/rennie/env3.6/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/google/home/rennie/env3.6/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/google/home/rennie/gitrepos/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 "/usr/local/google/home/rennie/.cache/synthtool/cloud-debug-nodejs/synth.py", line 29, in <module>
    node.fix()
  File "/usr/local/google/home/rennie/gitrepos/synthtool/synthtool/languages/node.py", line 179, in fix
    shell.run(["npm", "run", "fix"], hide_output=hide_output)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/usr/local/google/home/rennie/gitrepos/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.
.eslintignore
.eslintrc.json
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/ISSUE_TEMPLATE/support_request.md
.github/PULL_REQUEST_TEMPLATE.md
.github/publish.yml
.github/release-please.yml
.github/workflows/ci.yaml
.kokoro/common.cfg
.kokoro/continuous/node10/common.cfg
.kokoro/continuous/node10/docs.cfg
.kokoro/continuous/node10/lint.cfg
.kokoro/continuous/node10/samples-test.cfg
.kokoro/continuous/node10/system-test.cfg
.kokoro/continuous/node10/test.cfg
.kokoro/continuous/node12/common.cfg
.kokoro/continuous/node12/test.cfg
.kokoro/continuous/node8/common.cfg
.kokoro/continuous/node8/test.cfg
.kokoro/docs.sh
.kokoro/lint.sh
.kokoro/presubmit/node10/common.cfg
.kokoro/presubmit/node10/docs.cfg
.kokoro/presubmit/node10/lint.cfg
.kokoro/presubmit/node10/samples-test.cfg
.kokoro/presubmit/node10/system-test.cfg
.kokoro/presubmit/node10/test.cfg
.kokoro/presubmit/node12/common.cfg
.kokoro/presubmit/node12/test.cfg
.kokoro/presubmit/node8/common.cfg
.kokoro/presubmit/node8/test.cfg
.kokoro/presubmit/windows/common.cfg
.kokoro/presubmit/windows/test.cfg
.kokoro/publish.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
.mocharc.js
.nycrc
.prettierignore
.prettierrc.js
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
renovate.json
samples/README.md
2020-05-15 09:44:20,510 autosynth [ERROR] > Synthesis failed
2020-05-15 09:44:20,510 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 9d97672 build: do not fail builds on codecov errors (#528) (#875)
2020-05-15 09:44:20,520 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
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 "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 601, in <module>
    main()
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 473, in main
    return _inner_main(temp_dir)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 591, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 368, in synthesize_loop
    synthesize_inner_loop(toolbox, synthesizer)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 378, in synthesize_inner_loop
    synthesizer, len(toolbox.versions) - 1
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 266, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synthesizer.py", line 119, 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/google/home/rennie/env3.6/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

SurferJeffAtGoogle commented 4 years ago

Autosynth is still having trouble generating cloud-debug-nodejs. :sob:

Here's the output from running synth.py:

2020-05-15 10:25:49,345 autosynth [INFO] > logs will be written to: /usr/local/google/home/rennie/gitrepos/synthtool/logs/googleapis/cloud-debug-nodejs
2020-05-15 10:25:49,868 autosynth [DEBUG] > Running: git config --global core.excludesfile /usr/local/google/home/rennie/.autosynth-gitignore
2020-05-15 10:25:49,874 autosynth [DEBUG] > Running: git config user.name Jeffrey Rennie
2020-05-15 10:25:49,880 autosynth [DEBUG] > Running: git config user.email rennie@google.com
2020-05-15 10:25:49,886 autosynth [DEBUG] > Running: git config push.default simple
2020-05-15 10:25:49,892 autosynth [DEBUG] > Running: git branch -f autosynth
2020-05-15 10:25:49,898 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-05-15 10:25:50,387 autosynth [DEBUG] > Running: git rev-parse --show-toplevel
2020-05-15 10:25:50,397 autosynth [DEBUG] > Running: git log -1 --pretty=%H
2020-05-15 10:25:50,404 autosynth [DEBUG] > Running: git remote get-url origin
2020-05-15 10:25:50,876 autosynth [DEBUG] > Running: git log be74d3e532faa47eb59f1a0eaebde0860d1d8ab4..HEAD --pretty=%H --no-decorate
2020-05-15 10:25:50,883 autosynth [DEBUG] > Running: git log -1 --pretty=%at be74d3e532faa47eb59f1a0eaebde0860d1d8ab4
2020-05-15 10:25:50,890 autosynth [DEBUG] > Running: git log -1 --pretty=%at 4674113712c0c7ada19e6a8219d7963ff174b392
2020-05-15 10:25:50,896 autosynth [DEBUG] > Running: git log -1 --pretty=%at 5bbfd095faedfe273819d266f21e402192a29041
2020-05-15 10:25:50,902 autosynth [DEBUG] > Running: git log -1 --pretty=%at 4fa923bd3dafb91df8613accbe2230299cc5b98e
2020-05-15 10:25:50,909 autosynth [DEBUG] > Running: git log -1 --pretty=%at 55cdc844877d97139f25004229842624a6a86a02
2020-05-15 10:25:50,915 autosynth [DEBUG] > Running: git log -1 --pretty=%at 98c50772ec23295c64cf0d2ddf199ea52961fd4c
2020-05-15 10:25:50,922 autosynth [DEBUG] > Running: git log -1 --pretty=%at ba909fca409f6b38eae0fa735614e127d1fc0deb
2020-05-15 10:25:50,928 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7482e79a82e353248769d819788adc1213e8c207
2020-05-15 10:25:50,932 autosynth [DEBUG] > Running: git log -1 --pretty=%at a7759f81c25396207d46532ed389ad4d34879857
2020-05-15 10:25:50,939 autosynth [DEBUG] > Running: git log -1 --pretty=%at 5b48b0716a36ca069db3038da7e205c87a22ed19
2020-05-15 10:25:50,945 autosynth [DEBUG] > Running: git log -1 --pretty=%at c585ac3b5eff5cd2097a5315ffd9cf4823cc1ed2
2020-05-15 10:25:50,952 autosynth [DEBUG] > Running: git log -1 --pretty=%at b0461724be19443075b08c10d4a345cb217002b5
2020-05-15 10:25:50,958 autosynth [DEBUG] > Running: git log -1 --pretty=%at 84c4156c49be9dcabacc8fd7b0585b6fd789ae47
2020-05-15 10:25:50,965 autosynth [DEBUG] > Running: git log -1 --pretty=%at f503622985e230a6792730bbc3b7746c11fce09e
2020-05-15 10:25:50,972 autosynth [DEBUG] > Running: git log -1 --pretty=%at 3d2a7d0e21387ed455c966da9f9897b0a4bc5bb8
2020-05-15 10:25:50,978 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7b7f386b393947a542b87707499f4458136f4f61
2020-05-15 10:25:50,986 autosynth [DEBUG] > Running: git log -1 --pretty=%at f395615039665af6599f69305efcd886685e74f9
2020-05-15 10:25:50,994 autosynth [DEBUG] > Running: git log -1 --pretty=%at b6bdd4783f396f9252ce28af43f7215834a55c3c
2020-05-15 10:25:51,003 autosynth [DEBUG] > Running: git log -1 --pretty=%at 3593e3a995510c0570648d9a48fc756ab2bfc2cb
2020-05-15 10:25:51,011 autosynth [DEBUG] > Running: git log -1 --pretty=%at cb3433f7f554ea751584bdd3631d45ec56a32eb5
2020-05-15 10:25:51,020 autosynth [DEBUG] > Running: git checkout 9d976727546b270bedac90eca273b8d55c7c8ed2
Note: switching to '9d976727546b270bedac90eca273b8d55c7c8ed2'.

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 switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 9d97672 build: do not fail builds on codecov errors (#528) (#875)
2020-05-15 10:25:51,028 autosynth [DEBUG] > Running: git checkout cb3433f7f554ea751584bdd3631d45ec56a32eb5
Note: switching to 'cb3433f7f554ea751584bdd3631d45ec56a32eb5'.

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 switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at cb3433f fix: uses http for links to internal logs (#556)
2020-05-15 10:25:51,038 autosynth [DEBUG] > Running: git branch -f autosynth-20
2020-05-15 10:25:51,044 autosynth [DEBUG] > Running: git checkout autosynth-20
Switched to branch 'autosynth-20'
2020-05-15 10:25:51,050 autosynth [INFO] > Running synthtool
2020-05-15 10:25:51,051 autosynth [INFO] > ['/usr/local/google/home/rennie/env3.6/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-05-15 10:25:51,054 autosynth [DEBUG] > Running: /usr/local/google/home/rennie/env3.6/bin/python -m synthtool --metadata synth.metadata synth.py --
/usr/local/google/home/rennie/env3.6/bin/python: No module named synthtool
2020-05-15 10:25:51,087 autosynth [ERROR] > Synthesis failed
2020-05-15 10:25:51,087 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 9d97672 build: do not fail builds on codecov errors (#528) (#875)
2020-05-15 10:25:51,096 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-05-15 10:25:51,207 autosynth [DEBUG] > Running: git clean -fdx
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 "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 612, in <module>
    main()
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 473, in main
    return _inner_main(temp_dir)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 592, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 368, in synthesize_loop
    synthesize_inner_loop(toolbox, synthesizer)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 378, in synthesize_inner_loop
    synthesizer, len(toolbox.versions) - 1
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synth.py", line 266, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/usr/local/google/home/rennie/gitrepos/synthtool/autosynth/synthesizer.py", line 119, 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/google/home/rennie/env3.6/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 4 years ago

Autosynth passed, closing! :green_heart: