This is an automated email from the ASF dual-hosted git repository.

juergbi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/buildstream.git


The following commit(s) were added to refs/heads/master by this push:
     new 2970bec  _artifact.py: don't consider an artifact cached if metadata 
is missing
     new 5cdace5  Merge pull request #1467 from abderrahim/artifact-meta
2970bec is described below

commit 2970bec43aa04b589890aae95f0cdb058de3082e
Author: Abderrahim Kitouni <[email protected]>
AuthorDate: Sun Mar 21 22:18:26 2021 +0100

    _artifact.py: don't consider an artifact cached if metadata is missing
    
    Fixes #1466
---
 src/buildstream/_artifact.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/buildstream/_artifact.py b/src/buildstream/_artifact.py
index da1e03a..28e2f59 100644
--- a/src/buildstream/_artifact.py
+++ b/src/buildstream/_artifact.py
@@ -574,7 +574,7 @@ class Artifact:
 
         # Check whether public data and logs are available
         logfile_digests = [logfile.digest for logfile in artifact.logs]
-        digests = [artifact.public_data] + logfile_digests
+        digests = [artifact.low_diversity_meta, artifact.high_diversity_meta, 
artifact.public_data] + logfile_digests
         if not self._cas.contains_files(digests):
             self._cached = False
             return False

Reply via email to