Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/buildstream/sandbox/_sandboxreapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,13 @@ def _fetch_action_result_outputs(self, casremote, action_result):

raise SandboxError("Output directory structure had no digest attached.")

# Fetch stdout and stderr blobs
cascache.fetch_blobs(casremote, [action_result.stdout_digest, action_result.stderr_digest])
# Fetch stdout and stderr blobs, if they exist
blobs = []
for digest in [action_result.stdout_digest, action_result.stderr_digest]:
if digest.hash:
blobs.append(digest)
if blobs:
cascache.fetch_blobs(casremote, blobs)

def _process_job_output(self, working_directory, output_directories, output_files, *, failure):
# Reads the remote execution server response to an execution request.
Expand Down
Loading