Git Product home page Git Product logo

nodejs-asset's Introduction

THIS REPOSITORY IS DEPRECATED. ALL OF ITS CONTENT AND HISTORY HAS BEEN MOVED TO GOOGLE-CLOUD-NODE

Google Cloud Platform logo

release level npm version

Cloud Asset API client for Node.js

A comprehensive list of changes in each version may be found in the CHANGELOG.

Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.

Table of contents:

Quickstart

Before you begin

  1. Select or create a Cloud Platform project.
  2. Enable billing for your project.
  3. Enable the Cloud Asset Inventory API.
  4. Set up authentication with a service account so you can access the API from your local workstation.

Installing the client library

npm install @google-cloud/asset

Using the client library

const util = require('util');
const {AssetServiceClient} = require('@google-cloud/asset');

const client = new AssetServiceClient();

async function quickstart() {
  const projectId = await client.getProjectId();
  const projectResource = `projects/${projectId}`;
  // TODO(developer): Choose asset names, such as //storage.googleapis.com/[YOUR_BUCKET_NAME].
  // const assetNames = ['ASSET_NAME1', 'ASSET_NAME2', ...];

  const request = {
    parent: projectResource,
    assetNames: assetNames.split(','),
    contentType: 'RESOURCE',
    readTimeWindow: {
      startTime: {
        seconds: Math.floor(new Date().getTime() / 1000),
      },
    },
  };

  // Handle the operation using the promise pattern.
  const result = await client.batchGetAssetsHistory(request);
  // Do things with with the response.
  console.log(util.inspect(result, {depth: null}));

Samples

Samples are in the samples/ directory. Each sample's README.md has instructions for running its sample.

Sample Source Code Try it
Analyze Iam Policy source code Open in Cloud Shell
Analyze Iam Policy Longrunning and write results to Bigquery source code Open in Cloud Shell
Analyze Iam Policy Longrunning and write results to GCS source code Open in Cloud Shell
Create Feed source code Open in Cloud Shell
Delete Feed source code Open in Cloud Shell
Export Assets source code Open in Cloud Shell
Export Assets To BigQuery source code Open in Cloud Shell
Get Batch Asset History source code Open in Cloud Shell
Batch Get Effective Iam Policies source code Open in Cloud Shell
Get Feed source code Open in Cloud Shell
List Assets source code Open in Cloud Shell
List Feeds source code Open in Cloud Shell
Asset History Quickstart source code Open in Cloud Shell
Search All Iam Policies source code Open in Cloud Shell
Search All Resources source code Open in Cloud Shell
Update Feed source code Open in Cloud Shell

The Cloud Asset Inventory Node.js Client API Reference documentation also contains samples.

Supported Node.js Versions

Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js. If you are using an end-of-life version of Node.js, we recommend that you update as soon as possible to an actively supported LTS version.

Google's client libraries support legacy versions of Node.js runtimes on a best-efforts basis with the following warnings:

  • Legacy versions are not tested in continuous integration.
  • Some security patches and features cannot be backported.
  • Dependencies cannot be kept up-to-date.

Client libraries targeting some end-of-life versions of Node.js are available, and can be installed through npm dist-tags. The dist-tags follow the naming convention legacy-(version). For example, npm install @google-cloud/asset@legacy-8 installs client libraries for versions compatible with Node.js 8.

Versioning

This library follows Semantic Versioning.

This library is considered to be stable. The code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against stable libraries are addressed with the highest priority.

More Information: Google Cloud Platform Launch Stages

Contributing

Contributions welcome! See the Contributing Guide.

Please note that this README.md, the samples/README.md, and a variety of configuration files in this repository (including .nycrc and tsconfig.json) are generated from a central template. To edit one of these files, make an edit to its templates in directory.

License

Apache Version 2.0

See LICENSE

nodejs-asset's People

Contributors

aaronlichen-hp avatar alexander-fenster avatar bcoe avatar callmehiphop avatar chingor13 avatar crwilcox avatar cwxie-google avatar donghez-google avatar dpebot avatar fhinkel avatar gcf-merge-on-green[bot] avatar gcf-owl-bot[bot] avatar github-actions[bot] avatar google-cloud-policy-bot[bot] avatar jkwlui avatar justinbeckwith avatar larittic-gg avatar lvvvvvf avatar nareshqlogic avatar peter-zheng-g avatar release-please[bot] avatar renovate-bot avatar renovate[bot] avatar sofisl avatar summer-ji-eng avatar surferjeffatgoogle avatar wutonggg avatar xiaozhenliu-gg5 avatar yoshi-automation avatar yuyifan-google avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodejs-asset's Issues

quickstart sample tests: should run the quickstart failed

Note: #454 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 160511b
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include '//storage.googleapis.com/asset-nodejs-670604a6-19a1-47ec-8fe3-b000fd786a1c'
AssertionError: expected '' to include '//storage.googleapis.com/asset-nodejs-670604a6-19a1-47ec-8fe3-b000fd786a1c'
    at Context. (test/sample.test.js:92:12)
    at processImmediate (internal/timers.js:461:21)

quickstart sample tests: should search all iam policies successfully failed

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: dd486a7
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include 'roles/owner'
AssertionError: expected '' to include 'roles/owner'
    at Context. (test/sample.test.js:104:12)
    at processImmediate (internal/timers.js:461:21)

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

kbuilder/.cache/synthtool/googleapis/WORKSPACE:42:1
DEBUG: Rule 'gapic_generator_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "8d11f06b408ac5f1c01da3ca17f3a75dc008831509c5c1a4f24f9bde37792a57"
DEBUG: Call stack for the definition of repository 'gapic_generator_python' 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: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/asset/v1beta1:asset-v1beta1-nodejs (1 packages loaded, 0 targets configured)
Analyzing: target //google/cloud/asset/v1beta1:asset-v1beta1-nodejs (10 packages loaded, 116 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
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/@grpc/grpc-js/-/grpc-js-1.1.2.tgz: Request failed \"404 Not Found\"".
)
ERROR: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1/BUILD.bazel:236:1: //google/cloud/asset/v1beta1:asset_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/@grpc/grpc-js/-/grpc-js-1.1.2.tgz: Request failed \"404 Not Found\"".
)
ERROR: Analysis of target '//google/cloud/asset/v1beta1:asset-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/@grpc/grpc-js/-/grpc-js-1.1.2.tgz: Request failed \"404 Not Found\"".
)
INFO: Elapsed time: 1.967s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (11 packages loaded, 124 targets configured)
FAILED: Build did NOT complete successfully (11 packages loaded, 124 targets configured)

