Test output
Command failed: node quickstart.js /workspace/samples/resources/audio.raw linear16 en-US es-ES
events.js:291
throw er; // Unhandled 'error' event
^
Error: 16 UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:413:49)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:188:78
at processTicksAndRejections (internal/process/task_queues.js:79:11)
for call at
at ServiceClientImpl.makeBidiStreamRequest (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:398:30)
at ServiceClientImpl. (/workspace/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
at /workspace/build/src/v1beta1/speech_translation_service_client.js:190:29
at /workspace/node_modules/google-gax/build/src/streamingCalls/streamingApiCaller.js:46:28
at /workspace/node_modules/google-gax/build/src/normalCalls/timeout.js:44:16
at StreamProxy.setStream (/workspace/node_modules/google-gax/build/src/streamingCalls/streaming.js:144:24)
at StreamingApiCaller.call (/workspace/node_modules/google-gax/build/src/streamingCalls/streamingApiCaller.js:54:16)
at /workspace/node_modules/google-gax/build/src/createApiCall.js:84:30
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Emitted 'error' event on StreamProxy instance at:
at StreamProxy.Duplexify._destroy (/workspace/node_modules/duplexify/index.js:195:15)
at /workspace/node_modules/duplexify/index.js:185:10
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
code: 16,
details: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.',
metadata: Metadata {
internalRepr: Map {
'grpc-server-stats-bin' => [
Buffer(10) [Uint8Array] [
0, 0, 208, 89, 164,
10, 0, 0, 0, 0
]
]
},
options: {}
}
}
Error: Command failed: node quickstart.js /workspace/samples/resources/audio.raw linear16 en-US es-ES
events.js:291
throw er; // Unhandled 'error' event
^
Error: 16 UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:413:49)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:188:78
at processTicksAndRejections (internal/process/task_queues.js:79:11)
for call at
at ServiceClientImpl.makeBidiStreamRequest (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:398:30)
at ServiceClientImpl. (/workspace/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
at /workspace/build/src/v1beta1/speech_translation_service_client.js:190:29
at /workspace/node_modules/google-gax/build/src/streamingCalls/streamingApiCaller.js:46:28
at /workspace/node_modules/google-gax/build/src/normalCalls/timeout.js:44:16
at StreamProxy.setStream (/workspace/node_modules/google-gax/build/src/streamingCalls/streaming.js:144:24)
at StreamingApiCaller.call (/workspace/node_modules/google-gax/build/src/streamingCalls/streamingApiCaller.js:54:16)
at /workspace/node_modules/google-gax/build/src/createApiCall.js:84:30
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Emitted 'error' event on StreamProxy instance at:
at StreamProxy.Duplexify._destroy (/workspace/node_modules/duplexify/index.js:195:15)
at /workspace/node_modules/duplexify/index.js:185:10
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
code: 16,
details: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.',
metadata: Metadata {
internalRepr: Map {
'grpc-server-stats-bin' => [
Buffer(10) [Uint8Array] [
0, 0, 208, 89, 164,
10, 0, 0, 0, 0
]
]
},
options: {}
}
}
at checkExecSyncError (child_process.js:635:11)
at execSync (child_process.js:671:15)
at exec (test/quickstart.test.js:24:21)
at Context.<anonymous> (test/quickstart.test.js:28:20)
at processImmediate (internal/timers.js:461:21)</pre></details>
This test failed!
To configure my behavior, see the Flaky Bot documentation.
If I'm commenting on this issue too often, add the flakybot: quiet
label and
I will stop commenting.
commit: f827f23
buildURL: Build Status, Sponge
status: failed
Test output
Process 201 exited with code 2.
Error: Process 201 exited with code 2.
at ChildProcess. (node_modules/pack-n-play/build/src/utils.js:48:22)
-> /workspace/node_modules/pack-n-play/src/utils.ts:62:11
at maybeClose (internal/child_process.js:1022:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
Turkish (tr-TR) as the target language does not work.
Media Translation supports these additional languages as target languages (when the source language is English). These languages are not available as source languages.
Language | BCP-47 code
Turkish | tu-TU - unsupported
Chinese | zh-CN - supported
Japanese | ja-JP - supported
https://cloud.google.com/translate/media/docs/languages
You have a problem with your .repo-metadata.json file:
Result of scan ๐:
- must have required property 'library_type' in .repo-metadata.json
- release_level must be equal to one of the allowed values in .repo-metadata.json
โ๏ธ Once you address these problems, you can close this issue.
Need help?
- Schema definition: lists valid options for each field.
- API index: for gRPC libraries api_shortname should match the subdomain of an API's hostName.
- Reach out to go/github-automation if you have any questions.
Hello! Autosynth couldn't regenerate nodejs-media-translation. ๐
Here's the output from running synth.py
:
ONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
api-extractor.json
renovate.json
samples/README.md
2020-11-17 04:42:06,879 synthtool [DEBUG] > Post-processing GAPIC library...
DEBUG:synthtool:Post-processing GAPIC library...
2020-11-17 04:42:06,880 synthtool [DEBUG] > Installing dependencies...
DEBUG:synthtool:Installing dependencies...
> [email protected] postinstall /home/kbuilder/.cache/synthtool/nodejs-media-translation/node_modules/protobufjs
> node scripts/postinstall
> @google-cloud/[email protected] prepare /home/kbuilder/.cache/synthtool/nodejs-media-translation
> npm run compile-protos && npm run compile
> @google-cloud/[email protected] compile-protos /home/kbuilder/.cache/synthtool/nodejs-media-translation
> compileProtos src
installing semver@^7.1.2
installing tmp@^0.2.0
installing uglify-js@^3.7.7
installing espree@^7.0.0
installing escodegen@^2.0.0
installing estraverse@^5.1.0
> @google-cloud/[email protected] precompile /home/kbuilder/.cache/synthtool/nodejs-media-translation
> gts clean
version: 14
Removing build ...
> @google-cloud/[email protected] compile /home/kbuilder/.cache/synthtool/nodejs-media-translation
> 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 [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 667 packages from 769 contributors and audited 669 packages in 26.373s
57 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
2020-11-17 04:42:33,882 synthtool [DEBUG] > Running prelint...
DEBUG:synthtool:Running prelint...
> @google-cloud/[email protected] prelint /home/kbuilder/.cache/synthtool/nodejs-media-translation
> cd samples; npm link ../; npm install
> @google-cloud/[email protected] prepare /home/kbuilder/.cache/synthtool/nodejs-media-translation
> npm run compile-protos && npm run compile
> @google-cloud/[email protected] compile-protos /home/kbuilder/.cache/synthtool/nodejs-media-translation
> compileProtos src
> @google-cloud/[email protected] precompile /home/kbuilder/.cache/synthtool/nodejs-media-translation
> gts clean
version: 14
Removing build ...
> @google-cloud/[email protected] compile /home/kbuilder/.cache/synthtool/nodejs-media-translation
> tsc -p . && cp -r protos build/
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
audited 669 packages in 11.705s
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/media-translation -> /home/kbuilder/.cache/synthtool/nodejs-media-translation
/home/kbuilder/.cache/synthtool/nodejs-media-translation/samples/node_modules/@google-cloud/media-translation -> /home/kbuilder/.nvm/versions/node/v14.15.1/lib/node_modules/@google-cloud/media-translation -> /home/kbuilder/.cache/synthtool/nodejs-media-translation
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 [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 140 packages from 119 contributors and audited 228 packages in 4.932s
57 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
2020-11-17 04:42:52,342 synthtool [DEBUG] > Running fix...
DEBUG:synthtool:Running fix...
> @google-cloud/[email protected] fix /home/kbuilder/.cache/synthtool/nodejs-media-translation
> gts fix
version: 14
/home/kbuilder/.cache/synthtool/nodejs-media-translation/src/v1beta1/speech_translation_service_client.ts
23:13 warning 'protos' is defined but never used @typescript-eslint/no-unused-vars
94:48 error 'window' is not defined no-undef
โ 2 problems (1 error, 1 warning)
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-media-translation/node_modules/execa/lib/error.js:59:11)
at handlePromise (/home/kbuilder/.cache/synthtool/nodejs-media-translation/node_modules/execa/index.js:114:26)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async run (/home/kbuilder/.cache/synthtool/nodejs-media-translation/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/[email protected] fix: `gts fix`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @google-cloud/[email protected] 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_42_55_771Z-debug.log
2020-11-17 04:42:55,779 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-media-translation/synth.py", line 39, 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:42:55,847 autosynth [ERROR] > Synthesis failed
2020-11-17 04:42:55,847 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at f58a09e chore: release 2.2.1 (#95)
2020-11-17 04:42:55,859 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-17 04:42:55,870 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.
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
|
//const targetLanguage = 'Language to translate to, as BCP-47 locale'; |
Wrong BCP-47 code for Turkish. It should be replaced with tr-TR.
|
targetLanguageCode: targetLanguage, |
Hello! Autosynth couldn't regenerate nodejs-media-translation. ๐
Here's the output from running synth.py
:
f72cc8744f/protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl (1.3MB)
Saved ./protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting pypandoc==1.5 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/d6/b7/5050dc1769c8a93d3ec7c4bd55be161991c94b8b235f88bf7c764449e708/pypandoc-1.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmpfs/tmp/tmp65i_rl2l/setuptools-tmp/setuptools/__init__.py", line 6, in <module>
import distutils.core
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/_distutils_hack/__init__.py", line 82, in create_module
return importlib.import_module('._distutils', 'setuptools')
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'setuptools._distutils'
----------------------------------------
( Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Command "python setup.py egg_info" failed with error code 1 in /tmpfs/tmp/pip-build-ghntfdfs/pypandoc/
)
ERROR: no such package '@gapic_generator_python_pip_deps//': pip_import failed: Collecting click==7.1.2 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB)
Saved ./click-7.1.2-py2.py3-none-any.whl
Collecting google-api-core==1.22.1 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/e0/2d/7c6c75013105e1d2b6eaa1bf18a56995be1dbc673c38885aea31136e9918/google_api_core-1.22.1-py2.py3-none-any.whl (91kB)
Saved ./google_api_core-1.22.1-py2.py3-none-any.whl
Collecting googleapis-common-protos==1.52.0 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/03/74/3956721ea1eb4bcf7502a311fdaa60b85bd751de4e57d1943afe9b334141/googleapis_common_protos-1.52.0-py2.py3-none-any.whl (100kB)
Saved ./googleapis_common_protos-1.52.0-py2.py3-none-any.whl
Collecting jinja2==2.11.2 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl (125kB)
Saved ./Jinja2-2.11.2-py2.py3-none-any.whl
Collecting MarkupSafe==1.1.1 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
Saved ./MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting protobuf==3.13.0 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/30/79/510974552cebff2ba04038544799450defe75e96ea5f1675dbf72cc8744f/protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl (1.3MB)
Saved ./protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting pypandoc==1.5 (from -r /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_python/requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/d6/b7/5050dc1769c8a93d3ec7c4bd55be161991c94b8b235f88bf7c764449e708/pypandoc-1.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmpfs/tmp/tmp65i_rl2l/setuptools-tmp/setuptools/__init__.py", line 6, in <module>
import distutils.core
File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/_distutils_hack/__init__.py", line 82, in create_module
return importlib.import_module('._distutils', 'setuptools')
File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'setuptools._distutils'
----------------------------------------
( Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Command "python setup.py egg_info" failed with error code 1 in /tmpfs/tmp/pip-build-ghntfdfs/pypandoc/
)
INFO: Elapsed time: 19.672s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
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-media-translation/synth.py", line 31, in <module>
library = gapic.node_library(name, version)
File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in node_library
return self._generate_code(service, version, "nodejs", **kwargs)
File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, in _generate_code
shell.run(bazel_run_args)
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 '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/mediatranslation/v1beta1:mediatranslation-v1beta1-nodejs']' returned non-zero exit status 1.
2020-08-31 04:39:52,086 autosynth [ERROR] > Synthesis failed
2020-08-31 04:39:52,086 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 8bf7649 build: track flaky tests for "nightly", add new secrets for tagging (#78)
2020-08-31 04:39:52,092 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-08-31 04:39:52,096 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
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 690, in <module>
main()
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
return _inner_main(temp_dir)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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.
This issue contains a list of Renovate updates and their statuses.
Awaiting Schedule
These updates are awaiting their schedule. Click on a checkbox to get an update now.
Ignored or Blocked
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
Hello! Autosynth couldn't regenerate nodejs-media-translation. ๐
Here's the output from running synth.py
:
):
- <builtin>
- /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:224:1
DEBUG: Rule 'com_googleapis_gapic_generator_go' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "12bfed7873f085093cd60615bd113178ecf36396af0c2ca25e6cd4d4bebdd198"
DEBUG: Call stack for the definition of repository 'com_googleapis_gapic_generator_go' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
- <builtin>
- /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:261:1
DEBUG: Rule 'gapic_generator_typescript' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "ca322b5e7b0d03b3cc44a90444e3a7f944c9ba3345f0505ee48c8e715d19dd95"
DEBUG: Call stack for the definition of repository 'gapic_generator_typescript' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
- <builtin>
- /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:280:1
DEBUG: Rule 'gapic_generator_csharp' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "40ddae63d2729ef5ccbd8b60123327ea200ce9400d0629238193ff530dcaea18"
DEBUG: Call stack for the definition of repository 'gapic_generator_csharp' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
- <builtin>
- /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:318:1
DEBUG: Rule 'bazel_skylib' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0"
DEBUG: Call stack for the definition of repository 'bazel_skylib' which is a http_archive (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):
- <builtin>
- /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:35:1
Analyzing: target //google/cloud/mediatranslation/v1beta1:mediatranslation-v1beta1-nodejs (1 packages loaded, 0 targets configured)
Analyzing: target //google/cloud/mediatranslation/v1beta1:mediatranslation-v1beta1-nodejs (1 packages loaded, 2 targets configured)
INFO: Call stack for the definition of repository 'npm' which is a yarn_install (rule definition at /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:411:16):
- <builtin>
- /home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/build_bazel_rules_nodejs/index.bzl:87:5
- /home/kbuilder/.cache/synthtool/googleapis/WORKSPACE:293:1
Analyzing: target //google/cloud/mediatranslation/v1beta1:mediatranslation-v1beta1-nodejs (1 packages loaded, 2 targets configured)
ERROR: An error occurred during the fetch of repository 'npm':
yarn_install failed: yarn install v1.19.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info If you think this is a bug, please open a bug report with the information provided in "/home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_typescript/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
(error An unexpected error occurred: "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz: Request failed \"404 Not Found\"".
Process stalled
Active handles:
- Socket
- Socket
- Socket
- TLSSocket
)
ERROR: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/mediatranslation/v1beta1/BUILD.bazel:250:1: //google/cloud/mediatranslation/v1beta1:mediatranslation_nodejs_gapic depends on @gapic_generator_typescript//:protoc_plugin in repository @gapic_generator_typescript which failed to fetch. no such package '@npm//@bazel/typescript': yarn_install failed: yarn install v1.19.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info If you think this is a bug, please open a bug report with the information provided in "/home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_typescript/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
(error An unexpected error occurred: "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz: Request failed \"404 Not Found\"".
Process stalled
Active handles:
- Socket
- Socket
- Socket
- TLSSocket
)
ERROR: Analysis of target '//google/cloud/mediatranslation/v1beta1:mediatranslation-v1beta1-nodejs' failed; build aborted: no such package '@npm//@bazel/typescript': yarn_install failed: yarn install v1.19.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info If you think this is a bug, please open a bug report with the information provided in "/home/kbuilder/.cache/bazel/_bazel_kbuilder/a732f932c2cbeb7e37e1543f189a2a73/external/gapic_generator_typescript/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
(error An unexpected error occurred: "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz: Request failed \"404 Not Found\"".
Process stalled
Active handles:
- Socket
- Socket
- Socket
- TLSSocket
)
INFO: Elapsed time: 6.186s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded, 2 targets configured)
FAILED: Build did NOT complete successfully (1 packages loaded, 2 targets configured)
2020-08-06 04:17:52,253 synthtool [DEBUG] > Wrote metadata to synth.metadata.
DEBUG:synthtool: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-media-translation/synth.py", line 31, in <module>
library = gapic.node_library(name, version)
File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 52, in node_library
return self._generate_code(service, version, "nodejs", **kwargs)
File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 183, in _generate_code
shell.run(bazel_run_args)
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 '['bazel', '--max_idle_secs=240', 'build', '//google/cloud/mediatranslation/v1beta1:mediatranslation-v1beta1-nodejs']' returned non-zero exit status 1.
2020-08-06 04:17:52,300 autosynth [ERROR] > Synthesis failed
2020-08-06 04:17:52,300 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 7ec33f4 docs: add links to the CHANGELOG from the README.md for Java and Node (#70)
2020-08-06 04:17:52,305 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-08-06 04:17:52,310 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
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 690, in <module>
main()
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 539, in main
return _inner_main(temp_dir)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 670, in _inner_main
commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 375, in synthesize_loop
has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 273, 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.
The translation from microphone sample mysteriously stopped working.
Environment details
- OS: MacOS (Catalina)
- Node.js version: 12.13.0
- npm version: 6.12.0
@google-cloud/media-translation
version: All versions
Steps to reproduce
- Run the sample:
node translate_from_mic.js "linear16" 16000 "en-US" "fr-FR"
- Speak into your microphone
Expected results: translations appear in the console
Actual results: the console app sits
Attempted fixes
- Clean & rebuild (including reinstall of
node-record-lpcm16
library
- Ran a previous version of the file from an earlier version of the library
- Put breakpoints in code that reads responses from the API
Diagnosis
The service fails to return to the code handling responses. It does occasionally raise a TIMEOUT error, but that behavior is inconsistent.
This test failed!
To configure my behavior, see the Flaky Bot documentation.
If I'm commenting on this issue too often, add the flakybot: quiet
label and
I will stop commenting.
commit: 8257ade
buildURL: Build Status, Sponge
status: failed
Test output
Command failed: node translate_from_file.js /workspace/samples/resources/audio.raw linear16 en-US es-ES
events.js:291
throw er; // Unhandled 'error' event
^
Error: 16 UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:413:49)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:188:78
at processTicksAndRejections (internal/process/task_queues.js:79:11)
for call at
at ServiceClientImpl.makeBidiStreamRequest (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:398:30)
at ServiceClientImpl. (/workspace/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
at /workspace/build/src/v1beta1/speech_translation_service_client.js:190:29
at /workspace/node_modules/google-gax/build/src/streamingCalls/streamingApiCaller.js:46:28
at /workspace/node_modules/google-gax/build/src/normalCalls/timeout.js:44:16
at StreamProxy.setStream (/workspace/node_modules/google-gax/build/src/streamingCalls/streaming.js:144:24)
at StreamingApiCaller.call (/workspace/node_modules/google-gax/build/src/streamingCalls/streamingApiCaller.js:54:16)
at /workspace/node_modules/google-gax/build/src/createApiCall.js:84:30
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Emitted 'error' event on StreamProxy instance at:
at errorOrDestroy (/workspace/node_modules/readable-stream/lib/internal/streams/destroy.js:98:101)
at onwriteError (/workspace/node_modules/readable-stream/lib/_stream_writable.js:430:5)
at onwrite (/workspace/node_modules/readable-stream/lib/_stream_writable.js:450:11)
at WritableState.onwrite (/workspace/node_modules/readable-stream/lib/_stream_writable.js:160:5)
at StreamProxy.Duplexify._destroy (/workspace/node_modules/duplexify/index.js:194:18)
at /workspace/node_modules/duplexify/index.js:185:10
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
code: 16,
details: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.',
metadata: Metadata {
internalRepr: Map {
'grpc-server-stats-bin' => [
Buffer(10) [Uint8Array] [
0, 0, 217, 248, 68,
0, 0, 0, 0, 0
]
]
},
options: {}
}
}
Error: Command failed: node translate_from_file.js /workspace/samples/resources/audio.raw linear16 en-US es-ES
events.js:291
throw er; // Unhandled 'error' event
^
Error: 16 UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:413:49)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:188:78
at processTicksAndRejections (internal/process/task_queues.js:79:11)
for call at
at ServiceClientImpl.makeBidiStreamRequest (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:398:30)
at ServiceClientImpl. (/workspace/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
at /workspace/build/src/v1beta1/speech_translation_service_client.js:190:29
at /workspace/node_modules/google-gax/build/src/streamingCalls/streamingApiCaller.js:46:28
at /workspace/node_modules/google-gax/build/src/normalCalls/timeout.js:44:16
at StreamProxy.setStream (/workspace/node_modules/google-gax/build/src/streamingCalls/streaming.js:144:24)
at StreamingApiCaller.call (/workspace/node_modules/google-gax/build/src/streamingCalls/streamingApiCaller.js:54:16)
at /workspace/node_modules/google-gax/build/src/createApiCall.js:84:30
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Emitted 'error' event on StreamProxy instance at:
at errorOrDestroy (/workspace/node_modules/readable-stream/lib/internal/streams/destroy.js:98:101)
at onwriteError (/workspace/node_modules/readable-stream/lib/_stream_writable.js:430:5)
at onwrite (/workspace/node_modules/readable-stream/lib/_stream_writable.js:450:11)
at WritableState.onwrite (/workspace/node_modules/readable-stream/lib/_stream_writable.js:160:5)
at StreamProxy.Duplexify._destroy (/workspace/node_modules/duplexify/index.js:194:18)
at /workspace/node_modules/duplexify/index.js:185:10
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
code: 16,
details: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.',
metadata: Metadata {
internalRepr: Map {
'grpc-server-stats-bin' => [
Buffer(10) [Uint8Array] [
0, 0, 217, 248, 68,
0, 0, 0, 0, 0
]
]
},
options: {}
}
}
at checkExecSyncError (child_process.js:635:11)
at execSync (child_process.js:671:15)
at exec (test/translate_from_file.test.js:24:21)
at Context.<anonymous> (test/translate_from_file.test.js:28:20)
at processImmediate (internal/timers.js:461:21)</pre></details>
The release PR #18 is still in a pending state after several hours
The following release PRs may have failed:
Hello! Autosynth couldn't regenerate nodejs-media-translation. ๐
Here's the output from running synth.py
:
b'pis.\n2020-06-05 04:34:11,616 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis\nDEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/googleapis\n2020-06-05 04:34:11,620 synthtool [DEBUG] > Pulling Docker image: gapic-generator-typescript:latest\nDEBUG:synthtool:Pulling Docker image: gapic-generator-typescript:latest\nlatest: Pulling from gapic-images/gapic-generator-typescript\nDigest: sha256:c9bc12024eddcfb94501627ff5b3ea302370995e9a2c9cde6b3317375d7e7b66\nStatus: Image is up to date for gcr.io/gapic-images/gapic-generator-typescript:latest\n2020-06-05 04:34:12,518 synthtool [DEBUG] > Generating code for: google/cloud/mediatranslation/v1beta1.\nDEBUG:synthtool:Generating code for: google/cloud/mediatranslation/v1beta1.\n2020-06-05 04:34:13,393 synthtool [DEBUG] > Wrote metadata to synth.metadata.\nDEBUG:synthtool:Wrote metadata to synth.metadata.\nTraceback (most recent call last):\n File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main\n "__main__", mod_spec)\n File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>\n main()\n File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__\n return self.main(*args, **kwargs)\n File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main\n rv = self.invoke(ctx)\n File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke\n return callback(*args, **kwargs)\n File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main\n spec.loader.exec_module(synth_module) # type: ignore\n File "<frozen importlib._bootstrap_external>", line 678, in exec_module\n File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed\n File "/home/kbuilder/.cache/synthtool/nodejs-media-translation/synth.py", line 39, in <module>\n version=version)\n File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 66, in typescript_library\n return self._generate_code(service, version, "typescript", **kwargs)\n File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 195, in _generate_code\n f"Code generation seemed to succeed, but {output_dir} is empty."\nRuntimeError: Code generation seemed to succeed, but /tmpfs/tmp/tmphgs6zrt1 is empty.\n2020-06-05 04:34:13,434 autosynth [ERROR] > Synthesis failed\n2020-06-05 04:34:13,434 autosynth [DEBUG] > Running: git reset --hard HEAD\nHEAD is now at 6c52ff1 chore: release 2.1.0 (#27)\n2020-06-05 04:34:13,440 autosynth [DEBUG] > Running: git checkout autosynth-self\nSwitched to branch \'autosynth-self\'\n2020-06-05 04:34:13,444 autosynth [ERROR] > Command \'[\'/tmpfs/src/github/synthtool/env/bin/python3\', \'-m\', \'synthtool\', \'--metadata\', \'synth.metadata\', \'synth.py\', \'--\']\' returned non-zero exit status 1.\n2020-06-05 04:34:13,589 autosynth [DEBUG] > Running: git checkout 6c52ff11511648eaa1fb10f647c9e369dea57cf9\nNote: checking out \'6c52ff11511648eaa1fb10f647c9e369dea57cf9\'.\n\nYou are in \'detached HEAD\' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by performing another checkout.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -b with the checkout command again. Example:\n\n git checkout -b <new-branch-name>\n\nHEAD is now at 6c52ff1 chore: release 2.1.0 (#27)\n2020-06-05 04:34:13,594 autosynth [DEBUG] > Running: git checkout d53a5b45c46920932dbe7d0a95e10d8b58933dae\nPrevious HEAD position was be74d3e build: do not fail builds on codecov errors (#528)\nHEAD is now at d53a5b4 docs: improve README (#600)\n2020-06-05 04:34:13,609 autosynth [DEBUG] > Running: git checkout cd804bab06e46dd1a4f16c32155fd3cddb931b52\nPrevious HEAD position was 83816bb3 Add kokoro-specific .bazelrc file with arguments specific only for kokoro environments. This is to fix autosynth builds when it tries building older commits.\nHEAD is now at cd804bab docs: cleaned docs for the Agents service and resource.\n2020-06-05 04:34:13,676 autosynth [DEBUG] > Running: git branch -f autosynth-119\n2020-06-05 04:34:13,681 autosynth [DEBUG] > Running: git checkout autosynth-119\nSwitched to branch \'autosynth-119\'\n2020-06-05 04:34:13,685 autosynth [INFO] > Running synthtool\n2020-06-05 04:34:13,686 autosynth [INFO] > [\'/tmpfs/src/github/synthtool/env/bin/python3\', \'-m\', \'synthtool\', \'--metadata\', \'synth.metadata\', \'synth.py\', \'--\']\n2020-06-05 04:34:13,688 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --\n2020-06-05 04:34:13,893 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/nodejs-media-translation/synth.py.\nOn branch autosynth-119\nnothing to commit, working tree clean\n2020-06-05 04:34:14,027 synthtool [DEBUG] > Ensuring dependencies.\nDEBUG:synthtool:Ensuring dependencies.\n2020-06-05 04:34:14,032 synthtool [DEBUG] > Cloning googleapis.\nDEBUG:synthtool:Cloning googleapis.\n2020-06-05 04:34:14,033 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis\nDEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/googleapis\n2020-06-05 04:34:14,036 synthtool [DEBUG] > Pulling Docker image: gapic-generator-typescript:latest\nDEBUG:synthtool:Pulling Docker image: gapic-generator-typescript:latest\nlatest: Pulling from gapic-images/gapic-generator-typescript\nDigest: sha256:c9bc12024eddcfb94501627ff5b3ea302370995e9a2c9cde6b3317375d7e7b66\nStatus: Image is up to date for gcr.io/gapic-images/gapic-generator-typescript:latest\n2020-06-05 04:34:14,949 synthtool [DEBUG] > Generating code for: google/cloud/mediatranslation/v1beta1.\nDEBUG:synthtool:Generating code for: google/cloud/mediatranslation/v1beta1.\n2020-06-05 04:34:15,777 synthtool [DEBUG] > Wrote metadata to synth.metadata.\nDEBUG:synthtool:Wrote metadata to synth.metadata.\nTraceback (most recent call last):\n File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main\n "__main__", mod_spec)\n File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>\n main()\n File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__\n return self.main(*args, **kwargs)\n File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main\n rv = self.invoke(ctx)\n File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke\n return callback(*args, **kwargs)\n File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main\n spec.loader.exec_module(synth_module) # type: ignore\n File "<frozen importlib._bootstrap_external>", line 678, in exec_module\n File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed\n File "/home/kbuilder/.cache/synthtool/nodejs-media-translation/synth.py", line 39, in <module>\n version=version)\n File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 66, in typescript_library\n return self._generate_code(service, version, "typescript", **kwargs)\n File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 195, in _generate_code\n f"Code generation seemed to succeed, but {output_dir} is empty."\nRuntimeError: Code generation seemed to succeed, but /tmpfs/tmp/tmphh809l07 is empty.\n2020-06-05 04:34:15,820 autosynth [ERROR] > Synthesis failed\n2020-06-05 04:34:15,821 autosynth [DEBUG] > Running: git reset --hard HEAD\nHEAD is now at 6c52ff1 chore: release 2.1.0 (#27)\n2020-06-05 04:34:15,826 autosynth [DEBUG] > Running: git checkout autosynth\nSwitched to branch \'autosynth\'\n2020-06-05 04:34:15,831 autosynth [DEBUG] > Running: git clean -fdx\nRemoving __pycache__/\nTraceback (most recent call last):\n File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main\n "__main__", mod_spec)\n File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 615, in <module>\n main()\n File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 476, in main\n return _inner_main(temp_dir)\n File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 595, in _inner_main\n commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)\n File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 371, in synthesize_loop\n synthesize_inner_loop(toolbox, synthesizer)\n File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 381, in synthesize_inner_loop\n synthesizer, len(toolbox.versions) - 1\n File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 266, in synthesize_version_in_new_branch\n synthesizer.synthesize(synth_log_path, self.environ)\n File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 119, in synthesize\n synth_proc.check_returncode() # Raise an exception.\n File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode\n self.stderr)\nsubprocess.CalledProcessError: Command \'[\'/tmpfs/src/github/synthtool/env/bin/python3\', \'-m\', \'synthtool\', \'--metadata\', \'synth.metadata\', \'synth.py\', \'--\']\' returned non-zero exit status 1.\n'
Google internal developers can see the full log here.
Environment details
- OS: Windows 11 Pro; 21H2
- Node.js version: 18.3.0
- npm version: 8.11.0
@google-cloud/media-translation
version: 2.4.0
Steps to reproduce
- Clone nodejs-media-translation repo.
- In "./samples/translate_from_file.js", uncomment lines with variables below and fill them in as seen below (please unzip and use the attached wav file as the test clip, it's just me saying, "hello, how are you?"):
const filename = "./wav.wav";
const encoding = 'linear16';
const sourceLanguage = 'en-US';
const targetLanguage = 'es-MX';
- Add your google cloud credentials to the environment.
- Follow instructions at "./samples/README.md", culminating in translate_from_file.js being run.
PS: I have also used the following file types in testing (assume wav = "audio/wav"): "audio/webm", "audio/webm; codec = opus", and "audio/ogg; codecs=opus".
PSS: In addition, for file types that aren't WAV (or FLAC), the docs say to specify the sample rate hertz of file (variable name being sampleRateHertz), and include that variable in the same object as "encoding", "sourceLanguage", and "targetLanguage" in the same object. None of these file types produce anything.
PSSS: To be clear, running "node samples/translate_from_file.js" should output partial translations, followed by a final translation. If there's an error, that error should be output instead. Right now, nothing is output,
wav.zip
An exception is thrown on the last result because the stream has already been destroyed.
Environment details
- OS: MacOS 10.15.7
- Node.js version: 10.16.0
- npm version: 6.14.11
@google-cloud/media-translation
version: 2.2.1
Steps to reproduce
- Run the NodeJS sample to record from the microphone code after updating the TODO items
Recommend Projects
-
-
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
An Open Source Machine Learning Framework for Everyone
-
The Web framework for perfectionists with deadlines.
-
A PHP framework for web artisans
-
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
Some thing interesting about web. New door for the world.
-
A server is a program made to process requests and deliver data to clients.
-
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Some thing interesting about visualization, use data art
-
Some thing interesting about game, make everyone happy.
-
Recommend Org
-
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Open source projects and samples from Microsoft.
-
Google โค๏ธ Open Source for everyone.
-
Alibaba Open Source for everyone
-
Data-Driven Documents codes.
-
China tencent open source team.
-