Synthesis failed for nodejs-phishing-protection
yoshi-automation opened this issue ยท 2 comments
yoshi-automation commented
Hello! Autosynth couldn't regenerate nodejs-phishing-protection. ๐
Here's the output from running synth.py
:
ro/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-11-17 04:51:54,410 synthtool [DEBUG] > Post-processing GAPIC library...
DEBUG:synthtool:Post-processing GAPIC library...
2020-11-17 04:51:54,410 synthtool [DEBUG] > Installing dependencies...
DEBUG:synthtool:Installing dependencies...
> protobufjs@6.10.2 postinstall /home/kbuilder/.cache/synthtool/nodejs-phishing-protection/node_modules/protobufjs
> node scripts/postinstall
> @google-cloud/phishing-protection@2.3.2 prepare /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> npm run compile
> @google-cloud/phishing-protection@2.3.2 precompile /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> gts clean
version: 14
Removing build ...
> @google-cloud/phishing-protection@2.3.2 compile /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> tsc -p . && cp -r protos build/
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 673 packages from 777 contributors and audited 675 packages in 20.561s
57 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
2020-11-17 04:52:15,615 synthtool [DEBUG] > Running prelint...
DEBUG:synthtool:Running prelint...
> @google-cloud/phishing-protection@2.3.2 prelint /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> cd samples; npm link ../; npm install
> @google-cloud/phishing-protection@2.3.2 prepare /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> npm run compile
> @google-cloud/phishing-protection@2.3.2 precompile /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> gts clean
version: 14
Removing build ...
> @google-cloud/phishing-protection@2.3.2 compile /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> tsc -p . && cp -r protos build/
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 675 packages in 8.513s
57 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
/home/kbuilder/.nvm/versions/node/v14.15.1/lib/node_modules/@google-cloud/phishing-protection -> /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
/home/kbuilder/.cache/synthtool/nodejs-phishing-protection/samples/node_modules/@google-cloud/phishing-protection -> /home/kbuilder/.nvm/versions/node/v14.15.1/lib/node_modules/@google-cloud/phishing-protection -> /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
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 107 packages from 71 contributors and audited 195 packages in 4.202s
57 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
2020-11-17 04:52:29,929 synthtool [DEBUG] > Running fix...
DEBUG:synthtool:Running fix...
> @google-cloud/phishing-protection@2.3.2 fix /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> gts fix
version: 14
/home/kbuilder/.cache/synthtool/nodejs-phishing-protection/src/v1beta1/phishing_protection_service_v1_beta1_client.ts
95:48 error 'window' is not defined no-undef
โ 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 (/home/kbuilder/.cache/synthtool/nodejs-phishing-protection/node_modules/execa/lib/error.js:59:11)
at handlePromise (/home/kbuilder/.cache/synthtool/nodejs-phishing-protection/node_modules/execa/index.js:114:26)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async run (/home/kbuilder/.cache/synthtool/nodejs-phishing-protection/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/phishing-protection@2.3.2 fix: `gts fix`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @google-cloud/phishing-protection@2.3.2 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! /home/kbuilder/.npm/_logs/2020-11-17T12_52_33_574Z-debug.log
2020-11-17 04:52:33,588 synthtool [ERROR] > Failed executing npm run fix:
None
ERROR:synthtool:Failed executing npm run fix:
None
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/nodejs-phishing-protection/synth.py", line 38, in <module>
node.postprocess_gapic_library()
File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 194, in postprocess_gapic_library
fix(hide_output=hide_output)
File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 179, in fix
shell.run(["npm", "run", "fix"], hide_output=hide_output)
File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
raise exc
File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
encoding="utf-8",
File "/home/kbuilder/.pyenv/versions/3.6.9/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-11-17 04:52:33,659 autosynth [ERROR] > Synthesis failed
2020-11-17 04:52:33,659 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at ae1b084 chore: release 2.3.2 (#222)
2020-11-17 04:52:33,678 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-17 04:52:33,684 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing build/
Removing node_modules/
Removing package-lock.json
Removing samples/node_modules/
Removing samples/package-lock.json
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 354, in <module>
main()
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
return _inner_main(temp_dir)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, 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.
yoshi-automation commented
Autosynth is still having trouble generating nodejs-phishing-protection. ๐ญ
Here's the output from running synth.py
:
o/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-11-18 04:52:56,514 synthtool [DEBUG] > Post-processing GAPIC library...
DEBUG:synthtool:Post-processing GAPIC library...
2020-11-18 04:52:56,514 synthtool [DEBUG] > Installing dependencies...
DEBUG:synthtool:Installing dependencies...
> protobufjs@6.10.2 postinstall /home/kbuilder/.cache/synthtool/nodejs-phishing-protection/node_modules/protobufjs
> node scripts/postinstall
> @google-cloud/phishing-protection@2.3.2 prepare /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> npm run compile
> @google-cloud/phishing-protection@2.3.2 precompile /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> gts clean
version: 14
Removing build ...
> @google-cloud/phishing-protection@2.3.2 compile /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> tsc -p . && cp -r protos build/
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 673 packages from 777 contributors and audited 675 packages in 22.984s
57 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
2020-11-18 04:53:20,156 synthtool [DEBUG] > Running prelint...
DEBUG:synthtool:Running prelint...
> @google-cloud/phishing-protection@2.3.2 prelint /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> cd samples; npm link ../; npm install
> @google-cloud/phishing-protection@2.3.2 prepare /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> npm run compile
> @google-cloud/phishing-protection@2.3.2 precompile /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> gts clean
version: 14
Removing build ...
> @google-cloud/phishing-protection@2.3.2 compile /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> tsc -p . && cp -r protos build/
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 675 packages in 8.943s
57 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
/home/kbuilder/.nvm/versions/node/v14.15.1/lib/node_modules/@google-cloud/phishing-protection -> /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
/home/kbuilder/.cache/synthtool/nodejs-phishing-protection/samples/node_modules/@google-cloud/phishing-protection -> /home/kbuilder/.nvm/versions/node/v14.15.1/lib/node_modules/@google-cloud/phishing-protection -> /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
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 107 packages from 71 contributors and audited 195 packages in 4.563s
57 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
2020-11-18 04:53:35,335 synthtool [DEBUG] > Running fix...
DEBUG:synthtool:Running fix...
> @google-cloud/phishing-protection@2.3.2 fix /home/kbuilder/.cache/synthtool/nodejs-phishing-protection
> gts fix
version: 14
/home/kbuilder/.cache/synthtool/nodejs-phishing-protection/src/v1beta1/phishing_protection_service_v1_beta1_client.ts
101:48 error 'window' is not defined no-undef
โ 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 (/home/kbuilder/.cache/synthtool/nodejs-phishing-protection/node_modules/execa/lib/error.js:59:11)
at handlePromise (/home/kbuilder/.cache/synthtool/nodejs-phishing-protection/node_modules/execa/index.js:114:26)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async run (/home/kbuilder/.cache/synthtool/nodejs-phishing-protection/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/phishing-protection@2.3.2 fix: `gts fix`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @google-cloud/phishing-protection@2.3.2 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! /home/kbuilder/.npm/_logs/2020-11-18T12_53_39_104Z-debug.log
2020-11-18 04:53:39,118 synthtool [ERROR] > Failed executing npm run fix:
None
ERROR:synthtool:Failed executing npm run fix:
None
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/nodejs-phishing-protection/synth.py", line 38, in <module>
node.postprocess_gapic_library()
File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 194, in postprocess_gapic_library
fix(hide_output=hide_output)
File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 179, in fix
shell.run(["npm", "run", "fix"], hide_output=hide_output)
File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
raise exc
File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
encoding="utf-8",
File "/home/kbuilder/.pyenv/versions/3.6.9/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-11-18 04:53:39,207 autosynth [ERROR] > Synthesis failed
2020-11-18 04:53:39,207 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at ae1b084 chore: release 2.3.2 (#222)
2020-11-18 04:53:39,226 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-18 04:53:39,233 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing build/
Removing node_modules/
Removing package-lock.json
Removing samples/node_modules/
Removing samples/package-lock.json
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 354, in <module>
main()
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
return _inner_main(temp_dir)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, 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.
yoshi-automation commented
Autosynth passed, closing! ๐