2020-08-06 04:11:44,046 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-asset/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/asset/v1beta1:asset-v1beta1-nodejs']' returned non-zero exit status 1.
2020-08-06 04:11:44,121 autosynth [ERROR] > Synthesis failed
2020-08-06 04:11:44,122 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 11629d4 docs: add links to the CHANGELOG from the README.md for Java and Node (#375)
2020-08-06 04:11:44,129 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-08-06 04:11:44,136 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.

quickstart sample tests: should get assets history successfully failed

This test failed!

To configure my behavior, see the Build Cop Bot documentation.

If I'm commenting on this issue too often, add the buildcop: quiet label and
I will stop commenting.


commit: 125d6ff
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include '//storage.googleapis.com/asset-nodejs-ab2b9400-a5ad-498e-9c3d-c9e958292864'
AssertionError: expected '' to include '//storage.googleapis.com/asset-nodejs-ab2b9400-a5ad-498e-9c3d-c9e958292864'
    at Context. (test/sample.test.js:74:12)
    at processImmediate (internal/timers.js:456:21)

quickstart sample tests: should run the quickstart failed

Note: #565 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: eb4d09a
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include '//storage.googleapis.com/asset-nodejs-f538cc33-b547-489a-8d6d-8727c1032e16'
AssertionError: expected '' to include '//storage.googleapis.com/asset-nodejs-f538cc33-b547-489a-8d6d-8727c1032e16'
    at Context. (test/sample.test.js:114:12)
    at processImmediate (internal/timers.js:461:21)

quickstart sample tests: "after all" hook for "should analyze iam policy and write analysis results to bigquery successfully" failed

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: 54a783d
buildURL: Build Status, Sponge
status: failed

Test output
The specified bucket does not exist.
Error: The specified bucket does not exist.
    at new ApiError (node_modules/@google-cloud/common/build/src/util.js:73:15)
    at Util.parseHttpRespBody (node_modules/@google-cloud/common/build/src/util.js:208:38)
    at Util.handleResp (node_modules/@google-cloud/common/build/src/util.js:149:117)
    at /workspace/samples/node_modules/@google-cloud/common/build/src/util.js:477:22
    at onResponse (node_modules/retry-request/index.js:228:7)
    at /workspace/samples/node_modules/teeny-request/build/src/index.js:226:13
        -> /workspace/samples/node_modules/teeny-request/src/index.ts:333:11
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

quickstart sample tests: "before all" hook for "should export assets to specified path" failed

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: 54a783d
buildURL: Build Status, Sponge
status: failed

Test output
Required parameter: project
Error: Required parameter: project
    at new ApiError (node_modules/@google-cloud/common/build/src/util.js:73:15)
    at Util.parseHttpRespBody (node_modules/@google-cloud/common/build/src/util.js:208:38)
    at Util.handleResp (node_modules/@google-cloud/common/build/src/util.js:149:117)
    at /workspace/samples/node_modules/@google-cloud/common/build/src/util.js:477:22
    at onResponse (node_modules/retry-request/index.js:228:7)
    at /workspace/samples/node_modules/teeny-request/build/src/index.js:226:13
        -> /workspace/samples/node_modules/teeny-request/src/index.ts:333:11
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Action Required: Fix Renovate Configuration

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: Cannot find preset's package (github>whitesource/merge-confidence:beta)

quickstart sample tests: should run the quickstart failed

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: 7136b05
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include '//storage.googleapis.com/asset-nodejs-f7143b49-1bcc-49ba-b584-e72c74fcf2d8'
AssertionError: expected '' to include '//storage.googleapis.com/asset-nodejs-f7143b49-1bcc-49ba-b584-e72c74fcf2d8'
    at Context. (test/sample.test.js:92:12)
    at processImmediate (internal/timers.js:456:21)

📦 pack-n-play test: TypeScript code failed

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: 4c122c9
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)

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

