Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synthesis failed for nodejs-storage #1439

Closed
yoshi-automation opened this issue Apr 8, 2021 · 4 comments
Closed

Synthesis failed for nodejs-storage #1439

yoshi-automation opened this issue Apr 8, 2021 · 4 comments
Assignees
Labels
api: storage Issues related to the googleapis/nodejs-storage API. autosynth failure priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@yoshi-automation
Copy link
Contributor

Hello! Autosynth couldn't regenerate nodejs-storage. 💔

Please investigate and fix this issue within 5 business days. While it remains broken,
this library cannot be updated with changes to the nodejs-storage API, and the library grows
stale.

See https://github.com/googleapis/synthtool/blob/master/autosynth/TroubleShooting.md
for trouble shooting tips.

Here's the output from running synth.py:

hout 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 705743e feat: expose get_staging_dirs() for Python (#1024)
2021-04-08 02:16:56,555 autosynth [DEBUG] > Running: git branch -f autosynth-68
2021-04-08 02:16:56,559 autosynth [DEBUG] > Running: git checkout autosynth-68
Switched to branch 'autosynth-68'
2021-04-08 02:16:56,564 autosynth [INFO] > Running synthtool
2021-04-08 02:16:56,565 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2021-04-08 02:16:56,565 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/nodejs-storage/68/sponge_log.log
2021-04-08 02:16:56,567 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2021-04-08 02:16:56,813 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/nodejs-storage/synth.py.
On branch autosynth-68
nothing to commit, working tree clean
2021-04-08 02:16:56,950 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
.eslintignore
.eslintrc.json
.gitattributes
.github/CODEOWNERS
.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
2021-04-08 02:16:57,117 synthtool [WARNING] > No replacements made in .circleci/config.yml for pattern command: npm run system-test, maybe replacement is no longer needed?
WARNING:synthtool:No replacements made in .circleci/config.yml for pattern command: npm run system-test, maybe replacement is no longer needed?
2021-04-08 02:16:57,117 synthtool [DEBUG] > Installing dependencies...
DEBUG:synthtool:Installing dependencies...
npm WARN deprecated sinon@10.0.1: Breaking change found in this patch version
npm WARN deprecated cheerio-select-tmp@0.1.1: Use cheerio-select instead

> protobufjs@6.10.2 postinstall /home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/protobufjs
> node scripts/postinstall


> @google-cloud/storage@5.8.3 prepare /home/kbuilder/.cache/synthtool/nodejs-storage
> npm run compile


> @google-cloud/storage@5.8.3 precompile /home/kbuilder/.cache/synthtool/nodejs-storage
> gts clean

version: 14
Removing build ...

> @google-cloud/storage@5.8.3 compile /home/kbuilder/.cache/synthtool/nodejs-storage
> tsc -p .

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m778�[0m:�[93m36�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'TimerId'.

�[7m778�[0m     type SinonTimerId = FakeTimers.TimerId;
�[7m   �[0m �[91m                                   ~~~~~~~�[0m

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m780�[0m:�[93m39�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'InstalledMethods'.

�[7m780�[0m     type SinonFakeTimers = FakeTimers.InstalledMethods &
�[7m   �[0m �[91m                                      ~~~~~~~~~~~~~~~~�[0m

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m781�[0m:�[93m20�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'NodeClock'.

�[7m781�[0m         FakeTimers.NodeClock &
�[7m   �[0m �[91m                   ~~~~~~~~~�[0m

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m782�[0m:�[93m20�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'BrowserClock'.

�[7m782�[0m         FakeTimers.BrowserClock & {
�[7m   �[0m �[91m                   ~~~~~~~~~~~~�[0m


Found 4 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/storage@5.8.3 compile: `tsc -p .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @google-cloud/storage@5.8.3 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/2021-04-08T09_17_20_091Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/storage@5.8.3 prepare: `npm run compile`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @google-cloud/storage@5.8.3 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/2021-04-08T09_17_20_155Z-debug.log
2021-04-08 02:17:20,187 synthtool [ERROR] > Failed executing npm install:

None
ERROR:synthtool:Failed executing npm install:

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-storage/synth.py", line 34, in <module>
    node.install()
  File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 171, 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.
2021-04-08 02:17:20,238 autosynth [ERROR] > Synthesis failed
2021-04-08 02:17:20,239 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 2123cdd chore(deps): update dependency @grpc/proto-loader to ^0.6.0 (#1436)
2021-04-08 02:17:20,248 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-04-08 02:17:20,254 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing node_modules/
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 356, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 191, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 336, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 68, 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 yoshi-automation added autosynth failure priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Apr 8, 2021
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/nodejs-storage API. label Apr 8, 2021
@danielduhh
Copy link

I'm able to reproduce this locally. Sinon released a breaking change so we'll need to wait for a fix

@danielduhh danielduhh self-assigned this Apr 8, 2021
@yoshi-automation
Copy link
Contributor Author

Autosynth is still having trouble generating nodejs-storage. 😭

Please investigate and fix this issue within 5 business days. While it remains broken,
this library cannot be updated with changes to the nodejs-storage API, and the library grows
stale.

See https://github.com/googleapis/synthtool/blob/master/autosynth/TroubleShooting.md
for trouble shooting tips.

Here's the output from running synth.py:

ou 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 fbc7b76 feat: add excludes and patch callback arguments to owlbot_main (#1032)
2021-04-09 02:16:36,013 autosynth [DEBUG] > Running: git branch -f autosynth-70
2021-04-09 02:16:36,016 autosynth [DEBUG] > Running: git checkout autosynth-70
Switched to branch 'autosynth-70'
2021-04-09 02:16:36,044 autosynth [INFO] > Running synthtool
2021-04-09 02:16:36,044 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2021-04-09 02:16:36,044 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/nodejs-storage/70/sponge_log.log
2021-04-09 02:16:36,046 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2021-04-09 02:16:36,303 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/nodejs-storage/synth.py.
On branch autosynth-70
nothing to commit, working tree clean
2021-04-09 02:16:36,435 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
.eslintignore
.eslintrc.json
.gitattributes
.github/CODEOWNERS
.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
2021-04-09 02:16:36,601 synthtool [WARNING] > No replacements made in .circleci/config.yml for pattern command: npm run system-test, maybe replacement is no longer needed?
WARNING:synthtool:No replacements made in .circleci/config.yml for pattern command: npm run system-test, maybe replacement is no longer needed?
2021-04-09 02:16:36,601 synthtool [DEBUG] > Installing dependencies...
DEBUG:synthtool:Installing dependencies...
npm WARN deprecated sinon@10.0.1: Breaking change found in this patch version

> protobufjs@6.10.2 postinstall /home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/protobufjs
> node scripts/postinstall


> @google-cloud/storage@5.8.3 prepare /home/kbuilder/.cache/synthtool/nodejs-storage
> npm run compile


> @google-cloud/storage@5.8.3 precompile /home/kbuilder/.cache/synthtool/nodejs-storage
> gts clean

version: 14
Removing build ...

> @google-cloud/storage@5.8.3 compile /home/kbuilder/.cache/synthtool/nodejs-storage
> tsc -p .

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m778�[0m:�[93m36�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'TimerId'.

�[7m778�[0m     type SinonTimerId = FakeTimers.TimerId;
�[7m   �[0m �[91m                                   ~~~~~~~�[0m

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m780�[0m:�[93m39�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'InstalledMethods'.

�[7m780�[0m     type SinonFakeTimers = FakeTimers.InstalledMethods &
�[7m   �[0m �[91m                                      ~~~~~~~~~~~~~~~~�[0m

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m781�[0m:�[93m20�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'NodeClock'.

�[7m781�[0m         FakeTimers.NodeClock &
�[7m   �[0m �[91m                   ~~~~~~~~~�[0m

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m782�[0m:�[93m20�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'BrowserClock'.

�[7m782�[0m         FakeTimers.BrowserClock & {
�[7m   �[0m �[91m                   ~~~~~~~~~~~~�[0m


Found 4 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/storage@5.8.3 compile: `tsc -p .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @google-cloud/storage@5.8.3 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/2021-04-09T09_16_58_234Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/storage@5.8.3 prepare: `npm run compile`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @google-cloud/storage@5.8.3 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/2021-04-09T09_16_58_295Z-debug.log
2021-04-09 02:16:58,325 synthtool [ERROR] > Failed executing npm install:

None
ERROR:synthtool:Failed executing npm install:

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-storage/synth.py", line 34, in <module>
    node.install()
  File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 171, 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.
2021-04-09 02:16:58,372 autosynth [ERROR] > Synthesis failed
2021-04-09 02:16:58,372 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 2123cdd chore(deps): update dependency @grpc/proto-loader to ^0.6.0 (#1436)
2021-04-09 02:16:58,380 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-04-09 02:16:58,386 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing node_modules/
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 356, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 191, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 336, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 68, 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
Copy link
Contributor Author

Autosynth is still having trouble generating nodejs-storage. 😭

Please investigate and fix this issue within 5 business days. While it remains broken,
this library cannot be updated with changes to the nodejs-storage API, and the library grows
stale.

See https://github.com/googleapis/synthtool/blob/master/autosynth/TroubleShooting.md
for trouble shooting tips.

Here's the output from running synth.py:

hem, 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 0a071b3 chore: add constraints file check for python samples (#1012)
2021-04-10 02:15:51,194 autosynth [DEBUG] > Running: git branch -f autosynth-75
2021-04-10 02:15:51,197 autosynth [DEBUG] > Running: git checkout autosynth-75
Switched to branch 'autosynth-75'
2021-04-10 02:15:51,200 autosynth [INFO] > Running synthtool
2021-04-10 02:15:51,201 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2021-04-10 02:15:51,201 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/nodejs-storage/75/sponge_log.log
2021-04-10 02:15:51,202 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2021-04-10 02:15:51,478 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/nodejs-storage/synth.py.
On branch autosynth-75
nothing to commit, working tree clean
2021-04-10 02:15:51,604 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
.eslintignore
.eslintrc.json
.gitattributes
.github/CODEOWNERS
.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
2021-04-10 02:15:51,766 synthtool [WARNING] > No replacements made in .circleci/config.yml for pattern command: npm run system-test, maybe replacement is no longer needed?
WARNING:synthtool:No replacements made in .circleci/config.yml for pattern command: npm run system-test, maybe replacement is no longer needed?
2021-04-10 02:15:51,766 synthtool [DEBUG] > Installing dependencies...
DEBUG:synthtool:Installing dependencies...
npm WARN deprecated sinon@10.0.1: Breaking change found in this patch version

> protobufjs@6.10.2 postinstall /home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/protobufjs
> node scripts/postinstall


> @google-cloud/storage@5.8.3 prepare /home/kbuilder/.cache/synthtool/nodejs-storage
> npm run compile


> @google-cloud/storage@5.8.3 precompile /home/kbuilder/.cache/synthtool/nodejs-storage
> gts clean

version: 14
Removing build ...

> @google-cloud/storage@5.8.3 compile /home/kbuilder/.cache/synthtool/nodejs-storage
> tsc -p .

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m778�[0m:�[93m36�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'TimerId'.

�[7m778�[0m     type SinonTimerId = FakeTimers.TimerId;
�[7m   �[0m �[91m                                   ~~~~~~~�[0m

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m780�[0m:�[93m39�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'InstalledMethods'.

�[7m780�[0m     type SinonFakeTimers = FakeTimers.InstalledMethods &
�[7m   �[0m �[91m                                      ~~~~~~~~~~~~~~~~�[0m

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m781�[0m:�[93m20�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'NodeClock'.

�[7m781�[0m         FakeTimers.NodeClock &
�[7m   �[0m �[91m                   ~~~~~~~~~�[0m

�[96mnode_modules/@types/sinon/index.d.ts�[0m:�[93m782�[0m:�[93m20�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-storage/node_modules/@sinonjs/fake-timers/types/fake-timers-src"' has no exported member 'BrowserClock'.

�[7m782�[0m         FakeTimers.BrowserClock & {
�[7m   �[0m �[91m                   ~~~~~~~~~~~~�[0m


Found 4 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/storage@5.8.3 compile: `tsc -p .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @google-cloud/storage@5.8.3 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/2021-04-10T09_16_14_210Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/storage@5.8.3 prepare: `npm run compile`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @google-cloud/storage@5.8.3 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/2021-04-10T09_16_14_267Z-debug.log
2021-04-10 02:16:14,295 synthtool [ERROR] > Failed executing npm install:

None
ERROR:synthtool:Failed executing npm install:

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-storage/synth.py", line 34, in <module>
    node.install()
  File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 171, 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.
2021-04-10 02:16:14,351 autosynth [ERROR] > Synthesis failed
2021-04-10 02:16:14,351 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 2123cdd chore(deps): update dependency @grpc/proto-loader to ^0.6.0 (#1436)
2021-04-10 02:16:14,360 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-04-10 02:16:14,366 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Removing node_modules/
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 356, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 191, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 336, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 68, 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
Copy link
Contributor Author

Autosynth passed, closing! 💚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/nodejs-storage API. autosynth failure priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants