Closed yoshi-automation closed 4 years ago
Autosynth is still having trouble generating nodejs-dlp. :sob:
Here's the output from running synth.py
:
tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-05-20 06:06:46,938 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/nodejs-dlp/synth.py.
On branch autosynth-62
nothing to commit, working tree clean
2020-05-20 06:06:47,079 synthtool [DEBUG] > Ensuring dependencies.
2020-05-20 06:06:47,084 synthtool [DEBUG] > Cloning googleapis.
2020-05-20 06:06:47,084 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-05-20 06:06:47,088 synthtool [DEBUG] > Pulling Docker image: gapic-generator-typescript:latest
latest: Pulling from gapic-images/gapic-generator-typescript
Digest: sha256:7bca0aa4c25f2cf6a07e1b6e1cd91a655c4cf010317b5b8fdde7e1aed0ba33d3
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-typescript:latest
2020-05-20 06:06:48,002 synthtool [DEBUG] > Generating code for: google/privacy/dlp/v2.
2020-05-20 06:06:49,339 synthtool [SUCCESS] > Generated code into /tmpfs/tmp/tmps_9wpcbc.
2020-05-20 06:06:49,351 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-05-20 06:06:49,370 synthtool [INFO] > successfully generate `src/index.ts`
.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-20 06:06:49,492 synthtool [DEBUG] > Post-processing GAPIC library...
2020-05-20 06:06:49,493 synthtool [DEBUG] > Installing dependencies...
npm WARN npm npm does not support Node.js v12.16.3
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
> @google-cloud/dlp@2.2.0 prepare /home/kbuilder/.cache/synthtool/nodejs-dlp
> npm run compile
npm WARN npm npm does not support Node.js v12.16.3
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
> @google-cloud/dlp@2.2.0 precompile /home/kbuilder/.cache/synthtool/nodejs-dlp
> gts clean
version: 12
Removing build ...
> @google-cloud/dlp@2.2.0 compile /home/kbuilder/.cache/synthtool/nodejs-dlp
> tsc -p . && cp -r protos build/
[96msrc/v2/dlp_service_client.ts[0m:[93m791[0m:[93m25[0m - [91merror[0m[90m TS2339: [0mProperty 'parent' does not exist on type 'IListInfoTypesRequest'.
[7m791[0m 'parent': request.parent || '',
[7m [0m [91m ~~~~~~[0m
[96mtest/gapic_dlp_service_v2.ts[0m:[93m512[0m:[93m21[0m - [91merror[0m[90m TS2339: [0mProperty 'parent' does not exist on type 'ListInfoTypesRequest'.
[7m512[0m request.parent = '';
[7m [0m [91m ~~~~~~[0m
[96mtest/gapic_dlp_service_v2.ts[0m:[93m536[0m:[93m21[0m - [91merror[0m[90m TS2339: [0mProperty 'parent' does not exist on type 'ListInfoTypesRequest'.
[7m536[0m request.parent = '';
[7m [0m [91m ~~~~~~[0m
[96mtest/gapic_dlp_service_v2.ts[0m:[93m571[0m:[93m21[0m - [91merror[0m[90m TS2339: [0mProperty 'parent' does not exist on type 'ListInfoTypesRequest'.
[7m571[0m request.parent = '';
[7m [0m [91m ~~~~~~[0m
Found 4 errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/dlp@2.2.0 compile: `tsc -p . && cp -r protos build/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @google-cloud/dlp@2.2.0 compile 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-05-20T13_07_02_210Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/dlp@2.2.0 prepare: `npm run compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @google-cloud/dlp@2.2.0 prepare 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-05-20T13_07_02_227Z-debug.log
2020-05-20 06:07:02,240 synthtool [ERROR] > Failed executing npm install:
None
2020-05-20 06:07:02,241 synthtool [DEBUG] > Wrote metadata to synth.metadata.
Traceback (most recent call last):
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
main()
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
spec.loader.exec_module(synth_module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/kbuilder/.cache/synthtool/nodejs-dlp/synth.py", line 41, in <module>
node.postprocess_gapic_library()
File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 193, in postprocess_gapic_library
install(hide_output=hide_output)
File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 167, in install
shell.run(["npm", "install"], 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', 'install']' returned non-zero exit status 1.
2020-05-20 06:07:02,279 autosynth [ERROR] > Synthesis failed
2020-05-20 06:07:02,279 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 5f2cb9b fix: synth.py clean up for multiple version (#469)
2020-05-20 06:07:02,291 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-05-20 06:07:02,299 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 "/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 615, in <module>
main()
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 476, in main
return _inner_main(temp_dir)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 595, in _inner_main
commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 371, in synthesize_loop
synthesize_inner_loop(toolbox, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 381, in synthesize_inner_loop
synthesizer, len(toolbox.versions) - 1
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 266, in synthesize_version_in_new_branch
synthesizer.synthesize(synth_log_path, self.environ)
File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 119, 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.
Autosynth is still having trouble generating nodejs-dlp. :sob:
Here's the output from running synth.py
:
tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-05-21 05:11:15,492 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/nodejs-dlp/synth.py.
On branch autosynth-67
nothing to commit, working tree clean
2020-05-21 05:11:15,638 synthtool [DEBUG] > Ensuring dependencies.
2020-05-21 05:11:15,644 synthtool [DEBUG] > Cloning googleapis.
2020-05-21 05:11:15,645 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2020-05-21 05:11:15,649 synthtool [DEBUG] > Pulling Docker image: gapic-generator-typescript:latest
latest: Pulling from gapic-images/gapic-generator-typescript
Digest: sha256:7bca0aa4c25f2cf6a07e1b6e1cd91a655c4cf010317b5b8fdde7e1aed0ba33d3
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-typescript:latest
2020-05-21 05:11:16,602 synthtool [DEBUG] > Generating code for: google/privacy/dlp/v2.
2020-05-21 05:11:18,014 synthtool [SUCCESS] > Generated code into /tmpfs/tmp/tmp_gbwa259.
2020-05-21 05:11:18,024 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
2020-05-21 05:11:18,044 synthtool [INFO] > successfully generate `src/index.ts`
.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-21 05:11:18,161 synthtool [DEBUG] > Post-processing GAPIC library...
2020-05-21 05:11:18,161 synthtool [DEBUG] > Installing dependencies...
npm WARN npm npm does not support Node.js v12.16.3
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
> @google-cloud/dlp@2.2.0 prepare /home/kbuilder/.cache/synthtool/nodejs-dlp
> npm run compile
npm WARN npm npm does not support Node.js v12.16.3
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
> @google-cloud/dlp@2.2.0 precompile /home/kbuilder/.cache/synthtool/nodejs-dlp
> gts clean
version: 12
Removing build ...
> @google-cloud/dlp@2.2.0 compile /home/kbuilder/.cache/synthtool/nodejs-dlp
> tsc -p . && cp -r protos build/
[96msrc/v2/dlp_service_client.ts[0m:[93m791[0m:[93m25[0m - [91merror[0m[90m TS2339: [0mProperty 'parent' does not exist on type 'IListInfoTypesRequest'.
[7m791[0m 'parent': request.parent || '',
[7m [0m [91m ~~~~~~[0m
[96mtest/gapic_dlp_service_v2.ts[0m:[93m512[0m:[93m21[0m - [91merror[0m[90m TS2339: [0mProperty 'parent' does not exist on type 'ListInfoTypesRequest'.
[7m512[0m request.parent = '';
[7m [0m [91m ~~~~~~[0m
[96mtest/gapic_dlp_service_v2.ts[0m:[93m536[0m:[93m21[0m - [91merror[0m[90m TS2339: [0mProperty 'parent' does not exist on type 'ListInfoTypesRequest'.
[7m536[0m request.parent = '';
[7m [0m [91m ~~~~~~[0m
[96mtest/gapic_dlp_service_v2.ts[0m:[93m571[0m:[93m21[0m - [91merror[0m[90m TS2339: [0mProperty 'parent' does not exist on type 'ListInfoTypesRequest'.
[7m571[0m request.parent = '';
[7m [0m [91m ~~~~~~[0m
Found 4 errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/dlp@2.2.0 compile: `tsc -p . && cp -r protos build/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @google-cloud/dlp@2.2.0 compile 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-05-21T12_11_30_372Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/dlp@2.2.0 prepare: `npm run compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @google-cloud/dlp@2.2.0 prepare 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-05-21T12_11_30_389Z-debug.log
2020-05-21 05:11:30,405 synthtool [ERROR] > Failed executing npm install:
None
2020-05-21 05:11:30,406 synthtool [DEBUG] > Wrote metadata to synth.metadata.
Traceback (most recent call last):
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
main()
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
spec.loader.exec_module(synth_module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/kbuilder/.cache/synthtool/nodejs-dlp/synth.py", line 41, in <module>
node.postprocess_gapic_library()
File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 193, in postprocess_gapic_library
install(hide_output=hide_output)
File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 167, in install
shell.run(["npm", "install"], 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', 'install']' returned non-zero exit status 1.
2020-05-21 05:11:30,456 autosynth [ERROR] > Synthesis failed
2020-05-21 05:11:30,457 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 5f2cb9b fix: synth.py clean up for multiple version (#469)
2020-05-21 05:11:30,470 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-05-21 05:11:30,479 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 "/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 615, in <module>
main()
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 476, in main
return _inner_main(temp_dir)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 595, in _inner_main
commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 371, in synthesize_loop
synthesize_inner_loop(toolbox, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 381, in synthesize_inner_loop
synthesizer, len(toolbox.versions) - 1
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 266, in synthesize_version_in_new_branch
synthesizer.synthesize(synth_log_path, self.environ)
File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 119, 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.
@alexander-fenster this seems to be generating a library with broken types:
> @google-cloud/dlp@2.2.0 compile /usr/local/google/home/bencoe/google/nodejs-dlp
> tsc -p . && cp -r protos build/
src/v2/dlp_service_client.ts:791:25 - error TS2339: Property 'parent' does not exist on type 'IListInfoTypesRequest'.
791 'parent': request.parent || '',
~~~~~~
It doesn't think there's a parent
property on IListInfoTypesRequest
.
Hello! Autosynth couldn't regenerate nodejs-dlp. :broken_heart:
Here's the output from running
synth.py
:Google internal developers can see the full log here.