72033033aa910be56a64a1793f
2020-12-12 03:24:21,645 autosynth [DEBUG] > Running: git log -1 --pretty=%at abc43060f136ce77124754a48f367102e646844a
2020-12-12 03:24:21,647 autosynth [DEBUG] > Running: git log -1 --pretty=%at e4d01555afeb93d2f3b467056ea884b092567d1b
2020-12-12 03:24:21,650 autosynth [DEBUG] > Running: git log -1 --pretty=%at 85a5954183479a9a7c2641c013cd728b6fa9b7cd
2020-12-12 03:24:21,653 autosynth [DEBUG] > Running: git log -1 --pretty=%at 222f2a571eac5f2a29662f3f310640e75ff6ca20
2020-12-12 03:24:21,656 autosynth [DEBUG] > Running: git log -1 --pretty=%at c32a98c90a10e92625abc9aa35182f1e4816342c
2020-12-12 03:24:21,659 autosynth [DEBUG] > Running: git log -1 --pretty=%at 98476faded3ae01f2e0277f98086fc861d250325
2020-12-12 03:24:21,662 autosynth [DEBUG] > Running: git log -1 --pretty=%at a53dc0292aad8a7739e44c2165476874ddc487bf
2020-12-12 03:24:21,665 autosynth [DEBUG] > Running: git log -1 --pretty=%at 468a94a87b9f80d22d1f5e3076d5bab73a5c996f
2020-12-12 03:24:21,668 autosynth [DEBUG] > Running: git log -1 --pretty=%at 53eb2512a55caabcbad1898225080a2a3dfcb6aa
2020-12-12 03:24:21,671 autosynth [DEBUG] > Running: git log -1 --pretty=%at cbbd3170bcf217e36ae72f4ac522449bf861346f
2020-12-12 03:24:21,674 autosynth [DEBUG] > Running: git log -1 --pretty=%at c38c7708c09271e3dd4799541583f9fd0e95fc6a
2020-12-12 03:24:21,677 autosynth [DEBUG] > Running: git log -1 --pretty=%at ffae23ed5e42de01b7ffcef16ae3c34cacde7099
2020-12-12 03:24:21,680 autosynth [DEBUG] > Running: git log -1 --pretty=%at bddb3d7479894576e61a6c88fa745bb24f4c98f7
2020-12-12 03:24:21,683 autosynth [DEBUG] > Running: git log -1 --pretty=%at 6d65640b1fcbdf26ea76cb720de0ac138cae9bed
2020-12-12 03:24:21,686 autosynth [DEBUG] > Running: git log -1 --pretty=%at dd372aa22ded7a8ba6f0e03a80e06358a3fa0907
2020-12-12 03:24:21,688 autosynth [DEBUG] > Running: git log -1 --pretty=%at 15013eff642a7e7e855aed5a29e6e83c39beba2a
2020-12-12 03:24:21,691 autosynth [DEBUG] > Running: git log -1 --pretty=%at c2de32114ec484aa708d32012d1fa8d75232daf5
2020-12-12 03:24:21,694 autosynth [DEBUG] > Running: git log -1 --pretty=%at 32af6da519a6b042e3da62008e2a75e991efb6b4
2020-12-12 03:24:21,697 autosynth [DEBUG] > Running: git log -1 --pretty=%at 69629b64b83c6421d616be2b8e11795738ec8a6c
2020-12-12 03:24:21,700 autosynth [DEBUG] > Running: git log -1 --pretty=%at f94318521f63085b9ccb43d42af89f153fb39f15
2020-12-12 03:24:21,703 autosynth [DEBUG] > Running: git log -1 --pretty=%at 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1
2020-12-12 03:24:21,706 autosynth [DEBUG] > Running: git log -1 --pretty=%at 5d11bd2888c38ce1fb6fa6bf25494a4219a73928
2020-12-12 03:24:21,709 autosynth [DEBUG] > Running: git log -1 --pretty=%at 3559dd8cb634347737632776ef4089443eacdb4f
2020-12-12 03:24:21,712 autosynth [DEBUG] > Running: git log -1 --pretty=%at 7d1ee3207371ef72a1ca931a0964c4007e687280
2020-12-12 03:24:21,715 autosynth [DEBUG] > Running: git log -1 --pretty=%at 352f25621c28d2fa0784984ea0ed5ea697aa1525
2020-12-12 03:24:21,718 autosynth [DEBUG] > Running: git log -1 --pretty=%at 996775eca5fd934edac3c2ae34b80ff0395b1717
2020-12-12 03:24:21,721 autosynth [DEBUG] > Running: git checkout d6c5141ea9b1f1194dc203829a972ccbeac389fe
Note: checking out 'd6c5141ea9b1f1194dc203829a972ccbeac389fe'.

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 d6c5141 chore: fixing syntax error in the GAPIC metadata JSON file (#440)
2020-12-12 03:24:21,758 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-12 03:24:21,764 autosynth [DEBUG] > Running: git checkout dd372aa22ded7a8ba6f0e03a80e06358a3fa0907
Note: checking out 'dd372aa22ded7a8ba6f0e03a80e06358a3fa0907'.

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 dd372aa2 fix: remove client recv msg limit fix: add enums to `types/__init__.py`
2020-12-12 03:24:21,777 autosynth [DEBUG] > Running: git branch -f autosynth-57
2020-12-12 03:24:21,780 autosynth [DEBUG] > Running: git checkout autosynth-57
Switched to branch 'autosynth-57'
2020-12-12 03:24:21,784 autosynth [INFO] > Running synthtool
2020-12-12 03:24:21,785 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-12 03:24:21,785 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/nodejs-asset/57/sponge_log.log
2020-12-12 03:24:21,786 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-12 03:24:22,003 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/nodejs-asset/synth.py.
On branch autosynth-57
nothing to commit, working tree clean
2020-12-12 03:24:22,133 synthtool [DEBUG] > Ensuring dependencies.
DEBUG:synthtool:Ensuring dependencies.
2020-12-12 03:24:22,144 synthtool [DEBUG] > Cloning googleapis.
DEBUG:synthtool:Cloning googleapis.
2020-12-12 03:24:22,145 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
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-asset/synth.py", line 31, in <module>
    library = gapic.node_library(name, version)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 58, in node_library
    return self._generate_code(service, version, "nodejs", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_bazel.py", line 164, in _generate_code
    f"Unable to find directory for protos: {(api_definitions_repo / protos)}."
FileNotFoundError: Unable to find directory for protos: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/asset/v1beta1.
2020-12-12 03:24:22,197 autosynth [ERROR] > Synthesis failed
2020-12-12 03:24:22,198 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at d6c5141 chore: fixing syntax error in the GAPIC metadata JSON file (#440)
2020-12-12 03:24:22,203 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-12 03:24:22,207 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 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.

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

Cloning into 'working_repo'...
Switched to branch 'autosynth'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', 'synth.py', '--']
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py.
Traceback (most recent call last):
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/google/protobuf/json_format.py", line 524, in _ConvertFieldValuePair
    [f.json_name for f in message_descriptor.fields]))
google.protobuf.json_format.ParseError: Message type "yoshi.synth.metadata.Metadata" has no field named "combinedCommitLog".
 Available Fields(except extensions): ['updateTime', 'sources', 'destinations', 'newFiles']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 99, in <module>
    main()
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 90, in main
    with synthtool.metadata.MetadataTrackerAndWriter(metadata):
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/metadata.py", line 196, in __enter__
    self.old_metadata = _read_or_empty(self.metadata_file_path)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/metadata.py", line 105, in _read_or_empty
    return google.protobuf.json_format.Parse(text, metadata_pb2.Metadata())
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/google/protobuf/json_format.py", line 430, in Parse
    return ParseDict(js, message, ignore_unknown_fields, descriptor_pool)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/google/protobuf/json_format.py", line 450, in ParseDict
    parser.ConvertMessage(js_dict, message)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/google/protobuf/json_format.py", line 481, in ConvertMessage
    self._ConvertFieldValuePair(value, message)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/google/protobuf/json_format.py", line 592, in _ConvertFieldValuePair
    raise ParseError(str(e))
google.protobuf.json_format.ParseError: Message type "yoshi.synth.metadata.Metadata" has no field named "combinedCommitLog".
 Available Fields(except extensions): ['updateTime', 'sources', 'destinations', 'newFiles']

Synthesis failed

Google internal developers can see the full log here.

quickstart sample tests: should run the quickstart failed

This test failed!

To configure my behavior, see the Build Cop Bot documentation.

If I'm commenting on this issue too often, add the buildcop: quiet label and
I will stop commenting.


commit: 125d6ff
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include '//storage.googleapis.com/asset-nodejs-ab2b9400-a5ad-498e-9c3d-c9e958292864'
AssertionError: expected '' to include '//storage.googleapis.com/asset-nodejs-ab2b9400-a5ad-498e-9c3d-c9e958292864'
    at Context. (test/sample.test.js:80:12)
    at processImmediate (internal/timers.js:456:21)

quickstart sample tests: should get assets history successfully failed

Note: #517 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 2b00118
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include '//storage.googleapis.com/asset-nodejs-e1ed868d-9c28-4ba6-a6bf-48bfdbfbb620'
AssertionError: expected '' to include '//storage.googleapis.com/asset-nodejs-e1ed868d-9c28-4ba6-a6bf-48bfdbfbb620'
    at Context. (test/sample.test.js:83:12)
    at processImmediate (internal/timers.js:461:21)

Add sample code for two new RPCs

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please be sure to include as much information as possible:

Environment details

  • OS:
  • Node.js version:
  • npm version:
  • @google-cloud/asset version:

Steps to reproduce

  1. ?
  2. ?

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

GA Release

Package name: @google-cloud/asset
Current release: beta
Proposed release: GA

Instructions

Check the lists below, adding tests / documentation as required. Once all the "required" boxes are ticked, please create a release and close this issue.

Required

  • 28 days elapsed since last beta release with new API surface
  • Server API is GA
  • Package API is stable, and we can commit to backward compatibility
  • All dependencies are GA

Optional

  • Most common / important scenarios have descriptive samples
  • Public manual methods have at least one usage sample each (excluding overloads)
  • Per-API README includes a full description of the API
  • Per-API README contains at least one “getting started” sample using the most common API scenario
  • Manual code has been reviewed by API producer
  • Manual code has been reviewed by a DPE responsible for samples
  • 'Client LIbraries' page is added to the product documentation in 'APIs & Reference' section of the product's documentation on Cloud Site
    G

Dependency Dashboard

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.

  • chore(deps): update actions/setup-node action to v2

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.


  • Check this box to trigger a request for Renovate to run again on this repository

cannot get quickstart.js or getBatchAssetHistory.js samples to work

I have managed to reproduce flaky tests locally, the root of the problem appears to be that batchGetAssetsHistory does not contain a resource in its listing (that obviously exists):

In pantheon 👇

Screen Shot 2020-11-10 at 9 46 11 AM

Running sample 👇

Screen Shot 2020-11-10 at 9 46 40 AM

I'm guessing this is related to the assets falling outside of the set returned by readTimeWindow, but I can't seem to make any values return.

Refs #422

quickstart sample tests: should analyze iam policy and write analysis results to bigquery successfully failed

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: 43b8894
buildURL: Build Status, Sponge
status: failed

Test output
Timeout of 180000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/workspace/samples/test/sample.test.js)
Error: Timeout of 180000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/workspace/samples/test/sample.test.js)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Samples won't properly capture exceptions

Just throwing this into the backlog after a discussion on nodejs-pubsub.

Specifically looking at this one, but there may be others:
https://github.com/googleapis/nodejs-asset/blob/master/samples/exportAssets.js

Because the call to the inner async function doesn't await, this won't actually catch and pass on exceptions that happen inside of it, and it'll get an unhandled rejection warning from Node. Simpler repro example:

async function main() {
	async function inner() {
		throw new Error("woo!");
	}

	inner();
}

main().catch(console.error);

quickstart sample tests: should search all resources successfully failed

This test failed!

To configure my behavior, see the Build Cop Bot documentation.

If I'm commenting on this issue too often, add the buildcop: quiet label and
I will stop commenting.


commit: 3c1cb89
buildURL: Build Status, Sponge
status: failed

Test output
expected '[ [], null, { results: [], nextPageToken: \'\' } ]\n' to include 'asset-nodejs-0aeb2165-72ce-4a05-ab1a-d621c7406237'
AssertionError: expected '[ [], null, { results: [], nextPageToken: \'\' } ]\n' to include 'asset-nodejs-0aeb2165-72ce-4a05-ab1a-d621c7406237'
    at Context. (test/sample.test.js:86:12)
    at processImmediate (internal/timers.js:456:21)

quickstart sample tests: should export asset relationships to specified path failed

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: eb4d09a
buildURL: Build Status, Sponge
status: failed

Test output
Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/workspace/samples/test/sample.test.js)
Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/workspace/samples/test/sample.test.js)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Getting Error: 12 UNIMPLEMENTED: Method not found, when trying searchAllResources method

I'm currently using this sample
https://github.com/googleapis/nodejs-asset/blob/master/samples/searchAllResources.js

So when I'm calling the API I'm getting the error mentioned in the subject line.
The full error can be seen below

Error: 12 UNIMPLEMENTED: Method not found.
    at Object.callErrorFromStatus (/Users/macbook/Google Drive/Cloudnosys/functions/node_modules/@google-cloud/asset/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
    at Object.onReceiveStatus (/Users/macbook/Google Drive/Cloudnosys/functions/node_modules/@google-cloud/asset/node_modules/@grpc/grpc-js/build/src/client.js:176:52)
    at Object.onReceiveStatus (/Users/macbook/Google Drive/Cloudnosys/functions/node_modules/@google-cloud/asset/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:342:141)
    at Object.onReceiveStatus (/Users/macbook/Google Drive/Cloudnosys/functions/node_modules/@google-cloud/asset/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:305:181)
    at Http2CallStream.outputStatus (/Users/macbook/Google Drive/Cloudnosys/functions/node_modules/@google-cloud/asset/node_modules/@grpc/grpc-js/build/src/call-stream.js:117:74)
    at Http2CallStream.maybeOutputStatus (/Users/macbook/Google Drive/Cloudnosys/functions/node_modules/@google-cloud/asset/node_modules/@grpc/grpc-js/build/src/call-stream.js:156:22)
    at Http2CallStream.endCall (/Users/macbook/Google Drive/Cloudnosys/functions/node_modules/@google-cloud/asset/node_modules/@grpc/grpc-js/build/src/call-stream.js:142:18)
    at Http2CallStream.handleTrailers (/Users/macbook/Google Drive/Cloudnosys/functions/node_modules/@google-cloud/asset/node_modules/@grpc/grpc-js/build/src/call-stream.js:274:14)
    at ClientHttp2Stream.emit (events.js:198:13)
    at emit (internal/http2/core.js:265:8)
(node:20922) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:20922) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

My code can be seen below

// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

"use strict";

// sample-metadata:
//   title: Search All Resources
//   description: Search All Resources.
//   usage: node searchAllResources <SCOPE> <QUERY> <ASSET_TYPES> <PAGE_SIZE> <PAGE_TOKEN> <ORDER_BY>

async function main(scope, query, assetTypes, pageSize, pageToken, orderBy) {
  // [START asset_quickstart_search_all_resources]
  /**
   * TODO(developer): Uncomment these variables before running the sample.
   */
//   const scope = '';
//   const query = '';
//   const assetTypes = [];
//   const pageSize = 0;
//   const pageToken = '';
//   const orderBy = '';

  const util = require("util");
  const { AssetServiceClient } = require("@google-cloud/asset");

  const client = new AssetServiceClient({
    credentials: credentials,
  });
  const projectId = await client.getProjectId();

  async function searchAllResources() {
    const request = {
      scope: `projects/${projectId}`,
      query: query,
      assetTypes: assetTypes,
      pageSize: pageSize,
      pageToken: pageToken,
      orderBy: orderBy,
    };
    const options = {
      autoPaginate: false,
    };

    // Handle the operation using the promise pattern.
    const result = await client.searchAllResources(request, options);
    // Do things with with the response.
    console.log(util.inspect(result, { depth: null }));
  }
  // [END asset_quickstart_search_all_resources]
  searchAllResources();
}

main(...process.argv.slice(2)).catch((err) => {
  console.error(err.message);
  process.exitCode = 1;
});

The credentails variable is already declared above the main code, I've just not shared them here for obvious reasons.
Any help would be really appreciated on this?
Definitely I'm missing something here.

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

nventory' in Type .google.cloud.asset.v1.Asset
    at Type.lookupTypeOrEnum (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/protobufjs/src/namespace.js:410:15)
    at Field.resolve (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/protobufjs/src/field.js:265:94)
    at Type.set (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/protobufjs/src/type.js:177:38)
    at Type.get (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/protobufjs/src/type.js:155:45)
    at Field.resolve (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/protobufjs/src/field.js:314:21)
    at Type.resolveAll (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/protobufjs/src/type.js:304:21)
    at Namespace.resolveAll (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/protobufjs/src/namespace.js:307:25)
    at Namespace.resolveAll (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/protobufjs/src/namespace.js:307:25)
    at Namespace.resolveAll (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/protobufjs/src/namespace.js:307:25)
    at Namespace.resolveAll (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/protobufjs/src/namespace.js:307:25)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:24859) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:24859) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

> @google-cloud/[email protected] precompile /home/kbuilder/.cache/synthtool/nodejs-asset
> gts clean

version: 14
Removing build ...

> @google-cloud/[email protected] compile /home/kbuilder/.cache/synthtool/nodejs-asset
> 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 681 packages in 11.105s

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/asset -> /home/kbuilder/.cache/synthtool/nodejs-asset
/home/kbuilder/.cache/synthtool/nodejs-asset/samples/node_modules/@google-cloud/asset -> /home/kbuilder/.nvm/versions/node/v14.15.1/lib/node_modules/@google-cloud/asset -> /home/kbuilder/.cache/synthtool/nodejs-asset
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 190 packages from 110 contributors and audited 279 packages in 5.832s

58 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

2020-11-17 03:21:40,575 synthtool [DEBUG] > Running fix...
DEBUG:synthtool:Running fix...

> @google-cloud/[email protected] fix /home/kbuilder/.cache/synthtool/nodejs-asset
> gts fix

version: 14

/home/kbuilder/.cache/synthtool/nodejs-asset/src/v1/asset_service_client.ts
  105:48  error  'window' is not defined  no-undef

/home/kbuilder/.cache/synthtool/nodejs-asset/src/v1beta1/asset_service_client.ts
  100:48  error  'window' is not defined  no-undef

/home/kbuilder/.cache/synthtool/nodejs-asset/src/v1p1beta1/asset_service_client.ts
  102:48  error  'window' is not defined  no-undef

/home/kbuilder/.cache/synthtool/nodejs-asset/src/v1p2beta1/asset_service_client.ts
  94:48  error  'window' is not defined  no-undef

/home/kbuilder/.cache/synthtool/nodejs-asset/src/v1p4beta1/asset_service_client.ts
  100:48  error  'window' is not defined  no-undef

/home/kbuilder/.cache/synthtool/nodejs-asset/src/v1p5beta1/asset_service_client.ts
  102:48  error  'window' is not defined  no-undef

✖ 6 problems (6 errors, 0 warnings)

Error: Command failed with exit code 1: node ./node_modules/eslint/bin/eslint --fix **/*.ts **/*.js **/*.tsx **/*.jsx --no-error-on-unmatched-pattern
    at makeError (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/home/kbuilder/.cache/synthtool/nodejs-asset/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async run (/home/kbuilder/.cache/synthtool/nodejs-asset/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-17T11_21_55_116Z-debug.log
2020-11-17 03:21:55,123 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-asset/synth.py", line 44, 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 03:21:55,197 autosynth [ERROR] > Synthesis failed
2020-11-17 03:21:55,197 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at e05a316 test: turn on some test, turn off others (#426)
2020-11-17 03:21:55,211 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-11-17 03:21:55,220 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.

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

Cloning into 'working_repo'...
Switched to branch 'autosynth'
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 256, in <module>
    main()
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 196, in main
    last_synth_commit_hash = get_last_metadata_commit(args.metadata_path)
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 149, in get_last_metadata_commit
    text=True,
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'text'

Google internal developers can see the full log here.

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

t (line 4))
  Using cached https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl
  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))
  Using cached 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))
  Using cached https://files.pythonhosted.org/packages/30/79/510974552cebff2ba04038544799450defe75e96ea5f1675dbf72cc8744f/protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl
  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))
  Using cached 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/tmpaifdber9/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'
    
    ----------------------------------------
 (Command "python setup.py egg_info" failed with error code 1 in /tmpfs/tmp/pip-build-f7rjr_vf/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))
  Using cached https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl
  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))
  Using cached https://files.pythonhosted.org/packages/e0/2d/7c6c75013105e1d2b6eaa1bf18a56995be1dbc673c38885aea31136e9918/google_api_core-1.22.1-py2.py3-none-any.whl
  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))
  Using cached https://files.pythonhosted.org/packages/03/74/3956721ea1eb4bcf7502a311fdaa60b85bd751de4e57d1943afe9b334141/googleapis_common_protos-1.52.0-py2.py3-none-any.whl
  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))
  Using cached https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl
  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))
  Using cached 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))
  Using cached https://files.pythonhosted.org/packages/30/79/510974552cebff2ba04038544799450defe75e96ea5f1675dbf72cc8744f/protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl
  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))
  Using cached 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/tmpaifdber9/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'
    
    ----------------------------------------
 (Command "python setup.py egg_info" failed with error code 1 in /tmpfs/tmp/pip-build-f7rjr_vf/pypandoc/
)
INFO: Elapsed time: 2.296s
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-asset/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/asset/v1beta1:asset-v1beta1-nodejs']' returned non-zero exit status 1.
2020-08-31 02:14:47,419 autosynth [ERROR] > Synthesis failed
2020-08-31 02:14:47,420 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at df0910f build: track flaky tests for "nightly", add new secrets for tagging (#388)
2020-08-31 02:14:47,424 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-08-31 02:14:47,429 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.

Your .repo-metadata.json file has a problem 🤒

You have a problem with your .repo-metadata.json file:

Result of scan 📈:

  • api_shortname 'asset' invalid 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.

Cloud Asset: Add export to BigQuery sample and test

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please be sure to include as much information as possible:

Environment details

  • OS:
  • Node.js version:
  • npm version:
  • @google-cloud/asset version:

Steps to reproduce

Cloud Asset: We add a new feature which enable user to export assets into Bigquery tables. This is a bug for my cl to add export to BigQuery sample and test

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

b'wnload complete\ne705a4c4fd31: Pull complete\nc877b722db6f: Pull complete\n645c20ec8214: Pull complete\n72851fd0a9e4: Pull complete\nc97d6cf2691b: Pull complete\n7df0baa2324d: Pull complete\n59e50139987f: Pull complete\n78f734545fdf: Pull complete\n508f48e2680e: Pull complete\nc5f00eabe4a1: Pull complete\n852216185f9c: Pull complete\n7b279e2e9539: Pull complete\nb722cb2167d1: Pull complete\n7098d9f32ee1: Pull complete\n029759850938: Pull complete\n8c3085ea5a88: Pull complete\n50101cb00701: Pull complete\n9c21d1b84e8a: Pull complete\ne78149d820a7: Pull complete\n587770ef4fde: Pull complete\nf02bfb9bd204: Pull complete\n14c9240a4e95: Pull complete\nDigest: sha256:c9bc12024eddcfb94501627ff5b3ea302370995e9a2c9cde6b3317375d7e7b66\nStatus: Downloaded newer image for gcr.io/gapic-images/gapic-generator-typescript:latest\n2020-06-05 04:21:00,681 synthtool [DEBUG] > Generating code for: google/cloud/asset/v1beta1.\nDEBUG:synthtool:Generating code for: google/cloud/asset/v1beta1.\n2020-06-05 04:21:06,014 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-asset/synth.py", line 42, 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/tmp8q7p105x is empty.\n2020-06-05 04:21:06,056 autosynth [ERROR] > Synthesis failed\n2020-06-05 04:21:06,056 autosynth [DEBUG] > Running: git reset --hard HEAD\nHEAD is now at 5b830eb chore: release 3.1.0 (#324)\n2020-06-05 04:21:06,062 autosynth [DEBUG] > Running: git checkout autosynth-self\nSwitched to branch \'autosynth-self\'\n2020-06-05 04:21:06,066 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:21:06,191 autosynth [DEBUG] > Running: git checkout 5b830eb203eb03f88513c45e1ce4bd994957685b\nNote: checking out \'5b830eb203eb03f88513c45e1ce4bd994957685b\'.\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 5b830eb chore: release 3.1.0 (#324)\n2020-06-05 04:21:06,196 autosynth [DEBUG] > Running: git checkout d53a5b45c46920932dbe7d0a95e10d8b58933dae\nPrevious HEAD position was 7ee9282 fix: don\'t fail when clean fails (#574)\nHEAD is now at d53a5b4 docs: improve README (#600)\n2020-06-05 04:21:06,209 autosynth [DEBUG] > Running: git checkout cd804bab06e46dd1a4f16c32155fd3cddb931b52\nPrevious HEAD position was f563b1df docs: Properly format literal strings.\nHEAD is now at cd804bab docs: cleaned docs for the Agents service and resource.\n2020-06-05 04:21:06,260 autosynth [DEBUG] > Running: git branch -f autosynth-57\n2020-06-05 04:21:06,265 autosynth [DEBUG] > Running: git checkout autosynth-57\nSwitched to branch \'autosynth-57\'\n2020-06-05 04:21:06,269 autosynth [INFO] > Running synthtool\n2020-06-05 04:21:06,269 autosynth [INFO] > [\'/tmpfs/src/github/synthtool/env/bin/python3\', \'-m\', \'synthtool\', \'--metadata\', \'synth.metadata\', \'synth.py\', \'--\']\n2020-06-05 04:21:06,271 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --\n2020-06-05 04:21:06,478 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/nodejs-asset/synth.py.\nOn branch autosynth-57\nnothing to commit, working tree clean\n2020-06-05 04:21:06,611 synthtool [DEBUG] > Ensuring dependencies.\nDEBUG:synthtool:Ensuring dependencies.\n2020-06-05 04:21:06,616 synthtool [DEBUG] > Cloning googleapis.\nDEBUG:synthtool:Cloning googleapis.\n2020-06-05 04:21:06,617 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis\nDEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/googleapis\n2020-06-05 04:21:06,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:21:07,510 synthtool [DEBUG] > Generating code for: google/cloud/asset/v1beta1.\nDEBUG:synthtool:Generating code for: google/cloud/asset/v1beta1.\n2020-06-05 04:21:08,337 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-asset/synth.py", line 42, 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/tmpgd_4olex is empty.\n2020-06-05 04:21:08,378 autosynth [ERROR] > Synthesis failed\n2020-06-05 04:21:08,378 autosynth [DEBUG] > Running: git reset --hard HEAD\nHEAD is now at 5b830eb chore: release 3.1.0 (#324)\n2020-06-05 04:21:08,384 autosynth [DEBUG] > Running: git checkout autosynth\nSwitched to branch \'autosynth\'\n2020-06-05 04:21:08,388 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.

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2021-01-29 03:17:10,775 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/nodejs-asset/synth.py.
On branch autosynth-86
nothing to commit, working tree clean
2021-01-29 03:17:10,927 synthtool [DEBUG] > Ensuring dependencies.
DEBUG:synthtool:Ensuring dependencies.
2021-01-29 03:17:10,938 synthtool [DEBUG] > Cloning googleapis.
DEBUG:synthtool:Cloning googleapis.
2021-01-29 03:17:10,939 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/googleapis
2021-01-29 03:17:10,944 synthtool [DEBUG] > Which version of bazel will I run?
DEBUG:synthtool:Which version of bazel will I run?
bazel 3.0.0
2021-01-29 03:17:10,948 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1p1beta1:asset-v1p1beta1-nodejs.
DEBUG:synthtool:Generating code for: //google/cloud/asset/v1p1beta1:asset-v1p1beta1-nodejs.
2021-01-29 03:20:33,150 synthtool [SUCCESS] > Generated code into /tmpfs/tmp/tmp1ahysdgi.
SUCCESS:synthtool:Generated code into /tmpfs/tmp/tmp1ahysdgi.
2021-01-29 03:20:33,161 synthtool [DEBUG] > Which version of bazel will I run?
DEBUG:synthtool:Which version of bazel will I run?
bazel 3.0.0
2021-01-29 03:20:33,165 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1p2beta1:asset-v1p2beta1-nodejs.
DEBUG:synthtool:Generating code for: //google/cloud/asset/v1p2beta1:asset-v1p2beta1-nodejs.
2021-01-29 03:20:40,445 synthtool [SUCCESS] > Generated code into /tmpfs/tmp/tmpqssdhi8i.
SUCCESS:synthtool:Generated code into /tmpfs/tmp/tmpqssdhi8i.
2021-01-29 03:20:40,463 synthtool [DEBUG] > Which version of bazel will I run?
DEBUG:synthtool:Which version of bazel will I run?
bazel 3.0.0
2021-01-29 03:20:40,468 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1p4beta1:asset-v1p4beta1-nodejs.
DEBUG:synthtool:Generating code for: //google/cloud/asset/v1p4beta1:asset-v1p4beta1-nodejs.
2021-01-29 03:20:47,434 synthtool [SUCCESS] > Generated code into /tmpfs/tmp/tmpa7j084nq.
SUCCESS:synthtool:Generated code into /tmpfs/tmp/tmpa7j084nq.
2021-01-29 03:20:47,446 synthtool [DEBUG] > Which version of bazel will I run?
DEBUG:synthtool:Which version of bazel will I run?
bazel 3.0.0
2021-01-29 03:20:47,452 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1p5beta1:asset-v1p5beta1-nodejs.
DEBUG:synthtool:Generating code for: //google/cloud/asset/v1p5beta1:asset-v1p5beta1-nodejs.
2021-01-29 03:20:52,929 synthtool [SUCCESS] > Generated code into /tmpfs/tmp/tmpcrzqvqoz.
SUCCESS:synthtool:Generated code into /tmpfs/tmp/tmpcrzqvqoz.
2021-01-29 03:20:52,942 synthtool [DEBUG] > Which version of bazel will I run?
DEBUG:synthtool:Which version of bazel will I run?
bazel 3.0.0
2021-01-29 03:20:52,946 synthtool [DEBUG] > Generating code for: //google/cloud/asset/v1:asset-v1-nodejs.
DEBUG:synthtool:Generating code for: //google/cloud/asset/v1:asset-v1-nodejs.
2021-01-29 03:20:59,572 synthtool [SUCCESS] > Generated code into /tmpfs/tmp/tmpwg3j8mwe.
SUCCESS:synthtool:Generated code into /tmpfs/tmp/tmpwg3j8mwe.
2021-01-29 03:20:59,589 synthtool [DEBUG] > Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
DEBUG:synthtool:Using precloned repo /home/kbuilder/.cache/synthtool/synthtool
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-asset/synth.py", line 41, in <module>
    source_location='build/src', versions=versions, default_version='v1')
  File "/tmpfs/src/github/synthtool/synthtool/gcp/common.py", line 278, in node_library
    kwargs["metadata"] = node.template_metadata()
  File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 67, in template_metadata
    all_samples = samples.all_samples(["samples/*.js"])
  File "/tmpfs/src/github/synthtool/synthtool/gcp/samples.py", line 72, in all_samples
    return [_sample_metadata(file) for file in sorted(files)]
  File "/tmpfs/src/github/synthtool/synthtool/gcp/samples.py", line 72, in <listcomp>
    return [_sample_metadata(file) for file in sorted(files)]
  File "/tmpfs/src/github/synthtool/synthtool/gcp/samples.py", line 51, in _sample_metadata
    return {**metadata, **_read_sample_metadata_comment(file)}
  File "/tmpfs/src/github/synthtool/synthtool/gcp/samples.py", line 40, in _read_sample_metadata_comment
    sample_metadata = yaml.load(sample_metadata_string, Loader=yaml.SafeLoader)[
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/__init__.py", line 114, in load
    return loader.get_single_data()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/constructor.py", line 49, in get_single_data
    node = self.get_single_node()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/parser.py", line 428, in parse_block_mapping_key
    if self.check_token(KeyToken):
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/scanner.py", line 116, in check_token
    self.fetch_more_tokens()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/scanner.py", line 173, in fetch_more_tokens
    return self.fetch_stream_end()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/scanner.py", line 377, in fetch_stream_end
    self.remove_possible_simple_key()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/yaml/scanner.py", line 319, in remove_possible_simple_key
    "could not find expected ':'", self.get_mark())
