Closed yoshi-automation closed 3 years ago
Autosynth is still having trouble generating nodejs-promisify. :sob:
Here's the output from running synth.py
:
2020-12-11 21:47:59,218 autosynth [INFO] > logs will be written to: /kokoro/artifacts/logs/nodejs-promisify
2020-12-11 21:47:59,708 autosynth [DEBUG] > Running: git config --global core.excludesfile /root/.autosynth-gitignore
2020-12-11 21:47:59,711 autosynth [DEBUG] > Running: git config user.name yoshi-automation
2020-12-11 21:47:59,713 autosynth [DEBUG] > Running: git config user.email yoshi-automation@google.com
2020-12-11 21:47:59,716 autosynth [DEBUG] > Running: git config push.default simple
2020-12-11 21:47:59,719 autosynth [DEBUG] > Running: git branch -f autosynth
2020-12-11 21:47:59,721 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-11 21:47:59,727 autosynth [DEBUG] > Running: git rev-parse --show-toplevel
2020-12-11 21:47:59,729 autosynth [DEBUG] > Running: git log -1 --pretty=%H
2020-12-11 21:47:59,732 autosynth [DEBUG] > Running: git remote get-url origin
2020-12-11 21:48:00,068 autosynth [DEBUG] > Running: git log 15013eff642a7e7e855aed5a29e6e83c39beba2a..HEAD --pretty=%H --no-decorate
2020-12-11 21:48:00,071 autosynth [DEBUG] > Running: git log -1 --pretty=%at 15013eff642a7e7e855aed5a29e6e83c39beba2a
2020-12-11 21:48:00,074 autosynth [DEBUG] > Running: git log -1 --pretty=%at c2de32114ec484aa708d32012d1fa8d75232daf5
2020-12-11 21:48:00,077 autosynth [DEBUG] > Running: git log -1 --pretty=%at 32af6da519a6b042e3da62008e2a75e991efb6b4
2020-12-11 21:48:00,080 autosynth [DEBUG] > Running: git log -1 --pretty=%at 69629b64b83c6421d616be2b8e11795738ec8a6c
2020-12-11 21:48:00,083 autosynth [DEBUG] > Running: git log -1 --pretty=%at f94318521f63085b9ccb43d42af89f153fb39f15
2020-12-11 21:48:00,085 autosynth [DEBUG] > Running: git log -1 --pretty=%at 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1
2020-12-11 21:48:00,088 autosynth [DEBUG] > Running: git log -1 --pretty=%at 5d11bd2888c38ce1fb6fa6bf25494a4219a73928
2020-12-11 21:48:00,091 autosynth [DEBUG] > Running: git log -1 --pretty=%at 3559dd8cb634347737632776ef4089443eacdb4f
2020-12-11 21:48:00,094 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7d1ee3207371ef72a1ca931a0964c4007e687280
2020-12-11 21:48:00,096 autosynth [DEBUG] > Running: git log -1 --pretty=%at 352f25621c28d2fa0784984ea0ed5ea697aa1525
2020-12-11 21:48:00,099 autosynth [DEBUG] > Running: git log -1 --pretty=%at 996775eca5fd934edac3c2ae34b80ff0395b1717
2020-12-11 21:48:00,102 autosynth [DEBUG] > Running: git checkout ee6524fe9030259540c241c9bcad452a42e1ac3c
Note: checking out 'ee6524fe9030259540c241c9bcad452a42e1ac3c'.
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 ee6524f docs: spelling correction for "targetting" (#242)
2020-12-11 21:48:00,107 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:00,113 autosynth [DEBUG] > Running: git branch -f autosynth-11
2020-12-11 21:48:00,116 autosynth [DEBUG] > Running: git checkout autosynth-11
Switched to branch 'autosynth-11'
2020-12-11 21:48:00,119 autosynth [INFO] > Running synthtool
2020-12-11 21:48:00,120 autosynth [INFO] > ['/usr/local/bin/python', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-11 21:48:00,120 autosynth [DEBUG] > log_file_path: /kokoro/artifacts/logs/nodejs-promisify/11/sponge_log.log
2020-12-11 21:48:00,121 autosynth [DEBUG] > Running: /usr/local/bin/python -m synthtool --metadata synth.metadata synth.py --
2020-12-11 21:48:00,329 synthtool [DEBUG] > Executing /root/.cache/synthtool/nodejs-promisify/synth.py.
On branch autosynth-11
nothing to commit, working tree clean
2020-12-11 21:48:00,456 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:00,612 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-promisify/synth.py", line 12, 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:00,675 autosynth [ERROR] > Synthesis failed
2020-12-11 21:48:00,675 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at ee6524f docs: spelling correction for "targetting" (#242)
2020-12-11 21:48:00,683 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-11 21:48:00,688 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.
Autosynth is still having trouble generating nodejs-promisify. :sob:
Here's the output from running synth.py
:
nsider supporting our open collective:[22m[39m
> [94mhttps://opencollective.com/compodoc/donate[0m
npm WARN lifecycle @google-cloud/promisify@2.0.3~prepare: cannot run in wd @google-cloud/promisify@2.0.3 npm run compile (wd=/root/.cache/synthtool/nodejs-promisify)
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 920 packages from 841 contributors and audited 924 packages in 19.558s
75 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
2020-12-11 22:04:19,546 synthtool [DEBUG] > Running prelint...
DEBUG:synthtool:Running prelint...
> @google-cloud/promisify@2.0.3 prelint /root/.cache/synthtool/nodejs-promisify
> cd samples; npm link ../; npm install
npm WARN lifecycle @google-cloud/promisify@2.0.3~prepare: cannot run in wd @google-cloud/promisify@2.0.3 npm run compile (wd=/root/.cache/synthtool/nodejs-promisify)
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"})
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"})
audited 924 packages in 4.585s
75 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
/root/.nvm/versions/node/v14.15.1/lib/node_modules/@google-cloud/promisify -> /root/.cache/synthtool/nodejs-promisify
/root/.cache/synthtool/nodejs-promisify/samples/node_modules/@google-cloud/promisify -> /root/.nvm/versions/node/v14.15.1/lib/node_modules/@google-cloud/promisify -> /root/.cache/synthtool/nodejs-promisify
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 110 packages in 4.556s
75 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
2020-12-11 22:04:31,099 synthtool [DEBUG] > Running fix...
DEBUG:synthtool:Running fix...
> @google-cloud/promisify@2.0.3 fix /root/.cache/synthtool/nodejs-promisify
> gts fix
version: 14
/root/.cache/synthtool/nodejs-promisify/src/index.ts
71:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
103:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
169:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
178:13 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
/root/.cache/synthtool/nodejs-promisify/test/index.ts
29:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
49:11 warning 'fc' is assigned a value but never used @typescript-eslint/no-unused-vars
151:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
162:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
203:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
216:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
275:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
344:36 warning '_this' is defined but never used @typescript-eslint/no-unused-vars
370:36 warning '_this' is defined but never used @typescript-eslint/no-unused-vars
379:36 warning '_this' is defined but never used @typescript-eslint/no-unused-vars
/root/.cache/synthtool/nodejs-promisify/samples/quickstart.js
16:29 error "@google-cloud/promisify" is not found node/no-missing-require
✖ 15 problems (1 error, 14 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-promisify/node_modules/gts/node_modules/execa/lib/error.js:59:11)
at handlePromise (/root/.cache/synthtool/nodejs-promisify/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-promisify/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/promisify@2.0.3 fix: `gts fix`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @google-cloud/promisify@2.0.3 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_04_33_725Z-debug.log
2020-12-11 22:04:33,739 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-promisify/synth.py", line 13, 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:04:33,810 autosynth [ERROR] > Synthesis failed
2020-12-11 22:04:33,810 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at ee6524f docs: spelling correction for "targetting" (#242)
2020-12-11 22:04:33,820 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-11 22:04:33,826 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.
Autosynth passed, closing! :green_heart:
Hello! Autosynth couldn't regenerate nodejs-promisify. :broken_heart:
Here's the output from running
synth.py
:Google internal developers can see the full log here.