diff options
author | Jürg Billeter <j@bitron.ch> | 2020-03-30 12:14:01 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-04-20 14:27:16 +0200 |
commit | 50dc14900bcad11878175068dd7361ee1b424f59 (patch) | |
tree | b310fefe3a525fc5adf70378d463c52d49a0e86e /src/buildstream/sandbox | |
parent | d946255d0b94d8e52c56ffbd19a74737946107a9 (diff) | |
download | buildstream-50dc14900bcad11878175068dd7361ee1b424f59.tar.gz |
cascache.py: Add allow_partial parameter to fetch_blobs()
This fixes handling of missing blobs in `ArtifactCache.pull()`.
Diffstat (limited to 'src/buildstream/sandbox')
-rw-r--r-- | src/buildstream/sandbox/_sandboxremote.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/buildstream/sandbox/_sandboxremote.py b/src/buildstream/sandbox/_sandboxremote.py index 3dcbb2ccc..5b03852f6 100644 --- a/src/buildstream/sandbox/_sandboxremote.py +++ b/src/buildstream/sandbox/_sandboxremote.py @@ -291,12 +291,7 @@ class SandboxRemote(SandboxREAPI): blobs_to_fetch = artifactcache.find_missing_blobs(project, local_missing_blobs) with CASRemote(self.storage_remote_spec, cascache) as casremote: - remote_missing_blobs = cascache.fetch_blobs(casremote, blobs_to_fetch) - - if remote_missing_blobs: - raise SandboxError( - "{} output files are missing on the CAS server".format(len(remote_missing_blobs)) - ) + cascache.fetch_blobs(casremote, blobs_to_fetch) def _execute_action(self, action, flags): stdout, stderr = self._get_output() |