yaml.scanner.ScannerError: while scanning a simple key
  in "<unicode string>", line 5, column 3:
      <gs:my-bucket/my-analysis.json>
      ^
could not find expected ':'
  in "<unicode string>", line 5, column 34:
      <gs:my-bucket/my-analysis.json>
                                     ^
2021-01-29 03:20:59,648 autosynth [ERROR] > Synthesis failed
2021-01-29 03:20:59,648 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at dfbd75c feat(samples): add samples for analyzeIamPolicy and analyzeIamPolicyLongrunning (#433)
2021-01-29 03:20:59,660 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2021-01-29 03:20:59,669 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 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.

quickstart sample tests: should export assets to specified path failed

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: 80a3ceb
buildURL: Build Status, Sponge
status: failed

Test output
Timeout of 180000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/workspace/samples/test/sample.test.js)
Error: Timeout of 180000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/workspace/samples/test/sample.test.js)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

quickstart sample tests: should get assets history successfully failed

Note: #415 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 1b5d4c8
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include '//storage.googleapis.com/asset-nodejs-df5a921a-bead-4c4d-869a-19a6c29a59cc'
AssertionError: expected '' to include '//storage.googleapis.com/asset-nodejs-df5a921a-bead-4c4d-869a-19a6c29a59cc'
    at Context. (test/sample.test.js:76:12)
    at processImmediate (internal/timers.js:456:21)

quickstart sample tests: should run the quickstart failed

Note: #580 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 5551047
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include '//storage.googleapis.com/asset-nodejs…'
AssertionError: expected '' to include '//storage.googleapis.com/asset-nodejs…'
    at Context. (test/sample.test.js:114:12)
    at processImmediate (internal/timers.js:461:21)

cleanup old nodejs-asset resources

I'm wondering whether the reason this repository is slowing down is that we're collecting old vms and buckets in our account (leading to gradual slowdown over time).

We should add logic that cleans up the old VMs and storage buckets created for the asset client.

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

