Skip to content

Commit

Permalink
chore: migrate to owl bot (#99)
Browse files Browse the repository at this point in the history
* chore: migrate to owl bot

* chore: copy files from googleapis-gen 298d075b25f90307b1e3b56eb256b66304dd329c

* chore: run the post processor

* chore: migrate to owl bot

* chore: copy files from googleapis-gen 674a41e0de2869f44f45eb7b1a605852a5394bba

* chore: run the post processor

* chore: retrigger github checks

Co-authored-by: Luke Davis <[email protected]>
  • Loading branch information
SurferJeffAtGoogle and lucaswadedavis authored Apr 23, 2021
1 parent 01b7f66 commit b32b8a1
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 92 deletions.
26 changes: 26 additions & 0 deletions packages/google-cloud-aiplatform/.github/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2021 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.
docker:
image: gcr.io/repo-automation-bots/owlbot-nodejs:latest


deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/cloud/aiplatform/(v.*)/.*-nodejs/(.*)
dest: /owl-bot-staging/$1/$2

begin-after-commit-hash: 674a41e0de2869f44f45eb7b1a605852a5394bba

15 changes: 8 additions & 7 deletions packages/google-cloud-aiplatform/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "aiplatform",
"language": "nodejs",
"issue_tracker": "https://github.com/googleapis/nodejs-ai-platform/issues",
"requires_billing": true,
"name_pretty": "AI Platform",
"product_documentation": "https://cloud.google.com/ai-platform/docs",
"name": "aiplatform",
"default_version": "v1",
"client_documentation": "https://googleapis.dev/nodejs/aiplatform/latest",
"issue_tracker": "https://github.com/googleapis/nodejs-ai-platform/issues",
"release_level": "beta",
"language": "nodejs",
"repo": "googleapis/nodejs-ai-platform",
"distribution_name": "@google-cloud/aiplatform",
"api_id": "aiplatform.googleapis.com",
"requires_billing": true,
"codeowner_team": "@googleapis/ml-apis"
"repo": "googleapis/nodejs-ai-platform",
"codeowner_team": "@googleapis/ml-apis",
"distribution_name": "@google-cloud/aiplatform"
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,53 +13,29 @@
# limitations under the License.
"""This script is used to synthesize generated parts of this library."""

import synthtool as s
import synthtool.gcp as gcp
import synthtool.languages.node as node
import subprocess
import logging

logging.basicConfig(level=logging.DEBUG)

# List of excludes for the enhanced library
excludes = [
".kokoro/presubmit/node12/samples-test.cfg",
"package.json",
"README.md",
"src/decorator.ts",
"src/enhanced-types.json",
"src/helpers.ts",
"src/index.ts",
"src/value-converter.ts",
"test/helpers.test.ts",
"test/index.test.ts",
"tsconfig.json",
]

# run the gapic generator
gapic = gcp.GAPICBazel()
versions = ["v1beta1", "v1"]
default_version = "v1"

name = "aiplatform"
for version in versions:
library = gapic.node_library(name, version)
s.copy(library, excludes=excludes)

# Copy common templates
common_templates = gcp.CommonTemplates()
templates = common_templates.node_library(
source_location="build/src"
)
# We override the default sample configuration with a custom
# environment file:
s.copy(
templates,
excludes=[
node.owlbot_main(
staging_excludes = [
".kokoro/presubmit/node12/samples-test.cfg",
"package.json",
"README.md",
"src/decorator.ts",
"src/enhanced-types.json",
"src/helpers.ts",
"src/index.ts",
"src/value-converter.ts",
"test/helpers.test.ts",
"test/index.test.ts",
"tsconfig.json",
],
templates_excludes=[
".kokoro/continuous/node12/samples-test.cfg",
".kokoro/presubmit/node12/samples-test.cfg",
"src/index.ts",
],
)

node.postprocess_gapic_library()
46 changes: 0 additions & 46 deletions packages/google-cloud-aiplatform/synth.metadata

This file was deleted.

0 comments on commit b32b8a1

Please sign in to comment.