Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
buildstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
BuildStream
buildstream
Commits
edba0410
Commit
edba0410
authored
6 years ago
by
Valentin David
Browse files
Options
Downloads
Patches
Plain Diff
Fix type error in RPC messages
parent
aee5d88f
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildstream/_artifactcache/casserver.py
+3
-2
3 additions, 2 deletions
buildstream/_artifactcache/casserver.py
with
3 additions
and
2 deletions
buildstream/_artifactcache/casserver.py
+
3
−
2
View file @
edba0410
...
...
@@ -34,6 +34,7 @@ import grpc
from
.._protos.build.bazel.remote.execution.v2
import
remote_execution_pb2
,
remote_execution_pb2_grpc
from
.._protos.google.bytestream
import
bytestream_pb2
,
bytestream_pb2_grpc
from
.._protos.buildstream.v2
import
buildstream_pb2
,
buildstream_pb2_grpc
from
.._protos.google.rpc
import
code_pb2
from
.._exceptions
import
ArtifactError
from
.._context
import
Context
...
...
@@ -317,12 +318,12 @@ class _ContentAddressableStorageServicer(remote_execution_pb2_grpc.ContentAddres
try
:
with
open
(
self
.
cas
.
objpath
(
digest
),
'
rb
'
)
as
f
:
if
os
.
fstat
(
f
.
fileno
()).
st_size
!=
digest
.
size_bytes
:
blob_response
.
status
.
code
=
grpc
.
StatusCode
.
NOT_FOUND
blob_response
.
status
.
code
=
code_pb2
.
NOT_FOUND
continue
blob_response
.
data
=
f
.
read
(
digest
.
size_bytes
)
except
FileNotFoundError
:
blob_response
.
status
.
code
=
grpc
.
StatusCode
.
NOT_FOUND
blob_response
.
status
.
code
=
code_pb2
.
NOT_FOUND
return
response
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment