This is an automated email from the ASF dual-hosted git repository. juergbi pushed a commit to branch juerg/fix-casd-test in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 94f4c92201903f04c56511208edf883b3d8f3cf6 Author: Jürg Billeter <[email protected]> AuthorDate: Fri Nov 22 15:14:56 2024 +0100 tests/testutils/casd.py: Set cache quota This fixes `test_cache_usage_monitor` with recent versions of buildbox-casd that no longer track the disk usage of blobs if no absolute quota is configured. https://gitlab.com/BuildGrid/buildbox/buildbox/-/merge_requests/670 --- tests/testutils/casd.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/testutils/casd.py b/tests/testutils/casd.py index 9a3eb8e71..403b3fc8e 100644 --- a/tests/testutils/casd.py +++ b/tests/testutils/casd.py @@ -20,7 +20,13 @@ from buildstream._cas import CASCache, CASDProcessManager, CASLogLevel @contextmanager def casd_cache(path, messenger=None): casd = CASDProcessManager( - str(path), os.path.join(str(path), "..", "logs", "_casd"), CASLogLevel.WARNING, None, None, True, None + str(path), + os.path.join(str(path), "..", "logs", "_casd"), + CASLogLevel.WARNING, + 16 * 1024 * 1024, + None, + True, + None, ) try: cascache = CASCache(str(path), casd=casd)
