Download OutputDirectory's

Description

The OutputDirectory's of an Action were not being downloaded before. An OutputDirectory contains a TreeDigest so we begin by fetching the Tree and then downloading all contents of the root directory. We have to handle this manually since we don't have the digest of the root directory (like in a DirectoryNode)

For files, we extend the existing data structure to track what files to download.

For child directories we use the download_directory method since it can handle any inner directories recursively.

Note that we don't update the logic for --root-digest flag since it's unclear whether the intention is to support a Directory digest or a Tree digest. The current implementation supports a Directory digest.

Changes proposed in this merge request:

  • Download OutputDirectory's of an ActionResult

Validation

  • Create an action with an OutputDirectory
  • Use casdownload to download the ActionResult

Issues addressed

Addresses an internally reported issue

Merge request reports

Loading