Commits on Source (2)
-
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
-
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
Showing
- buildstream/_artifactcache.py 79 additions, 27 deletionsbuildstream/_artifactcache.py
- buildstream/_cas/__init__.py 1 addition, 1 deletionbuildstream/_cas/__init__.py
- buildstream/_cas/cascache.py 31 additions, 340 deletionsbuildstream/_cas/cascache.py
- buildstream/_cas/casremote.py 246 additions, 3 deletionsbuildstream/_cas/casremote.py
- buildstream/_cas/transfer.py 62 additions, 0 deletionsbuildstream/_cas/transfer.py
- buildstream/sandbox/_sandboxremote.py 3 additions, 3 deletionsbuildstream/sandbox/_sandboxremote.py
- conftest.py 5 additions, 0 deletionsconftest.py
- tests/artifactcache/pull.py 20 additions, 6 deletionstests/artifactcache/pull.py
- tests/artifactcache/push.py 20 additions, 8 deletionstests/artifactcache/push.py
- tests/integration/pullbuildtrees.py 10 additions, 0 deletionstests/integration/pullbuildtrees.py
buildstream/_cas/transfer.py
0 → 100644