This is an automated email from the ASF dual-hosted git repository. juergbi pushed a commit to branch jbilleter/remoteasset in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit d3e88440226382b2a16670e3ada392d69216469b Author: Jürg Billeter <[email protected]> AuthorDate: Fri Nov 14 09:54:34 2025 +0100 _artifactcache.py: Push and fetch sources The source digest is already stored in the artifact proto and added to the list of referenced directories if the buildtree is cached, however, the actual push and fetch was missing. --- src/buildstream/_artifactcache.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/buildstream/_artifactcache.py b/src/buildstream/_artifactcache.py index c08f9d1e4..c8328f109 100644 --- a/src/buildstream/_artifactcache.py +++ b/src/buildstream/_artifactcache.py @@ -297,6 +297,12 @@ class ArtifactCache(AssetCache): except FileNotFoundError: pass + if artifact_proto.HasField("sources"): + try: + self.cas._send_directory(remote, artifact_proto.sources) + except FileNotFoundError: + pass + if artifact_proto.HasField("buildroot"): try: self.cas._send_directory(remote, artifact_proto.buildroot) @@ -427,6 +433,8 @@ class ArtifactCache(AssetCache): if pull_buildtrees: if artifact.HasField("buildtree"): self.cas.fetch_directory(remote, artifact.buildtree) + if artifact.HasField("sources"): + self.cas.fetch_directory(remote, artifact.sources) if artifact.HasField("buildroot"): self.cas.fetch_directory(remote, artifact.buildroot) if artifact.HasField("buildsandbox"):
