Skip to content

Commits on Source 3

  • Raoul Hidalgo Charman's avatar
    tmpdir: add tmpdir to context for CASRemote · 9944dddb
    Raoul Hidalgo Charman authored
    As CASRemote is used in other places such as SandboxRemote it makes sense for
    there to be a tmpdir it uses. This dir is passed to CASRemote when initialized.
    
    This is currently in the artifactdir, but should be moved when artifactdir and
    builddir options are deprecated in favour of one top level directory containing
    the two.
    
    Part of #802
    9944dddb
  • Raoul Hidalgo Charman's avatar
    artifactcache: Move pull logic into CASRemote · 2a26a896
    Raoul Hidalgo Charman authored
    Seperates the pull logic into a remote/local API, so that artifact cache
    iterates over blob digests checks whether it has them, and then requests them
    if not. The request command allows batching of blobs where appropriate.
    
    Tests have been updated to ensure the correct tmpdir is set up in process
    wrappers, else invalid cross link errors happen in the CI. Additional asserts
    have been added to check that the temporary directories are cleared by the end
    of a pull.
    
    Part of #802
    2a26a896
  • Raoul Hidalgo Charman's avatar
    artifactcache: implement new push methods · 67955081
    Raoul Hidalgo Charman authored
    Similar to the pull methods, this implements a yield_directory_digests methods
    that iterates over blobs in the local CAS, with the upload_blob sending blobs
    to a remote and batching them where appropriate.
    
    Part of #802
    67955081
Loading