Skip to content

Commit

Permalink
chore: new owl bot post processor docker image (#105)
Browse files Browse the repository at this point in the history
gcr.io/repo-automation-bots/owlbot-python:latest@sha256:3c3a445b3ddc99ccd5d31edc4b4519729635d20693900db32c4f587ed51f7479
  • Loading branch information
gcf-owl-bot[bot] authored May 28, 2021
1 parent dc9b5e4 commit 789e232
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-build/.github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
docker:
image: gcr.io/repo-automation-bots/owlbot-python:latest
digest: sha256:4c981a6b6f2b8914a448d7b3a01688365be03e3ed26dfee399a6aa77fb112eaa
digest: sha256:3c3a445b3ddc99ccd5d31edc4b4519729635d20693900db32c4f587ed51f7479
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@

class RetryBuildRequest(proto.Message):
r"""Specifies a build to retry.
Attributes:
name (str):
The name of the ``Build`` to retry. Format:
Expand All @@ -96,6 +97,7 @@ class RetryBuildRequest(proto.Message):

class RunBuildTriggerRequest(proto.Message):
r"""Specifies a build trigger to run and the source to use.
Attributes:
project_id (str):
Required. ID of the project.
Expand Down Expand Up @@ -137,6 +139,7 @@ class StorageSource(proto.Message):

class RepoSource(proto.Message):
r"""Location of the source in a Google Cloud Source Repository.
Attributes:
project_id (str):
ID of the project that owns the Cloud Source
Expand Down Expand Up @@ -207,6 +210,7 @@ class StorageSourceManifest(proto.Message):

class Source(proto.Message):
r"""Location of the source in a supported storage service.
Attributes:
storage_source (google.cloud.devtools.cloudbuild_v1.types.StorageSource):
If provided, get the source from this
Expand All @@ -233,6 +237,7 @@ class Source(proto.Message):

class BuiltImage(proto.Message):
r"""An image built by the pipeline.
Attributes:
name (str):
Name used to push the container image to Google Container
Expand All @@ -251,6 +256,7 @@ class BuiltImage(proto.Message):

class BuildStep(proto.Message):
r"""A step in the build pipeline.
Attributes:
name (str):
Required. The name of the container image that will run this
Expand Down Expand Up @@ -384,6 +390,7 @@ class Volume(proto.Message):

class Results(proto.Message):
r"""Artifacts created by the build pipeline.
Attributes:
images (Sequence[google.cloud.devtools.cloudbuild_v1.types.BuiltImage]):
Container images that were built as a part of
Expand Down Expand Up @@ -675,6 +682,7 @@ class ArtifactObjects(proto.Message):

class TimeSpan(proto.Message):
r"""Start and end times for a build execution phase.
Attributes:
start_time (google.protobuf.timestamp_pb2.Timestamp):
Start of time span.
Expand All @@ -688,6 +696,7 @@ class TimeSpan(proto.Message):

class BuildOperationMetadata(proto.Message):
r"""Metadata for build operations.
Attributes:
build (google.cloud.devtools.cloudbuild_v1.types.Build):
The build that the operation is tracking.
Expand Down Expand Up @@ -753,6 +762,7 @@ class FileHashes(proto.Message):

class Hash(proto.Message):
r"""Container message for hash values.
Attributes:
type_ (google.cloud.devtools.cloudbuild_v1.types.Hash.HashType):
The type of hash that was performed.
Expand All @@ -772,6 +782,7 @@ class HashType(proto.Enum):

class Secrets(proto.Message):
r"""Secrets and secret environment variables.
Attributes:
secret_manager (Sequence[google.cloud.devtools.cloudbuild_v1.types.SecretManagerSecret]):
Secrets in Secret Manager and associated
Expand Down Expand Up @@ -857,6 +868,7 @@ class Secret(proto.Message):

class CreateBuildRequest(proto.Message):
r"""Request to create a new build.
Attributes:
parent (str):
The parent resource where this build will be created.
Expand All @@ -874,6 +886,7 @@ class CreateBuildRequest(proto.Message):

class GetBuildRequest(proto.Message):
r"""Request to get a build.
Attributes:
name (str):
The name of the ``Build`` to retrieve. Format:
Expand All @@ -891,6 +904,7 @@ class GetBuildRequest(proto.Message):

class ListBuildsRequest(proto.Message):
r"""Request to list builds.
Attributes:
parent (str):
The parent of the collection of ``Builds``. Format:
Expand Down Expand Up @@ -923,6 +937,7 @@ class ListBuildsRequest(proto.Message):

class ListBuildsResponse(proto.Message):
r"""Response including listed builds.
Attributes:
builds (Sequence[google.cloud.devtools.cloudbuild_v1.types.Build]):
Builds will be sorted by ``create_time``, descending.
Expand All @@ -942,6 +957,7 @@ def raw_page(self):

class CancelBuildRequest(proto.Message):
r"""Request to cancel an ongoing build.
Attributes:
name (str):
The name of the ``Build`` to cancel. Format:
Expand Down Expand Up @@ -1183,6 +1199,7 @@ class PushFilter(proto.Message):

class CreateBuildTriggerRequest(proto.Message):
r"""Request to create a new ``BuildTrigger``.
Attributes:
project_id (str):
Required. ID of the project for which to
Expand All @@ -1197,6 +1214,7 @@ class CreateBuildTriggerRequest(proto.Message):

class GetBuildTriggerRequest(proto.Message):
r"""Returns the ``BuildTrigger`` with the specified ID.
Attributes:
project_id (str):
Required. ID of the project that owns the
Expand All @@ -1212,6 +1230,7 @@ class GetBuildTriggerRequest(proto.Message):

class ListBuildTriggersRequest(proto.Message):
r"""Request to list existing ``BuildTriggers``.
Attributes:
project_id (str):
Required. ID of the project for which to list
Expand All @@ -1230,6 +1249,7 @@ class ListBuildTriggersRequest(proto.Message):

class ListBuildTriggersResponse(proto.Message):
r"""Response containing existing ``BuildTriggers``.
Attributes:
triggers (Sequence[google.cloud.devtools.cloudbuild_v1.types.BuildTrigger]):
``BuildTriggers`` for the project, sorted by ``create_time``
Expand All @@ -1248,6 +1268,7 @@ def raw_page(self):

class DeleteBuildTriggerRequest(proto.Message):
r"""Request to delete a ``BuildTrigger``.
Attributes:
project_id (str):
Required. ID of the project that owns the
Expand All @@ -1262,6 +1283,7 @@ class DeleteBuildTriggerRequest(proto.Message):

class UpdateBuildTriggerRequest(proto.Message):
r"""Request to update an existing ``BuildTrigger``.
Attributes:
project_id (str):
Required. ID of the project that owns the
Expand All @@ -1279,6 +1301,7 @@ class UpdateBuildTriggerRequest(proto.Message):

class BuildOptions(proto.Message):
r"""Optional arguments to enable specific features of builds.
Attributes:
source_provenance_hash (Sequence[google.cloud.devtools.cloudbuild_v1.types.Hash.HashType]):
Requested hash for SourceProvenance.
Expand Down Expand Up @@ -1557,6 +1580,7 @@ class WorkerConfig(proto.Message):

class Network(proto.Message):
r"""Network describes the GCP network used to create workers in.
Attributes:
project_id (str):
Project id containing the defined network and subnetwork.
Expand All @@ -1580,6 +1604,7 @@ class Network(proto.Message):

class CreateWorkerPoolRequest(proto.Message):
r"""Request to create a new ``WorkerPool``.
Attributes:
parent (str):
ID of the parent project.
Expand All @@ -1593,6 +1618,7 @@ class CreateWorkerPoolRequest(proto.Message):

class GetWorkerPoolRequest(proto.Message):
r"""Request to get a ``WorkerPool`` with the specified name.
Attributes:
name (str):
The field will contain name of the resource
Expand All @@ -1605,6 +1631,7 @@ class GetWorkerPoolRequest(proto.Message):

class DeleteWorkerPoolRequest(proto.Message):
r"""Request to delete a ``WorkerPool``.
Attributes:
name (str):
The field will contain name of the resource
Expand All @@ -1617,6 +1644,7 @@ class DeleteWorkerPoolRequest(proto.Message):

class UpdateWorkerPoolRequest(proto.Message):
r"""Request to update a ``WorkerPool``.
Attributes:
name (str):
The field will contain name of the resource
Expand All @@ -1632,6 +1660,7 @@ class UpdateWorkerPoolRequest(proto.Message):

class ListWorkerPoolsRequest(proto.Message):
r"""Request to list ``WorkerPools``.
Attributes:
parent (str):
ID of the parent project.
Expand All @@ -1642,6 +1671,7 @@ class ListWorkerPoolsRequest(proto.Message):

class ListWorkerPoolsResponse(proto.Message):
r"""Response containing existing ``WorkerPools``.
Attributes:
worker_pools (Sequence[google.cloud.devtools.cloudbuild_v1.types.WorkerPool]):
``WorkerPools`` for the project.
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-build/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def docs(session):
"""Build the docs for this library."""

session.install("-e", ".")
session.install("sphinx<3.0.0", "alabaster", "recommonmark")
session.install("sphinx==4.0.1", "alabaster", "recommonmark")

shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
session.run(
Expand All @@ -202,7 +202,7 @@ def docfx(session):

session.install("-e", ".")
session.install(
"sphinx<3.0.0", "alabaster", "recommonmark", "gcp-sphinx-docfx-yaml"
"sphinx==4.0.1", "alabaster", "recommonmark", "gcp-sphinx-docfx-yaml"
)

shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
Expand Down
8 changes: 8 additions & 0 deletions packages/google-cloud-build/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
default_version = "v1"

for library in s.get_staging_dirs(default_version):
# Work around gapic generator bug https://github.com/googleapis/gapic-generator-python/issues/902
s.replace(library / f"google/devtools/cloudbuild_{library.name}/types/cloudbuild.py",
r""".
Attributes:""",
r""".\n
Attributes:""",
)

# Fix namespace
s.replace(
library / f"google/devtools/**/*.py",
Expand Down

0 comments on commit 789e232

Please sign in to comment.