Cloning into 'working_repo'...
Switched to branch 'autosynth'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', 'synth.py', '--']
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
latest: Pulling from googleapis/artman
Digest: sha256:d6c8ced606eb49973ca95d2af7c55a681acc042db0f87d135968349e7bf6dd80
Status: Image is up to date for googleapis/artman:latest
synthtool > Cloning googleapis.
synthtool > Running generator for google/cloud/asset/artman_cloudasset_v1beta1.yaml.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/js/asset-v1beta1.
.eslintignore
.eslintrc.yml
.github/CONTRIBUTING.md
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/ISSUE_TEMPLATE/support_request.md
.jsdoc.js
.kokoro/common.cfg
.kokoro/continuous/node10/common.cfg
.kokoro/continuous/node10/test.cfg
.kokoro/continuous/node11/common.cfg
.kokoro/continuous/node11/test.cfg
.kokoro/continuous/node6/common.cfg
.kokoro/continuous/node6/test.cfg
.kokoro/continuous/node8/common.cfg
.kokoro/continuous/node8/docs.cfg
.kokoro/continuous/node8/lint.cfg
.kokoro/continuous/node8/samples-test.cfg
.kokoro/continuous/node8/system-test.cfg
.kokoro/continuous/node8/test.cfg
.kokoro/docs.sh
.kokoro/lint.sh
.kokoro/presubmit/node10/common.cfg
.kokoro/presubmit/node10/test.cfg
.kokoro/presubmit/node11/common.cfg
.kokoro/presubmit/node11/test.cfg
.kokoro/presubmit/node6/common.cfg
.kokoro/presubmit/node6/test.cfg
.kokoro/presubmit/node8/common.cfg
.kokoro/presubmit/node8/docs.cfg
.kokoro/presubmit/node8/lint.cfg
.kokoro/presubmit/node8/samples-test.cfg
.kokoro/presubmit/node8/system-test.cfg
.kokoro/presubmit/node8/test.cfg
.kokoro/presubmit/windows/common.cfg
.kokoro/presubmit/windows/test.cfg
.kokoro/publish.sh
.kokoro/release/publish.cfg
.kokoro/samples-test.sh
.kokoro/system-test.sh
.kokoro/test.bat
.kokoro/test.sh
.kokoro/trampoline.sh
.nycrc
.prettierignore
.prettierrc
CODE_OF_CONDUCT.md
LICENSE
codecov.yaml
renovate.json
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 87, in <module>
    main()
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 79, in main
    spec.loader.exec_module(synth_module)
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "/tmpfs/src/git/autosynth/working_repo/synth.py", line 39, in <module>
    f'`"{discovery_url}"`'
TypeError: replace() missing 1 required positional argument: 'after'
synthtool > Cleaned up 2 temporary directories.
synthtool > Wrote metadata to synth.metadata.

Synthesis failed

Google internal developers can see the full log here.

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

Cloning into 'working_repo'...
Switched to a new branch 'autosynth'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-04-01 04:20:41,861 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py.
2020-04-01 04:20:41,916 synthtool > Ensuring dependencies.
2020-04-01 04:20:41,920 synthtool > Cloning googleapis.
2020-04-01 04:20:44,058 synthtool > Pulling Docker image: gapic-generator-typescript:latest
latest: Pulling from gapic-images/gapic-generator-typescript
146bd6a88618: Pulling fs layer
9935d0c62ace: Pulling fs layer
db0efb86e806: Pulling fs layer
e705a4c4fd31: Pulling fs layer
c877b722db6f: Pulling fs layer
645c20ec8214: Pulling fs layer
72851fd0a9e4: Pulling fs layer
c97d6cf2691b: Pulling fs layer
7df0baa2324d: Pulling fs layer
59e50139987f: Pulling fs layer
78f734545fdf: Pulling fs layer
508f48e2680e: Pulling fs layer
c5f00eabe4a1: Pulling fs layer
c04d5e920ec0: Pulling fs layer
bcda19855c56: Pulling fs layer
edbe51c06083: Pulling fs layer
9b4c834db5c7: Pulling fs layer
ef5101b004e6: Pulling fs layer
fc3d1cccea00: Pulling fs layer
00f15a41821c: Pulling fs layer
a23a5447d394: Pulling fs layer
e4610f5a98d2: Pulling fs layer
dc7f43de315c: Pulling fs layer
c3b5a9972c19: Pulling fs layer
c04d5e920ec0: Waiting
bcda19855c56: Waiting
edbe51c06083: Waiting
e4610f5a98d2: Waiting
dc7f43de315c: Waiting
9b4c834db5c7: Waiting
fc3d1cccea00: Waiting
c3b5a9972c19: Waiting
ef5101b004e6: Waiting
645c20ec8214: Waiting
e705a4c4fd31: Waiting
72851fd0a9e4: Waiting
c877b722db6f: Waiting
c97d6cf2691b: Waiting
7df0baa2324d: Waiting
78f734545fdf: Waiting
59e50139987f: Waiting
a23a5447d394: Waiting
c5f00eabe4a1: Waiting
508f48e2680e: Waiting
db0efb86e806: Verifying Checksum
db0efb86e806: Download complete
9935d0c62ace: Verifying Checksum
9935d0c62ace: Download complete
146bd6a88618: Verifying Checksum
146bd6a88618: Download complete
645c20ec8214: Verifying Checksum
645c20ec8214: Download complete
e705a4c4fd31: Verifying Checksum
e705a4c4fd31: Download complete
c97d6cf2691b: Verifying Checksum
c97d6cf2691b: Download complete
7df0baa2324d: Download complete
59e50139987f: Verifying Checksum
59e50139987f: Download complete
78f734545fdf: Verifying Checksum
78f734545fdf: Download complete
508f48e2680e: Verifying Checksum
508f48e2680e: Download complete
c5f00eabe4a1: Verifying Checksum
c5f00eabe4a1: Download complete
c04d5e920ec0: Verifying Checksum
c04d5e920ec0: Download complete
146bd6a88618: Pull complete
c877b722db6f: Verifying Checksum
c877b722db6f: Download complete
bcda19855c56: Verifying Checksum
bcda19855c56: Download complete
edbe51c06083: Download complete
9935d0c62ace: Pull complete
9b4c834db5c7: Verifying Checksum
9b4c834db5c7: Download complete
ef5101b004e6: Verifying Checksum
ef5101b004e6: Download complete
db0efb86e806: Pull complete
fc3d1cccea00: Verifying Checksum
fc3d1cccea00: Download complete
00f15a41821c: Verifying Checksum
00f15a41821c: Download complete
a23a5447d394: Verifying Checksum
a23a5447d394: Download complete
e4610f5a98d2: Verifying Checksum
e4610f5a98d2: Download complete
72851fd0a9e4: Verifying Checksum
72851fd0a9e4: Download complete
dc7f43de315c: Verifying Checksum
dc7f43de315c: Download complete
c3b5a9972c19: Verifying Checksum
c3b5a9972c19: Download complete
e705a4c4fd31: Pull complete
c877b722db6f: Pull complete
645c20ec8214: Pull complete
72851fd0a9e4: Pull complete
c97d6cf2691b: Pull complete
7df0baa2324d: Pull complete
59e50139987f: Pull complete
78f734545fdf: Pull complete
508f48e2680e: Pull complete
c5f00eabe4a1: Pull complete
c04d5e920ec0: Pull complete
bcda19855c56: Pull complete
edbe51c06083: Pull complete
9b4c834db5c7: Pull complete
ef5101b004e6: Pull complete
fc3d1cccea00: Pull complete
00f15a41821c: Pull complete
a23a5447d394: Pull complete
e4610f5a98d2: Pull complete
dc7f43de315c: Pull complete
c3b5a9972c19: Pull complete
Digest: sha256:0e638967c3d07868d8cc364c0c458daedd2fa72be1ac3edf5748695bbae417aa
Status: Downloaded newer image for gcr.io/gapic-images/gapic-generator-typescript:latest
2020-04-01 04:21:01,703 synthtool > Generating code for: google/cloud/asset/v1beta1.
2020-04-01 04:21:07,384 synthtool > Generated code into /tmpfs/tmp/tmprh3f_gtu.
2020-04-01 04:21:07,396 synthtool > Pulling Docker image: gapic-generator-typescript:latest
latest: Pulling from gapic-images/gapic-generator-typescript
Digest: sha256:0e638967c3d07868d8cc364c0c458daedd2fa72be1ac3edf5748695bbae417aa
Status: Image is up to date for gcr.io/gapic-images/gapic-generator-typescript:latest
2020-04-01 04:21:08,320 synthtool > Generating code for: google/cloud/asset/v1.
2020-04-01 04:21:09,171 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/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/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 "/tmpfs/src/git/autosynth/working_repo/synth.py", line 35, in <module>
    version=version)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/gcp/gapic_microgenerator.py", line 65, in typescript_library
    return self._generate_code(service, version, "typescript", **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/gcp/gapic_microgenerator.py", line 194, in _generate_code
    f"Code generation seemed to succeed, but {output_dir} is empty."
RuntimeError: Code generation seemed to succeed, but /tmpfs/tmp/tmp620yw4mp is empty.
Synthesis failed
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/git/autosynth/autosynth/synth.py", line 482, in <module>
    main()
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 334, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 399, in _inner_main
    deprecated_execution=args.deprecated_execution,
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 278, 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/git/autosynth/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.

quickstart sample tests: should export assets to specified path failed

Note: #533 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 09dcc71
buildURL: Build Status, Sponge
status: failed

Test output
Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/workspace/samples/test/sample.test.js)
Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/workspace/samples/test/sample.test.js)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Synthesis failed for nodejs-asset

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

