diff options
author | Josh Smith <joshsmith@codethink.co.uk> | 2018-07-19 16:30:38 +0100 |
---|---|---|
committer | Josh Smith <joshsmith@codethink.co.uk> | 2018-08-06 12:04:17 +0100 |
commit | d33b2e49b6c367f73ae6972940cfd30877b81098 (patch) | |
tree | cdf9cba221032334c4bc2b41484e0bf6a4bd73d7 /buildstream | |
parent | 88c4827977ff5c461e5e690006e115c1188cd8bf (diff) | |
download | buildstream-d33b2e49b6c367f73ae6972940cfd30877b81098.tar.gz |
cascache.py: Add push info detailing which remote is being pushed to
Work towards fixing issue #275
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_artifactcache/cascache.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py index a8464c257..575964362 100644 --- a/buildstream/_artifactcache/cascache.py +++ b/buildstream/_artifactcache/cascache.py @@ -263,6 +263,8 @@ class CASCache(ArtifactCache): for remote in push_remotes: remote.init() + element.info("Pushing {} -> {}".format(element._get_brief_display_key(), remote.spec.url)) + try: for ref in refs: tree = self.resolve_ref(ref) @@ -276,6 +278,8 @@ class CASCache(ArtifactCache): if response.digest.hash == tree.hash and response.digest.size_bytes == tree.size_bytes: # ref is already on the server with the same tree + element.info("Skipping {}, remote ({}) already has artifact cached".format( + element._get_brief_display_key(), remote.spec.url)) continue except grpc.RpcError as e: |