This is an automated email from the ASF dual-hosted git repository. juergbi pushed a commit to branch jbilleter/action-cache in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 5bc5aada187c1a5e8d518a02a82e8491e1783d99 Author: Jürg Billeter <[email protected]> AuthorDate: Fri Jul 4 09:25:56 2025 +0200 tests/integration/sandbox.py: Add test for remote action cache config --- tests/integration/sandbox.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/integration/sandbox.py b/tests/integration/sandbox.py index 7d2d00123..ccff06bf7 100644 --- a/tests/integration/sandbox.py +++ b/tests/integration/sandbox.py @@ -21,6 +21,7 @@ import pytest from buildstream._testing import cli_integration as cli # pylint: disable=unused-import from buildstream._testing._utils.site import HAVE_SANDBOX +from tests.testutils import create_artifact_share pytestmark = pytest.mark.integration @@ -59,3 +60,24 @@ def test_remote_apis_socket(cli, datafiles): result = cli.run(project=project, args=["build", element_name]) assert result.exit_code == 0 + + +# Test configuration with remote action cache for nested REAPI. [email protected](not HAVE_SANDBOX, reason="Only available with a functioning sandbox") [email protected](DATA_DIR) +def test_remote_apis_socket_with_action_cache(cli, tmpdir, datafiles): + project = str(datafiles) + element_name = "sandbox/remote-apis-socket.bst" + + with create_artifact_share(os.path.join(str(tmpdir), "remote")) as share: + cli.configure( + { + "remote-execution": { + "storage-service": {"url": share.repo}, + "action-cache-service": {"url": share.repo, "push": True}, + } + } + ) + + result = cli.run(project=project, args=["build", element_name]) + assert result.exit_code == 0
