_stream.py: Add warning to pull and fetch
If a cache storage-service has been configured, blobs of pulled
artifacts and fetched sources are not guaranteed to be in the local
cache. The cache storage-service should thus be removed from the
configuration before pull/fetch if the goal is offline operation.
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index e22b93c..21ba47d 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -426,6 +426,11 @@
ignore_project_source_remotes: bool = False,
):
+ if self._context.remote_cache_spec:
+ self._context.messenger.warn(
+ "Cache Storage Service is configured, fetched sources may not be available in the local cache"
+ )
+
elements = self._load(
targets,
selection=selection,
@@ -544,6 +549,11 @@
ignore_project_artifact_remotes: bool = False,
):
+ if self._context.remote_cache_spec:
+ self._context.messenger.warn(
+ "Cache Storage Service is configured, pulled artifacts may not be available in the local cache"
+ )
+
elements = self._load(
targets,
selection=selection,