Here's the output from running synth.py:

mPolicySearchResult[] = [];
�[7m    �[0m �[91m                                                              ~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1166�[0m:�[93m75�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-asset/protos/protos".google.cloud.asset.v1' has no exported member 'IamPolicySearchResult'.

�[7m1166�[0m                 stream.on('data', (response: protos.google.cloud.asset.v1.IamPolicySearchResult) => {
�[7m    �[0m �[91m                                                                          ~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1193�[0m:�[93m84�[0m - �[91merror�[0m�[90m TS2339: �[0mProperty 'SearchAllIamPoliciesRequest' does not exist on type 'typeof v1'.

�[7m1193�[0m             const request = generateSampleMessage(new protos.google.cloud.asset.v1.SearchAllIamPoliciesRequest());
�[7m    �[0m �[91m                                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1200�[0m:�[93m63�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-asset/protos/protos".google.cloud.asset.v1' has no exported member 'IamPolicySearchResult'.

�[7m1200�[0m                 const responses: protos.google.cloud.asset.v1.IamPolicySearchResult[] = [];
�[7m    �[0m �[91m                                                              ~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1201�[0m:�[93m75�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-asset/protos/protos".google.cloud.asset.v1' has no exported member 'IamPolicySearchResult'.

�[7m1201�[0m                 stream.on('data', (response: protos.google.cloud.asset.v1.IamPolicySearchResult) => {
�[7m    �[0m �[91m                                                                          ~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1227�[0m:�[93m84�[0m - �[91merror�[0m�[90m TS2339: �[0mProperty 'SearchAllIamPoliciesRequest' does not exist on type 'typeof v1'.

�[7m1227�[0m             const request = generateSampleMessage(new protos.google.cloud.asset.v1.SearchAllIamPoliciesRequest());
�[7m    �[0m �[91m                                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1230�[0m:�[93m70�[0m - �[91merror�[0m�[90m TS2339: �[0mProperty 'IamPolicySearchResult' does not exist on type 'typeof v1'.

�[7m1230�[0m               generateSampleMessage(new protos.google.cloud.asset.v1.IamPolicySearchResult()),
�[7m    �[0m �[91m                                                                     ~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1231�[0m:�[93m70�[0m - �[91merror�[0m�[90m TS2339: �[0mProperty 'IamPolicySearchResult' does not exist on type 'typeof v1'.

�[7m1231�[0m               generateSampleMessage(new protos.google.cloud.asset.v1.IamPolicySearchResult()),
�[7m    �[0m �[91m                                                                     ~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1232�[0m:�[93m70�[0m - �[91merror�[0m�[90m TS2339: �[0mProperty 'IamPolicySearchResult' does not exist on type 'typeof v1'.

�[7m1232�[0m               generateSampleMessage(new protos.google.cloud.asset.v1.IamPolicySearchResult()),
�[7m    �[0m �[91m                                                                     ~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1235�[0m:�[93m59�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-asset/protos/protos".google.cloud.asset.v1' has no exported member 'IIamPolicySearchResult'.

�[7m1235�[0m             const responses: protos.google.cloud.asset.v1.IIamPolicySearchResult[] = [];
�[7m    �[0m �[91m                                                          ~~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1257�[0m:�[93m84�[0m - �[91merror�[0m�[90m TS2339: �[0mProperty 'SearchAllIamPoliciesRequest' does not exist on type 'typeof v1'.

�[7m1257�[0m             const request = generateSampleMessage(new protos.google.cloud.asset.v1.SearchAllIamPoliciesRequest());
�[7m    �[0m �[91m                                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m

�[96mtest/gapic_asset_service_v1.ts�[0m:�[93m1263�[0m:�[93m63�[0m - �[91merror�[0m�[90m TS2694: �[0mNamespace '"/home/kbuilder/.cache/synthtool/nodejs-asset/protos/protos".google.cloud.asset.v1' has no exported member 'IIamPolicySearchResult'.

�[7m1263�[0m                 const responses: protos.google.cloud.asset.v1.IIamPolicySearchResult[] = [];
�[7m    �[0m �[91m                                                              ~~~~~~~~~~~~~~~~~~~~~~�[0m


Found 104 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/[email protected] compile: `tsc -p . && cp -r protos build/`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @google-cloud/[email protected] compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kbuilder/.npm/_logs/2020-05-14T21_54_11_084Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @google-cloud/[email protected] prepare: `npm run compile`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @google-cloud/[email protected] prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kbuilder/.npm/_logs/2020-05-14T21_54_11_099Z-debug.log
2020-05-14 14:54:11,114 synthtool [ERROR] > Failed executing npm install:

None
ERROR:synthtool:Failed executing npm install:

None
2020-05-14 14:54:11,115 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-asset/synth.py", line 55, in <module>
    node.postprocess_gapic_library()
  File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 193, in postprocess_gapic_library
    install(hide_output=hide_output)
  File "/tmpfs/src/github/synthtool/synthtool/languages/node.py", line 167, in install
    shell.run(["npm", "install"], hide_output=hide_output)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['npm', 'install']' returned non-zero exit status 1.
2020-05-14 14:54:11,163 autosynth [ERROR] > Synthesis failed
2020-05-14 14:54:11,163 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at 145017d build: do not fail builds on codecov errors (#528) (#329)
2020-05-14 14:54:11,176 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
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 600, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 472, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 590, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 367, in synthesize_loop
    synthesize_inner_loop(toolbox, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 377, in synthesize_inner_loop
    synthesizer, len(toolbox.versions) - 1
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 265, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 119, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

quickstart sample tests: should get assets history successfully failed

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: 1dfb0e9
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include '//storage.googleapis.com/asset-nodejs-2df1ed11-a3de-4886-988c-231abf2939bc'
AssertionError: expected '' to include '//storage.googleapis.com/asset-nodejs-2df1ed11-a3de-4886-988c-231abf2939bc'
    at Context. (test/sample.test.js:83:12)
    at processImmediate (internal/timers.js:461:21)

quickstart sample tests: should run the quickstart failed

Note: #478 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 43b8894
buildURL: Build Status, Sponge
status: failed

Test output
expected '' to include '//storage.googleapis.com/asset-nodejs-9350d5d8-2440-4222-a8fa-132a22f44991'
AssertionError: expected '' to include '//storage.googleapis.com/asset-nodejs-9350d5d8-2440-4222-a8fa-132a22f44991'
    at Context. (test/sample.test.js:114:12)
    at processImmediate (internal/timers.js:461:21)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.