You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 07:12:27 UTC
[buildstream] 03/13: casremote: Add artifact service stub
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tpollard/prototemp
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit e53a64fb47f7b558aaaf0ebfb2d8bd63e0a53c9b
Author: Raoul Hidalgo Charman <ra...@codethink.co.uk>
AuthorDate: Thu Apr 4 11:31:48 2019 +0100
casremote: Add artifact service stub
Part of #974
---
buildstream/_cas/casremote.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/buildstream/_cas/casremote.py b/buildstream/_cas/casremote.py
index aac0d28..ef6a508 100644
--- a/buildstream/_cas/casremote.py
+++ b/buildstream/_cas/casremote.py
@@ -12,6 +12,7 @@ from .. import _yaml
from .._protos.google.rpc import code_pb2
from .._protos.google.bytestream import bytestream_pb2, bytestream_pb2_grpc
from .._protos.build.bazel.remote.execution.v2 import remote_execution_pb2, remote_execution_pb2_grpc
+from .._protos.buildstream.v2 import artifact_pb2_grpc
from .._protos.buildstream.v2 import buildstream_pb2, buildstream_pb2_grpc
from .._exceptions import CASRemoteError, LoadError, LoadErrorReason
@@ -87,6 +88,7 @@ class CASRemote():
self.bytestream = None
self.cas = None
self.ref_storage = None
+ self.artifact = None
self.batch_update_supported = None
self.batch_read_supported = None
self.capabilities = None
@@ -132,6 +134,7 @@ class CASRemote():
self.cas = remote_execution_pb2_grpc.ContentAddressableStorageStub(self.channel)
self.capabilities = remote_execution_pb2_grpc.CapabilitiesStub(self.channel)
self.ref_storage = buildstream_pb2_grpc.ReferenceStorageStub(self.channel)
+ self.artifact = artifact_pb2_grpc.ArtifactServiceStub(self.channel)
self.max_batch_total_size_bytes = _MAX_PAYLOAD_BYTES
try: