Commits on Source (6)
-
Daniel Silverstone authored
Since ArtifactCache.setup_remotes() can be expensive and should only happen once, this commit will assert() if it is called a second time on an artifact cache instance. Signed-off-by:
Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-
Daniel Silverstone authored
The initialization of remotes is done by ArtifactCache.setup_remotes() and as such it was wrong for these tests to be calling CASCache.initialize_remotes() a second time. Signed-off-by:
Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-
Daniel Silverstone authored
The SandboxRemote used to construct its own CASCache which was considered dangerous. This patch replaces that with acquisition of the cache via the Platform singleton, hopefully eliminating issues from having more than one artifact cache object in a single process. Signed-off-by:
Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-
Tristan Van Berkom authored
sandbox/_sandboxremote.py: Acquire cache via Platform See merge request !797
-
Tristan Van Berkom authored
When configuring a push remote and specifying either the client-cert or the client-key, then both must be specified. This ensures we get an informative error instead of a stack trace and BUG. Fixes issue #625
-
Tristan Van Berkom authored
Test that we get the expected error when configuring a client-cert without client-key, or the inverse.
Showing
- buildstream/_artifactcache/artifactcache.py 16 additions, 1 deletionbuildstream/_artifactcache/artifactcache.py
- buildstream/sandbox/_sandboxremote.py 7 additions, 12 deletionsbuildstream/sandbox/_sandboxremote.py
- tests/artifactcache/config.py 34 additions, 0 deletionstests/artifactcache/config.py
- tests/artifactcache/missing-certs/certificates/client.crt 0 additions, 0 deletionstests/artifactcache/missing-certs/certificates/client.crt
- tests/artifactcache/missing-certs/certificates/client.key 0 additions, 0 deletionstests/artifactcache/missing-certs/certificates/client.key
- tests/artifactcache/missing-certs/element.bst 1 addition, 0 deletionstests/artifactcache/missing-certs/element.bst
- tests/artifactcache/pull.py 0 additions, 3 deletionstests/artifactcache/pull.py