diff options
author | Benjamin Schubert <bschubert15@bloomberg.net> | 2018-08-29 17:00:24 +0100 |
---|---|---|
committer | Benjamin Schubert <bschubert15@bloomberg.net> | 2018-08-29 17:58:43 +0100 |
commit | c09852c9534554c923cf81fa14f4c18a81de3e73 (patch) | |
tree | 5f6477940c664ad01f304b701795e36cd586d622 | |
parent | 4dfb416994f0ab1b06a7b6b428e783c63f1dd133 (diff) | |
download | buildstream-c09852c9534554c923cf81fa14f4c18a81de3e73.tar.gz |
Log not-found objects in the cache as SKIPPED
-rw-r--r-- | buildstream/_artifactcache/cascache.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py index c6402717c..9a9f7024f 100644 --- a/buildstream/_artifactcache/cascache.py +++ b/buildstream/_artifactcache/cascache.py @@ -249,6 +249,13 @@ class CASCache(ArtifactCache): if e.code() != grpc.StatusCode.NOT_FOUND: raise ArtifactError("Failed to pull artifact {}: {}".format( element._get_brief_display_key(), e)) from e + else: + self.context.message(Message( + None, + MessageType.SKIPPED, + "Remote ({}) does not have {} cached".format( + remote.spec.url, element._get_brief_display_key()) + )) return False |