witty-crayon-22786
09/25/2021, 5:22 AMoutput_directories
of `ActionResult`s, we store them in the files
database (we have files
and directories
labeled databases currently). this mostly works for local access (since they are looked up in the same place), but it fails to upload in ensure_remote_has_recursive
for a remote store, because we don’t recognize the blob as a Tree
(it’s labeled as a file)witty-crayon-22786
09/25/2021, 5:22 AMwitty-crayon-22786
09/25/2021, 5:22 AMwitty-crayon-22786
09/25/2021, 5:24 AMdirectories
database with a protos
database, which would store an outer envelope proto containing oneof Directory
, Tree
, Command
, Action
(all the protos we store in the files
database currently)
2. creating a trees
database in addition to the directories
and files
databases, and calling it a daywitty-crayon-22786
09/25/2021, 5:28 AMensure_remote_has_recursive
to recursively upload those other types and remove some manual code around thatcurved-television-6568
09/25/2021, 5:28 AMwitty-crayon-22786
09/25/2021, 5:29 AMaverage-vr-56795
09/25/2021, 8:12 AMaverage-vr-56795
09/25/2021, 8:13 AMaverage-vr-56795
09/25/2021, 8:15 AMwitty-crayon-22786
09/25/2021, 3:08 PMmessage StoreTypes { oneof field { ... } }
. My thinking was that anytime we store a blob we know its type, so we can preserve that.witty-crayon-22786
09/25/2021, 3:09 PMtrees
database without knowing its type already.witty-crayon-22786
09/25/2021, 3:11 PMfiles
database separate and untagged probably makes sense.average-vr-56795
09/25/2021, 3:43 PMwitty-crayon-22786
09/25/2021, 4:09 PMwitty-crayon-22786
09/25/2021, 4:10 PMensure_remote_has_recursive
doesn’t need to have the API it does currently, where it takes only `Digest`s… i’m pretty sure a caller will already know the types of the digests (because it got them out of an Action
from a particular field, etc), which would avoid the need to tag them for that purpose, and we’d just tag for validationwitty-crayon-22786
09/25/2021, 4:11 PM