This is an automated email from the ASF dual-hosted git repository.

akitouni pushed a commit to branch abderrahim/cascache-cleanup
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 91877f5a6e13b088fd9f859193d2c65d74c9ee2d
Author: Abderrahim Kitouni <akito...@gnome.org>
AuthorDate: Sun Apr 27 16:57:52 2025 +0100

    tests/artifactcache/pull: stop using CASRemote.push_message()
    
    This is the only thing that uses this function
---
 tests/artifactcache/pull.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/artifactcache/pull.py b/tests/artifactcache/pull.py
index 114957b85..882134be3 100644
--- a/tests/artifactcache/pull.py
+++ b/tests/artifactcache/pull.py
@@ -195,7 +195,10 @@ def test_pull_tree(cli, tmpdir, datafiles):
             # Push the Tree as a regular message
             _, remotes = artifactcache.get_remotes(project.name, True)
             assert len(remotes) == 1
-            tree_digest = remotes[0].push_message(tree)
+
+            remotes[0].init()
+            tree_digest = cas.add_object(buffer=tree.SerializeToString(), 
instance_name=remotes[0].local_cas_instance_name)
+
             tree_hash, tree_size = tree_digest.hash, tree_digest.size_bytes
             assert tree_hash and tree_size
 

Reply via email to