From 501827db59eb9e67ef9c637483efa5a0e5d09c06 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 16 Jan 2024 13:14:07 +0200 Subject: refactor(tvix/glue): add BuildService to TvixStoreIO TvixStoreIO triggers builds whenever IO into a not-yet-built store path is requested, if it knows how to build that path. Change-Id: If30e9db6be2f2a30cbc9d0576f357f3ecfa0d35a Reviewed-on: https://cl.tvl.fyi/c/depot/+/10645 Reviewed-by: raitobezarius Tested-by: BuildkiteCI --- tvix/glue/src/tests/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tvix/glue/src/tests') diff --git a/tvix/glue/src/tests/mod.rs b/tvix/glue/src/tests/mod.rs index b5b62c5d7e4c..ddc139158049 100644 --- a/tvix/glue/src/tests/mod.rs +++ b/tvix/glue/src/tests/mod.rs @@ -2,6 +2,7 @@ use std::{rc::Rc, sync::Arc}; use pretty_assertions::assert_eq; use std::path::PathBuf; +use tvix_build::buildservice::DummyBuildService; use tvix_castore::{ blobservice::{BlobService, MemoryBlobService}, directoryservice::{DirectoryService, MemoryDirectoryService}, @@ -43,6 +44,7 @@ fn eval_test(code_path: PathBuf, expect_success: bool) { blob_service, directory_service, path_info_service.into(), + Arc::new(DummyBuildService::default()), tokio_runtime.handle().clone(), )); let mut eval = tvix_eval::Evaluation::new(tvix_store_io.clone() as Rc, true); -- cgit 1.4.1